prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
[gnulib.git] / ChangeLog
1 2012-11-08  Jim Meyering  <jim@meyering.net>
2
3         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
4         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
5         white space before each of the special-cased file names, to avoid
6         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
7         in http://bugs.gnu.org/12830.
8
9 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
10
11         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
12         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
13         fails with errno == EBADF when fd is opened with O_PATH.
14         Reported by Jim Meyering in
15         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
16         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
17         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
18
19 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20
21         test-utimens: speed up by taking shorter naps
22         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
23         New functions.
24         (nap): Use them, to do a better job of guessing the delay.
25         On Fedora 17 with ext4 atop md atop hard disks, this made
26         test-utimens run 10x faster, because the test napped for
27         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
28         <http://bugs.gnu.org/12820#11>.
29
30 2012-11-07  Jim Meyering  <jim@meyering.net>
31
32         mountlist.c: fix a compilation failure
33         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
34         I introduced while transforming commit v0.0-7683-g613bcb6
35
36 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37
38         errno: port to LynxOS 178 2.2.2
39         Problem reported by Joel Brobecker in
40         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
41         * doc/posix-headers/errno.texi (errno.h): Document this.
42         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
43         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
44         Supply a string for EILSEQ.
45         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
46
47 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
48
49         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
50         Linux kernel 2.6.39 introduced O_PATH (see
51         <http://lwn.net/Articles/433854/>) and this is a better fallback
52         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
53         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
54         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
55         * lib/fcntl.in.h (O_ACCMODE):
56         * tests/test-fcntl-h.c (main):
57         Do not reject O_ACCMODE merely because it has more than the
58         minimal number of bits, as POSIX allows extensions here.
59
60 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
61
62         mountlist: do not classify a bind-mounted dir entry as "dummy"
63         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
64         the "none"-testing clause.
65         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
66         exception for bind-mounted directories.
67
68 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
69
70         quote: provide a means to escape strings with nul characters
71         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
72         (quote, quote_n): Rename formal arguments for consistency with
73         quotearg.
74
75 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76
77         test-raise: don't assume 199 is an invalid signal
78         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
79
80         sh-quote-tests: port to Solaris 9
81         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
82         Problem reported by Dagobert Michelsen in
83         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
84
85 2012-10-28  Jim Meyering  <jim@meyering.net>
86
87         maint.mk: rename a new configurable variable
88         * top/maint.mk (_gl_translatable_string_re): Rename from
89         translation-markers: _gl_ prefix to insulate from user Makefile code,
90         and the _re suffix to inform that it's a regular expression.
91
92 2012-10-26  Eric Blake  <eblake@redhat.com>
93
94         maint.mk: let packages tweak sc_po_check pattern
95         * top/maint.mk (sc_po_check): Add translation-markers, to allow
96         finding files with other translation markers.
97
98 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99
100         euidaccess: speed up 'configure' on GNU hosts
101         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
102         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
103         it's needed only in this case.  Use AC_CHECK_DECLS, not
104         AC_CHECK_DECLS_ONCE.
105         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
106         or AC_REQUIRE for AC_FUNC_GETGROUPS.
107
108         * lib/regexec.c (re_search_internal): Fix grammar in comment.
109
110 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
111
112         fchmodat, fchownat, fstatat: port to non-inlining compilers
113         Problem reported for FreeBSD 9 by Jim Meyering in
114         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
115         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
116         New files, which define FCHMODAT_INLINE etc.
117         * lib/fchmodat.c (FCHMODAT_INLINE):
118         * lib/fchownat.c (FCHOWNAT_INLINE):
119         * lib/fstatat.c (FSTATAT_INLINE):
120         Remove, as chmodat.c etc. now do this.
121         * modules/fchmodat (Files): Add lib/chmodat.c.
122         * modules/fchownat (Files): Add lib/chownat.c.
123         * modules/fstatat (Files): Add lib/statat.c.
124
125 2012-10-15  Jim Meyering  <jim@meyering.net>
126
127         fchmodat.c, fchownat.c: compile-impeding typos
128         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
129         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
130         Introduced in commit v0.0-7636-gd202279.
131
132 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
133
134         fcntl-h: support GNU flags like O_IGNORE_CTTY
135         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
136         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
137         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
138         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
139         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
140         Define to 0 if not already defined.
141         * tests/test-fcntl-h.c: Test these new flags.
142
143 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
144
145         faccessat, etc.: support AT_FDCWD-only use
146         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
147         this function only if its first argument is AT_FDCWD.
148         Emacs wants faccessat for AT_EACCESS but not for any first-arg
149         values other than AT_FDCWD, so it doesn't want all the openat
150         machinery with fchdir etc.
151         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
152         * modules/fstatat, modules/mkdirat, modules/openat (Files):
153         * modules/unlinkat (Files):
154         Remove lib/openat-priv.h, as at-internal supplies this file.
155         Removing this file here allows us to support programs like Emacs
156         that avoid at-internal.
157
158         faccessat: speed up 'configure' on mainstream hosts
159         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
160         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
161         since it's only on unusual platforms that we need to check for
162         'access', and it's better not to slow 'configure' down on all
163         platforms.
164
165         faccessat: port to Solaris 10
166         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
167         Needed on Solaris 10, which doesn't have AT_EACCESS,
168         so we need the Gnulib fcntl.h, which defines it.
169
170 2012-10-14  Pádraig Brady  <P@draigBrady.com>
171         canonicalize: fix C89 compilation
172         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
173         declarations so C89 is supported.  Also remove the comment
174         referencing memorty allocation as the suggested feature could
175         not be implemented as suggested.
176         Reported by Michael Goffioul.
177
178 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
179
180         group-member: omit unnecessary dependencies
181         This is for Emacs, which has its own allocator and where we
182         don't want to use xalloc.
183         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
184         since we no longer use xmalloc.  Do not include stdbool.h, since
185         the changes below happen to remove the only use of bool.
186         (GROUPBUF_SIZE): New constant.
187         (struct group_info): Remove n_groups member.  Add groupbuf member.
188         This lets us get the groups without using malloc, usually.
189         (free_group_info, get_group_info): Adjust to this.
190         (get_group_info): Return the number of groups found, or -1 on error.
191         Use plain malloc not xmalloc, and treat its failure as if there
192         are no groups, as the user already loses in case of error.
193         (group_member): Simplify, based on changes to get_group_info.
194         * modules/group-member (Depends-on): Remove dependencies on
195         xalloc and stdbool.  Add dependency on xalloc-oversized.
196
197 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
198
199         gethrxtime: port to C++
200         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
201
202 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
203
204         ptsname: fix macro-name typo
205         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
206
207 2012-10-03  Simon Josefsson  <simon@josefsson.org>
208
209         inttostr: Relax license.
210         * modules/inttostr (License): Change from LGPL to LGPLv2+.
211
212 2012-10-03  Eric Blake  <eblake@redhat.com>
213
214         ptsname_r: support ptys returned by FreeBSD posix_openpt
215         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
216         lives in /dev/pts/.
217
218 2012-10-02  Eric Blake  <eblake@redhat.com>
219
220         pselect: reject invalid file descriptors
221         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
222         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
223         * modules/pselect (Depends-on): Add dup2.
224         * doc/posix-functions/pselect.texi (pselect): Document this.
225
226         select: reject invalid file descriptors
227         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
228         * lib/select.c (rpl_select) [!win32]: Work around it.
229         * modules/select (Depends-on): Add dup2.
230         * doc/posix-functions/select.texi (select): Document this.
231
232         select: enhance test
233         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
234         New functions.
235         (test_function): Enhance test.
236         (do_select_bad_fd): Avoid any stale errno values.
237
238         ptsname: reject invalid file descriptors
239         http://www.austingroupbugs.net/view.php?id=503
240         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
242         * modules/stdlib (Makefile.am): Replace witness.
243         * lib/stdlib.in.h (ptsname): Allow for replacement.
244         * modules/ptsname (configure.ac): Trigger replacement.
245         * doc/posix-functions/ptsname.texi (ptsname): Document this.
246
247 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
248
249         hash-pjw-bare: new module
250         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
251         * lib/hash-pjw-bare.h: Likewise.
252         * modules/hash-pjw-bare: New file.
253         * MODULES.html.sh (Misc): Add it.
254
255 2012-10-02  Eric Blake  <eblake@redhat.com>
256
257         manywarnings: cater to more gcc infelicities
258         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
259         -Wuninitialized without -O.
260
261 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
262
263         select, poll tests: Make setsockopt invocation effective.
264         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
265         the bind() call.
266         * tests/test-select.h (open_server_socket): Likewise.
267
268 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
269
270         sockets, sys_stat: restore AC_C_INLINE
271         This undoes the 2012-09-22 patch.
272         * m4/sockets.m4 (gl_SOCKETS):
273         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
274         Restore AC_C_INLINE, since MSVC requires __inline or _inline
275         and does not support plain 'inline'.  Reported by Bruno Haible in
276         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
277
278 2012-09-30  Bruno Haible  <bruno@clisp.org>
279
280         localeconv tests: Avoid test failure on OpenIndiana.
281         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
282         skip the 'grouping' and 'mon_grouping' tests.
283         Reported by Jim Meyering.
284
285 2012-09-30  Bruno Haible  <bruno@clisp.org>
286
287         havelib: Follow libtool developments.
288         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
289         Suggested by Simon Josefsson.
290
291 2012-09-29  Jim Meyering  <meyering@redhat.com>
292
293         fstatat.c: fix a compile-impeding typo
294         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
295         Introduced in commit v0.0-7636-gd202279.
296         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
297
298 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
299
300         extern-inline: provide a -Wundef safe config.h
301         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
302         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
303         to produce a -Wundef warning free config.h.
304
305 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
306
307         hash-pjw: relax license to LGPLv2+
308         * modules/hash-pjw (License): Relax, with consent of author.
309
310 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
311
312         maint.mk: fix strict vs. lazy variable issues with RELEASE
313         * top/maint.mk (_equal): New function.
314         (member_check): Strip the result to avoid spurious spaces.
315         (url_dir_list): Do not use ifeq, which is strict, as it will
316         require RELEASE_TYPE to be defined.
317         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
318         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
319         (announcement_Cc_alpha,announcement_mail_headers_alpha)
320         (announcement_Cc_beta,announcement_mail_headers_beta)
321         (announcement_Cc_stable,announcement_mail_headers_stable): these.
322         (release): Do not depend on $(release-type), as it forces its
323         evaluation.  Bounce to it.
324
325 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
326
327         maint.mk: formatting changes
328         * top/maint.mk: Indent bodies of if's.
329
330 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
331
332         maint.mk: factor the validation of RELEASE_TYPE
333         With help from Jim Meyering.
334         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
335         * top/maint.mk (_empty, _sp): Move their definition earlier.
336         (member-check, release-type): New.
337         Use the latter instead of $(RELEASE_TYPE).
338         Remove now useless local checks.
339
340 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
341
342         maint.mk: provide "make upload" to ease uploading
343         See
344         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
345         Do not depend simply on the current $(VERSION), as there may have been
346         new commits since the tarball generation.  Rather, rely on $(RELEASE),
347         as "make release-commit" already does.
348
349         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
350         "make TYPE".
351
352         * top/maint.mk (upload_command, upload, release): New.
353         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
354         (VERSION): first word of $(RELEASE) is always right.
355         (emit_upload_commands): Adjust.
356         * top/README-release: Update.
357
358 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
359
360         maint.mk: silent rules
361         With help from Stefano Lattarini.
362         * top/maint.mk (writable-files): Use $(AM_V_GEN).
363         (announcement): Use $(AM_V_at).
364
365 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
366
367         localename: port gl_locale_name_thread_unsafe to FreeBSD
368         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
369         and use the simpler FreeBSD implementation on Mac OS X as well.
370         Original idea suggested by Ed Maste in
371         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
372
373 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
374
375         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
376         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
377         * lib/mbuiter.c, lib/xsize.c: New files.
378         * lib/binary-io.h (BINARY_IO_INLINE):
379         * lib/eealloc.h (EEALLOC_INLINE):
380         * lib/mbfile.h (MBFILE_INLINE):
381         * lib/mbiter.h (MBITER_INLINE):
382         * lib/mbuiter.h (MBUITER_INLINE):
383         * lib/xsize.h (XSIZE_INLINE):
384         New macros.
385         Replace all uses of 'static inline' with them.
386         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
387         * m4/eealloc.m4 (gl_EEALLOC):
388         * m4/mbfile.m4 (gl_MBFILE):
389         * m4/mbiter.m4 (gl_MBITER):
390         * m4/xsize.m4 (gl_XSIZE):
391         Do not require AC_C_INLINE.
392         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
393         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
394         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
395         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
396         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
397         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
398         * modules/binary-io, modules/eealloc, modules/mbfile:
399         * modules/mbiter, modules/mbuiter:
400         (Depends-on): Add extern-inline.
401
402         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
403         * lib/pipe-filter-aux.c: New file.
404         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
405         Replace all uses of 'static inline' with it.
406         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
407         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
408         (filter_retcode): No real need for inline here.
409         * modules/pipe-filter-gi, modules/pipe-filter-ii:
410         (Files): Add lib/pipe-filter-aux.c.
411         (Depends-on): Add extern-inline.
412         (configure.ac): Do not require AC_C_INLINE.
413         (lib_SOURCES): Add pipe-filter-aux.c.
414
415         fdutimensat: omit unnecessary AC_C_INLINE
416         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
417
418         fchmodat, fchownat, fstatat: use extern-inline
419         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
420         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
421         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
422         New macros.
423         * lib/openat.h:
424         Replace all uses of 'static inline' with them.
425         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
426         * modules/fchmodat, modules/fchownat, modules/fstatat:
427         * modules/openat-h:
428         (Depends-on):
429         Add extern-inline.
430         (configure.ac): Remove AC_C_INLINE.
431
432         acl, mbchar, priv-set: use extern-inline
433         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
434         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
435         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
436         New macros.
437         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
438         Replace all uses of 'static inline' with it.
439         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
440         * m4/acl.m4 (gl_FUNC_ACL):
441         * m4/mbchar.m4 (gl_MBCHAR):
442         * m4/priv-set.m4 (gl_PRIV_SET):
443         Remove AC_C_INLINE, since 'inline' is no longer used directly.
444         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
445         Add extern-inline.
446
447         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
448         * m4/sockets.m4 (gl_SOCKETS):
449         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
450         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
451         environments where it's already guaranteed to work, so we needn't
452         check for it at 'configure'-time.
453
454         tls-tests: omit unnecessary 'inline'
455         * tests/test-tls.c (perhaps_yield): No longer inline.
456         Simplicity and portability trump efficiency in test cases.
457
458         utimens-tests: avoid unnecessary 'inline'
459         * modules/fdutimensat-tests (configure.ac):
460         * modules/futimens-tests (configure.ac):
461         * modules/utimens-tests (configure.ac):
462         * modules/utimensat-tests (configure.ac):
463         Remove AC_C_INLINE.
464         * tests/test-utimens-common.h (ctime_compare):
465         No longer inline.  Simplicity and portability trump efficiency here.
466
467         misc: don't limit commentary to inline functions
468         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
469         * lib/xalloc-oversized.h, lib/xsize.h:
470         Contrast macros to functions in general, not just to inline functions,
471         when the commentary does not apply only to inline functions.
472
473 2012-09-20  Jim Meyering  <meyering@redhat.com>
474
475         non-recursive-gnulib-prefix-hack: new module
476         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
477         the file that originated in Bison.
478         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
479         largely copied from a snippet that resided in bison's configure.ac.
480         * modules/non-recursive-gnulib-prefix-hack: New file.
481         * MODULES.html.sh (Support for maintaining and releasing projects):
482         Add it.
483
484 2012-09-18  Jim Meyering  <meyering@redhat.com>
485
486         maint.mk: generalize _gl_tight_scope for non-recursive make
487         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
488         that *.h would describe additional .h files in the directory
489         specified by $(_gl_TS_dir).  I.e., add this...
490         (_gl_TS_other_headers): New variable.
491
492         maint.mk: exempt trailing blanks found in "binary" files
493         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
494         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
495         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
496
497 2012-09-17  Jim Meyering  <meyering@redhat.com>
498
499         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
500         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
501         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
502         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
503
504 2012-09-17  Jim Meyering  <meyering@redhat.com>
505
506         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
507         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
508         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
509         It is not in the same category as "exit (0)" or "exit (1)", and
510         besides, I know of no symbolic name for that 77.  Reported by
511         Richard W.M. Jones in
512         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
513
514 2012-09-17  Jim Meyering  <meyering@redhat.com>
515
516         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
517         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
518         all uses of #define, not just those that start in column 1.
519         Richard W.M. Jones reported a false positive in
520         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
521
522 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
523
524         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
525         * lib/localcharset.c (locale_charset) [DARWIN7]:
526         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
527         as these two values are incompatible.  Problem reported by Max Horn.
528         For more discussion, please see
529         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
530
531         doc: document sticky-EOF issue
532         * doc/posix-functions/fgetc.texi (fgetc):
533         * doc/posix-functions/fgets.texi (fgets):
534         * doc/posix-functions/fread.texi (fread):
535         * doc/posix-functions/fscanf.texi (fscanf):
536         * doc/posix-functions/getc.texi (getc):
537         * doc/posix-functions/getchar.texi (getchar):
538         * doc/posix-functions/scanf.texi (scanf):
539         Mention that glibc and default Solaris do not conform to
540         C99 and POSIX-2001 or later, with respect to how getchar
541         etc. behave when feof reports nonzero.
542
543 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
544
545         poll: fix poll(0, NULL, msec)
546         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
547         but nfd is 0.  In that case poll should behave like select.
548
549 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
550             Paolo Bonzini <bonzini@gnu.org>
551
552         poll: fix for systems that can't recv() on a non-socket
553         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
554         is readable.  In this case POLLHUP will not be supported.
555         * doc/posix-functions/poll.texi: Document this.
556
557 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
558
559         poll/select: document portability problems not fixed by Gnulib.
560         * doc/posix-functions/poll.texi: poll does not work well on
561         pipes under Windows.  It has the same limitations as select on
562         BeOS.
563         * doc/posix-functions/select.texi: select does not work well
564         on pipes under Windows.
565
566 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
567
568         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
569         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
570         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
571         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
572
573 2012-09-06  Eric Blake  <eblake@redhat.com>
574
575         net_if: give more details about the bug being fixed
576         * doc/posix-headers/net_if.texi: Add clarification.
577
578 2012-09-05  Eric Blake  <eblake@redhat.com>
579
580         net_if: new module
581         * modules/net_if: New module, borrowing ideas from netinet_in.
582         * m4/net_if_h.m4: New file.
583         * lib/net_if.in.h: Likewise.
584         * doc/posix-headers/net_if.texi (net/if.h): Document it.
585         * MODULES.html.sh (lacking POSIX:2008): Likewise.
586         * tests/test-net_if.c: Make function checks conditional.
587         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
588
589 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
590
591         readutmp: fix non-portable UT_PID use
592         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
593         Use `UT_PID (u) > 0' as absolute condition.
594
595 2012-09-04  Jim Meyering  <meyering@redhat.com>
596
597         fts: reduce two or more trailing spaces to just one, usually
598         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
599         or more slashes, trim all but the final one.  But if a name consists
600         solely of two slashes, don't modify it.  If it consists solely of
601         three or more slashes, strip all but one.
602
603         This is part of the solution to a minor problem with rm:
604         it would print a bogus ELOOP diagnostic when failing to remove
605         the slash-decorated name of a symlink-to-directory:
606
607             $ mkdir d && ln -s d s && env rm -r s/
608             rm: cannot remove 's': Too many levels of symbolic links
609
610         With the change below and a trivial don't-trim-trailing-slashes
611         adjustment to remove.c, it does this:
612
613             $ env rm -r s/
614             rm: cannot remove 's/': Not a directory
615
616         Improved by: Eric Blake
617
618         fts: when there is no risk of overlap, use memcpy, not memmove
619         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
620
621 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
622
623         stdbool: be more compatible with mixed C/C++ compiles
624         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
625         Define to bool, true, false, respectively, as GCC's builtin
626         stdbool.h does.  Problem reported by Michael Goffioul in
627         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
628
629 2012-08-28  Jim Meyering  <meyering@redhat.com>
630
631         revert last change: it was not needed
632         * tests/test-vc-list-files-git.sh: There's already a test for
633         a working git, just below.
634
635 2012-08-28  Jim Meyering  <meyering@redhat.com>
636
637         tests: test-vc-list-files-git.sh: skip if git is not available
638         * tests/test-vc-list-files-git.sh: Skip this test when git is
639         not available.
640
641 2012-08-26  Bruno Haible  <bruno@clisp.org>
642
643         gnulib-tool: Remove no-op option --no-changelog.
644         * gnulib-tool (func_usage): Don't mention --no-changelog.
645         (do_changelog): Remove variable.
646         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
647
648 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
649
650         doc: remove fdl-1.2.texi
651         It is no longer used or maintained, and its use of @acronym
652         is problematic.  See the thread containing
653         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
654         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
655         * doc/old-licenses/fdl-1.2.texi: Remove.
656
657         execinfo: port to FreeBSD
658         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
659         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
660         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
661         * modules/execinfo (Link): Add $(LIB_EXECINFO).
662
663 2012-08-23  Jim Meyering  <meyering@redhat.com>
664
665         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
666         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
667         to placate gcc's -Wold-style-declaration.
668
669 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
670
671         doc: do not use @acronym
672         * doc/inet_ntoa.texi (inet_ntoa):
673         * doc/parse-datetime.texi (Seconds since the Epoch)
674         (Specifying time zone rules):
675         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
676         Don't use @acronym.  Problem reported by John Darlington in
677         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
678
679 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
680
681         stdnoreturn: port to newer GCCs
682         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
683         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
684         Problem reported by Jim Meyering in
685         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
686         Also, rename the 'test' function to a void a clash with the
687         already-supplied 'main' function; this fixes a bug that incorrectly
688         rejected GCC 4.7.1's <stdnoreturn.h>.
689         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
690         Document GCC problem.
691
692 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
693
694         pipe-filter: fix comment typo
695         * lib/pipe-filter.h: Mention correct function.
696
697 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
698
699         execinfo: new module
700         This is for Emacs.  Currently, it provides a no-effect stub
701         on all platforms where it does not already work.
702         It already works on glibc-based systems, and on Solaris 11.
703         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
704         New files.
705         * doc/glibc-headers/execinfo.texi (execinfo.h):
706         * MODULES.html.sh (Misc): Document it.
707
708 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
709
710         extern-inline: support old GCC 'inline'
711         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
712         if available.  This applies to GCC versions 2.7 through 4.2, or
713         when newer GCC is using -fgnu89-inline.  The goal is to address
714         some of the performance issues mentioned by Bruno Haible in
715         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
716
717 2012-08-20  Eric Blake  <eblake@redhat.com>
718
719         maint.mk: avoid redundant file name in message
720         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
721         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
722         (sc_makefile_path_separator_check): Remove bogus $(ME).
723
724 2012-08-20  Mike Frysinger <vapier@gentoo.org>
725
726         timer-time: fix link order when static linking on glibc
727         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
728         _after_ -lrt so that it's significant.
729
730 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
731
732         timespec: omit unnecessary AC_C_INLINE
733         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
734
735         stat-time: omit unnecessary AC_C_INLINE
736         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
737         Do not require AC_C_INLINE.
738
739         ignore-value: omit unnecessary AC_C_INLINE
740         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
741
742         sys_select: avoid 'static inline'
743         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
744
745         mktime: avoid 'static inline'
746         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
747         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
748
749 2012-08-19  Bruno Haible  <bruno@clisp.org>
750
751         gnulib-tool: Improve coding style.
752         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
753         func_emit_lib_Makefile_am.
754         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
755
756 2012-08-19  Bruno Haible  <bruno@clisp.org>
757
758         gnulib-tool: Fix indentation.
759         * gnulib-tool (func_import): Fix indentation.
760
761 2012-08-19  Bruno Haible  <bruno@clisp.org>
762
763         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
764         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
765         on the list of removed files.
766
767 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
768
769         test-parse-datetime: avoid glibc leap-second glitch
770         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
771         with the 2012 rules.  Problem reported by Bruce Dubbs in
772         <http://bugs.gnu.org/12206>.
773
774 2012-08-14  Bruno Haible  <bruno@clisp.org>
775
776         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
777         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
778         from argument.
779         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
780
781 2012-08-14  Eric Blake  <eblake@redhat.com>
782
783         ldexp: relax license
784         * modules/ldexp (License): Trivial relax, since the module only
785         provides a permissively licensed m4 file.
786
787 2012-08-13  Bruno Haible  <bruno@clisp.org>
788
789         gnulib-tool: Fix persistence of --witness-c-macro option.
790         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
791         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
792
793 2012-08-11  Eric Blake  <eblake@redhat.com>
794
795         count-leading-zeros: use a lookup table on non-gcc compilers
796         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
797         alternate implementation, suggested by Jim Meyering.
798
799 2012-08-10  Eric Blake  <eblake@redhat.com>
800
801         count-leading-zeros: new module
802         * modules/count-leading-zeros: New module.
803         * m4/count-leading-zeros.m4: New file.
804         * lib/count-leading-zeros.h: Likewise.
805         * modules/count-leading-zeros-tests: New test.
806         * tests/test-count-leading-zeros.c: New file.
807         * MODULES.html.sh (Integer arithmetic functions): Document it.
808
809 2012-08-07  Simon Josefsson  <simon@josefsson.org>
810             Jim Meyering  <meyering@redhat.com>
811
812         maintainer-makefile: Fix syntax error with dash.
813         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
814         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
815
816 2012-08-05  Jim Meyering  <meyering@redhat.com>
817
818         extern-inline: also ignore -Wmissing-declarations
819         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
820         required with gcc-4.8.0-to-be.
821
822         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
823         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
824         for /error ?([^,]*)/.  This avoids false-positives for strings like
825         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
826
827 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
828
829         gnumakefile: better interaction with Automake-NG
830         * modules/gnumakefile [Makefile.am]: The makefiles generated by
831         Automake-NG always contain a definition of VPATH, even in non-VPATH
832         builds (its value being simply '.' in that case).  So, in the
833         'clean-GNUmakefile' rule, to determine whether running under a
834         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
835         '$(VPATH)' expands to the empty string.
836
837 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
838
839         base64: Use extern C scope in header file, for C++.
840         * lib/base64.h: Add C++ namespace protection.
841
842 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
843
844         stat-time, timespec, u64: support naive out-of-dir builds
845         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
846         Use '#include "foo.h"', not '#include <foo.h>', when including
847         one's own interface.  This works better when configuring with
848         out-of-directory builds, since packages need not add an
849         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
850
851 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
852
853         utimens: use extern-inline
854         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
855         * lib/utimens.h: Add copyright notice, since this is now large enough
856         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
857         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
858         * modules/utimens (Depends-on): Add extern-inline.
859
860         u64: use extern-inline
861         * lib/u64.c: New file.
862         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
863         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
864         * modules/u64 (Files): Add lib/u64.c.
865         (Depends-on): Add extern-inline.
866         (configure.ac): No need to require AC_C_INLINE, since extern-inline
867         does that now.
868         (lib_SOURCES): Add u64.c.
869
870         timespec: use extern-inline
871         * lib/timespec.c: New file.
872         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
873         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
874         * modules/timespec (Files): Add lib/timespec.c.
875         (Depends-on): Add extern-inline.
876         (lib_SOURCES): Add timespec.c.
877
878         stat-time: use extern-inline
879         * lib/stat-time.c: New file.
880         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
881         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
882         * modules/stat-time (Files): Add lib/stat-time.c.
883         (Depends-on): Add extern-inline.
884         (lib_SOURCES): Add stat-time.c.
885
886         extern-inline: new module
887         * modules/extern-inline, m4/extern-inline.m4: New files.
888         This is for better support of 'extern inline' a la ISO C99,
889         with a portable alternative on compilers that do not support
890         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
891         of the Emacs executable, when compiled with debugging disabled,
892         which is a typical way that Emacs is built while developing.
893
894 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
895
896         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
897         * build-aux/do-release-commit-and-tag: Move variable definitions
898         together.
899         ($branch): Instead of defaulting to "master", default to the current
900         branch (as gnu-web-doc-update does).
901         (help): Display the current values of the option arguments.
902         * top/maint.mk (release-commit): New.
903         * top/README-release: Simplify the corresponding step.
904
905 2012-07-30  Eric Blake  <eblake@redhat.com>
906
907         passfd: fix comment on recvfd
908         * lib/passfd.c (recvfd): Fix comment.
909         Reported by Jann Horn <jannhorn@googlemail.com>.
910
911 2012-07-30  Jim Meyering  <meyering@redhat.com>
912
913         maint.mk: avoid a sub-shell
914         * top/maint.mk (release-prep): Remove unneeded sub-shell.
915
916 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
917
918         maint.mk: use silent-rules support from Automake
919         * top/maint.mk (news-check, vc-diff-check, announcement)
920         (no-submodule-changes, alpha beta stable, release-prep)
921         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
922
923 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
924
925         maint.mk: provide a web-manual-update target
926         * top/maint.mk: here.
927         * top/README-release: Use it to simplify the web manual update step.
928
929 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
930
931         README-release: shorten the circuit to post a news
932         * top/README-release: Point directly to the news submission form.
933
934 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
935
936         gnu-web-doc-update: fix --help
937         * build-aux/gnu-web-doc-update: The information "top level" was written
938         twice.
939
940 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
941
942         maint.mk: absolute VPATH issue
943         * top/maint.mk (release-prep): Help Git find .git/.
944         From Jim Meyering.
945
946 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
947
948         gitlog-to-changelog: fix previous change
949         * build-aux/gitlog-to-changelog: Fix condition.
950         Add missing ";".
951
952 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
953
954         gitlog-to-changelog: don't expect .git to be in $srcdir
955         Reported by Bruno Haible.
956         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
957         * build-aux/gitlog-to-changelog (&git_dir_option): New.
958         Use it.
959
960 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
961
962         maint.mk: absolute VPATH build fix
963         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
964         $(srcdir) is not a parent of $(builddir).
965
966 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
967
968         clean-temp: Fix memory leak.
969         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
970         'files' members of tmpdir.
971
972 2012-07-27  Jim Meyering  <meyering@redhat.com>
973
974         maint.mk: new rule: refresh-gnulib-patches
975         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
976         Use this rule to refresh them.
977         * top/maint.mk (refresh-gnulib-patches): New rule.
978
979 2012-07-24  Bruno Haible  <bruno@clisp.org>
980
981         gnulib-tool: Fix handling of inctests variable.
982         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
983         Reported by Nick Bowler <nbowler@elliptictech.com>.
984
985 2012-07-22  Bruno Haible  <bruno@clisp.org>
986
987         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
988         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
989         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
990         Remove exemption for getpass.h.
991         Suggested by Eric Blake.
992
993 2012-07-20  Eric Blake  <eblake@redhat.com>
994
995         verify: document conflict with -Wnested-externs
996         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
997
998         maint.mk: forbid exit(-1)
999         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1000
1001 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1002
1003         fsusage: port back to Solaris
1004         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1005         error (fsd not declared) on Solaris 10.  Reported privately by
1006         Andrew Borodin.
1007
1008 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1009
1010         gnu-web-doc-update: fix error messages
1011         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1012
1013         gnu-web-doc-update: check the requirements.
1014         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1015         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1016         * build-aux/bootstrap (find_tool): Comment change.
1017
1018 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1019
1020         maint.mk: minor simplication.
1021         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1022         for default values.
1023
1024 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1025
1026         gitlog-to-changelog: VPATH build issues
1027         If builddir is not a subdirectory of srcdir, running git from it will
1028         fail.
1029         * build-aux/gitlog-to-changelog (--srcdir): New option.
1030
1031 2012-07-15  Bruno Haible  <bruno@clisp.org>
1032
1033         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1034         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1035         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1036         Remove exemption for fpending.h.
1037         Suggested by Eric Blake.
1038
1039 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1040
1041         pthread_sigmask: fix bug on FreeBSD 9
1042         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1043         Include string.h.
1044         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1045         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1046         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1047         but pthread_sigmask (1729, NULL, NULL) returns zero.
1048         See <http://bugs.gnu.org/11884>.
1049         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1050         by inspecting whether the main call changed the old mask.
1051
1052 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1053
1054         README-release: make it more legible
1055         * top/README-release: Improve typography slightly.
1056
1057 2012-07-15  Jim Meyering  <meyering@redhat.com>
1058
1059         maint: require that each sc_... command start with "@"
1060         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1061         "make sc_maint" helps us avoid this nit.
1062
1063 2012-07-15  Jim Meyering  <meyering@redhat.com>
1064
1065         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1066         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1067
1068 2012-07-13  Eric Blake  <eblake@redhat.com>
1069
1070         maint.mk: new syntax check for HAVE_DECL checks
1071         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1072         * cfg.mk
1073         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1074         Exempt some false positives.
1075         Based on a report by Karel Zak.
1076
1077         argp: make HAVE_DECL usage consistent
1078         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1079         macros, not whether they are defined.
1080         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1081         convention with other declaration checks.
1082         Reported by Karel Zak, with suggestions from Paul Eggert.
1083
1084         stat-time: relax license to LGPLv2+
1085         * modules/stat-time (License): Relax, with consent of all authors.
1086
1087         strndup: fix m4 usage error
1088         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1089         defined, to either 0 or 1.
1090         Reported by Karel Zak.
1091
1092 2012-07-11  Jim Meyering  <meyering@redhat.com>
1093
1094         maint: enable the sc_avoid_if_before_free syntax-check rule
1095         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1096         (if_before_free_offenders_): Define.
1097         (if_before_free_basename_re_): Define.
1098         Exempt current files with useless if-before-free.
1099
1100 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1101
1102         gettext: do not assume '#define ... defined ...' behavior
1103         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1104         Do not use '#define FOO ... defined BAR ...', as the C standard says
1105         it's not portable to expect that this works after macro expansion.
1106         Problem reported for gzip by Steven M. Schweda in
1107         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1108
1109 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1110
1111         getloadavg: clean out old Emacs and Autoconf cruft
1112         See Glenn Morris in <http://bugs.gnu.org/11905>.
1113         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1114         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1115         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1116         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1117
1118 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1119
1120         bootstrap: let warn be like tests/init.sh's warn_
1121         Reported by Jim Meyering.
1122         * build-aux/bootstrap (warn): Remove, replaced by...
1123         (warnf_, warn_): these.
1124         Adjust callers.
1125         Shorten messages that no longer fit in 80 columns.
1126
1127 2012-07-09  Bruno Haible  <bruno@clisp.org>
1128
1129         getopt: Simplify after Emacs changed.
1130         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1131         (gl_GETOPT_IFELSE): Remove macro.
1132
1133 2012-07-09  Jim Meyering  <meyering@redhat.com>
1134
1135         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1136         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1137
1138         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1139         Bugs in both of those conspired to make the
1140         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1141         _sc_search_regexp's handling of non-empty $in_files would filter
1142         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1143         choice of in_files value meant there would be no match in most
1144         projects, due to the presence of two or more Makefile.in files.
1145         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1146         Fix a bug in how a non-empty $$in_files was processed:
1147         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1148         in spite of the name, it's a regexp, not a list of file names.
1149
1150 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1151
1152         getloadavg, getopt: fix commentary re configure.in
1153         Autoconf is deprecating the name 'configure.in', so change it to
1154         to the new name 'configure.ac' in a couple of places.
1155         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1156         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1157         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1158         Emacs has renamed it to configure.ac, and it no longer refers
1159         to these macros anyway.
1160
1161         timespec: mark functions with const attributes
1162         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1163         Mark with _GL_ATTRIBUTE_CONST.
1164
1165 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1166
1167         canonicalize[-lgpl]: handle "guessing" values when cross-building
1168         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1169         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1170         matches "*yes" instead of just "yes".  Regression introduced in commit
1171         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1172
1173 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1174             Bruno Haible  <bruno@clisp.org>
1175
1176         canonicalize: make the right guess when cross-compiling to GNU
1177         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1178         determine whether cross-compiling to glibc systems, so as to
1179         include GNU/Hurd.
1180
1181 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1182
1183         timespec-sub: avoid duplicate include
1184         * lib/timespec-sub.c: Do not include <config.h> twice.
1185         Reported by Juanma Barranquero.
1186
1187 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1188
1189         bootstrap: use a more consistent error reporting scheme
1190         * build-aux/bootstrap (warn, die): New.
1191         Use them.
1192
1193 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1194
1195         sys_time: allow too-wide tv_sec
1196         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1197         timeval even if tv_sec is wider than time_t.  This allows
1198         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1199         as without this patch gnulib replaces struct timeval
1200         and OpenBSD futimes therefore has a type mismatch.
1201         * doc/posix-headers/sys_time.texi: Mention this.
1202
1203         pthread: check for both pthread_create and pthread_join
1204         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1205         alter the check so that it tests for both pthread_create and
1206         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1207         Suggested by Bruno Haible and Richard Yao in
1208         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1209
1210         parse-datetime: doc tuneup
1211         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1212         spacing issues.
1213
1214 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1215
1216         do-release-commit-and-tag: fix the previous commit
1217         * build-aux/do-release-commit-and-tag: Actually the test was right,
1218         but the comment and the error message were misleading.
1219         Fix comment, and improve error message.
1220         Perform check first, so that NEWS is not modified uselessly.
1221
1222         do-release-commit-and-tag: fix typo
1223         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1224         _not_ start with a stub.
1225
1226 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1227
1228         pthread: check for pthread_create, not pthread_join
1229         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1230         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1231         pthread_join in libc.  I hope this removes the need for all the
1232         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1233         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1234
1235 2012-07-04  Jim Meyering  <meyering@redhat.com>
1236
1237         parse-datetime: fix failure to diagnose invalid input
1238         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1239         rather than diagnosing the invalid input.  Now it reports this:
1240         date: invalid date '\260'
1241         * lib/parse-datetime.y (to_uchar): Define.
1242         (yylex): Don't sign-extend "other" bytes.
1243         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1244         Thanks to Bruno Haible for the patch to this file.
1245         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1246         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1247
1248 2012-07-03  Jim Meyering  <meyering@redhat.com>
1249
1250         bootstrap: do not require now-removed build-aux/missing
1251         Now that build-aux/missing is, er, missing, bootstrap would
1252         silently fail.
1253         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1254         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1255         no longer part of gnulib.
1256         Diagnose the failure.
1257
1258 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1259
1260         alloca: add support for HP NonStop TNS/E native
1261         * lib/alloca.in.h (alloca): Support the new host.
1262         From a suggestion by Joachim Schmitz in
1263         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1264
1265 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1266
1267         fsusage: remove code not needed on non GNU/Linux systems.
1268
1269         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1270         Don't include headers no longer needed in this case.
1271         * lib/fsusage.c [STAT_STATVFS &&
1272         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1273         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1274
1275 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1276
1277         fsusage: include files needed for glibc 2.6 fallback
1278         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1279         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1280         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1281         Problem reported by Ludovic Courtès in
1282         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1283
1284         fsusage: avoid needless check on GNU/Linux
1285         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1286         on GNU/Linux systems, since it can't possibly work.
1287
1288 2012-07-01  Bruno Haible  <bruno@clisp.org>
1289
1290         log: Fix an autoconf >= 2.64 warning.
1291         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1292         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1293
1294 2012-06-28  Bruno Haible  <bruno@clisp.org>
1295
1296         log10f: Fix possible configuration problem.
1297         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1298         $LOGF_LIBM.
1299         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1300
1301 2012-06-28  Bruno Haible  <bruno@clisp.org>
1302
1303         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1304         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1305         not gl_cv_func_unlink_works.
1306         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1307
1308 2012-06-27  Eric Blake  <eblake@redhat.com>
1309
1310         config: drop scripts that automake says are not independent
1311         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1312         * build-aux/elisp-comp: Delete.
1313         * build-aux/missing: Likewise.
1314         * build-aux/ylwrap: Likewise.
1315         * modules/elisp-comp: Likewise.
1316         * MODULES.html.sh: Drop mention of elisp-comp.
1317         * NEWS: Mention this.
1318
1319 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1320
1321         root-uid: new module
1322         This is for portability to Tandem's NonStop Kernel.
1323         * lib/root-uid.h, modules/root-uid: New files.
1324         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1325         * lib/write-any-file.c, tests/test-sethostname2.c:
1326         Include "root-uid.h".
1327         * lib/euidaccess.c (euidaccess):
1328         * lib/pt_chown.c (main):
1329         * lib/unlinkdir.c (cannot_unlink_dir):
1330         * lib/write-any-file.c (can_write_any_file):
1331         * m4/mknod.m4 (gl_FUNC_MKNOD):
1332         * tests/test-sethostname2.c (geteuid, main):
1333         Don't assume ROOT_UID == 0.
1334         * modules/euidaccess (Depends-on):
1335         * modules/pt_chown (Depends-on):
1336         * modules/sethostname-tests (Depends-on):
1337         * modules/unlinkdir (Depends-on):
1338         * modules/write-any-file (Depends-on):
1339         Add root-uid.
1340
1341         regex: use locale-independent comparison for codeset name
1342         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1343         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1344         for codeset name.
1345         * lib/regex_internal.h: Do not include <strings.h>, since we
1346         no longer use strcasecmp.
1347         * modules/regex (Depends-on): Remove strcase.
1348
1349 2012-06-23  Bruno Haible  <bruno@clisp.org>
1350
1351         getopt-posix: No longer guarantee that option processing is resettable.
1352         * doc/posix-functions/getopt.texi: Drop description of problem with
1353         internal state. Fix info about mingw and msvc9.
1354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1355         option processing by getopt(). Run three test programs instead of one.
1356         Simplify cross-compilation guess.
1357         * NEWS: Mention the change.
1358         Reported by Rich Felker <dalias@aerifal.cx>.
1359
1360 2012-06-26  Bruno Haible  <bruno@clisp.org>
1361
1362         argp, regex: Ensure strcasecmp gets declared.
1363         * lib/argp-help.c: Include <strings.h>.
1364         * lib/regex_internal.h: Likewise.
1365         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1366
1367 2012-06-24  Bruno Haible  <bruno@clisp.org>
1368
1369         ptsname_r: Make it consistent with ptsname on AIX.
1370         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1371         implementation as for OSF/1.
1372         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1373         a pty master.
1374
1375         ptsname_r: Make it consistent with ptsname on OSF/1.
1376         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1377         OSF/1.
1378
1379 2012-06-24  Bruno Haible  <bruno@clisp.org>
1380
1381         ttyname_r: Fix result on OSF/1, Solaris.
1382         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1383
1384 2012-06-24  Bruno Haible  <bruno@clisp.org>
1385
1386         ptsname_r: Add support for Solaris.
1387         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1388         Solaris.
1389
1390         ptsname_r: Fix test failure on native Windows.
1391         * modules/ptsname_r (Depends-on): Add isatty.
1392
1393         ptsname_r: Fix test failures on IRIX, Solaris.
1394         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1395         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1396         accordingly.
1397         * lib/ptsname_r.c: Include <fcntl.h>.
1398         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1399         set errno if fd is invalid.
1400         * tests/test-isatty.c (main): Update comments.
1401
1402 2012-06-24  Bruno Haible  <bruno@clisp.org>
1403
1404         ptsname test: Extend test.
1405         * tests/test-ptsname.c: Include <errno.h>.
1406         (main): Test behaviour with invalid file descriptor.
1407
1408 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1409
1410         time: fix obsolete comment
1411         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1412         reference to HAVE_STRUCT_TIMESPEC in comment.
1413
1414 2012-06-23  Bruno Haible  <bruno@clisp.org>
1415
1416         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1418         does not handle abbreviated long options with equivalent
1419         disambiguations, set gl_replace_getopt to yes.
1420         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1421
1422 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1423
1424         time_r: fix typo that always overrode localtime_r decl
1425         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1426         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1427         not in a standard include.
1428
1429 2012-06-22  Bruno Haible  <bruno@clisp.org>
1430
1431         Write "Mac OS X" instead of "MacOS X".
1432         * README: Write "Mac OS X" instead of "MacOS X".
1433         * build-aux/bootstrap: Likewise.
1434         * build-aux/install-reloc: Likewise.
1435         * lib/acl-internal.h: Likewise.
1436         * lib/acl_entries.c: Likewise.
1437         * lib/argp-ba.c: Likewise.
1438         * lib/argp-pv.c: Likewise.
1439         * lib/config.charset: Likewise.
1440         * lib/copy-acl.c: Likewise.
1441         * lib/csharpexec.c: Likewise.
1442         * lib/euidaccess.c: Likewise.
1443         * lib/fbufmode.c: Likewise.
1444         * lib/fflush.c: Likewise.
1445         * lib/file-has-acl.c: Likewise.
1446         * lib/filemode.h: Likewise.
1447         * lib/fpurge.c: Likewise.
1448         * lib/freadable.c: Likewise.
1449         * lib/freadahead.c: Likewise.
1450         * lib/freading.c: Likewise.
1451         * lib/freadptr.c: Likewise.
1452         * lib/freadseek.c: Likewise.
1453         * lib/fseeko.c: Likewise.
1454         * lib/fseterr.c: Likewise.
1455         * lib/fsusage.c: Likewise.
1456         * lib/fwritable.c: Likewise.
1457         * lib/fwriting.c: Likewise.
1458         * lib/get-rusage-as.c: Likewise.
1459         * lib/get-rusage-data.c: Likewise.
1460         * lib/getdomainname.c: Likewise.
1461         * lib/idpriv-drop.c: Likewise.
1462         * lib/idpriv-droptemp.c: Likewise.
1463         * lib/localcharset.c: Likewise.
1464         * lib/locale.in.h: Likewise.
1465         * lib/localename.c: Likewise.
1466         * lib/mbsrtowcs-state.c: Likewise.
1467         * lib/nproc.c: Likewise.
1468         * lib/passfd.c: Likewise.
1469         * lib/posix_openpt.c: Likewise.
1470         * lib/printf-parse.c: Likewise.
1471         * lib/progreloc.c: Likewise.
1472         * lib/safe-read.h: Likewise.
1473         * lib/safe-write.h: Likewise.
1474         * lib/sched.in.h: Likewise.
1475         * lib/set-mode-acl.c: Likewise.
1476         * lib/signal.in.h: Likewise.
1477         * lib/stdint.in.h: Likewise.
1478         * lib/stdio-impl.h: Likewise.
1479         * lib/stdlib.in.h: Likewise.
1480         * lib/strtod.c: Likewise.
1481         * lib/sys_select.in.h: Likewise.
1482         * lib/tcgetsid.c: Likewise.
1483         * lib/unistd.in.h: Likewise.
1484         * lib/unlockpt.c: Likewise.
1485         * lib/vasnprintf.c: Likewise.
1486         * lib/vma-iter.c: Likewise.
1487         * lib/wcsrtombs-state.c: Likewise.
1488         * m4/acl.m4: Likewise.
1489         * m4/acosl.m4: Likewise.
1490         * m4/asinl.m4: Likewise.
1491         * m4/atanl.m4: Likewise.
1492         * m4/c-stack.m4: Likewise.
1493         * m4/cosl.m4: Likewise.
1494         * m4/expl.m4: Likewise.
1495         * m4/extensions.m4: Likewise.
1496         * m4/fdatasync.m4: Likewise.
1497         * m4/fmal.m4: Likewise.
1498         * m4/frexp.m4: Likewise.
1499         * m4/frexpf.m4: Likewise.
1500         * m4/frexpl.m4: Likewise.
1501         * m4/fsusage.m4: Likewise.
1502         * m4/getdomainname.m4: Likewise.
1503         * m4/getloadavg.m4: Likewise.
1504         * m4/getopt.m4: Likewise.
1505         * m4/gettext.m4: Likewise.
1506         * m4/gnulib-common.m4: Likewise.
1507         * m4/intdiv0.m4: Likewise.
1508         * m4/intlmacosx.m4: Likewise.
1509         * m4/largefile.m4: Likewise.
1510         * m4/ldexpl.m4: Likewise.
1511         * m4/link-follow.m4: Likewise.
1512         * m4/locale-ar.m4: Likewise.
1513         * m4/locale-fr.m4: Likewise.
1514         * m4/locale-ja.m4: Likewise.
1515         * m4/locale-tr.m4: Likewise.
1516         * m4/locale-zh.m4: Likewise.
1517         * m4/locale_h.m4: Likewise.
1518         * m4/lock.m4: Likewise.
1519         * m4/logl.m4: Likewise.
1520         * m4/mathfunc.m4: Likewise.
1521         * m4/minus-zero.m4: Likewise.
1522         * m4/mktime.m4: Likewise.
1523         * m4/mmap-anon.m4: Likewise.
1524         * m4/multiarch.m4: Likewise.
1525         * m4/nanosleep.m4: Likewise.
1526         * m4/nocrash.m4: Likewise.
1527         * m4/poll.m4: Likewise.
1528         * m4/printf-frexpl.m4: Likewise.
1529         * m4/printf.m4: Likewise.
1530         * m4/signbit.m4: Likewise.
1531         * m4/sinl.m4: Likewise.
1532         * m4/sqrtl.m4: Likewise.
1533         * m4/strerror_r.m4: Likewise.
1534         * m4/tanl.m4: Likewise.
1535         * m4/threadlib.m4: Likewise.
1536         * m4/ttyname_r.m4: Likewise.
1537         * m4/unlink.m4: Likewise.
1538         * m4/visibility.m4: Likewise.
1539         * m4/wcwidth.m4: Likewise.
1540         * tests/minus-zero.h: Likewise.
1541         * tests/test-alloca-opt.c: Likewise.
1542         * tests/test-copy-acl.sh: Likewise.
1543         * tests/test-copy-file.sh: Likewise.
1544         * tests/test-fdatasync.c: Likewise.
1545         * tests/test-file-has-acl.sh: Likewise.
1546         * tests/test-flock.c: Likewise.
1547         * tests/test-fsync.c: Likewise.
1548         * tests/test-localename.c: Likewise.
1549         * tests/test-malloca.c: Likewise.
1550         * tests/test-nonblocking-pipe.h: Likewise.
1551         * tests/test-nonblocking-socket.h: Likewise.
1552         * tests/test-openpty.c: Likewise.
1553         * tests/test-posix_openpt.c: Likewise.
1554         * tests/test-ptsname.c: Likewise.
1555         * tests/test-ptsname_r.c: Likewise.
1556         * tests/test-sameacls.c: Likewise.
1557         * tests/test-select.h: Likewise.
1558         * tests/test-set-mode-acl.sh: Likewise.
1559         * tests/test-snprintf-posix.h: Likewise.
1560         * tests/test-sprintf-posix.h: Likewise.
1561         * tests/test-strtod.c: Likewise.
1562         * tests/test-time.c: Likewise.
1563         * tests/test-vasnprintf-posix.c: Likewise.
1564         * tests/test-vasprintf-posix.c: Likewise.
1565         * doc/acl-resources.txt: Likewise.
1566         * doc/**/*.texi: Likewise.
1567         Reported by Max Horn <max@quendi.de>.
1568
1569 2012-06-22  Bruno Haible  <bruno@clisp.org>
1570
1571         grantpt: Relax requirement regarding invalid file descriptors.
1572         * lib/grantpt.c: Don't include <fcntl.h>.
1573         (grantpt): Don't verify the validity of the file descriptor.
1574         * modules/grantpt (Depends-on): Remove fcntl-h.
1575         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
1576         file descriptors.
1577         * doc/posix-functions/grantpt.texi: Document more platforms on which
1578         grantpt succeeds for invalid file descriptors.
1579         Reported by Rich Felker <dalias@aerifal.cx>.
1580
1581 2012-06-22  Bruno Haible  <bruno@clisp.org>
1582
1583         fbufmode test: Don't test unportable behaviour.
1584         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
1585         (main): Invoke it three times.
1586         Reported by Szabolcs Nagy <nsz@port70.net>
1587         and Rich Felker <dalias@aerifal.cx>.
1588
1589 2012-06-21  Bruno Haible  <bruno@clisp.org>
1590
1591         gnulib-tool: Refactor inctests variable.
1592         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
1593         (func_modules_transitive_closure,
1594         func_modules_transitive_closure_separately,
1595         func_import, func_create_testdir): Update.
1596
1597         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
1598         * gnulib-tool: Accept option --without-tests.
1599         (func_usage): Document --without-tests option. Rearrange.
1600         (inctests): Normalize according to the mode.
1601         * NEWS: Mention the change.
1602         Suggested by Simon Josefsson.
1603
1604 2012-06-21  Bruce Korb  <bkorb@gnu.org>
1605
1606         parse-duration test: Avoid spurious output.
1607         * tests/test-parse-duration.sh: Reindent with leading tabs.
1608
1609 2012-06-21  Jim Meyering  <meyering@redhat.com>
1610
1611         maint: disable the strncpy prohibition
1612         * cfg.mk: Do not prohibit strncpy here.
1613
1614 2012-06-21  Bruno Haible  <bruno@clisp.org>
1615
1616         nonblocking: Avoid compilation error on mingw64.
1617         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
1618         fscanf.
1619         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
1620         * modules/vfscanf (configure.ac): Likewise.
1621         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
1622         definition only if stdio.h has prepared it.
1623         Reported by Daniel P. Berrange <berrange@redhat.com>.
1624
1625 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
1626
1627         gnulib-tool: Use readlink if it is available.
1628         * gnulib-tool (func_readlink): Choose function more appropriately.
1629
1630 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1631
1632         posixtm-tests: port to buggy compiler
1633         Problem reported by Simon Josefsson in
1634         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
1635         * modules/posixtm-tests (Depends-on): Add stdint.
1636         * tests/test-posixtm.c (struct posixtm_test.t_expected):
1637         Now of type int_least64_t, not int64_t, both because that's
1638         what INT64_C returns and because int_least64_t works even
1639         on 72-bit hosts.
1640         (T): Use INT64_C on constants outside the traditional int range,
1641         to work around compiler bug noted by Simon.
1642
1643         mktime: fix integer overflow in 'configure'-time test
1644         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
1645         after integer overflow.  Problem reported by Rich Felker in
1646         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
1647         Also, don't look for further instances of a bug if we've already
1648         found one instance; this helps 'configure' run faster.
1649
1650 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
1651
1652         tmpfile, clean-temp: Fix invocation of GetVersionEx.
1653         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
1654         GetVersionEx correctly.
1655         * lib/clean-temp.c (supports_delete_on_close): Likewise.
1656
1657 2012-06-20  Bruno Haible  <bruno@clisp.org>
1658
1659         fdopen: Allow implementations that don't reject invalid fd arguments.
1660         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
1661         succeeds.
1662         Reported by Rich Felker <dalias@aerifal.cx>.
1663
1664 2012-06-20  Simon Josefsson  <simon@josefsson.org>
1665
1666         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
1667         bring in LIBINTL.
1668
1669 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1670
1671         init.sh: do not rely on autoupated PWD
1672         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
1673         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
1674         Although Nelson's bug was not necessarily fixed by this patch,
1675         it seems wise to make the change for safety.
1676         * tests/init.sh (path_prepend_): Do not rely on PWD updating
1677         automagically after 'cd'; this is not reliable on older shells.
1678         (setup_): Fail if we cannot cd to temporary directory.
1679
1680 2012-06-19  Bruno Haible  <bruno@clisp.org>
1681
1682         stat, fstat: Avoid warnings on mingw64.
1683         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
1684         redefining.
1685         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
1686         Reported by Daniel P. Berrange <berrange@redhat.com>.
1687
1688 2012-06-19  Bruno Haible  <bruno@clisp.org>
1689
1690         stdioext: Add support for musl libc.
1691
1692         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
1693         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
1694
1695         * m4/fseterr.m4: New file.
1696         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
1697         function exists.
1698         * modules/fseterr (Files): Add m4/fseterr.m4.
1699         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
1700         __fseterr does not exist.
1701         (Makefile.am): Remove fseterr.c from lib_SOURCES.
1702
1703         * lib/freadable.h: Update comment.
1704
1705         * lib/fwritable.h: Update comment.
1706
1707         * lib/freading.h: Update comment.
1708
1709         * lib/fwriting.h: Update comment.
1710
1711         * m4/freadahead.m4: New file.
1712         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
1713         that function exists.
1714         * modules/freadahead (Files): Add m4/freadahead.m4.
1715         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
1716         __freadahead does not exist.
1717         (Makefile.am): Remove freadahead.c from lib_SOURCES.
1718
1719         * m4/freadptr.m4: New file.
1720         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
1721         function exists.
1722         * modules/freadptr (Files): Add m4/freadptr.m4.
1723         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
1724         __freadptr does not exist.
1725         (Makefile.am): Remove freadptr.c from lib_SOURCES.
1726
1727         * m4/freadseek.m4: New file.
1728         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
1729         exists.
1730         * modules/freadseek (Files): Add m4/freadseek.m4.
1731         (configure.ac): Invoke gl_FUNC_FREADSEEK.
1732
1733         * lib/fpurge.c (fpurge): Update comment.
1734
1735         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
1736
1737 2012-06-19  Bruno Haible  <bruno@clisp.org>
1738
1739         *printf-posix: Put more info into config.log.
1740         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
1741         exit code into config.log.
1742
1743 2012-06-19  Bruno Haible  <bruno@clisp.org>
1744
1745         getopt-gnu: Fix exit code overflow in autoconf test.
1746         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
1747         to keep them below < 128.
1748
1749 2012-06-17  Jim Meyering  <meyering@redhat.com>
1750
1751         maint.mk: fix typo in code to derive GPG key at release time
1752         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
1753
1754 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1755
1756         regex: avoid warning when pointers are not long
1757         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
1758         and uintptr_t, not long, for portability to hosts where pointers and
1759         long have different sizes.  Issue noted by Daniel P. Berrange in
1760         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
1761         and fix suggested by Bruno Haible in
1762         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
1763
1764 2012-06-17  Bruno Haible  <bruno@clisp.org>
1765
1766         dummy: Relicense into the public domain.
1767         * modules/dummy (License): Set to "public domain".
1768         Suggested by Reuben Thomas.
1769
1770 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1771
1772         announce-gen: VPATH issues
1773         * build-aux/announce-gen (--srcdir): New option, used to trim the
1774         $srcdir part of the path from $builddir to NEWS.
1775         * top/maint.mk (announcement): Adjust.
1776
1777 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1778
1779         gnu-web-doc-update: VPATH builds
1780         * build-aux/gnu-web-doc-update (--builddir): New option.
1781         Revamp the handling of options.
1782         Prefer $(...) to `...`.
1783         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
1784         the template, and it is GNU mktemp specific.
1785         Prefer set -e to long series of &&.
1786         Restore the initial git branch, not "master".
1787         Properly initialize submodules (don't rely only on bootstrap).
1788         Do not reconfigure blindly, use config.status.
1789         * top/README-release: Update instructions for gnu-web-doc-update.
1790
1791 2012-06-11  Jim Meyering  <meyering@redhat.com>
1792
1793         maint.mk: revert most of the previous change re "all these"
1794         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
1795         For rationale, see the discussion at
1796         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
1797
1798 2012-06-10  Karl Berry  <karl@gnu.org>
1799
1800         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
1801
1802         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
1803
1804 2012-06-10  Bruce Korb  <bkorb@gnu.org>
1805
1806         parse-duration: Relicense under LGPLv2+.
1807         * modules/parse-duration (License): Change to LGPLv2+.
1808
1809 2012-06-10  Jim Meyering  <meyering@redhat.com>
1810
1811         maint.mk: prohibit common grammar error: "all these"
1812         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
1813         the list of prohibited word sequences.  It should be "all of these".
1814         * lib/tempname.c (__gen_tempname): Fix one of them.
1815
1816 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1817
1818         do-release-commit-and-tag: support VPATH builds
1819         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
1820         (noteworthy): Defined earlier to factor its value.
1821         (noteworthy_stub): New.
1822         Use it to factor.
1823         (help_version): Split into...
1824         (help, version): these.
1825         Adjust the option processing part.
1826         Support "--option=value" in addition to "--option value".
1827         (builddir): New.
1828         (--builddir): New option.
1829         * top/README-release: Document this.
1830         Reword slightly so that the reader cannot understand that he
1831         has to do these steps before calling do-release-commit-and-tag.
1832
1833 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1834
1835         readme-release: also require announce-gen and maintainer-makefile
1836         * modules/readme-release (Depends-on): here.
1837         * modules/announce-gen, modules/do-release-commit-and-tag,
1838         modules/gnu-web-doc-update, modules/maintainer-makefile
1839         (Description): Point to readme-release.
1840
1841 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1842
1843         maint.mk: fix VPATH issues.
1844         * top/maint.mk (news-check): GNU Make understand $< very well.
1845         (release-prep): NEWS is in $(srcdir).
1846
1847 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
1848
1849         readme-release: require the promoted modules.
1850         * modules/readme-release (Depends-on): Add
1851         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
1852         in this text.
1853
1854 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1855             Bruno Haible  <bruno@clisp.org>
1856
1857         error, strerror-override: Support mingw64 from Fedora 17.
1858         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
1859         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
1860         EINPROGRESS.
1861         * lib/strerror-override.h (strerror_override): Test it.
1862         * lib/strerror-override.c (strerror_override): Likewise.
1863         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
1864
1865 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1866             Bruno Haible  <bruno@clisp.org>
1867
1868         error, strerror-override: Support mingw64 from Fedora 17.
1869         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
1870         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
1871         * lib/strerror-override.h (strerror_override): Test it.
1872         * lib/strerror-override.c (strerror_override): Likewise.
1873
1874 2012-06-03  Bruno Haible  <bruno@clisp.org>
1875
1876         error, strerror-override: Support new errno values from POSIX:2008.
1877         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
1878         ENOTRECOVERABLE.
1879         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
1880         platforms.
1881         * lib/strerror-override.c (strerror_override): Conditionalize the
1882         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
1883         * lib/strerror-override.h (strerror_override): Declare also if
1884         GNULIB_defined_EOWNERDEAD is defined.
1885         * tests/test-errno.c (e130, e131): New variables.
1886         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
1887         ENOTRECOVERABLE.
1888         Reported by Paolo Bonzini.
1889
1890 2012-05-31  Jim Meyering  <meyering@redhat.com>
1891
1892         savewd: add missing dependency on sys_wait module
1893         * modules/savewd (Depends-on): Add sys_wait, needed at least
1894         for MSVC.  Report and suggested change by Michael Goffioul.
1895
1896 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1897
1898         system-quote-tests: port to CentOS 5
1899         Problem reported by Tom G. Christensen in
1900         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
1901         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
1902
1903 2012-05-29  Jim Meyering  <meyering@redhat.com>
1904
1905         maint: fix typos in comments and ChangeLog
1906         Culprits identified and fixed mostly automatically using these commands:
1907         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
1908         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
1909         using http://github.com/lyda/misspell-check
1910         * ChangeLog: Fix typos.
1911         * doc/solaris-versions: Likewise.
1912         * lib/regexec.c (re_search_stub): Likewise.
1913         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1914
1915 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1916
1917         manywarnings: remove duplicate -Wmultichar entry
1918         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
1919         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
1920         so keep the entry marked as documented.
1921
1922 2012-05-27  Karl Berry  <karl@gnu.org>
1923
1924         * config/srclist.txt (mktime.c): remove last libc sync,
1925         perhaps just temporarily.
1926
1927 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1928
1929         regex: don't assume uint64_t or uint32_t
1930         * lib/regcomp.c (init_word_char): Don't assume that the types
1931         uint64_t and uint32_t exist.  The C standard doesn't guarantee
1932         them, and on some 32-bit compilers there is no uint64_t.
1933         Problem reported by Gianluigi Tiesi in
1934         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
1935
1936 2012-05-25  Jim Meyering  <meyering@redhat.com>
1937
1938         maint.mk: add strncpy-prohibiting syntax-check rule
1939         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
1940
1941 2012-05-24  Jim Meyering  <meyering@redhat.com>
1942
1943         maint.mk: compute $(gpg_key_ID) more portably
1944         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
1945         That use of sed is not portable to some fringe systems.
1946         Reported by Paul Eggert in
1947         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
1948
1949 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1950
1951         mktime: sync from glibc
1952         * config/srclist.txt: Uncomment mktime.c.
1953         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
1954         First, indent with tabs, since glibc uses tabs and doesn't want to
1955         change and we'd rather be identical to glibc.  Also, two small
1956         coding changes:
1957         (isdst_differ): Use &&, not &, as && is the usual style.
1958         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
1959         for clarity.
1960
1961 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1962
1963         announce-gen: du -h is more portable than du --human
1964         * build-aux/announce-gen (sizes): Invoke du with -h instead
1965         of --human.  Accept leading white space in its output.
1966
1967 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1968
1969         announce-gen: Improve diagnostics.
1970         * build-aux/announce-gen: When parsing command line options,
1971         prefer "announce-gen: option --release-type requires an argument"
1972         to "Option release-type requires an argument".
1973
1974 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1975
1976         maint.mk: gpg_key_ID: use sed more portably
1977         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
1978         the closing brace.
1979         (refresh-po): Fuse two sed invocations into one.
1980
1981 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
1982
1983         gitlog-to-changelog: support the log message format used in Bison.
1984         * build-aux/gitlog-to-changelog: Support --strip-tab and
1985         --strip-cherry-picked.
1986
1987 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1988
1989         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
1990         the rest of the current time slice to another thread in the current
1991         process. So if the thread that feeds the file decscriptor we're
1992         polling is not in the current process, we get busy-waiting.
1993         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
1994         Patch from Theodore Leblond.
1995         * lib/select.c: Split polling out of the loop that sets the output
1996         fd_sets.  Check for zero result and loop if the wait timeout is
1997         infinite.
1998
1999 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2000
2001         select: Fix build error on IRIX 6.5.
2002         * lib/select.c: Include stddef.h for NULL.
2003
2004 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2005
2006         gc: fix libgcrypt detection on older machines.
2007         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2008         copyright years because the file has been distributed every year
2009         since it was created.
2010
2011 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2012
2013         crypto: fix bug in large buffer handling
2014         Problem reported by Serge Belyshev for glibc in
2015         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2016         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2017         * lib/md4.c (md4_process_block):
2018         * lib/md5.c (md5_process_block):
2019         * lib/sha1.c (sha1_process_block):
2020         * lib/sha256.c (sha256_process_block):
2021         Don't assume the buffer length is less than 2**32.
2022         * lib/sha512.c (sha512_process_block): Likewise.
2023         Here, the bug is present only in the rare case where the host does
2024         not support uint64_t or where size_t is wider than 64 bits.
2025         Use u64size to work around the problems.
2026         * lib/u64.h (u64size): New macro.
2027
2028 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2029
2030         fsusage: fix block size returned on older Linux 2.6
2031
2032         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2033         which is available since Linux 2.6.
2034         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2035         when the member is available so it can be used as a fallback.
2036         * doc/posix-functions/statvfs.texi: Mention the hang issue
2037         on Linux < 2.6.36.
2038
2039 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2040
2041         bootstrap: suppress stderr chatter
2042         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2043         Omit unnecessary chatter to stderr.  The main program chatter
2044         was there only inadvertantly.
2045
2046         bootstrap: .gitignore files created by autopoint, libtool
2047         I ran into this problem when bootstrapping the latest diffutils.
2048         After './bootstrap', 'git status' reported lots of untracked files
2049         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2050         autopoint and do not need to be version-controlled.
2051         * build-aux/bootstrap: Put into .gitignore the files that
2052         autopoint and libtool create, by keeping track of files that exist
2053         after but not before these programs are run.
2054         (version_controlled_file): Move up.  2nd arg is now full file
2055         name, not base name; this is more convenient.  Put CVS at the end,
2056         as it's now somewhat deprecated.
2057
2058 2012-05-14  Jim Meyering  <meyering@redhat.com>
2059
2060         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2061         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2062         definition.  Reported by Bruno Haible.
2063
2064 2012-05-13  Bruno Haible  <bruno@clisp.org>
2065             Paul Eggert  <eggert@cs.ucla.edu>
2066
2067         binary-io: Define set_binary_mode function.
2068         * lib/binary-io.h (set_binary_mode): New function.
2069         (SET_BINARY): Define in terms of set_binary_mode.
2070         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2071         * tests/test-binary-io.c (main): Accept an argument, and test either
2072         set_binary_mode or SET_BINARY depending on the argument.
2073         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2074         argument. Clean up also t-bin-out0.tmp.
2075
2076 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2077
2078         bootstrap: take advantage of POSIX shell features
2079
2080         The 'bootstrap' script offered by Gnulib script already uses POSIX
2081         shell features (like $((...)) arithmetic expansions) that are not
2082         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2083         means that bootstrap must already be run using a proper POSIX shell,
2084         which will thus provide more features, like ${var#pattern} parameter
2085         expansion or inversion of a command exit status with '!'.  We can
2086         thus use these features to improve the clarity and the performances
2087         of the bootstrap script.
2088
2089         Suggested by Eric Blake.
2090
2091         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2092         of sed/expr plus command substitutions, to save some forks.  While
2093         we are at it, prefer the POSIX $(...) form of command substitution,
2094         rather than the legacy form `...` (since the former is visually
2095         clearer and interacts better with quoting), and prefer the idiom:
2096           "if ! CMD; then ACTION ..."
2097         over the idiom:
2098           "if CMD; then :; else ACTION ..."
2099         which was required by legacy Bourne shells not supporting '!'.
2100
2101 2012-05-12  Bruno Haible  <bruno@clisp.org>
2102
2103         system-quote: Add more comments.
2104         * lib/system-quote.h: Add more comments about wilcards and limitations.
2105         Suggested by Eli Zaretskii <eliz@gnu.org>.
2106
2107         sh-quote, system-quote: Add comments about wildcards.
2108         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2109         * lib/system-quote.h: Likewise.
2110         Reported by Eli Zaretskii <eliz@gnu.org>.
2111
2112 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2113
2114         fsusage: check for GNU/Linux statvfs problem dynamically
2115         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2116         Define STAT_STATFS2_BSIZE too, since in this case the code now
2117         checks dynamically whether statvfs is reliable, falling back on
2118         Linux-style statfs otherwise.
2119         (statvfs_works): New function, for dynamically testing statvfs.
2120         (get_fs_usage) [STAT_STATVFS]: Use it.
2121         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2122         statvfs on GNU/Linux hosts, since it's now done dynamically.
2123
2124 2012-05-10  Bruno Haible  <bruno@clisp.org>
2125
2126         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2127         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2128         '?' character.
2129         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2130         * tests/test-system-quote-main.c (check_all): Check also strings like
2131         "??????????".
2132         Reported by Eli Zaretskii <eliz@gnu.org>.
2133
2134 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2135
2136         _Noreturn: port config.h to gcc -Wundef
2137         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2138         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2139         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2140
2141 2012-05-10  Bruno Haible  <bruno@clisp.org>
2142
2143         system-quote: Refactor.
2144         * lib/system-quote.h (system_quote_copy): Fix comment.
2145         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2146         New functions, extracted from system_quote_copy.
2147         (system_quote_length, system_quote_copy): Use these functions.
2148         Reported by Paul Eggert.
2149
2150 2012-05-08  Bruno Haible  <bruno@clisp.org>
2151
2152         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2153         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2154
2155 2012-05-08  Bruno Haible  <bruno@clisp.org>
2156
2157         Tests for module 'system-quote'.
2158         * modules/system-quote-tests: New file.
2159         * tests/test-system-quote.sh: New file.
2160         * tests/test-system-quote-main.c: New file.
2161         * tests/test-system-quote-child.c: New file.
2162
2163         New module 'system-quote'.
2164         * lib/system-quote.h: New file.
2165         * lib/system-quote.c: New file.
2166         * modules/system-quote: New file.
2167
2168 2012-05-08  Bruno Haible  <bruno@clisp.org>
2169
2170         sh-quote: Make C++ safe and allow multiple inclusion.
2171         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2172         declarations in extern "C".
2173
2174 2012-05-08  Bruno Haible  <bruno@clisp.org>
2175
2176         sh-quote tests: Make tests stricter.
2177         * tests/test-sh-quote.c (check_one): Check the return value of
2178         shell_quote_copy.
2179         (main): Check a string with a CR character. Check a string that
2180         contains UCHAR_MAX.
2181
2182 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2183
2184         warnings.m4: provide a means to specify the program to compile.
2185         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2186         (gl_WARN_ADD): here.
2187         Use gl_AS_VAR_APPEND.
2188         Support an argument to specify the program to compile.
2189         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2190         AC_SUBST the WARN_CFLAGS when they are used.
2191         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2192         leave this to gl_WARN_ADD.
2193
2194 2012-05-08  Eric Blake  <eblake@redhat.com>
2195
2196         doc: recommendations on gettext version
2197         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2198         choice between versions.
2199         * DEPENDENCIES (gettext): Cover both approaches.
2200
2201 2012-05-08  Jim Meyering  <meyering@redhat.com>
2202
2203         init.sh: explain why EXEEXT support uses aliases rather than functions
2204         * tests/init.sh: Add a comment.
2205
2206         init.sh: don't let bash aliases interfere with tests
2207         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2208         is bash.  This avoids problems for those who alias standard commands to
2209         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2210         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2211
2212 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2213
2214         stdint: be more consistent with glibc, SunOS libc
2215         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2216         (gl_int_fast16_t, gl_uint_fast16_t)
2217         (gl_int_fast32_t, gl_uint_fast32_t)
2218         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2219         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2220         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2221         Be consistent with glibc by default, and with SunOS 5.10 and later
2222         if __sun is defined.  This lessens the likelihood of clashes if
2223         code compiled for older hosts is combined with code compiled for
2224         newer ones.  Problem reported by Niels Möller in
2225         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2226
2227 2012-05-07  Eric Blake  <eblake@redhat.com>
2228
2229         isatty: relax license to LGPLv2+
2230         * modules/isatty (License): Relax license.
2231
2232 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2233
2234         stat-size: comment fix
2235         * lib/stat-size.h: Remove obsolete comment about indenting.
2236
2237 2012-05-06  Bruno Haible  <bruno@clisp.org>
2238
2239         Tests for module 'sh-quote'.
2240         * modules/sh-quote-tests: New file.
2241         * tests/test-sh-quote.c: New file.
2242
2243 2012-05-06  Bruno Haible  <bruno@clisp.org>
2244
2245         sh-quote: Improve shell_quote_argv's signature.
2246         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2247         * lib/sh-quote.c (shell_quote_argv): Likewise.
2248
2249 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2250
2251         stdint: document issues with int_fast8_t etc.
2252         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2253         stdint.h substitutes may define these types differently.  See
2254         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2255
2256 2012-05-05  Bruno Haible  <bruno@clisp.org>
2257
2258         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2259         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2260         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2261         or 'guessing no (mishandles large arguments)'.
2262
2263 2012-05-05  Bruno Haible  <bruno@clisp.org>
2264
2265         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2266         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2267         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2268         set gl_cv_func_link_follows_symlink to "guessing no".
2269
2270 2012-05-05  Bruno Haible  <bruno@clisp.org>
2271
2272         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2273         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2274         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2275         "guessing no".
2276         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2277
2278 2012-05-05  Bruno Haible  <bruno@clisp.org>
2279
2280         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2281         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2282         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2283         set gl_cv_struct_dirent_d_ino to "guessing yes".
2284
2285 2012-05-05  Bruno Haible  <bruno@clisp.org>
2286
2287         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2288         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2289         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2290         "guessing yes".
2291
2292 2012-05-05  Bruno Haible  <bruno@clisp.org>
2293
2294         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2295         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2296         compiling to a glibc system, set gl_cv_func_signbit and
2297         gl_cv_func_signbit_gcc to "guessing yes".
2298
2299 2012-05-05  Bruno Haible  <bruno@clisp.org>
2300
2301         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2302         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2303         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2304         to "guessing yes".
2305         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2306         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2307
2308 2012-05-05  Bruno Haible  <bruno@clisp.org>
2309
2310         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2311         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2312         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2313         gl_cv_func_realpath_works to "guessing yes".
2314
2315 2012-05-05  Bruno Haible  <bruno@clisp.org>
2316
2317         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2319         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2320
2321 2012-05-04  Bruno Haible  <bruno@clisp.org>
2322
2323         Tweak last commit.
2324         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2325         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2326
2327 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2328
2329         unistd_h: make it easier to avoid sys_types_h
2330         This is useful for Emacs, which has its own method of porting to
2331         Windows, and which therefore does not need the sys_types_h module.
2332         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2333         code moved here from gl_SYS_TYPES_H.
2334         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2335         using the code directly.
2336         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2337         gl_SYS_TYPES_H.
2338         * modules/sys_types (Files):
2339         * modules/unistd (Files): Add m4/off_t.m4.
2340
2341 2012-05-03  Bruno Haible  <bruno@clisp.org>
2342
2343         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2344         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2345         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2346         "guessing yes" or "guessing no".
2347         (gl_FUNC_LSTAT): Update.
2348         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2349         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2350         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2351
2352 2012-05-03  Bruno Haible  <bruno@clisp.org>
2353
2354         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2355         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2356         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2357         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2358         cross-compiling, choose the first alternative on glibc systems.
2359         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2360
2361 2012-05-03  Bruno Haible  <bruno@clisp.org>
2362
2363         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2364         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2365         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2366
2367 2012-05-03  Bruno Haible  <bruno@clisp.org>
2368
2369         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2370         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2371
2372 2012-05-03  Bruno Haible  <bruno@clisp.org>
2373
2374         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2375         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2376         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2377         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2378         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2379         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2380         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2381         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2382         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2383         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2384         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2385         gl_cv_func_chown_ctime_works to "guessing yes".
2386         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2387         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2388         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2389         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2390         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2392         compiling to glibc systems, set gl_cv_func_open_directory_works to
2393         "guessing yes".
2394         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2395         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2396         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2397         "guessing yes".
2398         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2399         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2400         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2401         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2402         "guessing yes".
2403         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2404         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2405         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2406         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2407         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2408         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2409         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2410         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2411         "guessing yes".
2412         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2413         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2414         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2415         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2416         "guessing yes".
2417         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2418         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2419         "guessing yes".
2420         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2421         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2422         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2423         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2424         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2425         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2426         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2427         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2428         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2429         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2430         "guessing yes".
2431         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2432         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2433         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2434         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2435         "guessing yes".
2436         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2437         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2438         "guessing yes".
2439         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2440         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2441         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2442         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2443         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2444         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2445         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2446         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2447         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2448         "guessing yes".
2449         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2450         compiling to glibc systems, set gl_cv_func_mknod_works to
2451         "guessing yes".
2452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2453         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2454         "guessing yes".
2455         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2456         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2457         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2458         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2459         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2460         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2461         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2462         compiling to glibc systems, set gl_cv_func_svid_putenv to
2463         "guessing yes".
2464         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2465         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2466         "guessing yes".
2467         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2468         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2469         "guessing yes".
2470         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2471         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2472         to "guessing yes".
2473         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2474         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2475         to "guessing yes".
2476         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2477         compiling to glibc systems, set gl_cv_func_rmdir_works to
2478         "guessing yes".
2479         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2480         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2481         gl_cv_func_unlink_parent_fails to "guessing yes".
2482         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2483         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2484         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2485         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2486         gl_cv_func_rename_dest_works to "guessing yes".
2487         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2488         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2489         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2490         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2491         "guessing yes".
2492         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2493         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2494         "guessing yes".
2495         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2496         compiling to glibc systems, set gl_cv_func_setenv_works to
2497         "guessing yes".
2498         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2499         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2500         "guessing yes".
2501         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2502         compiling to glibc systems, set gl_cv_func_sleep_works to
2503         "guessing yes".
2504         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2505         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2506         "guessing yes".
2507         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2508         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2509         "guessing yes".
2510         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2511         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2512         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2513         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2514         "guessing yes".
2515         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2516         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2517         "guessing yes".
2518         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2519         compiling to glibc systems, set gl_cv_func_usleep_works to
2520         "guessing yes".
2521         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2522         compiling to glibc systems, set gl_cv_func_futimesat_works to
2523         "guessing yes".
2524
2525 2012-05-03  Bruno Haible  <bruno@clisp.org>
2526
2527         Say "guessing yes" or "guessing no" when cross-compiling.
2528         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
2529         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
2530         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
2531         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
2532         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
2533         am_cv_func_working_getline to "guessing yes" or "guessing no".
2534         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
2535         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
2536         (gl_FUNC_MEMMEM): When cross-compiling, set
2537         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
2538         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
2539         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
2540         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
2541         set gl_cv_func_strcasestr_works_always to "guessing yes" or
2542         "guessing no".
2543         (gl_FUNC_STRCASESTR): When cross-compiling, set
2544         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
2545         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
2546         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
2547         (gl_FUNC_STRSTR): When cross-compiling, set
2548         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
2549         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
2550         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
2551         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
2552         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
2553
2554 2012-05-01  Bruno Haible  <bruno@clisp.org>
2555
2556         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
2557         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
2558         * build-aux/reloc-ldflags: Likewise.
2559         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
2560
2561 2012-05-01  Bruno Haible  <bruno@clisp.org>
2562
2563         gnulib-tool: Remove transitional code.
2564         * gnulib-tool: Don't warn about --import with 0 arguments any more.
2565         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2566
2567 2012-05-01  Bruno Haible  <bruno@clisp.org>
2568
2569         getcwd: Fix misindentation.
2570         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
2571
2572 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2573
2574         exclude: process exclude and include directives in order
2575         This restores the pre-2009 behavior, and is part of a fix of a
2576         grep bug reported by Quentin Arce in
2577         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
2578         * lib/exclude.c (struct exclude): Remove 'tail' member.
2579         (new_exclude_segment): Prepend the new segment instead of appending.
2580         Return void, since that's now more convenient.
2581         (file_pattern_matches): Renamed from excluded_file_pattern_p.
2582         (file_name_matches): Renamed from excluded_file_name_p.
2583         (file_pattern_matches, file_name_matches):
2584         Return true if the pattern matches, not if it excludes.
2585         All callers changed.
2586         (excluded_file_name): Process the list in reverse order;
2587         since the list is now reversed this restores the pre-2009 behavior.
2588         (add_exclude): Adjust to new reversed-order list.  Use local var
2589         rather than macro, for clarity.
2590         * tests/test-exclude7.sh: Adjust to corrected behavior.
2591
2592         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
2593         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
2594         it's not possible here.  Handle the case of \ at end of pattern
2595         without dumping core.
2596         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
2597
2598         _Noreturn: future-proof non-GNU and non-MSVC compilers
2599         * build-aux/snippet/_Noreturn.h (_Noreturn):
2600         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2601         Do not define _Noreturn if __STDC_VERSION__ indicates this is
2602         C11 or later.  This is more likely to work with random future C
2603         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
2604         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
2605
2606         exclude: handle wildcards with FNM_EXTMATCH
2607         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
2608         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
2609         comment that "has wildcards" really means "has or may have
2610         wildcards".  Simplify by avoiding the need to call strcspn.
2611
2612 2012-04-29  Bruno Haible  <bruno@clisp.org>
2613
2614         gnulib-tool: Fix list of authors.
2615         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
2616
2617 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
2618
2619         bootstrap: support Automake-NG in $buildreq
2620         * bootstrap (check_versions): Handle automake and aclocal from
2621         Automake-NG specially.  They can be specified as respectively
2622         the "automake-ng" and "aclocal-ng" requirements.
2623
2624 2012-04-25  Eric Blake  <eblake@redhat.com>
2625
2626         bootstrap: only force latest Makefile.in.in for gettext module
2627         * build-aux/bootstrap (with_gettext): Only install latest
2628         Makefile.in.in for projects requesting bleeding edge gettext.
2629
2630 2012-04-22  Bruno Haible  <bruno@clisp.org>
2631
2632         doc: Mention reason for replacement on glibc/Linux systems.
2633         * doc/posix-functions/dprintf.texi: Mention the problem with special
2634         'long double' values.
2635         * doc/posix-functions/fprintf.texi: Likewise.
2636         * doc/posix-functions/printf.texi: Likewise.
2637         * doc/posix-functions/snprintf.texi: Likewise.
2638         * doc/posix-functions/sprintf.texi: Likewise.
2639         * doc/posix-functions/vdprintf.texi: Likewise.
2640         * doc/posix-functions/vfprintf.texi: Likewise.
2641         * doc/posix-functions/vprintf.texi: Likewise.
2642         * doc/posix-functions/vsnprintf.texi: Likewise.
2643         * doc/posix-functions/vsprintf.texi: Likewise.
2644         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
2645         platforms with F_DUPFD_CLOEXEC problems.
2646         * doc/posix-functions/glob.texi: Mention which platforms are affected
2647         by the problem with symbolic links.
2648         * doc/posix-functions/linkat.texi: Mention the problem with
2649         AT_SYMLINK_FOLLOW on Linux.
2650
2651 2012-04-22  Bruno Haible  <bruno@clisp.org>
2652
2653         pwrite: Don't replace on all platforms.
2654         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
2655
2656 2012-04-22  Bruno Haible  <bruno@clisp.org>
2657
2658         rint* tests: Avoid gcc warnings.
2659         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
2660         * tests/test-rintf.c (INFINITY, NAN): Likewise.
2661         * tests/test-rintl.c (INFINITY, NAN): Likewise.
2662
2663 2012-04-21  Bruno Haible  <bruno@clisp.org>
2664
2665         users.txt: Update.
2666         * users.txt: Add freedink, wdiff. Update URLs for projects that have
2667         switched from CVS to git, bzr, or svn.
2668
2669 2012-04-21  Bruno Haible  <bruno@clisp.org>
2670
2671         Large File Support for native Windows platforms.
2672
2673         * m4/largefile.m4 (gl_LARGEFILE): New macro.
2674         * modules/largefile (configure.ac): Require gl_LARGEFILE.
2675
2676         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
2677         type.
2678         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
2679         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
2680         * doc/posix-headers/sys_types.texi: Mention the effect of the
2681         'largefile' module.
2682
2683         * lib/fcntl.in.h: Add comments about off_t.
2684         * modules/fcntl-h (Depends-on): Add sys_types.
2685
2686         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
2687         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
2688         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
2689         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
2690         * modules/unistd (Depends-on): Add sys_types.
2691         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
2692
2693         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
2694         instead of lseek.
2695         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
2696         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
2697         * modules/lseek (Depends-on): Add sys_types.
2698
2699         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
2700         msvc-nothrow.h.
2701         (SetFileSize): New function.
2702         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
2703         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
2704         if Large File Support is requested.
2705         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
2706         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
2707
2708         * lib/stdio.in.h: Add comments about off_t.
2709         * modules/stdio (Depends-on): Add sys_types.
2710
2711         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
2712         instead of ftello.
2713         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
2714         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
2715         (gl_PREREQ_FTELLO): New macro.
2716         * modules/ftello (Depends-on): Add sys_types.
2717         (configure.ac): Incoke gl_PREREQ_FTELLO.
2718
2719         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
2720         instead of fseeko.
2721         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
2722         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
2723         (gl_PREREQ_FSEEKO): New macro.
2724         * modules/fseeko (Depends-on): Add sys_types.
2725         (configure.ac): Invoke gl_PREREQ_FSEEKO.
2726
2727         * lib/sys_stat.in.h: Add comments about off_t.
2728         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
2729         64-bit integer for st_size in 'struct stat'.
2730         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
2731         Define _GL_WINDOWS_64_BIT_ST_SIZE.
2732         * modules/sys_stat (Depends-on): Add sys_types.
2733         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
2734
2735         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
2736         instead of stat or _stat.
2737
2738         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
2739         'struct _stati64' instead of fstat and 'struct stat'.
2740         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
2741         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
2742
2743         Reported by Ray Satiro <raysatiro@yahoo.com>.
2744
2745 2012-04-19  Eric Blake  <eblake@redhat.com>
2746
2747         bootstrap: accommodate older libtool
2748         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
2749         Reported by Daniel P. Berrange.
2750
2751 2012-04-19  Jim Meyering  <meyering@redhat.com>
2752
2753         announce-gen: avoid failure due to lack of Digest::SHA1
2754         Even with the preferred Digest::SHA available, this script
2755         would fail when the backup module, Digest::SHA1, was not installed.
2756         * build-aux/announce-gen: Quote the conditional use of "use".
2757         Reported by Reuben Thomas in:
2758         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
2759
2760         bootstrap: don't let a user's CDPATH setting affect this script
2761         When CDPATH is set, cd will sometimes generate output.
2762         When "cd" is run in a subshell whose output matters, that
2763         surprising-to-some output can cause malfunction.
2764         Unsetting CDPATH turns off this shell "feature."
2765         * build-aux/bootstrap (CDPATH): Unset.
2766         Reported by Reuben Thomas in:
2767         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
2768         and inspired by his patch here:
2769         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
2770
2771 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
2772         and Jim Meyering  <meyering@redhat.com>
2773
2774         maint.mk: catch "see @xref{}" and similar
2775         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
2776         prohibit "See also @xref{", "Also see @pxref{", and similar.
2777
2778 2012-04-16  Jim Meyering  <meyering@redhat.com>
2779
2780         bootstrap: really use gnulib's po/Makefile.in.in
2781         * build-aux/bootstrap: Correct the source file name in previous change.
2782         Reported by Akim Demaille.
2783
2784         configmake: correct minor inconsistency in Makefile rule
2785         * modules/configmake (Makefile.am): All other rules like this one
2786         run the final "mv -f ..." in the same backslash-continued command
2787         as the one that does everything else.  This one put the mv -f ...
2788         command on a separate, non-backslash-continued line.
2789         Make it like the others.
2790
2791         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
2792         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
2793         the one from gettext.  Reported by Akim Demaille.
2794
2795 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
2796
2797         Fix recursion of install-* into po directories.
2798         Bison's install-pdf bug reported by Hans Aberg at
2799         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
2800         * build-aux/po/Makefile.in.in (install-dvi, install-html)
2801         (install-info, install-pdf, install-ps): New targets.
2802
2803 2012-04-16  Jim Meyering  <meyering@redhat.com>
2804
2805         maint: avoid spurious "make sc_maint" failure
2806         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
2807         exempt all *.class file names, for lib/javaversion.class.
2808
2809 2012-04-15  Bruno Haible  <bruno@clisp.org>
2810
2811         lseek: Make configure test independent of environment.
2812         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
2813         Windows, we know that lseek() on pipes is broken; skip the runtime
2814         test.
2815
2816 2012-04-14  Bruno Haible  <bruno@clisp.org>
2817
2818         stat: Bypass buggy override in mingw64.
2819         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
2820         * lib/stat.c (stat) [mingw64]: Define to _stat.
2821         * doc/posix-functions/stat.texi: Mention mingw64 bug.
2822
2823 2012-04-14  Bruno Haible  <bruno@clisp.org>
2824
2825         pathmax: Fix compilation error on MSVC 9.
2826         * modules/pathmax (Depends-on): Add unistd.
2827
2828 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2829
2830         README: document pointer comparison assumption
2831         * README (Portability guidelines): Document assumption about
2832         pointer comparisons, in response to a recent bug-gnulib comment by
2833         Jeffrey Kegler.
2834
2835 2012-04-12  Bruno Haible  <bruno@clisp.org>
2836
2837         Tests for module 'getrusage'.
2838         * modules/getrusage-tests: New file.
2839         * tests/test-getrusage.c: New file.
2840
2841         New module 'getrusage'.
2842         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
2843         warn-on-use.h.
2844         (getrusage): New declaration.
2845         * lib/getrusage.c: New file.
2846         * m4/getrusage.m4: New file.
2847         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
2848         is declared.
2849         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
2850         HAVE_GETRUSAGE.
2851         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
2852         snippet/c++defs, snippet/warn-on-use.
2853         (Makefile.am): Update generation of sys/resource.h. Substitute
2854         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
2855         * modules/getrusage: New file.
2856         * doc/posix-functions/getrusage.texi: Mention the new module.
2857
2858 2012-04-12  Bruno Haible  <bruno@clisp.org>
2859
2860         Tests for module 'sys_resource'.
2861         * modules/sys_resource-tests: New file.
2862         * tests/test-sys_resource.c: New file.
2863
2864         New module 'sys_resource'.
2865         * lib/sys_resource.in.h: New file.
2866         * m4/sys_resource_h.m4: New file.
2867         * modules/sys_resource: New file.
2868         * doc/posix-headers/sys_resource.texi: Mention the new module.
2869
2870 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
2871
2872         ioctl: Fix compilation error on mingw.
2873         * lib/ioctl.c: Include <windows.h>.
2874         Also reported by Ray Satiro <raysatiro@yahoo.com>.
2875
2876 2012-04-04  Jim Meyering  <meyering@redhat.com>
2877
2878         regex: correct #pragma guard expression
2879         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
2880         not 4.3.  Correct its cpp guard expression.
2881
2882 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2883
2884         regex: remove unnecessary type punning
2885         Problem reported by Vladimir Serbinenko in
2886         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
2887         * lib/regex.h (struct re_pattern_buffer): Change the type of
2888         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
2889         Fix comment to match code.
2890         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
2891         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
2892         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
2893         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
2894         (set_regs):
2895         Omit no-longer-necessary casts.
2896
2897 2012-04-03  Bruno Haible  <bruno@clisp.org>
2898
2899         Tests for module 'ilogbl'.
2900         * modules/ilogbl-tests: New file.
2901         * tests/test-ilogbl.c: New file.
2902
2903         New module 'ilogbl'.
2904         * lib/math.in.h (ilogbl): New declaration.
2905         * lib/ilogbl.c: New file.
2906         * m4/ilogbl.m4: New file.
2907         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
2908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
2909         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
2910         Split sed invocation, to avoid the limit of 100 substitutions of
2911         HP-UX 'sed'.
2912         * modules/ilogbl: New file.
2913         * tests/test-math-c++.cc: Check the declaration of ilogbl.
2914         * doc/posix-functions/ilogbl.texi: Mention the new module.
2915
2916 2012-04-03  Bruno Haible  <bruno@clisp.org>
2917
2918         Tests for module 'ilogbf'.
2919         * modules/ilogbf-tests: New file.
2920         * tests/test-ilogbf.c: New file.
2921
2922         New module 'ilogbf'.
2923         * lib/math.in.h (ilogbf): New declaration.
2924         * lib/ilogbf.c: New file.
2925         * m4/ilogbf.m4: New file.
2926         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
2927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
2928         REPLACE_ILOGBF.
2929         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
2930         REPLACE_ILOGBF.
2931         * modules/ilogbf: New file.
2932         * tests/test-math-c++.cc: Check the declaration of ilogbf.
2933         * doc/posix-functions/ilogbf.texi: Mention the new module.
2934
2935 2012-04-03  Bruno Haible  <bruno@clisp.org>
2936
2937         Tests for module 'ilogb'.
2938         * modules/ilogb-tests: New file.
2939         * tests/test-ilogb.c: New file.
2940         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
2941         tests/test-logb-ieee.h.
2942
2943         New module 'ilogb'.
2944         * lib/math.in.h (ilogb): New declaration.
2945         * lib/ilogb.c: New file.
2946         * m4/ilogb.m4: New file.
2947         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
2948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
2949         REPLACE_ILOGB.
2950         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
2951         REPLACE_ILOGB.
2952         * modules/ilogb: New file.
2953         * tests/test-math-c++.cc: Check the declaration of ilogb.
2954         * doc/posix-functions/ilogb.texi: Mention the new module.
2955
2956 2012-04-03  Bruno Haible  <bruno@clisp.org>
2957
2958         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
2959         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
2960         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
2961         (main): Check their values.
2962         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
2963         problem.
2964
2965 2012-04-03  Bruno Haible  <bruno@clisp.org>
2966
2967         Tests for module 'logbl-ieee'.
2968         * modules/logbl-ieee-tests: New file.
2969         * tests/test-logbl-ieee.c: New file.
2970
2971         New module 'logbl-ieee'.
2972         * modules/logbl-ieee: New file.
2973
2974         Tests for module 'logb-ieee'.
2975         * modules/logb-ieee-tests: New file.
2976         * tests/test-logb-ieee.c: New file.
2977
2978         New module 'logb-ieee'.
2979         * modules/logb-ieee: New file.
2980
2981         Tests for module 'logbf-ieee'.
2982         * modules/logbf-ieee-tests: New file.
2983         * tests/test-logbf-ieee.c: New file.
2984         * tests/test-logb-ieee.h: New file.
2985
2986         New module 'logbf-ieee'.
2987         * modules/logbf-ieee: New file.
2988
2989 2012-04-03  Bruno Haible  <bruno@clisp.org>
2990
2991         Tests for module 'logbl'.
2992         * modules/logbl-tests: New file.
2993         * tests/test-logbl.c: New file.
2994
2995         New module 'logbl'.
2996         * lib/math.in.h (logbl): New declaration.
2997         * lib/logbl.c: New file.
2998         * m4/logbl.m4: New file.
2999         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3001         REPLACE_LOGBL.
3002         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3003         REPLACE_LOGBL.
3004         * modules/logbl: New file.
3005         * tests/test-math-c++.cc: Check the declaration of logbl.
3006         * doc/posix-functions/logbl.texi: Mention the new module.
3007
3008 2012-04-02  Bruno Haible  <bruno@clisp.org>
3009
3010         Tests for module 'logbf'.
3011         * modules/logbf-tests: New file.
3012         * tests/test-logbf.c: New file.
3013
3014         New module 'logbf'.
3015         * lib/math.in.h (logbf): New declaration.
3016         * lib/logbf.c: New file.
3017         * m4/logbf.m4: New file.
3018         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3020         REPLACE_LOGBF.
3021         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3022         REPLACE_LOGBF.
3023         * modules/logbf: New file.
3024         * tests/test-math-c++.cc: Check the declaration of logbf.
3025         * doc/posix-functions/logbf.texi: Mention the new module.
3026
3027 2012-04-02  Bruno Haible  <bruno@clisp.org>
3028
3029         logb tests: More tests.
3030         * tests/test-logb.h: New file, based on tests/test-logb.c and
3031         tests/test-frexp.h.
3032         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3033         (main): Just invoke test_function.
3034         * modules/logb-tests (Files): Add tests/test-logb.h,
3035         tests/minus-zero.h, tests/randomd.c.
3036         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3037
3038         logb: Provide replacement and workarounds.
3039         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3040         is 1.
3041         * lib/logb.c: New file.
3042         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3043         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3045         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3046         * modules/logb (Files): Add lib/logb.c.
3047         (Depends-on): Add isfinite, frexp, isnand.
3048         (configure.ac): Compile the replacement code logb.c if needed.
3049         * tests/test-math-c++.cc: Check the declaration of logb.
3050         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3051         with subnormal numbers.
3052
3053 2012-04-02  Bruno Haible  <bruno@clisp.org>
3054
3055         log10* tests: Speed up.
3056         * tests/test-log10.h (test_function): Reduce amount of random numbers
3057         to test.
3058
3059 2012-04-01  Bruno Haible  <bruno@clisp.org>
3060
3061         logf-ieee: Fix test whether logf works.
3062         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3063
3064 2012-04-01  Bruno Haible  <bruno@clisp.org>
3065
3066         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3067         * lib/log10l.c: Include <float.h>
3068         (log10l): On IRIX, normalize the +Infinity value.
3069         * modules/log10l (Depends-on): Add 'float'.
3070         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3071         +Infinity.
3072
3073         log10f-ieee: Work around test failure on NetBSD 5.1.
3074         * m4/log10f-ieee.m4: New file.
3075         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3076         test whether log10f works with a negative argument. Replace it if not.
3077         * lib/log10f.c (log10f): For negative arguments, return NaN.
3078         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3079         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3080         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3081
3082         log10f-ieee: Work around test failure on Solaris 9.
3083         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3084         (configure.ac): Require gl_FUNC_LOG10F.
3085
3086         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3087         * m4/log10-ieee.m4: New file.
3088         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3089         whether log10 works with a negative argument. Replace it if not.
3090         * lib/log10.c (log10): For negative arguments, return NaN.
3091         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3092         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3093         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3094
3095         Tests for module 'log10l-ieee'.
3096         * modules/log10l-ieee-tests: New file.
3097         * tests/test-log10l-ieee.c: New file.
3098
3099         New module 'log10l-ieee'.
3100         * modules/log10l-ieee: New file.
3101
3102         Tests for module 'log10-ieee'.
3103         * modules/log10-ieee-tests: New file.
3104         * tests/test-log10-ieee.c: New file.
3105
3106         New module 'log10-ieee'.
3107         * modules/log10-ieee: New file.
3108
3109         Tests for module 'log10f-ieee'.
3110         * modules/log10f-ieee-tests: New file.
3111         * tests/test-log10f-ieee.c: New file.
3112         * tests/test-log10-ieee.h: New file.
3113
3114         New module 'log10f-ieee'.
3115         * modules/log10f-ieee: New file.
3116
3117 2012-04-01  Bruno Haible  <bruno@clisp.org>
3118
3119         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3120         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3121         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3122         workaround.
3123         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3124         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3126         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3127         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3128         (Depends-on): Update conditions.
3129         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3130         IRIX 6.5, OSF/1 5.1 problems.
3131
3132 2012-04-01  Bruno Haible  <bruno@clisp.org>
3133
3134         log10f: Work around OSF/1 5.1 bug.
3135         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3136         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3137         workaround.
3138         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3139         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3141         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3142         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3143         (Depends-on): Update conditions.
3144         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3145
3146 2012-04-01  Bruno Haible  <bruno@clisp.org>
3147
3148         log10: Work around OSF/1 5.1 bug.
3149         * lib/math.in.h (log10): New declaration.
3150         * lib/log10.c: New file.
3151         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3152         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3153         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3155         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3156         * modules/log10 (Files): Add lib/log10.c.
3157         (Depends-on): Add math.
3158         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3159         * tests/test-math-c++.cc: Check the declaration of log10.
3160         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3161
3162 2012-03-31  Bruno Haible  <bruno@clisp.org>
3163
3164         log10l tests: More tests.
3165         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3166         tests/minus-zero.h, tests/randoml.c.
3167         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3168         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3169         (main): Invoke test_function.
3170
3171         log10f tests: More tests.
3172         * modules/log10f-tests (Files): Add tests/test-log10.h,
3173         tests/minus-zero.h, tests/randomf.c.
3174         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3175         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3176         (main): Invoke test_function.
3177
3178         log10 tests: More tests.
3179         * tests/test-log10.h: New file.
3180         * modules/log10-tests (Files): Add tests/test-log10.h,
3181         tests/minus-zero.h, tests/randomd.c.
3182         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3183         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3184         (main): Invoke test_function.
3185
3186 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3187
3188         fflush: Fix syntax error.
3189         * lib/fflush.c: Include unused-parameter.h, needed for
3190         _GL_UNUSED_PARAMETER.
3191         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3192
3193 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3194
3195         regex: pacify GCC when compiling GRUB
3196         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3197         a diagnostic.  Reported by Vladimir Serbinenko in
3198         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3199
3200 2012-03-29  Eric Blake  <eblake@redhat.com>
3201
3202         stdio: don't assume gets any more
3203         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3204         support.
3205         * modules/stdio (Makefile.am): Likewise.
3206         * lib/stdio-read.c (gets): Likewise.
3207         * tests/test-stdio-c++.cc: Likewise.
3208         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3209         * lib/stdio.in.h (gets): Make warning occur in more places.
3210         * doc/posix-functions/gets.texi (gets): Update documentation.
3211         Reported by Christer Solskogen.
3212
3213         maint.mk: fix syntax checks without exclusions
3214         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3215         Reported by Daniel P. Berrange.
3216
3217         strerror_r: avoid compiler warning
3218         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3219         level.
3220
3221         fflush: avoid compiler warning
3222         * lib/fflush.c (update_fpos_cache): Mark variables that are
3223         potentially unused.
3224
3225 2012-03-25  Bruno Haible  <bruno@clisp.org>
3226
3227         Tests for module 'localeconv'.
3228         * modules/localeconv-tests: New file.
3229         * tests/test-localeconv.c: New file.
3230
3231         New module 'localeconv'.
3232         * lib/locale.in.h (localeconv): New declaration.
3233         * lib/localeconv.c: New file.
3234         * m4/localeconv.m4: New file.
3235         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3236         REPLACE_LOCALECONV.
3237         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3238         REPLACE_LOCALECONV.
3239         * modules/localeconv: New file.
3240         * modules/nl_langinfo (Depends-on): Add localeconv.
3241         * modules/human (Depends-on): Likewise.
3242         * doc/posix-functions/localeconv.texi: Mention the new module.
3243
3244 2012-03-25  Bruno Haible  <bruno@clisp.org>
3245
3246         locale: Provide a complete 'struct lconv'.
3247         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3248         'struct lconv' does not contain int_p_cs_precedes.
3249         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3250         * doc/posix-headers/locale.texi: Update.
3251
3252         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3253         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3254         * doc/posix-headers/locale.texi: Update.
3255
3256         locale: Provide a working 'struct lconv'.
3257         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3258         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3259         'struct lconv' does not even contain decimal_point.
3260         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3261         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3262         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3263         * doc/posix-headers/locale.texi: Mention the problems with
3264         'struct lconv'.
3265         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3266
3267 2012-03-24  Bruno Haible  <bruno@clisp.org>
3268
3269         Enable common subexpression optimization in GCC.
3270         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3271         macros.
3272         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3273         GCC attribute 'const'.
3274         (uc_locale_language): Declare with GCC attribute 'pure'.
3275         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3276         with GCC attribute 'const'.
3277         * lib/unictype.in.h (uc_is_general_category_withtable,
3278         uc_combining_class, uc_combining_class_name,
3279         uc_combining_class_long_name, uc_bidi_class_name,
3280         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3281         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3282         uc_decimal_value, uc_digit_value, uc_numeric_value,
3283         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3284         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3285         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3286         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3287         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3288         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3289         Declare with GCC attribute 'const'.
3290         (uc_general_category_name, uc_general_category_long_name,
3291         uc_general_category_byname, uc_general_category,
3292         uc_is_general_category, uc_combining_class_byname,
3293         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3294         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3295         Declare with GCC attribute 'pure'.
3296         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3297         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3298         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3299         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3300         with GCC attribute 'pure'.
3301         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3302         'const'.
3303         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3304         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3305         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3306         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3307         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3308         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3309         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3310         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3311         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3312         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3313         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3314         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3315         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3316         GCC attribute 'pure'.
3317         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3318         'const'.
3319         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3320         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3321         u32_strwidth): Declare with GCC attribute 'pure'.
3322
3323         Enable common subexpression optimization in GCC.
3324         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3325         (alphasort): Declare with GCC attribute 'pure'.
3326         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3327         (atoll): Declare with GCC attribute 'pure'.
3328         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3329         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3330         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3331         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3332         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3333         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3334         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3335
3336 2012-03-24  Bruno Haible  <bruno@clisp.org>
3337
3338         gnulib-tool: Avoid unintended error output from 'cmp'.
3339         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3340         "cmp -s", not "cmp > /dev/null".
3341
3342 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3343
3344         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3345
3346         It's not just Automake versions < 1.9b that creates an empty
3347         pkgdatadir at installation time if pkgdata_DATA is specified
3348         to empty; modern automake versions do this as well, at least
3349         until automake 1.11.4 (not yet released at the moment of writing,
3350         but soon to appear).  That behaviour was generally considered a
3351         feature rather than a bug, at least until this discussion:
3352         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3353
3354         See also automake bugs #10997 and #11030.
3355
3356         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3357         reference to relevant automake bug numbers.
3358         (func_emit_tests_Makefile_am): Likewise.
3359
3360 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3361
3362         announce-gen: use Digest::SHA when possible
3363         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3364         back to Digest::SHA1 if necessary.
3365
3366 2012-03-20  Jim Meyering  <meyering@redhat.com>
3367
3368         tests: avoid gcc warnings about argv vs. const initializers
3369         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3370         warnings about discarding 'const' qualifier from pointer target type.
3371         * tests/test-posix_spawn2.c (main): Likewise.
3372
3373 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3374
3375         README-release: simplify slightly
3376         * top/README-release: Run "git checkout master" only once.
3377
3378 2012-03-15  Mark Wielaard  <mark@klomp.org>
3379
3380         git-merge-changelog: add specific example on how to use with hg.
3381         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3382
3383 2012-03-18  Mark Wielaard  <mark@klomp.org>
3384
3385         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3386
3387 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3388
3389         git-version-gen: don't let "prefix" envvar cause trouble
3390         * build-aux/git-version-gen (prefix): Initialize properly,
3391         so as not to use a value specified via the environment.
3392         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3393
3394 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3395
3396         regex: diagnose too-large repeat counts in EREs
3397         Previously, the code did not diagnose the too-large repeat count
3398         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3399         as if it were 'b\{1000000000}', which is unexpected.
3400         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3401         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3402         is a reasonable one for this problem.  Another option would be to
3403         create a new REG_OVERFLOW error for repeat counts that are too large.
3404         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3405         count is too large, so that the caller can distinguish the two cases.
3406         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3407         "Too large" return code, and that repeat counts are one example of this.
3408
3409 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3410
3411         doc: some glibc x32 integer width issues
3412         * doc/posix-headers/sys_types.texi (sys/types.h):
3413         * doc/posix-headers/time.texi (time.h):
3414         Mention that glibc x32 does not conform to POSIX in a couple of
3415         areas related to integer widths.
3416
3417 2012-03-15  Bruno Haible  <bruno@clisp.org>
3418
3419         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3420         * lib/fma.c (VOLATILE): New macro.
3421         (FUNC): Use it to work around a GCC compiler bug.
3422
3423 2012-03-13  Bruno Haible  <bruno@clisp.org>
3424
3425         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3426         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3427         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3428         REPLACE_HYPOTL to 1.
3429         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3430
3431 2012-03-13  Bruno Haible  <bruno@clisp.org>
3432
3433         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3434         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3435         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3436         REPLACE_REMAINDERL to 1.
3437         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3438         bug.
3439
3440 2012-03-13  Bruno Haible  <bruno@clisp.org>
3441
3442         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3443         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3444         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3445         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3446         too big rounding errors.
3447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3448         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3449         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3450         (Depends-on): Update conditions.
3451         * tests/test-sqrtl.c (my_ldexpl): New function.
3452         (main): Add test of a particular value.
3453         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3454
3455 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3456
3457         doc: Update timer_* platform portability notes.
3458         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3459         that always return ENOSYS.
3460         * doc/posix-functions/timer_delete.texi: Likewise.
3461         * doc/posix-functions/timer_gettime.texi: Likewise.
3462         * doc/posix-functions/timer_settime.texi: Likewise.
3463
3464 2012-03-13  Bruno Haible  <bruno@clisp.org>
3465
3466         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3467         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3468         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3469         REPLACE_CBRTL to 1.
3470         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3471
3472 2012-03-13  Bruno Haible  <bruno@clisp.org>
3473
3474         remainderl: Avoid compilation error on AIX >= 5.2.
3475         * lib/math.in.h (remainderl): Undefine macro from the system header.
3476
3477 2012-03-13  Bruno Haible  <bruno@clisp.org>
3478
3479         Avoid compilation errors with MSVC option -fp:strict.
3480         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3481         * lib/cbrtf.c: Likewise.
3482         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3483
3484 2012-03-12  Bruno Haible  <bruno@clisp.org>
3485
3486         uninorm: Don't crash in out-of-memory conditions.
3487         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3488         gracefully.
3489         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3490         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3491
3492 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3493
3494         quote: fix syntax-check
3495         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3496         also exports quote_quoting_options.
3497
3498 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3499
3500         Collapse list of copyright years to ranges.  See
3501         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3502         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3503         build-aux/csharpexec.sh.in, build-aux/gnupload,
3504         build-aux/install-reloc, build-aux/javacomp.sh.in,
3505         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3506         build-aux/move-if-change, build-aux/reloc-ldflags,
3507         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3508
3509 2012-03-11  Bruno Haible  <bruno@clisp.org>
3510
3511         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3512         * m4/log2f-ieee.m4: New file.
3513         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3514         whether log2f works with a minus zero argument. Replace it if not.
3515         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3516         (Depends-on): Add log2-ieee.
3517         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3518         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3519
3520         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3521         * m4/log2-ieee.m4: New file.
3522         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3523         whether log2 works with a minus zero argument. Replace it if not.
3524         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3525         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
3526         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
3527
3528         Tests for module 'log2l-ieee'.
3529         * modules/log2l-ieee-tests: New file.
3530         * tests/test-log2l-ieee.c: New file.
3531
3532         New module 'log2l-ieee'.
3533         * modules/log2l-ieee: New file.
3534
3535         Tests for module 'log2-ieee'.
3536         * modules/log2-ieee-tests: New file.
3537         * tests/test-log2-ieee.c: New file.
3538
3539         New module 'log2-ieee'.
3540         * modules/log2-ieee: New file.
3541
3542         Tests for module 'log2f-ieee'.
3543         * modules/log2f-ieee-tests: New file.
3544         * tests/test-log2f-ieee.c: New file.
3545         * tests/test-log2-ieee.h: New file.
3546
3547         New module 'log2f-ieee'.
3548         * modules/log2f-ieee: New file.
3549
3550 2012-03-11  Bruno Haible  <bruno@clisp.org>
3551
3552         Tests for module 'log2l'.
3553         * modules/log2l-tests: New file.
3554         * tests/test-log2l.c: New file.
3555
3556         New module 'log2l'.
3557         * lib/math.in.h (log2l): New declaration.
3558         * lib/log2l.c: New file.
3559         * m4/log2l.m4: New file.
3560         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
3561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
3562         REPLACE_LOG2L.
3563         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
3564         REPLACE_LOG2L.
3565         * modules/log2l: New file.
3566         * tests/test-math-c++.cc: Check the declaration of log2l.
3567         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
3568         and OSF/1 problems.
3569
3570 2012-03-11  Bruno Haible  <bruno@clisp.org>
3571
3572         Tests for module 'log2f'.
3573         * modules/log2f-tests: New file.
3574         * tests/test-log2f.c: New file.
3575
3576         New module 'log2f'.
3577         * lib/math.in.h (log2f): New declaration.
3578         * lib/log2f.c: New file.
3579         * m4/log2f.m4: New file.
3580         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
3581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
3582         REPLACE_LOG2F.
3583         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
3584         REPLACE_LOG2F.
3585         * modules/log2f: New file.
3586         * tests/test-math-c++.cc: Check the declaration of log2f.
3587         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
3588         and OSF/1 and Cygwin problems.
3589
3590 2012-03-11  Bruno Haible  <bruno@clisp.org>
3591
3592         Tests for module 'log2'.
3593         * modules/log2-tests: New file.
3594         * tests/test-log2.c: New file.
3595         * tests/test-log2.h: New file.
3596
3597         New module 'log2'.
3598         * lib/math.in.h (log2): New declaration.
3599         * lib/log2.c: New file.
3600         * m4/log2.m4: New file.
3601         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
3602         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
3603         REPLACE_LOG2.
3604         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
3605         REPLACE_LOG2.
3606         * modules/log2: New file.
3607         * tests/test-math-c++.cc: Check the declaration of log2.
3608         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
3609         and OSF/1 and Cygwin problems.
3610
3611 2012-03-11  Bruno Haible  <bruno@clisp.org>
3612
3613         exp2* tests: More tests.
3614         * tests/test-exp2.h (test_function): Test all integral arguments that
3615         don't need to overflow or denormalized numbers.
3616         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
3617         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
3618         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
3619
3620 2012-03-10  Bruno Haible  <bruno@clisp.org>
3621
3622         log1pl-ieee: Work around test failure on AIX 7.1.
3623         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
3624
3625         log1pl-ieee: Work around test failure on IRIX 6.5.
3626         * m4/log1pl-ieee.m4: New file.
3627         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
3628         test whether log1pl works with a minus zero argument. Replace it if
3629         not.
3630         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
3631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
3632         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
3633         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
3634         (Depends-on): Update conditions.
3635         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3636         m4/signbit.m4.
3637         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
3638         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
3639
3640         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
3641         * m4/log1pf-ieee.m4: New file.
3642         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
3643         test whether log1pf works with a minus zero argument. Replace it if
3644         not.
3645         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
3646         m4/signbit.m4.
3647         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
3648         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
3649
3650         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
3651         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
3652         (configure.ac): Require gl_FUNC_LOG1PF.
3653
3654         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
3655         * m4/log1p-ieee.m4: New file.
3656         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
3657         whether log1p works with a minus zero argument. Replace it if not.
3658         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
3659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
3660         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
3661         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
3662         (Depends-on): Update conditions.
3663         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3664         m4/signbit.m4.
3665         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
3666         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
3667
3668         Tests for module 'log1pl-ieee'.
3669         * modules/log1pl-ieee-tests: New file.
3670         * tests/test-log1pl-ieee.c: New file.
3671
3672         New module 'log1pl-ieee'.
3673         * modules/log1pl-ieee: New file.
3674
3675         Tests for module 'log1p-ieee'.
3676         * modules/log1p-ieee-tests: New file.
3677         * tests/test-log1p-ieee.c: New file.
3678
3679         New module 'log1p-ieee'.
3680         * modules/log1p-ieee: New file.
3681
3682         Tests for module 'log1pf-ieee'.
3683         * modules/log1pf-ieee-tests: New file.
3684         * tests/test-log1pf-ieee.c: New file.
3685         * tests/test-log1p-ieee.h: New file.
3686
3687         New module 'log1pf-ieee'.
3688         * modules/log1pf-ieee: New file.
3689
3690 2012-03-10  Bruno Haible  <bruno@clisp.org>
3691
3692         Tests for module 'log1pl'.
3693         * modules/log1pl-tests: New file.
3694         * tests/test-log1pl.c: New file.
3695
3696         New module 'log1pl'.
3697         * lib/math.in.h (log1pl): New declaration.
3698         * lib/log1pl.c: New file.
3699         * m4/log1pl.m4: New file.
3700         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
3701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
3702         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
3703         * modules/log1pl: New file.
3704         * tests/test-math-c++.cc: Check the declaration of log1pl.
3705         * doc/posix-functions/log1pl.texi: Mention the new module.
3706
3707 2012-03-10  Bruno Haible  <bruno@clisp.org>
3708
3709         Tests for module 'log1pf'.
3710         * modules/log1pf-tests: New file.
3711         * tests/test-log1pf.c: New file.
3712
3713         New module 'log1pf'.
3714         * lib/math.in.h (log1pf): New declaration.
3715         * lib/log1pf.c: New file.
3716         * m4/log1pf.m4: New file.
3717         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
3718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
3719         REPLACE_LOG1PF.
3720         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
3721         REPLACE_LOG1PF.
3722         * modules/log1pf: New file.
3723         * tests/test-math-c++.cc: Check the declaration of log1pf.
3724         * doc/posix-functions/log1pf.texi: Mention the new module.
3725
3726 2012-03-10  Bruno Haible  <bruno@clisp.org>
3727
3728         log1p tests: More tests.
3729         * tests/test-log1p.h: New file.
3730         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
3731         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
3732         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
3733         (main): Invoke test_function.
3734
3735         log1p: Provide replacement for Minix and MSVC.
3736         * lib/math.in.h (log1p): New declaration.
3737         * lib/log1p.c: New file.
3738         * m4/log1p.m4: New file.
3739         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
3740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
3741         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
3742         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
3743         (Depends-on): Add math, isnand, log, round.
3744         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
3745         HAVE_LOG1P is 0.
3746         * tests/test-math-c++.cc: Check the declaration of log1p.
3747         * doc/posix-functions/log1p.texi: Mention the replacement.
3748
3749 2012-03-10  Bruno Haible  <bruno@clisp.org>
3750
3751         math tests: Small simplification.
3752         * tests/test-exp.h (test_function): Use the same err_bound for
3753         'double' on platforms with sizeof (long double) == sizeof (double)
3754         than on platforms with sizeof (long double) > sizeof (double).
3755         * tests/test-exp2.h (test_function): Likewise.
3756         * tests/test-expm1.h (test_function): Likewise.
3757         * tests/test-log.h (test_function): Likewise.
3758
3759 2012-03-10  Bruno Haible  <bruno@clisp.org>
3760
3761         Fix some comments.
3762         * lib/expl.c: Fix an ambiguous comment.
3763         * lib/expm1.c: Likewise.
3764         * lib/expm1l.c: Likewise.
3765         * lib/exp2.c: Likewise.
3766         * lib/exp2l.c: Likewise.
3767
3768 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
3769
3770         regex: allow inclusion of <regex.h> before <limits.h>
3771         Without this patch, portable programs had to include <limits.h> before
3772         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
3773         I ran into this problem with a test version of GNU grep on Solaris 8.
3774         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
3775         This is done conditionally so that this change can be merged
3776         back to glibc.
3777         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
3778         using the included regex.
3779
3780         fts: depend on fdopendir
3781         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
3782         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
3783         problem was introduced when fdopendir was split out.
3784
3785 2012-03-10  Bruno Haible  <bruno@clisp.org>
3786
3787         Remove unused variables.
3788         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
3789         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3790
3791 2012-03-10  Bruno Haible  <bruno@clisp.org>
3792
3793         isnanf-nolibm: Fix last commit.
3794         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
3795
3796         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
3797         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
3798
3799 2012-03-10  Bruno Haible  <bruno@clisp.org>
3800
3801         logf-ieee: Work around test failure on NetBSD 5.1.
3802         * m4/logf-ieee.m4: New file.
3803         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
3804         whether logf works with a negative argument. Replace it if not.
3805         * lib/logf.c (logf): For negative arguments, return NaN.
3806         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
3807         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
3808         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
3809
3810         logf-ieee: Work around test failure on Solaris 9.
3811         * modules/logf-ieee (Depends-on): Add log-ieee.
3812         (configure.ac): Require gl_FUNC_LOGF.
3813
3814         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3815         * m4/log-ieee.m4: New file.
3816         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
3817         log works with a negative argument. Replace it if not.
3818         * lib/log.c (log): For negative arguments, return NaN.
3819         * modules/log-ieee (Files): Add m4/log-ieee.m4.
3820         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
3821         * doc/posix-functions/log.texi: Mention the log-ieee module.
3822
3823         Tests for module 'logl-ieee'.
3824         * modules/logl-ieee-tests: New file.
3825         * tests/test-logl-ieee.c: New file.
3826
3827         New module 'logl-ieee'.
3828         * modules/logl-ieee: New file.
3829
3830         Tests for module 'log-ieee'.
3831         * modules/log-ieee-tests: New file.
3832         * tests/test-log-ieee.c: New file.
3833
3834         New module 'log-ieee'.
3835         * modules/log-ieee: New file.
3836
3837         Tests for module 'logf-ieee'.
3838         * modules/logf-ieee-tests: New file.
3839         * tests/test-logf-ieee.c: New file.
3840         * tests/test-log-ieee.h: New file.
3841
3842         New module 'logf-ieee'.
3843         * modules/logf-ieee: New file.
3844
3845 2012-03-10  Bruno Haible  <bruno@clisp.org>
3846
3847         log: Fix bug introduced on 2012-03-09.
3848         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
3849
3850 2012-03-10  Pádraig Brady  <P@draigBrady.com>
3851
3852         timer-time: link explicitly with pthreads on glibc
3853         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3854         to support static linking, when newer glibc is
3855         detected, as that contains pthread emulation of
3856         POSIX timer functions where required.
3857         * modules/timer-time: Depend on threadlib to
3858         pull in the appropriate library to link.
3859
3860 2012-03-10  Bruno Haible  <bruno@clisp.org>
3861
3862         log* tests: More tests.
3863         * tests/test-log.h: New file.
3864         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
3865         (main): Invoke test_function.
3866         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
3867         (main): Invoke test_function.
3868         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
3869         (main): Invoke test_function.
3870         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3871         tests/randomd.c.
3872         (Makefile.am): Add randomd.c to test_log_SOURCES.
3873         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3874         tests/randomf.c.
3875         (Makefile.am): Add randomf.c to test_logf_SOURCES.
3876         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3877         tests/randoml.c.
3878         (Depends-on): Add 'float'.
3879         (Makefile.am): Add randoml.c to test_logl_SOURCES.
3880
3881 2012-03-09  Bruno Haible  <bruno@clisp.org>
3882
3883         logl: Work around OSF/1 5.1 bug.
3884         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
3885         * lib/logl.c (logl): If logl exists, use it and provide just the
3886         workaround.
3887         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
3888         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
3889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
3890         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
3891         * modules/logl (configure.ac): Consider REPLACE_LOGL.
3892         (Depends-on): Update conditions.
3893         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
3894
3895 2012-03-09  Bruno Haible  <bruno@clisp.org>
3896
3897         logf: Work around OSF/1 5.1 bug.
3898         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
3899         * lib/logf.c (logf): If logf exists, use it and provide just the
3900         workaround.
3901         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
3902         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
3903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
3904         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
3905         * modules/logf (configure.ac): Consider REPLACE_LOGF.
3906         (Depends-on): Update conditions.
3907         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
3908
3909 2012-03-09  Bruno Haible  <bruno@clisp.org>
3910
3911         log: Work around OSF/1 5.1 bug.
3912         * lib/math.in.h (log): New declaration.
3913         * lib/log.c: New file.
3914         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
3915         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
3916         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
3917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
3918         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
3919         * modules/log (Files): Add lib/log.c.
3920         (Depends-on): Add math.
3921         (configure.ac): If REPLACE_LOG is 1, compile an override.
3922         * tests/test-math-c++.cc: Check the declaration of log.
3923         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
3924
3925 2012-03-09  Jim Meyering  <meyering@redhat.com>
3926
3927         readtokens.c: adjust wording in a comment
3928         * lib/readtokens.c: Insert omitted "that" in a comment.
3929
3930 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3931
3932         modechange: add notations +40, 00440, etc.
3933         * lib/modechange.c (mode_compile): Support new notations
3934         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
3935
3936 2012-03-08  Bruno Haible  <bruno@clisp.org>
3937
3938         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
3939         * m4/exp2l-ieee.m4: New file.
3940         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
3941         test whether exp2l works with a NaN argument and with a negative
3942         infinity argument. Replace it if not.
3943         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
3944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
3945         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
3946         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
3947         (Depends-on): Update conditions.
3948         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
3949         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
3950         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
3951
3952         Tests for module 'exp2l-ieee'.
3953         * modules/exp2l-ieee-tests: New file.
3954         * tests/test-exp2l-ieee.c: New file.
3955
3956         New module 'exp2l-ieee'.
3957         * modules/exp2l-ieee: New file.
3958
3959         Tests for module 'exp2-ieee'.
3960         * modules/exp2-ieee-tests: New file.
3961         * tests/test-exp2-ieee.c: New file.
3962
3963         New module 'exp2-ieee'.
3964         * modules/exp2-ieee: New file.
3965
3966         Tests for module 'exp2f-ieee'.
3967         * modules/exp2f-ieee-tests: New file.
3968         * tests/test-exp2f-ieee.c: New file.
3969         * tests/test-exp2-ieee.h: New file.
3970
3971         New module 'exp2f-ieee'.
3972         * modules/exp2f-ieee: New file.
3973
3974 2012-03-08  Bruno Haible  <bruno@clisp.org>
3975
3976         Tests for module 'exp2l'.
3977         * modules/exp2l-tests: New file.
3978         * tests/test-exp2l.c: New file.
3979
3980         New module 'exp2l'.
3981         * lib/math.in.h (exp2l): New declaration.
3982         * lib/exp2l.c: New file.
3983         * lib/expl-table.c: New file, extracted from lib/expl.c.
3984         * lib/expl.c (gl_expl_table): New declaration.
3985         (expl): Remove expl_table. Update reference.
3986         * m4/exp2l.m4: New file.
3987         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
3988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
3989         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
3990         * modules/exp2l: New file.
3991         * modules/expl (Files): Add lib/expl-table.c.
3992         (configure.ac): Compile also expl-table.c.
3993         * tests/test-math-c++.cc: Check the declaration of exp2l.
3994         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
3995         problem.
3996
3997 2012-03-08  Bruno Haible  <bruno@clisp.org>
3998
3999         Tests for module 'exp2f'.
4000         * modules/exp2f-tests: New file.
4001         * tests/test-exp2f.c: New file.
4002
4003         New module 'exp2f'.
4004         * lib/math.in.h (exp2f): New declaration.
4005         * lib/exp2f.c: New file.
4006         * m4/exp2f.m4: New file.
4007         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4009         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4010         * modules/exp2f: New file.
4011         * tests/test-math-c++.cc: Check the declaration of exp2f.
4012         * doc/posix-functions/exp2f.texi: Mention the new module and the
4013         IRIX problem.
4014
4015 2012-03-08  Bruno Haible  <bruno@clisp.org>
4016
4017         Tests for module 'exp2'.
4018         * modules/exp2-tests: New file.
4019         * tests/test-exp2.c: New file.
4020         * tests/test-exp2.h: New file.
4021
4022         New module 'exp2'.
4023         * lib/math.in.h (exp2): New declaration.
4024         * lib/exp2.c: New file.
4025         * m4/exp2.m4: New file.
4026         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4028         REPLACE_EXP2.
4029         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4030         REPLACE_EXP2.
4031         * modules/exp2: New file.
4032         * tests/test-math-c++.cc: Check the declaration of exp2.
4033         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4034         and OpenBSD problems.
4035
4036 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4037
4038         savedir: fix comment typo
4039         * lib/savedir.c (savedirstream): Fix typo in comment.
4040
4041 2012-03-08  Bruno Haible  <bruno@clisp.org>
4042
4043         test-readtokens.c: use const; remove unwarranted cast
4044         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4045
4046 2012-03-08  Bruno Haible  <bruno@clisp.org>
4047
4048         fmal: Avoid compilation error on AIX.
4049         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4050         AIX 5.2..7.1.
4051
4052 2012-03-08  Bruno Haible  <bruno@clisp.org>
4053
4054         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4055         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4056         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4057         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4058         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4059         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4060         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4061
4062 2012-03-08  Bruno Haible  <bruno@clisp.org>
4063
4064         remainderf: Override buggy system function on IRIX 6.5.
4065         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4066         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4067         when it exists.
4068         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4069
4070 2012-03-08  Jim Meyering  <meyering@redhat.com>
4071
4072         test-readtokens.c: avoid const-related compilation warnings
4073         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4074
4075 2012-03-07  Jim Meyering  <meyering@redhat.com>
4076             Bruno Haible  <bruno@clisp.org>
4077
4078         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4079         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4080         tests/randomd.c.
4081         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4082         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4083         tests/randoml.c.
4084         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4085
4086 2012-03-07  Bruno Haible  <bruno@clisp.org>
4087
4088         expm1l: Avoid compilation error on AIX.
4089         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4090         AIX 5.2..7.1.
4091
4092 2012-03-07  Bruno Haible  <bruno@clisp.org>
4093
4094         expm1l: Don't override undeclared system function on IRIX 6.5.
4095         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4096         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4097         it exists. Set HAVE_DECL_EXPM1L.
4098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4099         HAVE_EXPM1L.
4100         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4101         HAVE_EXPM1L.
4102         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4103
4104 2012-03-07  Bruno Haible  <bruno@clisp.org>
4105
4106         remainderl: Don't override undeclared system function on IRIX 6.5.
4107         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4108         HAVE_REMAINDERL.
4109         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4110         declared when it exists. Set HAVE_DECL_REMAINDERL.
4111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4112         not HAVE_REMAINDERL.
4113         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4114         HAVE_REMAINDERL.
4115         * doc/posix-functions/remainderl.texi: Mention missing declaration
4116         problem.
4117
4118 2012-03-07  Bruno Haible  <bruno@clisp.org>
4119
4120         rintf: Don't override undeclared system function on IRIX 6.5.
4121         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4122         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4123         exists. Set HAVE_DECL_RINTF.
4124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4125         HAVE_RINTF.
4126         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4127         HAVE_RINTF.
4128         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4129
4130 2012-03-07  Bruno Haible  <bruno@clisp.org>
4131
4132         roundl: Avoid compilation error on AIX.
4133         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4134         AIX 5.2..7.1.
4135
4136 2012-03-07  Bruno Haible  <bruno@clisp.org>
4137
4138         roundl: Don't override undeclared system function on IRIX 6.5.
4139         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4140         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4141         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4142         * modules/roundl (configure.ac): For replacement code, test
4143         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4144         (Depends-on): Update conditions.
4145         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4146
4147 2012-03-07  Bruno Haible  <bruno@clisp.org>
4148
4149         roundf: Don't override undeclared system function on IRIX 6.5.
4150         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4151         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4152         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4153         * modules/roundf (configure.ac): For replacement code, test
4154         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4155         (Depends-on): Update conditions.
4156         * modules/roundf-ieee (Depends-on): Update conditions.
4157         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4158
4159 2012-03-07  Bruno Haible  <bruno@clisp.org>
4160
4161         round: Don't override undeclared system function on IRIX 6.5.
4162         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4163         argument.
4164         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4165         also when it is not declared. Set HAVE_ROUND. For replacement code,
4166         test HAVE_ROUND, not HAVE_DECL_ROUND.
4167         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4168         not HAVE_DECL_ROUND.
4169         (Depends-on): Update conditions.
4170         * modules/round-ieee (Depends-on): Update conditions.
4171         * doc/posix-functions/round.texi: Mention the IRIX problem.
4172
4173 2012-03-07  Bruno Haible  <bruno@clisp.org>
4174
4175         copysignf: Don't override undeclared system function on IRIX 6.5.
4176         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4177         HAVE_COPYSIGNF.
4178         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4179         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4181         not HAVE_COPYSIGNF.
4182         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4183         HAVE_COPYSIGNF.
4184         * doc/posix-functions/copysignf.texi: Mention missing declaration
4185         problem.
4186
4187 2012-03-07  Jim Meyering  <meyering@redhat.com>
4188
4189         readtokens: add tests
4190         * modules/readtokens-tests: New file.
4191         * tests/test-readtokens.c: New file.
4192
4193 2012-03-07  Jim Meyering  <meyering@redhat.com>
4194
4195         quotearg: the module must now include quote.h
4196         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4197         So must the module.
4198         * modules/quotearg (Files): Add quote.h.
4199
4200 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4201
4202         readtokens: avoid core dumps with unusual calling patterns
4203         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4204         * lib/readtokens.c: Include limits.h.
4205         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4206         (readtoken): Don't cache the delimiters; the cache code was buggy
4207         if !delim && saved_delim, or if the new n_delim differs from the old.
4208         Also, it wasn't thread-safe.
4209
4210 2012-03-07  Bruno Haible  <bruno@clisp.org>
4211
4212         quote: Adhere to common module description layout.
4213         * modules/quote (Makefile.am): Add back empty section.
4214
4215 2012-03-06  Akim Demaille  <demaille@gostai.com>
4216
4217         quote: fuse into quotearg
4218         This patch is made for the benefit of Bison.
4219         quote does not leave the choice of the quoting style to the user.
4220         quoting_style provides poor customizability, yet quoting_options,
4221         which is very rich, is hidden inside quotearg.c.  So in order to
4222         allow quote customization, move its implementation to quotearg.c.
4223         * lib/quote.c: Remove.
4224         * modules/quote: Adjust.
4225         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4226         warning: provide all the members of literal structs.
4227         (quote_quoting_options): New.
4228         (quote, quote_n): Import implementation from quote.c.
4229         * lib/quote.h: Import the comments from quote.c.
4230         (quote_quoting_options): New.
4231
4232 2012-03-06  Bruno Haible  <bruno@clisp.org>
4233
4234         Tests for module 'expm1l-ieee'.
4235         * modules/expm1l-ieee-tests: New file.
4236         * tests/test-expm1l-ieee.c: New file.
4237
4238         New module 'expm1l-ieee'.
4239         * modules/expm1l-ieee: New file.
4240
4241         Tests for module 'expm1f-ieee'.
4242         * modules/expm1f-ieee-tests: New file.
4243         * tests/test-expm1f-ieee.c: New file.
4244
4245         New module 'expm1f-ieee'.
4246         * modules/expm1f-ieee: New file.
4247
4248         Tests for module 'expm1-ieee'.
4249         * modules/expm1-ieee-tests: New file.
4250         * tests/test-expm1-ieee.c: New file.
4251         * tests/test-expm1-ieee.h: New file.
4252
4253         New module 'expm1-ieee'.
4254         * modules/expm1-ieee: New file.
4255         * m4/expm1-ieee.m4: New file.
4256         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4257         whether expm1 works with a minus zero argument. Replace it if not.
4258         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4260         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4261         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4262         (Depends-on): Update conditions.
4263         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4264         AIX problem.
4265
4266 2012-03-06  Bruno Haible  <bruno@clisp.org>
4267
4268         Work around expm1f bug on IRIX 6.5.
4269         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4270         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4271         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4272         not work.
4273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4274         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4275         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4276         (Depends-on): Update conditions.
4277         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4278
4279 2012-03-06  Bruno Haible  <bruno@clisp.org>
4280
4281         Tests for module 'expm1l'.
4282         * modules/expm1l-tests: New file.
4283         * tests/test-expm1l.c: New file.
4284
4285         New module 'expm1l'.
4286         * lib/math.in.h (expm1l): New declaration.
4287         * lib/expm1l.c: New file.
4288         * m4/expm1l.m4: New file.
4289         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4291         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4292         * modules/expm1l: New file.
4293         * tests/test-math-c++.cc: Check the declaration of expm1l.
4294         * doc/posix-functions/expm1l.texi: Mention the new module.
4295
4296 2012-03-06  Bruno Haible  <bruno@clisp.org>
4297
4298         Tests for module 'expm1f'.
4299         * modules/expm1f-tests: New file.
4300         * tests/test-expm1f.c: New file.
4301
4302         New module 'expm1f'.
4303         * lib/math.in.h (expm1f): New declaration.
4304         * lib/expm1f.c: New file.
4305         * m4/expm1f.m4: New file.
4306         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4307         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4308         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4309         * modules/expm1f: New file.
4310         * tests/test-math-c++.cc: Check the declaration of expm1f.
4311         * doc/posix-functions/expm1f.texi: Mention the new module.
4312
4313 2012-03-06  Bruno Haible  <bruno@clisp.org>
4314
4315         Tests for module 'expm1'.
4316         * modules/expm1-tests: New file.
4317         * tests/test-expm1.c: New file.
4318         * tests/test-expm1.h: New file.
4319
4320         New module 'expm1'.
4321         * lib/math.in.h (expm1): New declaration.
4322         * lib/expm1.c: New file.
4323         * m4/expm1.m4: New file.
4324         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4326         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4327         * modules/expm1: New file.
4328         * tests/test-math-c++.cc: Check the declaration of expm1.
4329         * doc/posix-functions/expm1.texi: Mention the new module.
4330
4331 2012-03-06  Bruno Haible  <bruno@clisp.org>
4332
4333         math: Ensure declarations of math functions.
4334         * modules/acosf (Depends-on): Add 'extensions'.
4335         * modules/asinf (Depends-on): Likewise.
4336         * modules/atan2f (Depends-on): Likewise.
4337         * modules/atanf (Depends-on): Likewise.
4338         * modules/cbrt (Depends-on): Likewise.
4339         * modules/cbrtf (Depends-on): Likewise.
4340         * modules/cbrtl (Depends-on): Likewise.
4341         * modules/copysignf (Depends-on): Likewise.
4342         * modules/copysignl (Depends-on): Likewise.
4343         * modules/cosf (Depends-on): Likewise.
4344         * modules/coshf (Depends-on): Likewise.
4345         * modules/expf (Depends-on): Likewise.
4346         * modules/fabsf (Depends-on): Likewise.
4347         * modules/fabsl (Depends-on): Likewise.
4348         * modules/fmaf (Depends-on): Likewise.
4349         * modules/fmal (Depends-on): Likewise.
4350         * modules/fmodf (Depends-on): Likewise.
4351         * modules/fmodl (Depends-on): Likewise.
4352         * modules/frexpf (Depends-on): Likewise.
4353         * modules/frexpl (Depends-on): Likewise.
4354         * modules/hypot (Depends-on): Likewise.
4355         * modules/hypotf (Depends-on): Likewise.
4356         * modules/hypotl (Depends-on): Likewise.
4357         * modules/ldexpf (Depends-on): Likewise.
4358         * modules/ldexpl (Depends-on): Likewise.
4359         * modules/log10f (Depends-on): Likewise.
4360         * modules/log10l (Depends-on): Likewise.
4361         * modules/log1p (Depends-on): Likewise.
4362         * modules/logb (Depends-on): Likewise.
4363         * modules/logf (Depends-on): Likewise.
4364         * modules/modff (Depends-on): Likewise.
4365         * modules/modfl (Depends-on): Likewise.
4366         * modules/powf (Depends-on): Likewise.
4367         * modules/remainderf (Depends-on): Likewise.
4368         * modules/remainderl (Depends-on): Likewise.
4369         * modules/rintf (Depends-on): Likewise.
4370         * modules/rintl (Depends-on): Likewise.
4371         * modules/sinf (Depends-on): Likewise.
4372         * modules/sinhf (Depends-on): Likewise.
4373         * modules/sqrtf (Depends-on): Likewise.
4374         * modules/tanf (Depends-on): Likewise.
4375         * modules/tanhf (Depends-on): Likewise.
4376         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4377         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4378         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4379         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4380         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4381         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4382         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4383         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4384         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4385         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4386         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4387         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4388         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4389         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4390         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4391         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4392         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4393         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4394         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4395         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4396         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4397         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4398         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4399         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4400         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4401         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4402         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4403         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4404         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4405         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4406         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4407         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4408         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4409         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4410         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4411         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4412         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4413         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4414         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4415         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4416         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4417
4418 2012-03-06  Bruno Haible  <bruno@clisp.org>
4419
4420         math: Update module names in warnings.
4421         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4422         tanl): Use specific module name in warn-on-use warning.
4423
4424 2012-03-06  Bruno Haible  <bruno@clisp.org>
4425
4426         expl: Simplify computation.
4427         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4428
4429 2012-03-05  Bruno Haible  <bruno@clisp.org>
4430
4431         exp* tests: More tests.
4432         * tests/test-exp.h: New file.
4433         * tests/test-exp.c: Include <float.h> and test-exp.h.
4434         (main): Invoke test_function.
4435         * tests/test-expf.c: Include <float.h> and test-exp.h.
4436         (main): Invoke test_function.
4437         * tests/test-expl.c: Include <float.h> and test-exp.h.
4438         (main): Invoke test_function.
4439         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4440         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4441         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4442         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4443         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4444         (Depends-on): Add 'float'.
4445         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4446
4447         expl: Fix precision of computed result.
4448         * lib/expl.c: Completely rewritten.
4449         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4450         (Maintainer): Add me.
4451         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4452
4453 2012-03-05  Bruno Haible  <bruno@clisp.org>
4454
4455         cbrt* tests: More tests.
4456         * tests/test-cbrt.h: New file.
4457         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4458         (main): Invoke test_function.
4459         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4460         (main): Invoke test_function.
4461         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4462         (main): Invoke test_function.
4463         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4464         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4465         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4466         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4467         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4468         (Depends-on): Add 'float'.
4469         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4470
4471 2012-03-05  Bruno Haible  <bruno@clisp.org>
4472
4473         hypot* tests: More tests.
4474         * tests/test-hypot.h: New file, partially extracted from
4475         tests/test-hypotl.c.
4476         * tests/test-hypot.c: Include test-hypot.h.
4477         (main): Invoke test_function.
4478         * tests/test-hypotf.c: Include test-hypot.h.
4479         (main): Invoke test_function.
4480         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4481         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4482         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4483         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4484         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4485         tests/randomf.c.
4486         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4487         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4488         tests/randoml.c.
4489         (Depends-on): Add 'fpucw', 'float'.
4490         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4491
4492 2012-03-05  Bruno Haible  <bruno@clisp.org>
4493
4494         fpucw: Doc about FreeBSD.
4495         * lib/fpucw.h: Mention FreeBSD in comments.
4496
4497 2012-03-04  Bruno Haible  <bruno@clisp.org>
4498
4499         sqrt* tests: More tests.
4500         * tests/test-sqrt.h: New file.
4501         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4502         (main): Invoke test_function.
4503         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4504         (main): Invoke test_function.
4505         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4506         (main): Invoke test_function.
4507         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4508         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4509         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4510         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4511         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4512         (Depends-on): Add 'float'.
4513         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4514
4515 2012-03-04  Bruno Haible  <bruno@clisp.org>
4516
4517         remainder* tests: More tests.
4518         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4519         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4520         (main): Invoke test_function.
4521         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4522         (main): Invoke test_function.
4523         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4524         (main): Invoke test_function.
4525         * modules/remainder-tests (Files): Add tests/test-remainder.h,
4526         tests/randomd.c.
4527         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
4528         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
4529         tests/randomf.c.
4530         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
4531         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
4532         tests/randoml.c.
4533         (Depends-on): Add 'float'.
4534         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
4535
4536 2012-03-04  Bruno Haible  <bruno@clisp.org>
4537
4538         remainder, remainderf, remainderl: Fix computation for large quotients.
4539         * lib/remainder.c: Completely rewritten.
4540         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
4541         USE_FLOAT.
4542         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
4543         USE_LONG_DOUBLE.
4544         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
4545         isnand, isinf. Remove round, fma.
4546         * modules/remainderf (Files): Add lib/remainder.c.
4547         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
4548         Remove roundf, fmaf.
4549         * modules/remainderl (Files): Add lib/remainder.c.
4550         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
4551         isinf. Remove roundl, fmal.
4552         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
4553         REMAINDER_LIBM.
4554         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
4555         REMAINDERF_LIBM.
4556         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
4557         REMAINDERL_LIBM.
4558
4559 2012-03-04  Bruno Haible  <bruno@clisp.org>
4560
4561         fmod* tests: More tests.
4562         * tests/test-fmod.h (my_ldexp): New function.
4563         (test_function): Reduce amount of random numbers to test. Add tests
4564         of very large quotients x / y.
4565         * tests/test-fmod.c (MAX_EXP): New macro.
4566         * tests/test-fmodf.c (MAX_EXP): Likewise.
4567         * tests/test-fmodl.c (MAX_EXP): Likewise.
4568
4569 2012-03-04  Bruno Haible  <bruno@clisp.org>
4570
4571         fmod, fmodl: Fix computation for large quotients x / y.
4572         * lib/fmod.c: Completely rewritten.
4573         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
4574         USE_LONG_DOUBLE.
4575         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
4576         isnand. Remove fma.
4577         * modules/fmodl (Files): Add lib/fmod.c.
4578         (Depends-on): Add float, isfinite, signbit, fabsl,
4579         frexpl, ldexpl, isnanl. Remove fma.
4580         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
4581         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
4582
4583 2012-03-03  Bruno Haible  <bruno@clisp.org>
4584
4585         fmod* tests: More tests.
4586         * tests/test-fmod.h: New file.
4587         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
4588         (main): Invoke test_function.
4589         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
4590         (main): Invoke test_function.
4591         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
4592         (main): Invoke test_function.
4593         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
4594         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
4595         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
4596         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
4597         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
4598         (Depends-on): Add 'float'.
4599         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
4600
4601 2012-03-03  Bruno Haible  <bruno@clisp.org>
4602
4603         rint* tests: More tests.
4604         * tests/test-rint.h: New file, partially extracted from
4605         tests/test-rintl.c.
4606         * tests/test-rint.c: Include test-rint.h.
4607         (main): Invoke test_function.
4608         * tests/test-rintf.c: Include test-rint.h.
4609         (main): Invoke test_function.
4610         * tests/test-rintl.c: Include test-rint.h.
4611         (main): Invoke test_function.
4612         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
4613         (Makefile.am): Add randomd.c to test_rint_SOURCES.
4614         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
4615         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
4616         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
4617         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
4618
4619 2012-03-03  Bruno Haible  <bruno@clisp.org>
4620
4621         modf* tests: More tests.
4622         * tests/test-modf.h: New file.
4623         * tests/test-modf.c: Include <float.h> and test-modf.h.
4624         (main): Invoke test_function.
4625         * tests/test-modff.c: Include <float.h> and test-modf.h.
4626         (main): Invoke test_function.
4627         * tests/test-modfl.c: Include <float.h> and test-modf.h.
4628         (main): Invoke test_function.
4629         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
4630         (Makefile.am): Add randomd.c to test_modf_SOURCES.
4631         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
4632         (Makefile.am): Add randomf.c to test_modff_SOURCES.
4633         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
4634         (Depends-on): Add 'float'.
4635         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
4636
4637 2012-03-03  Bruno Haible  <bruno@clisp.org>
4638
4639         fabs* tests: More tests.
4640         * tests/test-fabs.h: New file, partially extracted from
4641         tests/test-fabsl.c.
4642         * tests/test-fabs.c (RANDOM): New macro.
4643         * tests/test-fabsf.c (RANDOM): New macro.
4644         * tests/test-fabsl.c (RANDOM): New macro.
4645         * modules/fabs-tests (Files): Add tests/randomd.c.
4646         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
4647         * modules/fabsf-tests (Files): Add tests/randomf.c.
4648         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
4649         * modules/fabsl-tests (Files): Add tests/randoml.c.
4650         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
4651
4652 2012-03-03  Bruno Haible  <bruno@clisp.org>
4653
4654         ldexp* tests: More tests.
4655         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
4656         * tests/test-ldexp.c (RANDOM): New macro.
4657         * tests/test-ldexpf.c (RANDOM): New macro.
4658         * tests/test-ldexpl.c (RANDOM): New macro.
4659         * modules/ldexp-tests (Files): Add tests/randomd.c.
4660         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
4661         * modules/ldexpf-tests (Files): Add tests/randomf.c.
4662         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
4663         * modules/ldexpl-tests (Files): Add tests/randoml.c.
4664         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
4665
4666 2012-03-03  Bruno Haible  <bruno@clisp.org>
4667
4668         frexp* tests: More tests.
4669         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
4670         * tests/test-frexp.c (RANDOM): New macro.
4671         * tests/test-frexpf.c (RANDOM): New macro.
4672         * tests/test-frexpl.c (RANDOM): New macro.
4673         * modules/frexp-tests (Files): Add tests/randomd.c.
4674         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
4675         * modules/frexpf-tests (Files): Add tests/randomf.c.
4676         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
4677         * modules/frexpl-tests (Files): Add tests/randoml.c.
4678         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
4679
4680 2012-03-03  Bruno Haible  <bruno@clisp.org>
4681
4682         Support for pseudo-random numbers in tests.
4683         * tests/randomf.c: New file.
4684         * tests/randomd.c: New file.
4685         * tests/randoml.c: New file.
4686         * tests/macros.h (randomf, randomd, randoml): New declarations.
4687
4688 2012-03-03  Bruno Haible  <bruno@clisp.org>
4689
4690         frexp* tests: Refactor.
4691         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
4692         * tests/test-frexp.c: Include and use it.
4693         * tests/test-frexpf.c: Likewise.
4694         * tests/test-frexpl.c: Likewise.
4695         * modules/frexp-tests (Files): Add tests/test-frexp.h.
4696         * modules/frexpf-tests (Files): Likewise.
4697         * modules/frexpl-tests (Files): Likewise.
4698
4699 2012-03-02  Jim Meyering  <meyering@redhat.com>
4700
4701         maint: don't specify XZ_OPT=-9ev in dist-related rule
4702         Using xz's -9 option is warranted only if you have a very large
4703         tarball (see xz's documentation for the sizes vs. presets), and
4704         requires 64MiB of memory at decompression time.
4705         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
4706         Automake's default of just "-e" is fine.  Override on a
4707         per-package basis by setting XZ_OPT e.g., in cfg.mk.
4708
4709 2012-03-01  Eric Blake  <eblake@redhat.com>
4710
4711         maint.mk: allow announcement for non-gnulib project
4712         * maint.mk (announcement): Skip gnulib version if not used.
4713
4714 2012-03-01  Jim Meyering  <meyering@redhat.com>
4715
4716         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
4717         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
4718         envvar settings cannot interfere.  Otherwise, setting envvars like
4719         prohibit=foo require=bar, etc. would cause spurious test failures.
4720
4721 2012-03-01  Eric Blake  <eblake@redhat.com>
4722
4723         maint.mk: add per-line exclusions to prohibitions
4724         * maint.mk (_sc_search_regexp): Add $exclude parameter.
4725         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
4726         (sc_const_long_option): Use it.
4727
4728 2012-03-01  Bruno Haible  <bruno@clisp.org>
4729
4730         Tests for module 'expl-ieee'.
4731         * modules/expl-ieee-tests: New file.
4732         * tests/test-expl-ieee.c: New file.
4733
4734         New module 'expl-ieee'.
4735         * modules/expl-ieee: New file.
4736
4737         Tests for module 'exp-ieee'.
4738         * modules/exp-ieee-tests: New file.
4739         * tests/test-exp-ieee.c: New file.
4740
4741         New module 'exp-ieee'.
4742         * modules/exp-ieee: New file.
4743
4744         Tests for module 'expf-ieee'.
4745         * modules/expf-ieee-tests: New file.
4746         * tests/test-expf-ieee.c: New file.
4747         * tests/test-exp-ieee.h: New file.
4748
4749         New module 'expf-ieee'.
4750         * modules/expf-ieee: New file.
4751
4752 2012-02-29  Bruno Haible  <bruno@clisp.org>
4753
4754         cbrtl-ieee: Work around test failure on IRIX 6.5.
4755         * m4/cbrtl-ieee.m4: New file.
4756         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
4757         test whether cbrtl works with a minus zero argument. Replace it if not.
4758         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
4759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
4760         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
4761         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
4762         (Depends-on): Update conditions.
4763         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
4764         m4/signbit.m4.
4765         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
4766         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
4767         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
4768
4769         Tests for module 'cbrtl-ieee'.
4770         * modules/cbrtl-ieee-tests: New file.
4771         * tests/test-cbrtl-ieee.c: New file.
4772
4773         New module 'cbrtl-ieee'.
4774         * modules/cbrtl-ieee: New file.
4775
4776         Tests for module 'cbrt-ieee'.
4777         * modules/cbrt-ieee-tests: New file.
4778         * tests/test-cbrt-ieee.c: New file.
4779
4780         New module 'cbrt-ieee'.
4781         * modules/cbrt-ieee: New file.
4782
4783         Tests for module 'cbrtf-ieee'.
4784         * modules/cbrtf-ieee-tests: New file.
4785         * tests/test-cbrtf-ieee.c: New file.
4786         * tests/test-cbrt-ieee.h: New file.
4787
4788         New module 'cbrtf-ieee'.
4789         * modules/cbrtf-ieee: New file.
4790
4791 2012-02-29  Bruno Haible  <bruno@clisp.org>
4792
4793         cbrtf: Work around bug in IRIX 6.5 system function.
4794         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
4795         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
4796         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
4797         work.
4798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
4799         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
4800         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
4801         (Depends-on): Update conditions.
4802         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
4803
4804 2012-02-29  Bruno Haible  <bruno@clisp.org>
4805
4806         Tests for module 'cbrtl'.
4807         * modules/cbrtl-tests: New file.
4808         * tests/test-cbrtl.c: New file.
4809
4810         New module 'cbrtl'.
4811         * lib/math.in.h (cbrtl): New declaration.
4812         * lib/cbrtl.c: New file.
4813         * m4/cbrtl.m4: New file.
4814         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
4815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
4816         HAVE_DECL_CBRTL.
4817         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
4818         HAVE_DECL_CBRTL.
4819         * modules/cbrtl: New file.
4820         * tests/test-math-c++.cc: Check the declaration of cbrtl.
4821         * doc/posix-functions/cbrtl.texi: Mention the new module.
4822
4823 2012-02-29  Bruno Haible  <bruno@clisp.org>
4824
4825         Tests for module 'cbrtf'.
4826         * modules/cbrtf-tests: New file.
4827         * tests/test-cbrtf.c: New file.
4828
4829         New module 'cbrtf'.
4830         * lib/math.in.h (cbrtf): New declaration.
4831         * lib/cbrtf.c: New file.
4832         * m4/cbrtf.m4: New file.
4833         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
4834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
4835         HAVE_DECL_CBRTF.
4836         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
4837         HAVE_DECL_CBRTF.
4838         * modules/cbrtf: New file.
4839         * tests/test-math-c++.cc: Check the declaration of cbrtf.
4840         * doc/posix-functions/cbrtf.texi: Mention the new module.
4841
4842 2012-02-29  Bruno Haible  <bruno@clisp.org>
4843
4844         cbrt: Provide replacement on MSVC and Minix.
4845         * lib/math.in.h (cbrt): New declaration.
4846         * lib/cbrt.c: New file.
4847         * m4/cbrt.m4: New file.
4848         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
4849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
4850         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
4851         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
4852         (Depends-on): Add dependencies.
4853         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
4854         * tests/test-math-c++.cc: Check the declaration of cbrt.
4855         * doc/posix-functions/cbrt.texi: Mention that the module provides a
4856         replacement.
4857
4858 2012-02-29  Bruno Haible  <bruno@clisp.org>
4859
4860         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
4861         * m4/hypotl-ieee.m4: New file.
4862         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
4863         test whether hypotl works with mixed NaN and Infinity arguments.
4864         Replace it if not.
4865         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
4866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
4867         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
4868         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
4869         (Depends-on): Update conditions.
4870         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
4871         (Depends-on): Add hypot-ieee.
4872         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
4873         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
4874
4875         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
4876         * m4/hypotf-ieee.m4: New file.
4877         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
4878         test whether hypotf works with mixed NaN and Infinity arguments.
4879         Replace it if not.
4880         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
4881         (Depends-on): Add hypot-ieee.
4882         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
4883         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
4884
4885         hypot-ieee: Work around test failure on OSF/1 and native Windows.
4886         * lib/math.in.h (hypot): New declaration.
4887         * lib/hypot.c: New file.
4888         * m4/hypot-ieee.m4: New file.
4889         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
4890         whether hypot works with mixed NaN and Infinity arguments. Replace it
4891         if not.
4892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
4893         REPLACE_HYPOT.
4894         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
4895         * modules/hypot (Files): Add lib/hypot.c.
4896         (Depends-on): Add dependencies.
4897         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
4898         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
4899         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
4900         * tests/test-math-c++.cc: Check the declaration of hypot.
4901         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
4902
4903         Tests for module 'hypotl-ieee'.
4904         * modules/hypotl-ieee-tests: New file.
4905         * tests/test-hypotl-ieee.c: New file.
4906
4907         New module 'hypotl-ieee'.
4908         * modules/hypotl-ieee: New file.
4909
4910         Tests for module 'hypot-ieee'.
4911         * modules/hypot-ieee-tests: New file.
4912         * tests/test-hypot-ieee.c: New file.
4913
4914         New module 'hypot-ieee'.
4915         * modules/hypot-ieee: New file.
4916
4917         Tests for module 'hypotf-ieee'.
4918         * modules/hypotf-ieee-tests: New file.
4919         * tests/test-hypotf-ieee.c: New file.
4920         * tests/test-hypot-ieee.h: New file.
4921
4922         New module 'hypotf-ieee'.
4923         * modules/hypotf-ieee: New file.
4924
4925 2012-02-29  Bruno Haible  <bruno@clisp.org>
4926
4927         Remove unused variables.
4928         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
4929         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4930         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4931         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4932
4933 2012-02-29  Eric Blake  <eblake@redhat.com>
4934
4935         termios: fix pid_t always, not just for tcgetsid
4936         * doc/posix-headers/termios.texi (termios.h): Mention problem.
4937         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
4938         just when building tcgetsid.
4939
4940 2012-02-29  Bruno Haible  <bruno@clisp.org>
4941
4942         Tests for module 'hypotl'.
4943         * modules/hypotl-tests: New file.
4944         * tests/test-hypotl.c: New file.
4945
4946         New module 'hypotl'.
4947         * lib/math.in.h (hypotl): New declaration.
4948         * lib/hypotl.c: New file.
4949         * m4/hypotl.m4: New file.
4950         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
4952         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
4953         * modules/hypotl: New file.
4954         * tests/test-math-c++.cc: Check the hypotl declaration.
4955         * doc/posix-functions/hypotl.texi: Mention the new module.
4956
4957 2012-02-29  Eric Blake  <eblake@redhat.com>
4958
4959         tcgetsid: fix cygwin header bug
4960         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
4961
4962         docs: update cygwin progress
4963         * doc/posix-functions/llround.texi (llround): Added in cygwin
4964         1.7.8.
4965         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
4966         * doc/glibc-functions/program_invocation_name.texi
4967         (program_invocation_name): Likewise.
4968         * doc/glibc-functions/program_invocation_short_name.texi
4969         (program_invocation_short_name): Likewise.
4970         * doc/glibc-functions/madvise.texi (madvise): Likewise.
4971         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
4972         Likewise.
4973         * doc/posix-functions/pthread_spin_destroy.texi
4974         (pthread_spin_destroy): Added in cygwin 1.7.10.
4975         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
4976         Likewise.
4977         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
4978         Likewise.
4979         * doc/posix-functions/pthread_spin_trylock.texi
4980         (pthread_spin_trylock): Likewise.
4981         * doc/posix-functions/pthread_spin_unlock.texi
4982         (pthread_spin_unlock): Likewise.
4983         * doc/posix-functions/pthread_setschedprio.texi
4984         (pthread_setschedprio): Likewise.
4985         * doc/posix-functions/pthread_attr_getstack.texi
4986         (pthread_attr_getstack): Likewise.
4987         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
4988         (pthread_attr_getstackaddr): Likewise.
4989         * doc/glibc-functions/pthread_getattr_np.texi
4990         (pthread_getattr_np): Likewise.
4991         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
4992         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
4993         * doc/posix-functions/clock_settime.texi (clock_settime):
4994         Likewise.
4995         * doc/posix-functions/pthread_attr_getguardsize.texi
4996         (pthread_attr_getguardsize): Likewise.
4997         * doc/posix-functions/pthread_attr_setguardsize.texi
4998         (pthread_attr_setguardsize): Likewise.
4999         * doc/posix-functions/pthread_attr_setstack.texi
5000         (pthread_attr_setstack): Likewise.
5001         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5002         (pthread_attr_setstackaddr): Likewise.
5003         * doc/posix-functions/clock_getcpuclockid.texi
5004         (clock_getcpuclockid): Likewise.
5005         * doc/posix-functions/pthread_getcpuclockid.texi
5006         (pthread_getcpuclockid): Likewise.
5007         * doc/glibc-functions/error.texi (error): Likewise.
5008         * doc/glibc-functions/error_at_line.texi (error_at_line):
5009         Likewise.
5010         * doc/glibc-functions/error_message_count.texi
5011         (error_message_count): Likewise.
5012         * doc/glibc-functions/error_one_per_line.texi
5013         (error_one_per_line): Likewise.
5014         * doc/glibc-functions/error_print_progname.texi
5015         (error_print_progname): Likewise.
5016         * doc/posix-functions/pthread_condattr_getclock.texi
5017         (pthread_condattr_getclock): Likewise.
5018         * doc/posix-functions/pthread_condattr_setclock.texi
5019         (pthread_condattr_setclock): Likewise.
5020         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5021         Likewise.
5022         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5023         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5024         * doc/glibc-functions/get_current_dir_name.texi
5025         (get_current_dir_name): Likewise.
5026         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5027         Likewise.
5028         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5029         wrong return type.
5030         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5031         1.7.11.
5032
5033 2012-02-29  Bruno Haible  <bruno@clisp.org>
5034
5035         Tests for module 'hypotf'.
5036         * modules/hypotf-tests: New file.
5037         * tests/test-hypotf.c: New file.
5038
5039         New module 'hypotf'.
5040         * lib/math.in.h (hypotf): New declaration.
5041         * lib/hypotf.c: New file.
5042         * m4/hypotf.m4: New file.
5043         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5045         REPLACE_HYPOTF.
5046         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5047         REPLACE_HYPOTF.
5048         * modules/hypotf: New file.
5049         * tests/test-math-c++.cc: Check the hypotf declaration.
5050         * doc/posix-functions/hypotf.texi: Mention the new module.
5051
5052         hypot: Prepare for hypotf module.
5053         * m4/hypot.m4: New file.
5054         * modules/hypot (Files): Add m4/hypot.m4.
5055         (configure.ac): Invoke gl_FUNC_HYPOT.
5056
5057 2012-02-29  Bruno Haible  <bruno@clisp.org>
5058
5059         hypot tests: More tests.
5060         * tests/test-hypot.c: Include <float.h>.
5061         (main): Add tests about overflow and underflow.
5062
5063 2012-02-29  Bruno Haible  <bruno@clisp.org>
5064
5065         math code: Add comments.
5066         * lib/acosl.c: Add comment about related glibc source files.
5067         * lib/asinl.c: Likewise.
5068         * lib/atanl.c: Likewise.
5069         * lib/expl.c: Likewise.
5070         * lib/logl.c: Likewise.
5071         * lib/sincosl.c: Likewise.
5072         * lib/sinl.c: Likewise.
5073         * lib/tanl.c: Likewise.
5074         * lib/trigl.c: Likewise.
5075         * lib/cosl.c: Likewise. Fix comments.
5076
5077 2012-02-28  Bruno Haible  <bruno@clisp.org>
5078
5079         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5080         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5081         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5082         HUGE_VALL are defined.
5083         (numeric_equald): Renamed from numeric_equal.
5084         (numeric_equalf, numeric_equall): New functions.
5085         (main): Check also HUGE_VALF, HUGE_VALL.
5086         * modules/math-tests (Files): Add tests/macros.h.
5087         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5088         HUGE_VALL.
5089
5090 2012-02-28  Bruno Haible  <bruno@clisp.org>
5091
5092         doc: Move ISO C11 feature notes into POSIX chapters.
5093         * doc/posix-functions/aligned_alloc.texi: Renamed from
5094         doc/glibc-functions/aligned_alloc.texi.
5095         * doc/posix-functions/quick_exit.texi: Renamed from
5096         doc/glibc-functions/quick_exit.texi.
5097         * doc/posix-headers/uchar.texi: Renamed from
5098         doc/glibc-headers/uchar.texi.
5099         * doc/posix-functions/c16rtomb.texi: Renamed from
5100         doc/glibc-functions/c16rtomb.texi.
5101         * doc/posix-functions/c32rtomb.texi: Renamed from
5102         doc/glibc-functions/c32rtomb.texi.
5103         * doc/posix-functions/mbrtoc16.texi: Renamed from
5104         doc/glibc-functions/mbrtoc16.texi.
5105         * doc/posix-functions/mbrtoc32.texi: Renamed from
5106         doc/glibc-functions/mbrtoc32.texi.
5107         * doc/gnulib.texi: Update.
5108         (Glibc uchar.h): Remove section.
5109         Suggested by Eric Blake.
5110
5111 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5112
5113         stdnoreturn: port to MSVC better
5114         MSVC standard headers use __declspec(noreturn), so #define noreturn
5115         to empty on that platform.  Reported by Bruno Haible in
5116         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5117         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5118         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5119
5120 2012-02-28  Bruno Haible  <bruno@clisp.org>
5121
5122         doc: Mention new glibc headers and functions.
5123         * doc/glibc-headers/uchar.texi: New file.
5124         * doc/glibc-functions/aligned_alloc.texi: New file.
5125         * doc/glibc-functions/c16rtomb.texi: New file.
5126         * doc/glibc-functions/c32rtomb.texi: New file.
5127         * doc/glibc-functions/clock_adjtime.texi: New file.
5128         * doc/glibc-functions/fanotify_init.texi: New file.
5129         * doc/glibc-functions/fanotify_mark.texi: New file.
5130         * doc/glibc-functions/inet6_opt_append.texi: New file.
5131         * doc/glibc-functions/inet6_opt_find.texi: New file.
5132         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5133         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5134         * doc/glibc-functions/inet6_opt_init.texi: New file.
5135         * doc/glibc-functions/inet6_opt_next.texi: New file.
5136         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5137         * doc/glibc-functions/inet6_rth_add.texi: New file.
5138         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5139         * doc/glibc-functions/inet6_rth_init.texi: New file.
5140         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5141         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5142         * doc/glibc-functions/inet6_rth_space.texi: New file.
5143         * doc/glibc-functions/login.texi: New file.
5144         * doc/glibc-functions/mbrtoc16.texi: New file.
5145         * doc/glibc-functions/mbrtoc32.texi: New file.
5146         * doc/glibc-functions/name_to_handle_at.texi: New file.
5147         * doc/glibc-functions/ntp_gettimex.texi: New file.
5148         * doc/glibc-functions/open_by_handle_at.texi: New file.
5149         * doc/glibc-functions/prlimit.texi: New file.
5150         * doc/glibc-functions/process_vm_readv.texi: New file.
5151         * doc/glibc-functions/process_vm_writev.texi: New file.
5152         * doc/glibc-functions/recvmmsg.texi: New file.
5153         * doc/glibc-functions/scandirat.texi: New file.
5154         * doc/glibc-functions/sendmmsg.texi: New file.
5155         * doc/glibc-functions/setns.texi: New file.
5156         * doc/glibc-functions/timespec_get.texi: New file.
5157         * doc/gnulib.texi: Include them.
5158         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5159         sections.
5160         Reported by Eric Blake.
5161
5162 2012-02-28  Bruno Haible  <bruno@clisp.org>
5163
5164         Avoid compilation errors with MSVC option -fp:strict.
5165         * lib/floor.c: Use MSVC specific pragma fenv_access.
5166         * lib/ceil.c: Likewise.
5167         * lib/trunc.c: Likewise.
5168         * lib/round.c: Likewise.
5169         * lib/rint.c: Likewise.
5170         * lib/fma.c: Likewise.
5171         * lib/integer_length.c: Likewise.
5172         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5173         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5174         * tests/test-floor2.c: Likewise.
5175         * tests/test-floorf2.c: Likewise.
5176         * tests/test-ceil2.c: Likewise.
5177         * tests/test-ceilf2.c: Likewise.
5178         * tests/test-trunc2.c: Likewise.
5179         * tests/test-truncf2.c: Likewise.
5180         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5181
5182 2012-02-27  Bruno Haible  <bruno@clisp.org>
5183
5184         Tests for module 'sqrtl-ieee'.
5185         * modules/sqrtl-ieee-tests: New file.
5186         * tests/test-sqrtl-ieee.c: New file.
5187
5188         New module 'sqrtl-ieee'.
5189         * modules/sqrtl-ieee: New file.
5190
5191         Tests for module 'sqrt-ieee'.
5192         * modules/sqrt-ieee-tests: New file.
5193         * tests/test-sqrt-ieee.c: New file.
5194
5195         New module 'sqrt-ieee'.
5196         * modules/sqrt-ieee: New file.
5197
5198         Tests for module 'sqrtf-ieee'.
5199         * modules/sqrtf-ieee-tests: New file.
5200         * tests/test-sqrtf-ieee.c: New file.
5201         * tests/test-sqrt-ieee.h: New file.
5202
5203         New module 'sqrtf-ieee'.
5204         * modules/sqrtf-ieee: New file.
5205
5206 2012-02-27  Bruno Haible  <bruno@clisp.org>
5207
5208         remainderl-ieee: Work around test failure on OSF/1.
5209         * m4/remainderl-ieee.m4: New file.
5210         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5211         present, test whether remainderl works with a zero second argument.
5212         Replace it if not.
5213         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5215         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5216         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5217         (Depends-on): Update conditions.
5218         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5219         (Depends-on): Add remainder-ieee.
5220         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5221         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5222         module.
5223
5224         remainderf-ieee: Work around test failure on OSF/1.
5225         * m4/remainderf-ieee.m4: New file.
5226         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5227         present, test whether remainderf works with a zero second argument.
5228         Replace it if not.
5229         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5231         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5232         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5233         (Depends-on): Update conditions.
5234         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5235         (Depends-on): Add remainder-ieee.
5236         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5237         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5238         module.
5239
5240         remainder-ieee: Work around test failure on OSF/1.
5241         * m4/remainder-ieee.m4: New file.
5242         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5243         present, test whether remainder works with a zero second argument.
5244         Replace it if not.
5245         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5247         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5248         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5249         (Depends-on): Update dependencies.
5250         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5251         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5252         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5253
5254         Tests for module 'remainderl-ieee'.
5255         * modules/remainderl-ieee-tests: New file.
5256         * tests/test-remainderl-ieee.c: New file.
5257
5258         New module 'remainderl-ieee'.
5259         * modules/remainderl-ieee: New file.
5260
5261         Tests for module 'remainder-ieee'.
5262         * modules/remainder-ieee-tests: New file.
5263         * tests/test-remainder-ieee.c: New file.
5264
5265         New module 'remainder-ieee'.
5266         * modules/remainder-ieee: New file.
5267
5268         Tests for module 'remainderf-ieee'.
5269         * modules/remainderf-ieee-tests: New file.
5270         * tests/test-remainderf-ieee.c: New file.
5271         * tests/test-remainder-ieee.h: New file.
5272
5273         New module 'remainderf-ieee'.
5274         * modules/remainderf-ieee: New file.
5275
5276 2012-02-27  Bruno Haible  <bruno@clisp.org>
5277
5278         modff, modfl: Fix configure syntax error.
5279         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5280         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5281
5282 2012-02-27  Bruno Haible  <bruno@clisp.org>
5283
5284         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5285         * m4/fmodl-ieee.m4: New file.
5286         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5287         whether fmodl works with zero arguments. Replace it if not.
5288         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5289         (Depends-on): Add fmod-ieee.
5290         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5291         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5292
5293         fmodf-ieee: Work around test failure on OSF/1.
5294         * m4/fmodf-ieee.m4: New file.
5295         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5296         whether fmodf works with zero arguments. Replace it if not.
5297         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5299         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5300         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5301         (Depends-on): Update dependencies.
5302         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5303         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5304         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5305
5306         fmodf-ieee: Work around test failure on MSVC 9.
5307         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5308         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5309
5310         fmod-ieee: Work around test failures on OSF/1, mingw.
5311         * m4/fmod-ieee.m4: New file.
5312         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5313         whether fmod works with zero arguments. Replace it if not.
5314         * lib/math.in.h (fmod): New declaration.
5315         * lib/fmod.c: New file.
5316         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5318         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5319         * modules/fmod (Files): Add lib/fmod.c.
5320         (Depends-on): Add math, isinf, trunc, fma.
5321         (configure.ac): Arrange to compile lib/fmod.c if needed.
5322         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5323         m4/signbit.m4.
5324         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5325         * tests/test-math-c++.cc: Check the declaration of fmod.
5326         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5327
5328         fmodl-ieee: Fix test failures.
5329         * lib/fmodl.c (fmodl): Treat Inf specially.
5330         * modules/fmodl (Depends-on): Add isinf.
5331
5332         Tests for module 'fmodl-ieee'.
5333         * modules/fmodl-ieee-tests: New file.
5334         * tests/test-fmodl-ieee.c: New file.
5335
5336         New module 'fmodl-ieee'.
5337         * modules/fmodl-ieee: New file.
5338
5339         Tests for module 'fmod-ieee'.
5340         * modules/fmod-ieee-tests: New file.
5341         * tests/test-fmod-ieee.c: New file.
5342
5343         New module 'fmod-ieee'.
5344         * modules/fmod-ieee: New file.
5345
5346         Tests for module 'fmodf-ieee'.
5347         * modules/fmodf-ieee-tests: New file.
5348         * tests/test-fmodf-ieee.c: New file.
5349         * tests/test-fmod-ieee.h: New file.
5350
5351         New module 'fmodf-ieee'.
5352         * modules/fmodf-ieee: New file.
5353
5354 2012-02-27  Bruno Haible  <bruno@clisp.org>
5355
5356         Tests for module 'rintl-ieee'.
5357         * modules/rintl-ieee-tests: New file.
5358         * tests/test-rintl-ieee.c: New file.
5359
5360         New module 'rintl-ieee'.
5361         * modules/rintl-ieee: New file.
5362
5363         Tests for module 'rint-ieee'.
5364         * modules/rint-ieee-tests: New file.
5365         * tests/test-rint-ieee.c: New file.
5366
5367         New module 'rint-ieee'.
5368         * modules/rint-ieee: New file.
5369
5370         Tests for module 'rintf-ieee'.
5371         * modules/rintf-ieee-tests: New file.
5372         * tests/test-rintf-ieee.c: New file.
5373         * tests/test-rint-ieee.h: New file.
5374
5375         New module 'rintf-ieee'.
5376         * modules/rintf-ieee: New file.
5377
5378 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5379
5380         regex: re_search etc. should return -2 when memory exhausted
5381         This bug was uncovered when testing 'grep'.  Without the fix,
5382         re_search and friends return -1 when memory is exhausted, but -1
5383         means no match, and this causes grep to falsely report no-match
5384         instead of memory-exhaustion.  See
5385         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5386         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5387         trouble; this can occur if re_search_internal ran out of memory.
5388
5389 2012-02-26  Bruno Haible  <bruno@clisp.org>
5390
5391         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5392         * m4/modfl-ieee.m4: New file.
5393         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5394         whether modfl works with Inf. Replace it if not.
5395         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5397         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5398         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5399         (Depends-on): Update dependencies.
5400         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5401         m4/signbit.m4.
5402         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5403         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5404
5405         modfl-ieee: Fix dependencies.
5406         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5407
5408         modfl-ieee: Fix test failures.
5409         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5410         * modules/modfl (Depends-on): Add isfinite, isinf.
5411
5412         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5413         * m4/modff-ieee.m4: New file.
5414         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5415         whether modff works with NaN and Inf. Replace it if not.
5416         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5418         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5419         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5420         (Depends-on): Update dependencies.
5421         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5422         m4/signbit.m4.
5423         (Depends-on): Add modf-ieee.
5424         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5425         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5426
5427         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5428         * m4/modf-ieee.m4: New file.
5429         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5430         whether modf works with NaN and Inf. Replace it if not.
5431         * lib/math.in.h (modf): New declaration.
5432         * lib/modf.c: New file.
5433         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5435         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5436         * modules/modf (Files): Add lib/modf.c.
5437         (Depends-on): Add math, isfinite, trunc, isinf.
5438         (configure.ac): Addrange to compile lib/modf.c if needed.
5439         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5440         m4/signbit.m4.
5441         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5442         * tests/test-math-c++.cc: Check the declaration of modf.
5443         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5444
5445         Tests for module 'modfl-ieee'.
5446         * modules/modfl-ieee-tests: New file.
5447         * tests/test-modfl-ieee.c: New file.
5448
5449         New module 'modfl-ieee'.
5450         * modules/modfl-ieee: New file.
5451
5452         Tests for module 'modf-ieee'.
5453         * modules/modf-ieee-tests: New file.
5454         * tests/test-modf-ieee.c: New file.
5455
5456         New module 'modf-ieee'.
5457         * modules/modf-ieee: New file.
5458
5459         Tests for module 'modff-ieee'.
5460         * modules/modff-ieee-tests: New file.
5461         * tests/test-modff-ieee.c: New file.
5462         * tests/test-modf-ieee.h: New file.
5463
5464         New module 'modff-ieee'.
5465         * modules/modff-ieee: New file.
5466
5467 2012-02-26  Bruno Haible  <bruno@clisp.org>
5468
5469         Tests for module 'fabsl-ieee'.
5470         * modules/fabsl-ieee-tests: New file.
5471         * tests/test-fabsl-ieee.c: New file.
5472
5473         New module 'fabsl-ieee'.
5474         * modules/fabsl-ieee: New file.
5475
5476         Tests for module 'fabs-ieee'.
5477         * modules/fabs-ieee-tests: New file.
5478         * tests/test-fabs-ieee.c: New file.
5479
5480         New module 'fabs-ieee'.
5481         * modules/fabs-ieee: New file.
5482
5483         Tests for module 'fabsf-ieee'.
5484         * modules/fabsf-ieee-tests: New file.
5485         * tests/test-fabsf-ieee.c: New file.
5486         * tests/test-fabs-ieee.h: New file.
5487
5488         New module 'fabsf-ieee'.
5489         * modules/fabsf-ieee: New file.
5490
5491 2012-02-26  Bruno Haible  <bruno@clisp.org>
5492
5493         Tests for module 'fmal-ieee'.
5494         * modules/fmal-ieee-tests: New file.
5495         * tests/test-fmal-ieee.c: New file.
5496
5497         New module 'fmal-ieee'.
5498         * modules/fmal-ieee: New file.
5499
5500         Tests for module 'fma-ieee'.
5501         * modules/fma-ieee-tests: New file.
5502         * tests/test-fma-ieee.c: New file.
5503
5504         New module 'fma-ieee'.
5505         * modules/fma-ieee: New file.
5506
5507         Tests for module 'fmaf-ieee'.
5508         * modules/fmaf-ieee-tests: New file.
5509         * tests/test-fmaf-ieee.c: New file.
5510         * tests/test-fma-ieee.h: New file.
5511
5512         New module 'fmaf-ieee'.
5513         * modules/fmaf-ieee: New file.
5514
5515 2012-02-26  Bruno Haible  <bruno@clisp.org>
5516
5517         Tests for module 'ldexpl-ieee'.
5518         * modules/ldexpl-ieee-tests: New file.
5519         * tests/test-ldexpl-ieee.c: New file.
5520
5521         New module 'ldexpl-ieee'.
5522         * modules/ldexpl-ieee: New file.
5523
5524         Tests for module 'ldexp-ieee'.
5525         * modules/ldexp-ieee-tests: New file.
5526         * tests/test-ldexp-ieee.c: New file.
5527
5528         New module 'ldexp-ieee'.
5529         * modules/ldexp-ieee: New file.
5530
5531         Tests for module 'ldexpf-ieee'.
5532         * modules/ldexpf-ieee-tests: New file.
5533         * tests/test-ldexpf-ieee.c: New file.
5534         * tests/test-ldexp-ieee.h: New file.
5535
5536         New module 'ldexpf-ieee'.
5537         * modules/ldexpf-ieee: New file.
5538
5539 2012-02-26  Bruno Haible  <bruno@clisp.org>
5540
5541         Refactor frexp*-ieee tests.
5542         * tests/test-frexp-ieee.h: New file.
5543         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
5544         (main): Just call test_function.
5545         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
5546         (main): Just call test_function.
5547         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
5548         (main): Just call test_function.
5549         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
5550         * modules/frexp-ieee-tests (Files): Likewise.
5551         * modules/frexpl-ieee-tests (Files): Likewise.
5552
5553         Tests for module 'frexpl-ieee'.
5554         * modules/frexpl-ieee-tests: New file.
5555         * tests/test-frexpl-ieee.c: New file.
5556
5557         New module 'frexpl-ieee'.
5558         * modules/frexpl-ieee: New file.
5559
5560         Tests for module 'frexp-ieee'.
5561         * modules/frexp-ieee-tests: New file.
5562         * tests/test-frexp-ieee.c: New file.
5563
5564         New module 'frexp-ieee'.
5565         * modules/frexp-ieee: New file.
5566
5567         Tests for module 'frexpf-ieee'.
5568         * modules/frexpf-ieee-tests: New file.
5569         * tests/test-frexpf-ieee.c: New file.
5570
5571         New module 'frexpf-ieee'.
5572         * modules/frexpf-ieee: New file.
5573
5574 2012-02-26  Bruno Haible  <bruno@clisp.org>
5575
5576         roundl-ieee tests: More tests.
5577         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5578         (main): Add tests for [MX] shaded specification in POSIX.
5579         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5580         (Depends-on): Add isnanl-nolibm.
5581
5582         round-ieee tests: More tests.
5583         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5584         (main): Add tests for [MX] shaded specification in POSIX.
5585         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5586         (Depends-on): Add isnand-nolibm.
5587
5588         roundf-ieee tests: More tests.
5589         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5590         (main): Add tests for [MX] shaded specification in POSIX.
5591         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5592         (Depends-on): Add isnanf-nolibm.
5593
5594         truncl-ieee tests: More tests.
5595         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5596         (main): Add tests for [MX] shaded specification in POSIX.
5597         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5598         (Depends-on): Add isnanl-nolibm.
5599
5600         trunc-ieee tests: More tests.
5601         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5602         (main): Add tests for [MX] shaded specification in POSIX.
5603         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5604         (Depends-on): Add isnand-nolibm.
5605
5606         truncf-ieee tests: More tests.
5607         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5608         (main): Add tests for [MX] shaded specification in POSIX.
5609         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5610         (Depends-on): Add isnanf-nolibm.
5611
5612         ceill-ieee tests: More tests.
5613         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5614         (main): Add tests for [MX] shaded specification in POSIX.
5615         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5616         (Depends-on): Add isnanl-nolibm.
5617
5618         ceil-ieee tests: More tests.
5619         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5620         (main): Add tests for [MX] shaded specification in POSIX.
5621         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5622         (Depends-on): Add isnand-nolibm.
5623
5624         ceilf-ieee tests: More tests.
5625         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5626         (main): Add tests for [MX] shaded specification in POSIX.
5627         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5628         (Depends-on): Add isnanf-nolibm.
5629
5630         floorl-ieee tests: More tests.
5631         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5632         (main): Add tests for [MX] shaded specification in POSIX.
5633         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5634         (Depends-on): Add isnanl-nolibm.
5635
5636         floor-ieee tests: More tests.
5637         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5638         (main): Add tests for [MX] shaded specification in POSIX.
5639         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5640         (Depends-on): Add isnand-nolibm.
5641
5642         floorf-ieee tests: More tests.
5643         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5644         (main): Add tests for [MX] shaded specification in POSIX.
5645         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5646         (Depends-on): Add isnanf-nolibm.
5647
5648 2012-02-26  Bruno Haible  <bruno@clisp.org>
5649
5650         fpieee: More comments.
5651         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
5652
5653 2012-02-25  Bruno Haible  <bruno@clisp.org>
5654
5655         Tests for module 'log10l'.
5656         * modules/log10l-tests: New file.
5657         * tests/test-log10l.c: New file.
5658         * tests/test-math-c++.cc: Check the declaration of log10l.
5659
5660         New module 'log10l'.
5661         * lib/math.in.h (log10l): New declaration.
5662         * lib/log10l.c: New file.
5663         * m4/log10l.m4: New file.
5664         * modules/log10l: New file.
5665         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
5666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
5667         HAVE_DECL_LOG10L.
5668         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
5669         HAVE_DECL_LOG10L.
5670         * doc/posix-functions/log10l.texi: Mention the new module.
5671
5672 2012-02-25  Bruno Haible  <bruno@clisp.org>
5673
5674         fmodl, remainder*: Avoid wrong results due to rounding errors.
5675         * lib/fmodl.c (fmodl): Correct the result if it is not within the
5676         expected bounds.
5677         * lib/remainderf.c (remainderf): Likewise.
5678         * lib/remainder.c (remainder): Likewise.
5679         * lib/remainderl.c (remainderl): Likewise.
5680
5681 2012-02-25  Bruno Haible  <bruno@clisp.org>
5682
5683         Tests for module 'remainderl'.
5684         * modules/remainderl-tests: New file.
5685         * tests/test-remainderl.c: New file.
5686         * tests/test-math-c++.cc: Check the declaration of remainderl.
5687
5688         New module 'remainderl'.
5689         * lib/math.in.h (remainderl): New declaration.
5690         * lib/remainderl.c: New file.
5691         * m4/remainderl.m4: New file.
5692         * modules/remainderl: New file.
5693         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
5694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
5695         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
5696         HAVE_REMAINDERL.
5697         * doc/posix-functions/remainderl.texi: Mention the new module.
5698
5699 2012-02-25  Bruno Haible  <bruno@clisp.org>
5700
5701         Tests for module 'remainderf'.
5702         * modules/remainderf-tests: New file.
5703         * tests/test-remainderf.c: New file.
5704         * tests/test-math-c++.cc: Check the declaration of remainderf.
5705
5706         New module 'remainderf'.
5707         * lib/math.in.h (remainderf): New declaration.
5708         * lib/remainderf.c: New file.
5709         * m4/remainderf.m4: New file.
5710         * modules/remainderf: New file.
5711         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
5712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
5713         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
5714         HAVE_REMAINDERF.
5715         * doc/posix-functions/remainderf.texi: Mention the new module.
5716
5717 2012-02-25  Bruno Haible  <bruno@clisp.org>
5718
5719         remainder: Support for MSVC.
5720         * lib/math.in.h (remainder): New declaration.
5721         * lib/remainder.c: New file.
5722         * m4/remainder.m4: New file.
5723         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
5724         (Depends-on): Add math, round, fma.
5725         (configure.ac): Use results of gl_FUNC_REMAINDER.
5726         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
5727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
5728         HAVE_DECL_REMAINDER.
5729         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
5730         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
5731         * tests/test-math-c++.cc: Check the declaration of remainder.
5732         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
5733         problems are fixed.
5734
5735 2012-02-25  Bruno Haible  <bruno@clisp.org>
5736
5737         Tests for module 'fmodl'.
5738         * modules/fmodl-tests: New file.
5739         * tests/test-fmodl.c: New file.
5740         * tests/test-math-c++.cc: Check the declaration of fmodl.
5741
5742         New module 'fmodl'.
5743         * lib/math.in.h (fmodl): New declaration.
5744         * lib/fmodl.c: New file.
5745         * m4/fmodl.m4: New file.
5746         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
5747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
5748         REPLACE_FMODL.
5749         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
5750         REPLACE_FMODL.
5751         * modules/fmodl: New file.
5752         * doc/posix-functions/fmodl.texi: Mention the new module.
5753
5754 2012-02-25  Bruno Haible  <bruno@clisp.org>
5755
5756         Tests for module 'modfl'.
5757         * modules/modfl-tests: New file.
5758         * tests/test-modfl.c: New file.
5759         * tests/test-math-c++.cc: Check the declaration of modfl.
5760
5761         New module 'modfl'.
5762         * lib/math.in.h (modfl): New declaration.
5763         * lib/modfl.c: New file.
5764         * m4/modfl.m4: New file.
5765         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
5766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
5767         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
5768         * modules/modfl: New file.
5769         * doc/posix-functions/modfl.texi: Mention the new module.
5770
5771 2012-02-25  Bruno Haible  <bruno@clisp.org>
5772
5773         Tests for module 'fabsl'.
5774         * modules/fabsl-tests: New file.
5775         * tests/test-fabsl.c: New file.
5776         * tests/test-math-c++.cc: Check the declaration of fabsl.
5777
5778         New module 'fabsl'.
5779         * lib/math.in.h (fabsl): New declaration.
5780         * lib/fabsl.c: New file.
5781         * m4/fabsl.m4: New file.
5782         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
5783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
5784         REPLACE_FABSL.
5785         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
5786         REPLACE_FABSL.
5787         * modules/fabsl: New file.
5788         * doc/posix-functions/fabsl.texi: Mention the new module.
5789
5790 2012-02-25  Bruno Haible  <bruno@clisp.org>
5791
5792         fabs tests: More tests.
5793         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
5794         (zero): New variable.
5795         (main): Add tests for signed zero.
5796         * modules/fabs-tests (Files): Add tests/minus-zero.h.
5797
5798         fabsf tests: More tests.
5799         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
5800         (zero): New variable.
5801         (main): Add tests for signed zero.
5802         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
5803
5804 2012-02-24  Bruno Haible  <bruno@clisp.org>
5805
5806         atanl: Provide function definition on MSVC.
5807         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
5808         function pointer.
5809         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
5810
5811 2012-02-24  Bruno Haible  <bruno@clisp.org>
5812
5813         acosl: Provide function definition on MSVC.
5814         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
5815         function pointer.
5816         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
5817
5818 2012-02-24  Bruno Haible  <bruno@clisp.org>
5819
5820         asinl: Provide function definition on MSVC.
5821         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
5822         function pointer.
5823         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
5824
5825 2012-02-24  Bruno Haible  <bruno@clisp.org>
5826
5827         tanl: Provide function definition on MSVC.
5828         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
5829         function pointer.
5830         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
5831
5832 2012-02-24  Bruno Haible  <bruno@clisp.org>
5833
5834         cosl: Provide function definition on MSVC.
5835         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
5836         function pointer.
5837         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
5838
5839 2012-02-24  Bruno Haible  <bruno@clisp.org>
5840
5841         sinl: Provide function definition on MSVC.
5842         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
5843         function pointer.
5844         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
5845
5846 2012-02-24  Bruno Haible  <bruno@clisp.org>
5847
5848         logl: Provide function definition on MSVC.
5849         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
5850         function pointer.
5851         * lib/math.in.h (logl): Undefine if it does not exist as a function.
5852
5853 2012-02-24  Bruno Haible  <bruno@clisp.org>
5854
5855         expl: Provide function definition on MSVC.
5856         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
5857         function pointer.
5858         * lib/math.in.h (expl): Undefine if it does not exist as a function.
5859
5860 2012-02-24  Bruno Haible  <bruno@clisp.org>
5861
5862         sqrtl: Provide function definition on MSVC.
5863         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
5864         a function pointer.
5865         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
5866
5867 2012-02-24  Bruno Haible  <bruno@clisp.org>
5868
5869         ceill: Provide function definition on MSVC.
5870         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
5871         used as a function pointer.
5872         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
5873
5874 2012-02-24  Bruno Haible  <bruno@clisp.org>
5875
5876         floorl: Provide function definition on MSVC.
5877         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
5878         used as a function pointer.
5879         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
5880
5881 2012-02-24  Bruno Haible  <bruno@clisp.org>
5882
5883         ceilf: Provide function definition on MSVC.
5884         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
5885         used as a function pointer.
5886         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
5887
5888 2012-02-24  Bruno Haible  <bruno@clisp.org>
5889
5890         floorf: Provide function definition on MSVC.
5891         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
5892         used as a function pointer.
5893         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
5894
5895 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5896
5897         stdnoreturn: new module
5898         This implements a replacement for C11's <stdnoreturn.h>.
5899         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
5900         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
5901         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5902         * tests/test-stdnoreturn.c: New files.
5903
5904 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
5905
5906         regex: fix false multibyte matches in some regular expressions
5907         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
5908         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
5909         * lib/regex_internal.c (re_string_skip_chars):
5910         Fix miscomputation of remain_len that may cause incomplete
5911         multi-byte character and false match.
5912
5913 2012-02-24  Jim Meyering  <meyering@redhat.com>
5914
5915         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
5916         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
5917         uses with "==" *before* the call, e.g., 0 == strcmp (...)
5918         Remove now-unnecessary str''cmp obfuscation.
5919         Suggested by Akim Demaille.
5920
5921 2012-02-24  Bruno Haible  <bruno@clisp.org>
5922
5923         streq: Rename macro.
5924         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
5925         * NEWS: Mention the change.
5926         * lib/mbrtowc.c (mbrtowc): Update.
5927         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
5928         * lib/wcwidth.c (wcwidth): Update.
5929         Suggested by Akim Demaille and Jim Meyering.
5930
5931 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5932
5933         regex: fix typo in definition of MIN
5934         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
5935         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
5936
5937 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5938             Bruno Haible  <bruno@clisp.org>
5939
5940         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
5941         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
5942         entries into a stack-allocated buffer directly.
5943         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
5944
5945 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5946             Bruno Haible  <bruno@clisp.org>
5947
5948         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
5949
5950          - There were several instances of this pattern:
5951
5952              for (;;) {
5953                n = acl (f, GETACLCNT, 0, NULL);
5954                [ allocate an array A of size N ]
5955                if (acl (f, GETACL, n, a) == n)
5956                  break;
5957              }
5958
5959            This loop might never terminate if some other process is constantly
5960            manipulating the file's ACL.  The loop should be rewritten to
5961            terminate.
5962
5963          - The acl (... GETACLNT ...) call is merely an optimization; its value
5964            is merely a hint as to how big to make the array.  A better
5965            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
5966            and just guess a reasonably-big size, growing the size and trying
5967            again if it's not large enough.  This guarantees termination, and
5968            saves a system call.
5969
5970         * lib/acl-internal.h: Include <limits.h>.
5971         (MIN, SIZE_MAX): New macros.
5972         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
5973         a stack-allocated buffer, and use malloc if it does not fit. Don't
5974         use GETACLCNT.
5975         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5976
5977 2012-02-19  Bruno Haible  <bruno@clisp.org>
5978
5979         acl: Fix endless loop on Solaris with vxfs.
5980         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
5981         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
5982         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5983         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
5984         * tests/test-sameacls.c (main)[Solaris]: Likewise.
5985         Reported by Bill Jones in
5986         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
5987
5988 2012-02-19  Bruno Haible  <bruno@clisp.org>
5989
5990         acl: Fix copy-acl test failure on Solaris 11 2011-11.
5991         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
5992         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
5993         that this function returns 0 in some more cases.
5994
5995 2012-02-19  Bruno Haible  <bruno@clisp.org>
5996
5997         acl: Update doc references.
5998         * doc/acl-resources.txt: Update links to Solaris documentation.
5999
6000 2012-02-19  Bruno Haible  <bruno@clisp.org>
6001
6002         Fix test failure in many locales on Solaris 11.
6003         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6004         'tr' arguments.
6005         * tests/test-pipe-filter-ii1.c (main): Likewise.
6006         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6007         expressions in the C locale.
6008         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6009         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6010
6011 2012-02-19  Bruno Haible  <bruno@clisp.org>
6012
6013         gnulib-tool: Improve usage message.
6014         * gnulib-tool (func_usage): Move doc of --help and --version to the
6015         section "Operation modes".
6016
6017 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6018
6019         README-release: make it easier to execute commands
6020         * top/README-release: break commands out on to separate lines.
6021
6022 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6023
6024         GNUmakefile: simplify detection of unconfigured trees
6025         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6026         whether the tree make is being run from is already configured or
6027         not.  Related simplifications.
6028
6029 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6030
6031         * gnulib-tool (func_usage): Document --help and --version.
6032
6033 2012-02-11  Jim Meyering  <meyering@redhat.com>
6034
6035         bootstrap: don't exit 0 upon gnulib-tool failure
6036         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6037         its exit status, not 0.
6038
6039 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6040
6041         README-release: various improvements
6042         * top/README-release: Give a command to push changes for the
6043         release.  Add "distcheck" to list of other pre-release checks.
6044         Fix instance of "make stable" which should be "make TYPE".
6045
6046 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6047
6048         maint: replace FSF snail-mail addresses with URLs
6049         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6050         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6051         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6052         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6053         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6054         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6055         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6056         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6057         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6058         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6059         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6060         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6061         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6062         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6063         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6064         * lib/glthread/thread.c, lib/glthread/thread.h:
6065         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6066         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6067         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6068         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6069         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6070         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6071         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6072         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6073         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6074         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6075         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6076         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6077         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6078         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6079         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6080         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6081         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6082         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6083         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6084         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6085         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6086         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6087         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6088         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6089         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6090         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6091         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6092         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6093         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6094         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6095         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6096         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6097         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6098         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6099         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6100         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6101         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6102         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6103         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6104         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6105         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6106         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6107         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6108         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6109         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6110         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6111         * tests/test-poll.c, tests/test-quotearg-simple.c:
6112         * tests/test-quotearg.c, tests/test-quotearg.h:
6113         * tests/test-round-ieee.c, tests/test-round1.c:
6114         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6115         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6116         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6117         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6118         * tests/test-strerror.c, tests/test-strerror_r.c:
6119         * tests/test-strsignal.c, tests/test-strverscmp.c:
6120         * tests/test-xmemdup0.c:
6121         Replace FSF snail mail addresses with URLs, as per GNU coding
6122         standards.  See glibc bug
6123         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6124
6125 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6126
6127         README-release: capitalize a word and split a line
6128         * top/README-release: Fix punctuation and spacing.
6129
6130 2012-02-08  Akim Demaille  <demaille@gostai.com>
6131
6132         fatal-signal: use C prototypes (with explicit void).
6133         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6134         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6135
6136 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6137
6138         regex: spelling fix
6139         * lib/regexec.c: spelling fix
6140
6141         regex: rely on stdint.h for SIZE_MAX
6142         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6143
6144 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6145
6146         regex: merge glibc changes
6147
6148         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6149         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6150         (init_word_char): Work even if bitset words are not exactly 32 or
6151         64 bits wide.  Don't assume there are no padding bits.
6152         * lib/regex.c [_LIBC]: Do not include <config.h>.
6153         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6154         and -Wtype-limits.
6155         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6156         needless disagreement with glibc.  All uses changed.  Define it to
6157         1 only if _GNU_SOURCE, to match glibc.
6158         (_REG_RM_NAME): Remove; no longer needed, since the names in
6159         question are now all protected by __USE_GNU.
6160         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6161         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6162         * lib/regex_internal.h (MIN): New macro.
6163
6164         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6165         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6166
6167         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6168         * lib/regex_internal.c (re_string_fetch_byte_case):
6169         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6170         is miscompiled, and it turns out it is because of an incorrect
6171         attribute on re_string_fetch_byte_case.  Unlike
6172         re_string_peek_byte_case, this one is really not pure, it modifies
6173         memory (increments pstr->cur_idx), and with the pure attribute GCC
6174         assumed it doesn't and it cached the presumed value of
6175         regexp->cur_idx in a variable across the
6176          for (;; ++i)
6177            {
6178              if (i >= BRACKET_NAME_BUF_SIZE)
6179                return REG_EBRACK;
6180              if (token->type == OP_OPEN_CHAR_CLASS)
6181                ch = re_string_fetch_byte_case (regexp);
6182              else
6183                ch = re_string_fetch_byte (regexp);
6184              if (re_string_eoi(regexp))
6185                return REG_EBRACK;
6186              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6187                break;
6188              elem->opr.name[i] = ch;
6189            }
6190
6191         2011-11-29 Andreas Schwab <schwab@redhat.com>
6192         * lib/regcomp.c (build_equiv_class):
6193         Fix access after end of search string in regex matcher.
6194
6195         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6196         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6197
6198         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6199         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6200
6201         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6202         * lib/regcomp.c (parse_branch, parse_sub_exp):
6203         More regex memory leak fixes and tests.
6204         (parse_sub_exp, parse_bracket_exp):
6205         Fix memory leak for some invalid regular expressions.
6206
6207         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6208         * lib/regex_internal.c, lib/regexec.c:
6209         Fix unnecessary overallocation due to incomplete character.  When
6210         incomplete characters are found at the end of a string the code
6211         ran amok and allocated lots of memory.  Stricter limits are now in
6212         place.
6213
6214         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6215         * lib/regex.h: Update documentation.
6216
6217         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6218         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6219
6220         2010-05-05 Andreas Schwab <schwab@redhat.com>
6221         * lib/regexec.c (find_collation_sequence_value):
6222         Fix lookup of collation sequence value during regexp matching.
6223
6224         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6225         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6226
6227         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6228         * lib/regex.h: Cleanup namespace.
6229
6230         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6231         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6232
6233         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6234         * lib/regex_internal.h: Prevent some declarations and definitions
6235         to be seen when used in tests.
6236
6237         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6238         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6239         __libc_lock_* macros if not _LIBC.
6240         (struct re_dfa_t): Add lock.
6241
6242 2012-02-07  Eric Blake  <eblake@redhat.com>
6243
6244         maint.mk: also prohibit lower-case @var@
6245         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6246         lower case, like @top_srcdir@.
6247
6248 2012-02-04  Eric Blake  <eblake@redhat.com>
6249
6250         canonicalize: avoid uninitialized memory use
6251         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6252         random '/' left in dest.
6253         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6254
6255 2012-02-04  Bruno Haible  <bruno@clisp.org>
6256
6257         isatty: Fix test failure of ptsname_r on native Windows.
6258         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6259         and don't set errno.
6260         (isatty): Test first whether fd is valid. Set errno when returning 0.
6261
6262 2012-02-04  Bruno Haible  <bruno@clisp.org>
6263
6264         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6265         * tests/test-spawn-pipe-main.c: Include progname.h.
6266         (main): Invoke set_program_name.
6267         * modules/spawn-pipe-tests (Depends-on): Add progname.
6268
6269         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6270         * tests/test-nonblocking-socket-main.c: Include progname.h.
6271         (main): Invoke set_program_name.
6272         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6273
6274         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6275         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6276         (main): Invoke set_program_name.
6277         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6278
6279 2012-02-04  Eric Blake  <eblake@redhat.com>
6280
6281         canonicalize-lgpl: fix // handling
6282         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6283
6284         canonicalize: fix // handling
6285         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6286         /// to //, since only // is special.
6287
6288 2012-02-04  Bruno Haible  <bruno@clisp.org>
6289
6290         ioctl: Fix test failure on native Windows.
6291         * lib/ioctl.c: Include msvc-nothrow.h.
6292         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6293
6294 2012-02-04  Bruno Haible  <bruno@clisp.org>
6295
6296         fsync: Avoid test failure on native Windows.
6297         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6298         read-only.
6299
6300 2012-02-04  Bruno Haible  <bruno@clisp.org>
6301
6302         sys_select: Avoid syntax error on OpenBSD 5.0.
6303         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6304         currently being included, just include the system's <sys/select.h>.
6305
6306 2012-02-04  Bruno Haible  <bruno@clisp.org>
6307
6308         sys_select: Avoid syntax error on OpenBSD 5.0.
6309         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6310         <sys/select.h>, not before.
6311         Reported by Jiri B <jirib@devio.us>.
6312
6313 2012-02-04  Bruno Haible  <bruno@clisp.org>
6314
6315         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6316         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6317         global variables.
6318         * tests/test-get-rusage-data.c (main): Likewise.
6319         Reported by Jim Meyering.
6320
6321 2012-02-04  Bruno Haible  <bruno@clisp.org>
6322
6323         stdioext: Fix last commit.
6324         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6325
6326 2012-02-03  Bruno Haible  <bruno@clisp.org>
6327
6328         stdioext: Add tentative support for Plan9.
6329         * lib/stdio-impl.h: Include <errno.h>.
6330         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6331         * lib/freadable.c (freadable): Likewise.
6332         * lib/fwritable.c (fwritable): Likewise.
6333         * lib/fbufmode.c (fbufmode): Likewise.
6334         * lib/freading.c (freading): Likewise.
6335         * lib/fwriting.c (fwriting): Likewise.
6336         * lib/freadptr.c (freadptr): Likewise.
6337         * lib/freadseek.c (freadptrinc): Likewise.
6338         * lib/freadahead.c (freadahead): Likewise.
6339         * lib/fpurge.c (fpurge): Likewise.
6340         * lib/fseeko.c (rpl_fseeko): Likewise.
6341         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6342         Reported by Jens Staal <staal1978@gmail.com>.
6343
6344 2012-02-02  Jim Meyering  <meyering@redhat.com>
6345
6346         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6347         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6348         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6349         not even to try to add the attribute.  Instead, add a pragma to suppress
6350         the suggestion/warning.
6351
6352 2012-01-31  Karl Berry  <karl@gnu.org>
6353
6354         setstate doc: typo.
6355         * doc/posix-functions/setstate.texi (setstate): { not (.
6356
6357 2012-01-31  Bruno Haible  <bruno@clisp.org>
6358
6359         popen: Make more robust on Windows.
6360         * lib/popen.c: On native Windows, use the _popen based code even if
6361         HAVE_POPEN is set.
6362         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6363         environment variable on native Windows.
6364
6365 2012-01-30  Bruno Haible  <bruno@clisp.org>
6366
6367         pclose: Fix typo.
6368         * lib/stdio.in.h (pclose): Fix typo in warning message.
6369
6370 2012-01-30  Bruno Haible  <bruno@clisp.org>
6371
6372         doc about getlogin_r, setstate.
6373         * doc/posix-functions/getlogin_r.texi: List the incompatible
6374         declaration problem under "not fixed by gnulib".
6375         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6376         problem on Solaris 11 and other platforms.
6377
6378 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6379             Bruno Haible  <bruno@clisp.org>
6380
6381         poll tests: Make test more robust.
6382         * tests/test-poll.c: Include macros.h.
6383         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6384         return value of various I/O operations.
6385         * modules/poll-tests (Files): Add tests/macros.h.
6386
6387 2012-01-30  Bruno Haible  <bruno@clisp.org>
6388
6389         sys_stat: Fix support for mingw64 and MSVC.
6390         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6391         header files already do it.
6392         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6393         stat itself.
6394         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6395
6396 2012-01-30  Bruno Haible  <bruno@clisp.org>
6397
6398         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6400         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6401
6402 2012-01-29  Bruno Haible  <bruno@clisp.org>
6403
6404         quotearg: Fix test failure on MacOS X 10.5.
6405         * tests/test-quotearg-simple.c: Include localcharset.h.
6406         (main): If the locale encoding is not ASCII, bypass the tests of
6407         locale_quoting_style and clocale_quoting_style.
6408         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6409
6410 2012-01-29  Jim Meyering  <meyering@redhat.com>
6411
6412         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6413         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6414         detect uses of canonicalize_file_name.
6415
6416 2012-01-28  Bruno Haible  <bruno@clisp.org>
6417
6418         test-framework-sh: Fix test failure with AIX 7.1 diff.
6419         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6420         in column 1, like 'diff -c' does.
6421         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6422         whether 'diff -u' is used. Instead, test whether the output contains
6423         some '@' character.
6424
6425 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6426
6427         strtoimax: eliminate need for stdint.h, inttypes.h checks
6428         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6429         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6430         the prerequisites for a recently-introduced strtoimax test.
6431         I guess this might cause strtoimax to be replaced when not
6432         strictly necessary on older hosts, but this shouldn't introduce
6433         any bugs and it should make Emacs 'configure' faster on typical
6434         modern hosts.  Problem discovered when importing the latest gnulib
6435         to an Emacs test version.
6436         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6437
6438 2012-01-28  Bruno Haible  <bruno@clisp.org>
6439
6440         sys_time: Override 'struct timeval' on some native Windows platforms.
6441         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6442         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6443         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6444         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6445         needs to be overridden.
6446         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6447         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6448         * tests/test-sys_select.c: Check that the tv_sec member has the same
6449         size as a 'time_t'.
6450         * tests/test-sys_time.c: Likewise.
6451         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6452         is set, set also REPLACE_GETTIMEOFDAY.
6453         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6454         convert the resulting 'struct timeval' before returning.
6455         * lib/select.c: Include <sys/time.h>.
6456         (select, timeval): Undefine at the right place.
6457         * modules/select (Depends-on): Add sys_time.
6458         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6459         some Windows platforms.
6460         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6461
6462 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6463
6464         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6465         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6466         an integer.
6467         * lib/fcntl.c (dupfd): Likewise.
6468         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6469
6470 2012-01-28  Bruno Haible  <bruno@clisp.org>
6471
6472         fcntl: Avoid compilation error on native Windows.
6473         * modules/fcntl (Depends-on): Add 'close'.
6474
6475 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6476
6477         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6478         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6479         pointer to an integer.
6480         * lib/poll.c (IsConsoleHandle): Likewise.
6481         * lib/isatty.c (IsConsoleHandle): Likewise.
6482
6483 2012-01-28  Jim Meyering  <meyering@redhat.com>
6484
6485         doc: clarify README-release
6486         * top/README-release: Clarify: you should make a point to have
6487         the latest stable versions of build tools in your PATH, and the
6488         reference to buildreq is solely for its list of tool names, not
6489         for its minimal-functional version numbers.
6490         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6491
6492         maint.mk: use more readable (yet functionally equivalent) quoting
6493         It is common to quote a single quote in a single quoted string like
6494         this:  '...'\''...'.  Unless you know the idiom, that looks like
6495         gibberish, so prefer to double-quote the string when possible.
6496         Then you can use a more readable, lone single quote: "...'..."
6497         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6498         "don't" is more readable than the equivalent 'don'\''t'.
6499         (sc_cast_of_x_alloc_return_value): Likewise.
6500         (sc_cast_of_alloca_return_value): Likewise.
6501         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6502         rather than '\'':'\''.
6503
6504 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6505
6506         stdalign: relax _Alignof and tighten _Alignas test
6507         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6508         as it was too strict: alignof must divide offsetof, but it need
6509         not equal offsetof.  Inspired by Joseph S. Myers's comment
6510         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6511         Conversely, tighten the _Alignas test a bit, as the resulting
6512         alignment must be exactly 8.
6513
6514 2012-01-27  Bruno Haible  <bruno@clisp.org>
6515
6516         stdalign: Document the last change.
6517         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6518
6519 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6520
6521         stdalign: check that alignof and offsetof are consistent
6522         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6523         Problem reported for gnulib by Richard W.M. Jones in
6524         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6525
6526 2012-01-27  Jim Meyering  <meyering@redhat.com>
6527
6528         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
6529         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
6530         convert a sequence with gaps to the minimal containing range.
6531         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
6532         * tests/test-update-copyright.sh: Test for this.
6533         The FSF confirmed it is ok to do this, assuming there is at
6534         least one significant change per year in the affected range:
6535         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
6536
6537 2012-01-26  Bruno Haible  <bruno@clisp.org>
6538
6539         pipe2: refine doc about thread-safety
6540         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
6541         multithread-safety problem.
6542         * doc/glibc-functions/accept4.texi: Likewise.
6543
6544 2012-01-26  Bruno Haible  <bruno@clisp.org>
6545
6546         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
6547         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
6548         In the test program, include <fcntl.h>, for O_RDONLY.
6549
6550 2012-01-26  Eric Blake  <eblake@redhat.com>
6551
6552         pipe2: document lack of thread-safety in replacement
6553         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
6554         issue in replacement.
6555         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6556         Based on a report by Eric Wong.
6557
6558 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6559             Bruno Haible  <bruno@clisp.org>
6560
6561         malloca: Avoid warnings on x86_64 mingw64.
6562         * lib/malloca.c: Include <stdint.h>.
6563         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
6564         * modules/malloca (Depends-on): Add stdint.
6565         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
6566
6567 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6568
6569         obstack: remove __STDC__ conditionals
6570         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
6571         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
6572         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
6573         m4/include_next.m4 as the only gnulib-maintained places that still
6574         refer to __STDC__.
6575
6576 2012-01-24  Bruno Haible  <bruno@clisp.org>
6577
6578         havelib: Modern quoting.
6579         * build-aux/config.rpath: Quote 'like this', not `like this', as per
6580         the recent change to the GNU coding standards.
6581
6582 2012-01-24  Bruno Haible  <bruno@clisp.org>
6583
6584         stdint: Improve support for Android.
6585         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
6586         Reported by Simon Josefsson <simon@josefsson.org>.
6587
6588 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6589
6590         doc: omit trailing empty lines from INSTALL etc.
6591         * doc/Makefile (INSTALL): Omit trailing empty lines.
6592         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
6593         omit trailing empty lines.  This simplifies the build procedure.
6594
6595 2012-01-23  Jim Meyering  <meyering@redhat.com>
6596
6597         tests: avoid spurious warnings about gl_sockets_startup
6598         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
6599         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
6600         reporting a "statement with no effect".
6601         * tests/test-accept.c (main): Mark as "(void)".
6602         * tests/test-accept4.c (main): Likewise.
6603         * tests/test-bind.c (main): Likewise.
6604         * tests/test-connect.c (main): Likewise.
6605         * tests/test-getpeername.c (main): Likewise.
6606         * tests/test-getsockname.c (main): Likewise.
6607         * tests/test-getsockopt.c (main): Likewise.
6608         * tests/test-listen.c (main): Likewise.
6609         * tests/test-recv.c (main): Likewise.
6610         * tests/test-recvfrom.c (main): Likewise.
6611         * tests/test-send.c (main): Likewise.
6612         * tests/test-sendto.c (main): Likewise.
6613         * tests/test-setsockopt.c (main): Likewise.
6614         * tests/test-shutdown.c (main): Likewise.
6615
6616 2012-01-21  Bruno Haible  <bruno@clisp.org>
6617
6618         locale-fr.m4: Fix for Android.
6619         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
6620         failure of the test program on Bionic libc.
6621
6622 2012-01-21  Jim Meyering  <meyering@redhat.com>
6623
6624         bootstrap: fail when bootstrap_post_import_hook fails
6625         Otherwise, it's far too easy to miss diagnostics emitted
6626         between gnulib-tool's output and that of running configure.
6627         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
6628
6629 2012-01-17  Jim Meyering  <meyering@redhat.com>
6630
6631         maint: enable sc_trailing_blank
6632         * build-aux/pmccabe.css: Remove trailing blanks.
6633         * doc/acl-cygwin.txt: Likewise.
6634         * doc/gnu-oids.texi: Likewise
6635         * cfg.mk: Enable sc_trailing_blank.
6636         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
6637
6638 2012-01-17  Jim Meyering  <meyering@redhat.com>
6639
6640         maint: enable sc_prohibit_openat_without_use
6641         * cfg.mk: Enable sc_prohibit_openat_without_use.
6642         Exempt lib/selinux-at.c.
6643
6644 2012-01-17  Jim Meyering  <meyering@redhat.com>
6645
6646         maint: enable sc_prohibit_cloexec_without_use
6647         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
6648         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
6649
6650 2012-01-17  Jim Meyering  <meyering@redhat.com>
6651
6652         maint: enable sc_prohibit_intprops_without_use
6653         * cfg.mk: Enable sc_prohibit_intprops_without_use
6654         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
6655
6656 2012-01-17  Jim Meyering  <meyering@redhat.com>
6657
6658         maint: enable sc_prohibit_hash_pjw_without_use
6659         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
6660         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
6661         to match any use of \<hash_pjw\>, i.e., not necessarily with a
6662         following " (".
6663
6664 2012-01-17  Jim Meyering  <meyering@redhat.com>
6665
6666         maint: enable double-word-prohibiting rule
6667         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
6668         Exempt three files.
6669
6670 2012-01-17  Jim Meyering  <meyering@redhat.com>
6671
6672         maint: remove empty lines at EOF, but excluding modules/*
6673         Apply syntax rules at home as well as abroad.  Most changes
6674         were induced by running this:
6675           make srcdir=. _build-aux=build-aux -f top/maint.mk \
6676             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
6677             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
6678         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
6679         Exempt modules/* and two binary files.
6680         Also exempt doc/INSTALL*, per request from Bruno Haible.
6681         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
6682         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
6683         * doc/Copyright/request-assign.future: Likewise.
6684         * doc/Copyright/request-disclaim.changes: Likewise.
6685         * doc/INSTALL: Likewise.
6686         * doc/INSTALL.ISO: Likewise.
6687         * doc/INSTALL.UTF-8: Likewise.
6688         * doc/acl-cygwin.txt: Likewise.
6689         * doc/acl-resources.txt: Likewise.
6690         * doc/fdl-1.2.texi: Likewise.
6691         * doc/fdl-1.3.texi: Likewise.
6692         * doc/fdl.texi: Likewise.
6693         * lib/argp-pin.c: Likewise.
6694         * lib/round.c: Likewise.
6695         * lib/unicase/u16-totitle.c: Likewise.
6696         * lib/unictype/block_test.c: Likewise.
6697         * lib/uninorm/canonical-decomposition.c: Likewise.
6698         * m4/README: Likewise.
6699         * m4/relocatable-lib.m4: Likewise.
6700         * tests/test-isnand-nolibm.c: Likewise.
6701         * tests/test-isnand.c: Likewise.
6702         * tests/uninorm/NormalizationTest.txt: Likewise.
6703
6704 2012-01-17  Jim Meyering  <meyering@redhat.com>
6705
6706         maint: add framework to run syntax-check rules against gnulib sources
6707         * cfg.mk: New file, to disable all currently-failing tests.
6708         We'll enable them one by one, as they are made to pass.
6709         * Makefile (sc_maint): New rule.
6710
6711 2012-01-21  Bruno Haible  <bruno@clisp.org>
6712
6713         stdint: Add support for Android.
6714         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
6715         include the system's <stdint.h>.
6716         Reported by Simon Josefsson <simon@josefsson.org>.
6717
6718 2012-01-19  Jim Meyering  <meyering@redhat.com>
6719
6720         bootstrap: add bootstrap_post_import_hook
6721         Bison does still need something like the gnulib_mk_hook whose
6722         invocation I had to remove along with slurp in commit 767ccd40.
6723         Technically, we could get along without it, but doing so would
6724         have required living with a warning and a mandatory post-bootstrap
6725         automake rerun.
6726         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
6727         (bootstrap_post_import_hook): New function.
6728         Invoke it after gnulib-tool --import and before autoreconf.
6729
6730 2012-01-18  Jim Meyering  <meyering@redhat.com>
6731
6732         gitlog-to-changelog: don't use "no_"-prefixed variable name
6733         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
6734         to enable both --cluster and --no-cluster.  Change variable name,
6735         s/\$no_cluster/$cluster/, and reverse usage to match.
6736
6737         gitlog-to-changelog: use "||", not "or" in expressions
6738         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
6739         expressions.
6740
6741 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
6742
6743         gitlog-to-changelog: new option --no-cluster
6744         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
6745         clustering of adjacent commit messages.
6746
6747 2012-01-17  Jim Meyering  <meyering@redhat.com>
6748
6749         maint: spell file systems with two words, not one
6750         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
6751         two words, not one.
6752
6753 2012-01-16  Jim Meyering  <meyering@redhat.com>
6754
6755         bootstrap: add a FIXME comment to ensure we eventually remove the hack
6756         * build-aux/bootstrap (gnulib_tool_options): Add comment.
6757
6758 2012-01-16  Eric Blake  <eblake@redhat.com>
6759
6760         bootstrap: cater to autoconf 2.59
6761         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
6762         is not available.
6763
6764         bootstrap: properly check for libtool
6765         * build-aux/bootstrap (libtoolize): Also run libtool when older
6766         usage is detected.
6767
6768 2012-01-15  Bruno Haible  <bruno@clisp.org>
6769
6770         Improve support for MSVC 9.
6771         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
6772         clashes on MSVC.
6773         * lib/fcntl.in.h: Likewise.
6774         * lib/stdlib.in.h: Likewise.
6775         * lib/sys_stat.in.h: Likewise.
6776
6777 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
6778
6779         gnupload: we hold the master copy of this script now
6780         For motivation and more information, see:
6781         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
6782         * build-aux/gnupload: Make it clear in the heading comments that the
6783         master copy of this file is maintained by gnulib.  Since we are at
6784         it, bump its copyright year and ...
6785         ($scriptversion): ... the date in its version.
6786         ($usage): Patches and bug reports should be sent to the gnulib list,
6787         not the automake one.
6788         * config/srclist.txt: Don't try to sync 'gnupload' from automake
6789         anymore.
6790
6791 2012-01-15  Bruno Haible  <bruno@clisp.org>
6792
6793         Fix module 'random'.
6794         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
6795         initstate, setstate are declared.
6796
6797 2012-01-14  Bruno Haible  <bruno@clisp.org>
6798
6799         Tests for module 'random'.
6800         * modules/random-tests: New file.
6801         * tests/test-random.c: New file, based on tests/test-random_r.c.
6802
6803         New module 'random'.
6804         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
6805         declarations.
6806         * lib/random.c: New file, based on glibc/stdlib/random.c.
6807         * m4/random.m4: New file.
6808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
6809         HAVE_RANDOM.
6810         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
6811         * modules/random: New file.
6812         * config/srclist.txt: Add an entry for random.c.
6813         * doc/posix-functions/random.texi: Mention the 'random' module.
6814         * doc/posix-functions/initstate.texi: Likewise.
6815         * doc/posix-functions/setstate.texi: Likewise.
6816         * doc/posix-functions/srandom.texi: Likewise.
6817
6818 2012-01-12  Bruno Haible  <bruno@clisp.org>
6819
6820         random_r: Use common idioms.
6821         * lib/random_r.c: Include <stdlib.h> first.
6822
6823         random_r: Override incompatible API on AIX, OSF/1.
6824         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
6825         Override the system function if REPLACE_RANDOM_R is 1.
6826         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
6827         and OSF/1, set REPLACE_RANDOM_R.
6828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
6829         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
6830         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
6831         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
6832         * doc/glibc-functions/random_r.texi: Likewise.
6833         * doc/glibc-functions/setstate_r.texi: Likewise.
6834
6835         random_r: Support for MSVC 9.
6836         * lib/random_r.c: Include stdint.h, not inttypes.h.
6837
6838 2012-01-12  Eric Blake  <eblake@redhat.com>
6839
6840         inet_ntop: guard extra work by IF_LINT
6841         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
6842         better code generation when not checking for warnings.
6843         Suggested by Paul Eggert and Jim Meyering.
6844
6845         strptime: fix regression on mingw
6846         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
6847         Fix regression.  Reported by Bruno Haible.
6848
6849 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
6850             Bruno Haible  <bruno@clisp.org>
6851
6852         copy-file: add error-code-returning variant.
6853         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
6854         (qcopy_file_preserving): New declaration.
6855         * lib/copy-file.c (qcopy_file_preserving): Renamed from
6856         copy_file_preserving. Change return type to 'int'. Don't emit an error
6857         message here.
6858         (copy_file_preserving): New function.
6859         * tests/test-copy-file.c: Include <stdlib.h>.
6860         (main): Test qcopy_file_preserving if the environment variable
6861         NO_STDERR_OUTPUT is set.
6862         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
6863         with NO_STDERR_OUTPUT
6864         * tests/test-copy-file-2.sh: Likewise.
6865
6866 2012-01-10  Bruno Haible  <bruno@clisp.org>
6867
6868         copy-file: Use 'quote' module consistently.
6869         * lib/copy-file.c (copy_file_preserving): Use quote().
6870
6871         copy-file: Refactor.
6872         * lib/copy-file.c: Include quote.h.
6873         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
6874         message here.
6875         * modules/copy-file (Depends-on): Add quote.
6876
6877         acl: Export qcopy_acl.
6878         * lib/acl.h (qcopy_acl): New declaration.
6879         * lib/copy-acl.c (qcopy_acl): Make non-static.
6880
6881         acl: Rename a local variable.
6882         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
6883
6884         acl: Align return values of copy_acl and qcopy_acl.
6885         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
6886         maybe < -1.
6887
6888 2012-01-11  Eric Blake  <eblake@redhat.com>
6889
6890         strptime: silence gcc warnings
6891         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
6892         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
6893         Reported by Daniel P. Berrange.
6894
6895         inet_ntop: silence gcc warning
6896         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
6897         Reported by Daniel P. Berrange.
6898
6899 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
6900
6901         getloadavg test: skip the test on GNU/Linux without /proc mounted
6902         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
6903         file.  When /proc is not mounted, it always fails with ENOENT.
6904         * tests/test-getloadavg.c (main): Treat ENOENT return code from
6905         getloadavg(3) the same way as ENOSYS and ENOTSUP.
6906
6907 2012-01-10  Bruno Haible  <bruno@clisp.org>
6908
6909         regex: Avoid link error on MSVC 9.
6910         * modules/regex (Depends-on): Add wctype.
6911
6912 2012-01-10  Bruno Haible  <bruno@clisp.org>
6913
6914         doc: Mention --with-tests option.
6915         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
6916         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
6917         --with-tests.
6918         Reported by Reuben Thomas.
6919
6920 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
6921
6922         users.txt: order package names lexicographically.
6923         * users.txt: Order package names lexicographically.
6924
6925 2012-01-10  Jim Meyering  <meyering@redhat.com>
6926
6927         maint.mk: fix description in comment
6928         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
6929
6930         ignore-value: remove deprecated ignore_ptr function
6931         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
6932         * NEWS: Note this.
6933
6934 2012-01-09  Jim Meyering  <meyering@redhat.com>
6935
6936         test-init.sh: avoid a subshell
6937         * tests/test-init.sh: Remove protective subshell.
6938         Suggested by Bernhard Voelker.  While a subshell is normally
6939         required to protect against older shells (Solaris, FreeBSD) that
6940         warn about a missing program before performing redirection, the
6941         shell-selection tests performed by init.sh probably exclude any
6942         offending shell.
6943
6944 2012-01-08  Bruno Haible  <bruno@clisp.org>
6945
6946         setlocale tests: Avoid test failure on Solaris 11 2011-11.
6947         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
6948         variable.
6949
6950 2012-01-08  Bruno Haible  <bruno@clisp.org>
6951
6952         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
6953         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6954         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6955         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
6956         macro.
6957         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
6958         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6959         * lib/spawn_faction_addopen.c: Add workaround implementation if
6960         HAVE_WORKING_POSIX_SPAWN.
6961         * modules/spawn (Makefile): Substitute
6962         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6963         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
6964         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
6965         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6966         (Depends-on): Update conditions.
6967         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6968         the Solaris 11 bug.
6969
6970 2012-01-08  Bruno Haible  <bruno@clisp.org>
6971
6972         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
6973         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6974         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6975         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
6976         macro.
6977         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
6978         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6979         * lib/spawn_faction_adddup2.c: Add workaround implementation if
6980         HAVE_WORKING_POSIX_SPAWN.
6981         * modules/spawn (Makefile): Substitute
6982         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6983         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
6984         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
6985         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6986         (Depends-on): Update conditions.
6987         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6988         the Solaris 11 bug.
6989
6990 2012-01-08  Bruno Haible  <bruno@clisp.org>
6991
6992         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
6993         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6994         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6995         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
6996         HAVE_WORKING_POSIX_SPAWN.
6997         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
6998         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
6999         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7000         * lib/spawn_faction_addclose.c: Add workaround implementation if
7001         HAVE_WORKING_POSIX_SPAWN.
7002         * modules/spawn (Makefile): Substitute
7003         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7004         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7005         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7006         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7007         (Depends-on): Update conditions.
7008         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7009         the Solaris 11 bug.
7010
7011 2012-01-08  Bruno Haible  <bruno@clisp.org>
7012
7013         doc: Update for Solaris 11 2011-11.
7014         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7015         * m4/printf.m4: Update comments.
7016
7017 2012-01-08  Bruno Haible  <bruno@clisp.org>
7018
7019         mktime: Avoid compilation error on Solaris 11.
7020         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7021
7022 2012-01-08  Bruno Haible  <bruno@clisp.org>
7023
7024         doc: Small fix.
7025         * doc/posix-headers/nl_types.texi: Correct platforms list.
7026
7027 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7028
7029         Add lgpl-3.0 module.
7030         * MODULES.html.sh (Support for building documentation): Add
7031         lgpl-3.0.
7032         * modules/lgpl-3.0: New file.
7033
7034 2012-01-08  Jim Meyering  <meyering@redhat.com>
7035
7036         select.c: indent with spaces, not TABs
7037         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7038
7039 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7040
7041         quotearg: do not use grave accent for left quote
7042         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7043         locale_quoting_style.
7044         (quotearg_buffer_restyled): Fix example.
7045         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7046
7047 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7048
7049         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7050         Most programs do not have translation catalogs for English and much
7051         less separate catalogs for British and American English.  Drop the
7052         suggestion to translators about these two, and provide it
7053         automatically for Unicode locales.  Like most programs, even those
7054         using American English, we use single quotation marks.  This conflicts
7055         with the American typographic convention, but works better when you
7056         cite the entire error message within double quotes.  It also tries not
7057         to clash with established practice and with what non-gnulib programs
7058         will usually do.
7059         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7060         using an UTF-8 or GB-18030 locale.  The list of other locales with
7061         quotes was provided by Bruno Haible.
7062         (quotearg_buffer_restyled): Adjust instructions to translators.
7063         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7064         text, since this would be wrong when using Unicode.
7065         * modules/quotearg: Depend on c-strcaseeq.
7066
7067 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7068
7069         quotearg: fix Wikipedia link
7070         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7071
7072 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7073
7074         Fix for mingw with MSVC9.
7075         * m4/ld-version-script.m4: Check that compiler rejects version
7076         scripts with syntax errors.  Reported by Bruno Haible
7077         <bruno@clisp.org>.
7078
7079 2012-01-06  Bruno Haible  <bruno@clisp.org>
7080
7081         Talk about "native Windows API", not "Woe32".
7082         * lib/accept4.c: Update comments to mention native Windows.
7083         * lib/execute.c: Likewise.
7084         * lib/fatal-signal.c: Likewise.
7085         * lib/localcharset.c: Likewise.
7086         * lib/nanosleep.c: Likewise.
7087         * lib/nl_langinfo.c: Likewise.
7088         * lib/pclose.c: Likewise.
7089         * lib/pipe-filter-gi.c: Likewise.
7090         * lib/pipe-filter-ii.c: Likewise.
7091         * lib/pipe.c: Likewise.
7092         * lib/pipe2.c: Likewise.
7093         * lib/popen.c: Likewise.
7094         * lib/progreloc.c: Likewise.
7095         * lib/relocatable.c: Likewise.
7096         * lib/sigaction.c: Likewise.
7097         * lib/sigprocmask.c: Likewise.
7098         * lib/spawn-pipe.h: Likewise.
7099         * lib/spawn-pipe.c: Likewise.
7100         * lib/spawni.c: Likewise.
7101         * lib/stat-time.h: Likewise.
7102         * lib/w32spawn.h: Likewise.
7103         * tests/test-isatty.c: Likewise.
7104         * lib/config.charset: More comments.
7105         * doc/gnulib-intro.texi: Mention native Windows.
7106         * doc/posix-functions/_Exit_C99.texi: Likewise.
7107         * doc/posix-headers/fcntl.texi: Likewise.
7108
7109 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7110
7111         argp: Avoid crash if translator uses % characters in a translation.
7112         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7113         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7114
7115 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7116
7117         doc: C11 and C++11 are now official
7118         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7119         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7120         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7121         * modules/stdalign:
7122         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7123
7124 2012-01-06  Bruno Haible  <bruno@clisp.org>
7125
7126         uc-is-grapheme-break tests: Tweak.
7127         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7128         message.
7129
7130 2012-01-06  Bruno Haible  <bruno@clisp.org>
7131
7132         test-init.sh: correct the test for diff -u
7133         * tests/test-init.sh: Also redirect stdout to /dev/null.
7134
7135 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7136
7137         Use ', not `, for quoting output.
7138         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7139         (print_changelog_deltas, get_tool_versions, main program):
7140         * build-aux/git-version-gen:
7141         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7142         * build-aux/move-if-change (help):
7143         * build-aux/useless-if-before-free (usage, main program):
7144         * check-module (parse_module_file, usage)
7145         (find_included_lib_files, check_module):
7146         * lib/argmatch.c (main) [TEST]:
7147         * lib/argp-help.c (_help):
7148         * lib/getopt1.c (main) [TEST]:
7149         * lib/git-merge-changelog.c (usage):
7150         * lib/xstrtol-error.c (xstrtol_error):
7151         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7152         * m4/argz.m4 (gl_FUNC_ARGZ):
7153         * m4/bison.m4 (gl_BISON):
7154         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7155         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7156         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7157         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7158         * m4/gc-random.m4 (gl_GC_RANDOM):
7159         * m4/intl.m4 (gt_CHECK_DECL):
7160         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7161         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7162         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7164         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7165         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7166         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7167         * tests/test-dirname.c (main):
7168         * tests/test-getpass.c (main):
7169         * tests/test-iconvme.c (main):
7170         * tests/test-parse-datetime.c (LOG):
7171         * tests/test-xstrtoimax.sh:
7172         * tests/test-xstrtol.sh:
7173         * tests/test-xstrtoll.sh:
7174         * tests/test-xstrtoumax.sh:
7175         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7176         * top/GNUmakefile (abort-due-to-no-makefile):
7177         Quote 'like this', not `like this', as per the recent change to
7178         the GNU coding standards.
7179
7180 2012-01-05  Bruno Haible  <bruno@clisp.org>
7181
7182         strtoimax: Don't force a replacement on systems where intmax_t is int.
7183         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7184         'intmax_t' is not larger than 'int'.
7185         Reported by Pádraig Brady <P@draigBrady.com>.
7186
7187 2012-01-05  Bruno Haible  <bruno@clisp.org>
7188
7189         doc: Mention NetBSD bugs.
7190         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7191         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7192
7193 2012-01-05  Bruno Haible  <bruno@clisp.org>
7194
7195         strtoumax tests: Enhance tests.
7196         * tests/test-strtoumax.c (main): Add tests for large values.
7197
7198 2012-01-05  Bruno Haible  <bruno@clisp.org>
7199
7200         strtoimax: Work around AIX 5.1 bug.
7201         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7202         definition.
7203         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7204         Set HAVE_STRTOIMAX.
7205         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7206         REPLACE_STRTOIMAX.
7207         * modules/inttypes-incomplete (Makefile.am): Substitute
7208         REPLACE_STRTOIMAX.
7209         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7210         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7211         (Depends-on): Update conditions.
7212         * tests/test-strtoimax.c (main): Add tests for large values.
7213         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7214
7215 2012-01-05  Bruno Haible  <bruno@clisp.org>
7216
7217         inttypes: Modernize.
7218         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7219         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7220         (Makefile.am): Update inttypes.h rule.
7221
7222 2012-01-05  Jim Meyering  <meyering@redhat.com>
7223
7224         init.sh: don't waste a subshell just to redirect stderr
7225         * tests/init.sh: In testing for diff -u and diff -c, use a
7226         stderr-redirecting exec inside `...` rather than a subshell.
7227
7228         test-init.sh: avoid failure on HP-UX 11.00
7229         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7230         resolves to diff -c or cmp.  Reported by Bruno Haible.
7231
7232 2012-01-05  Bruno Haible  <bruno@clisp.org>
7233
7234         Tests for module 'strtoull'.
7235         * modules/strtoull-tests: New file.
7236         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7237
7238 2012-01-05  Bruno Haible  <bruno@clisp.org>
7239
7240         Tests for module 'strtoll'.
7241         * modules/strtoll-tests: New file.
7242         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7243
7244 2012-01-05  Bruno Haible  <bruno@clisp.org>
7245
7246         Tests for module 'strtoul'.
7247         * modules/strtoul-tests: New file.
7248         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7249
7250 2012-01-05  Bruno Haible  <bruno@clisp.org>
7251
7252         Tests for module 'strtol'.
7253         * modules/strtol-tests: New file.
7254         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7255
7256 2012-01-04  Jim Meyering  <meyering@redhat.com>
7257
7258         test-init.sh: accommodate Solaris 5.10's different diff -u output
7259         * tests/test-init.sh: Also exempt @@ lines from the comparison
7260         of diff output, since Solaris 5.10 and GNU diff formats differ.
7261         Reported by Stefano Lattarini.
7262
7263 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7264
7265         test-posixtm: don't assume signed integer wraparound
7266         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7267         after signed integer overflow.  Inspired by (though it may not
7268         fix) Bruno Haible's bug report in
7269         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7270
7271         Spell out "Windows 9x" and "Windows XP".
7272         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7273         "Windows 9x" and "WinXP" with "Windows XP".
7274
7275 2012-01-04  Jim Meyering  <meyering@redhat.com>
7276
7277         test-vc-list-files-cvs.sh: remove obsolete comment
7278         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7279         double exit.  Now that's all encapsulated via skip_ and Exit.
7280
7281 2012-01-04  Bruno Haible  <bruno@clisp.org>
7282
7283         Talk about "native Windows API", not "Win32".
7284         * lib/classpath.c: Update comments to mention native Windows.
7285         * lib/csharpexec.c: Likewise.
7286         * lib/dup2.c: Likewise.
7287         * lib/error.c: Likewise.
7288         * lib/fcntl.c: Likewise.
7289         * lib/filename.h: Likewise.
7290         * lib/findprog.c: Likewise.
7291         * lib/get-rusage-as.c: Likewise.
7292         * lib/get-rusage-data.c: Likewise.
7293         * lib/getpagesize.c: Likewise.
7294         * lib/javaexec.c: Likewise.
7295         * lib/msvc-inval.c: Likewise.
7296         * lib/msvc-nothrow.c: Likewise.
7297         * lib/nanosleep.c: Likewise.
7298         * lib/nonblocking.c: Likewise.
7299         * lib/printf-parse.c: Likewise.
7300         * lib/setlocale.c: Likewise.
7301         * lib/sigaction.c: Likewise.
7302         * lib/strerror_r.c: Likewise.
7303         * lib/tmpdir.c: Likewise.
7304         * lib/vasnprintf.c: Likewise.
7305         * lib/w32spawn.h: Likewise.
7306         * lib/waitpid.c: Likewise.
7307         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7308         * m4/locale-ar.m4: Likewise.
7309         * m4/locale-fr.m4: Likewise.
7310         * m4/locale-ja.m4: Likewise.
7311         * m4/locale-tr.m4: Likewise.
7312         * m4/locale-zh.m4: Likewise.
7313         * m4/printf.m4: Likewise.
7314         * tests/test-cloexec.c: Likewise.
7315         * tests/test-copy-acl.sh: Likewise.
7316         * tests/test-copy-file.sh: Likewise.
7317         * tests/test-file-has-acl.sh: Likewise.
7318         * tests/test-set-mode-acl.sh: Likewise.
7319         * tests/test-dup-safer.c: Likewise.
7320         * tests/test-dup2.c: Likewise.
7321         * tests/test-dup3.c: Likewise.
7322         * tests/test-fcntl.c: Likewise.
7323         * tests/test-nonblocking-pipe.h: Likewise.
7324         * tests/test-nonblocking-socket.h: Likewise.
7325         * tests/test-pipe.c: Likewise.
7326         * tests/test-pipe2.c: Likewise.
7327         * tests/test-spawn-pipe-child.c: Likewise.
7328         * doc/acl-resources.txt: Likewise.
7329         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7330         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7331         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7332         * lib/localcharset.c: Update comments to mention native Windows.
7333         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7334         * lib/localename.c: Likewise.
7335         * lib/progreloc.c: Likewise.
7336         * lib/relocatable.c: Likewise.
7337         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7338         (windows_compute_revents): Renamed from win32_compute_revents.
7339         (windows_compute_revents_socket): Renamed from
7340         win32_compute_revents_socket.
7341         * lib/select.c: Update comments to mention native Windows.
7342         (windows_poll_handle): Renamed from win32_poll_handle.
7343         * m4/threadlib.m4: Update comments to mention native Windows.
7344         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7345         --enable-threads=windows instead of --enable-threads=win32. Set
7346         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7347         * lib/glthread/lock.h: Update comments to mention native Windows.
7348         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7349         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7350         USE_WIN32_THREADS.
7351         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7352         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7353         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7354         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7355         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7356         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7357         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7358         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7359         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7360         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7361         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7362         * tests/test-tls.c: Likewise.
7363         Rationale:
7364         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7365         on both 32-bit and 64-bit Windows systems.
7366         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7367         line of distinction is between "native Windows" on one side and Unix/
7368         POSIX systems on the other side. More details in
7369         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7370         Suggested by Paul Eggert.
7371
7372 2012-01-03  Bruno Haible  <bruno@clisp.org>
7373
7374         isatty: Support for MSVC 9.
7375         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7376         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7377         (_isatty_nothrow): New function.
7378         (isatty): Use it instead of _isatty.
7379         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7380         * lib/poll.c (IsConsoleHandle): Likewise.
7381         * lib/select.c (IsConsoleHandle): Likewise.
7382         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7383         (gl_PREREQ_ISATTY): New macro.
7384         * modules/isatty (Depends-on): Add msvc-inval.
7385         (configure.ac): Invoke gl_PREREQ_ISATTY.
7386
7387 2012-01-03  Jim Meyering  <meyering@redhat.com>
7388
7389         maint.mk: remove temporary transition aid from over 1.5 years ago
7390         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7391         purpose was to aid in the transition (avoiding silent malfunction)
7392         from that old name to the new _sc_search_regexp.  This shim was
7393         added by commit 219c504b.
7394
7395         init.sh: do not try to accommodate compare arguments starting with "-"
7396         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7397         compare arguments that start with "-".  Besides, we do not worry
7398         about this when invoking diff or cmp; why start now with sed?
7399         Using "--" to separate options from argument would trigger sed
7400         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7401         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7402
7403 2012-01-02  Bruno Haible  <bruno@clisp.org>
7404
7405         Enhance tests for module 'isatty'.
7406         * modules/isatty-tests (Depends-on): Add pipe-posix.
7407         * tests/test-isatty.c: Include <fcntl.h>.
7408         (DEV_NULL): New macro.
7409         (main): Test the resut of isatty() also on regular files, pipes, and
7410         /dev/null.
7411
7412         New module 'isatty'.
7413         * lib/unistd.in.h (isatty): New declaration.
7414         * lib/isatty.c: New file, based on an idea of
7415         Bastien Roucariès <roucaries.bastien@gmail.com>.
7416         * m4/isatty.m4: New file.
7417         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7418         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7419         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7420         REPLACE_ISATTY.
7421         * modules/isatty: New file.
7422         * doc/posix-functions/isatty.texi: Mention the new module.
7423         Suggested by Paolo Bonzini.
7424
7425 2012-01-02  Bruno Haible  <bruno@clisp.org>
7426
7427         canonicalize: Tweak 2011-12-29 commit.
7428         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7429         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7430
7431 2012-01-02  Jim Meyering  <meyering@redhat.com>
7432
7433         gitlog-to-changelog: describe input syntax in --help output
7434         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7435
7436         gitlog-to-changelog: fix typo in --help: show backslash before email @
7437         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7438         in sources, but not in actual output.
7439
7440 2011-12-30  Jim Meyering  <meyering@redhat.com>
7441
7442         gitlog-to-changelog: don't malfunction when name contains %-directive
7443         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7444         in a name string cause trouble.  E.g., with a user name of "%s",
7445         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7446
7447 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7448
7449         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7450         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7451         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7452         the "  (tiny change)" notation that is appended to the standard
7453         ChangeLog "date  name  email" header line.
7454
7455 2012-01-01  Jim Meyering  <meyering@redhat.com>
7456
7457         test-framework-sh: init.sh: fix "make dist" failure
7458         When using gnulib-tool's --with-tests option and any module that
7459         depends on test-framework-sh, "make dist" would fail due to the
7460         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7461         in the gltests directory, and not in the gllib/ directory.
7462         One way to work around that is to move the EXTRA_DIST += init.sh
7463         from the primary module to the -tests one:
7464         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7465         * modules/test-framework-sh (Makefile.am): ...not here.
7466         Reported by Tom G. Christensen in
7467         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7468
7469         version-etc: update copyright year reported by --version
7470         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7471
7472 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7473
7474         canonicalize: only stat() if required
7475         * lib/canonicalize.c (canonicalize_filename_mode):
7476         Avoid calling l?stat() when both CAN_MISSING,
7477         and CAN_NOLINKS are set, as we neither need
7478         to resolve symlinks or test component existence.
7479
7480 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7481
7482         doc: cover st_ino issues once; add OpenVMS etc.
7483         * doc/posix-functions/stat.texi (stat):
7484         * doc/posix-functions/lstat.texi (lstat):
7485         * doc/posix-functions/fstatat.texi (fstatat):
7486         * doc/posix-functions/fstat.texi (fstat):
7487         Move general 'struct stat' stuff to sys_stat.texi,
7488         leaving behind a pointer.
7489         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7490         Merge duplicate info about 'struct stat' problems into here.
7491         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7492         and suggest partial workarounds.
7493
7494         same-inode: port to OpenVMS
7495         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7496         three st_ino values.
7497
7498 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7499
7500         canonicalize: fix references to stat() and lstat()
7501         * lib/canonicalize.c (canonicalize_filename_mode):
7502         Ensure references always resolve to a replacement
7503         function if required (even via a macro).
7504
7505 2011-12-30  Jim Meyering  <meyering@redhat.com>
7506
7507         gitlog-to-changelog: remove a little duplication
7508         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7509         rather than twice.
7510
7511 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7512
7513         canonicalize: add support for not resolving symlinks
7514         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7515         indicate we don't want to follow symlinks.  Also
7516         provide CAN_MODE_MASK to aid setting these existing
7517         mutually exclusive values.
7518         * lib/canonicalize.c (canonicalize_filename_mode):
7519         Extract the flags from can_mode parameter, which
7520         are currently just used to select between stat()
7521         and lstat().  Also ensure that mutually exclusive
7522         values are flagged immediately as invalid.
7523         * tests/test-canonicalize.c: Verify symlinks are
7524         not followed, and that invalid flag combinations
7525         are diagnosed.
7526
7527 2011-12-25  Jim Meyering  <meyering@redhat.com>
7528
7529         gitlog-to-changelog: do not clump multi-paragraph entries
7530         Identical header lines (date,name,email+coauthors) are suppressed,
7531         thus putting all entries with those same characteristics under
7532         a single header.  However, when a log entry consists of two or
7533         more paragraphs, it may not be clear where it starts and ends.
7534         This change makes it so that such an entry is always separated
7535         from others by a header line, even when that header would
7536         otherwise be suppressed.
7537         * build-aux/gitlog-to-changelog: Implement the above.
7538         Inspired by a related request from Stefano Lattarini in
7539         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
7540
7541 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7542
7543         announce-gen: fix `cmd' typo in diagnostic
7544         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
7545         diagnostic: a missing '$' meant that the command was not output.
7546
7547 2011-12-23  Jim Meyering  <meyering@redhat.com>
7548
7549         test-framework-sh: distribute init.sh
7550         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
7551         Otherwise, "make -C gnulib-tests check" (at least in grep) would
7552         fail due to the lack of init.sh.
7553
7554         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
7555         * modules/atexit-tests: Rather than listing tests/init.sh,
7556         now that there's a module for it, simply depend on that new module.
7557         * modules/closein-tests: Likewise.
7558         * modules/exclude-tests: Likewise.
7559         * modules/getcwd-tests: Likewise.
7560         * modules/perror-tests: Likewise.
7561         * modules/pread-tests: Likewise.
7562         * modules/pwrite-tests: Likewise.
7563         * modules/vc-list-files-tests: Likewise.
7564         * modules/verify-tests: Likewise.
7565         * modules/xalloc-die-tests: Likewise.
7566         * modules/xstrtoimax-tests: Likewise.
7567         * modules/xstrtol-tests: Likewise.
7568         * modules/xstrtoll-tests: Likewise.
7569         * modules/xstrtoumax-tests: Likewise.
7570         * modules/yesno-tests: Likewise.
7571
7572 2011-12-22  Jim Meyering  <meyering@redhat.com>
7573
7574         test-framework-sh: add minimal tests of init.sh's compare function
7575         * modules/test-framework-sh-tests: New file.
7576         * tests/test-init.sh: New file.
7577
7578         test-framework-sh: new module
7579         * modules/test-framework-sh: New file.
7580         * MODULES.html.sh (Support for maintaining and releasing projects):
7581         List it.
7582
7583         init.sh: do not emit simulated diff output to stderr
7584         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
7585
7586 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7587
7588         .gitignore: ignore gnulib.dvi and regex.info
7589         * doc/.gitignore:add gnulib.dvi and regex.info
7590
7591 2011-12-22  Jim Meyering  <meyering@redhat.com>
7592
7593         init.sh: correct previous change
7594         * tests/init.sh (compare): My previous change was wrong.
7595         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
7596
7597         init.sh: avoid unwarranted test failure when using "set -e"
7598         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
7599         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
7600         a use like "compare exp out" would get evoke an unconditional failure.
7601
7602 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
7603
7604         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
7605         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
7606         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
7607         autoreconf that did not.
7608         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
7609         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7610
7611 2011-12-17  Jim Meyering  <meyering@redhat.com>
7612
7613         bootstrap: remove some now-unneeded code
7614         This script arose back when gnulib-tool was young.
7615         Since then, it has seen improvements that render much of this
7616         script unnecessary.  In particular, it can now make symlinks
7617         to the files it uses.  Also, I no longer see as much value in
7618         marking files as read-only via comments.
7619         If you relied on the symlink-creation feature of the preceding
7620         version of this script, you can get most of that functionality
7621         by adding the --symlink option to the definition of
7622         gnulib_tool_option_extras in your bootstrap.conf file.
7623         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
7624         Run autopoint and libtoolize *before* gnulib-tool.
7625         After it, run an abbreviated autoreconf, rather than a loop around
7626         all tools.
7627         (slirp, bt_mark_as_generated): Remove functions.
7628
7629 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7630
7631         ftoastr: fix typo
7632         * lib/ftoastr.h: Fix misspelling in comment.
7633
7634 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
7635
7636         * top/README-release: fix punctuation.
7637
7638 2011-12-17  Jim Meyering  <meyering@redhat.com>
7639
7640         bootstrap: correct the recent buildreq change
7641         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
7642         had no effect.
7643         * build-aux/bootstrap (buildreq): Bracket each search term with
7644         "*...*", so that the shell "case" statement works as intended.
7645         Add comments.
7646
7647 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
7648
7649         build: let bootstrap resort to wget when downloading .po files
7650         * build-aux/bootstrap (download_po_files): Fallback to wget when
7651         downloading the .po files via rsync fails.  This is necessary to
7652         bootstrap from behind a strict firewall.
7653
7654 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7655
7656         stdint: don't assume C++11 when compiling with g++
7657         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
7658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
7659         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
7660         work also in C++ before C++11, as that improperly inhibits
7661         generating a substitute stdint.h for that case.
7662
7663 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7664
7665         alloca: protect comment from gnulib-tool
7666         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
7667         that gnulib-tool doesn't think it's a license, and munge it to
7668         say "GCC version 3".
7669
7670 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
7671
7672         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
7673         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
7674         $(abs_top_builddir) instead of $(top_builddir).
7675
7676 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
7677
7678         strftime-tests: also test nanoseconds
7679         * tests/test-strftime.c (T): Add a test of %N.
7680
7681 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
7682
7683         inttypes, stdint: add C++11 support
7684         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
7685         when including inttypes.h and stdint.h.  Support this change to
7686         the standard.
7687         * doc/posix-headers/inttypes.texi (inttypes.h):
7688         * doc/posix-headers/stdint.texi (stdint.h): Document this.
7689         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
7690         Define if not defined already, for the benefit of pre-C++11 hosts.
7691         Define the standard format macros (e.g., PRId8) always.
7692         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
7693         Likewise, if __cpluspus.  Define the standard constant and limit
7694         macros (e.g., INT8_C, INT8_MAX) always.
7695         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
7696         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
7697         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
7698         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
7699         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
7700         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
7701         Likewise.
7702
7703 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7704
7705         nonblocking tests: Fix test failure on Linux/PPC.
7706         Suggested by Prerna Saxena in
7707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
7708         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
7709         Set to 1100000.
7710
7711 2011-12-12  Jim Meyering  <meyering@redhat.com>
7712
7713         argmatch: don't hard-code `' when listing valid option arguments
7714         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
7715         use the quote function to add quotes.  Use fputs rather than
7716         fprintf for the format string with no format directive.
7717
7718 2011-12-07  Eric Blake  <eblake@redhat.com>
7719
7720         bootstrap: detect tools required by gnulib-tool
7721         * build-aux/bootstrap (buildreq): Provide minimum implicit
7722         dependencies.
7723         * DEPENDENCIES: Mention patch as a prereq.
7724
7725 2011-12-04  Bruno Haible  <bruno@clisp.org>
7726
7727         sethostname: Port to Windows platforms.
7728         * lib/sethostname.c: Provide an alternate implementation for Windows
7729         platforms.
7730         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
7731         (main): Skip the test if sethostname() fails with EPERM. On Windows
7732         platforms, don't check the result of gethostname().
7733
7734 2011-12-04  Bruno Haible  <bruno@clisp.org>
7735             Jim Meyering  <meyering@redhat.com>
7736
7737         tests: Avoid spurious error message on platforms without mktemp program.
7738         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
7739
7740 2011-12-04  Bruno Haible  <bruno@clisp.org>
7741
7742         sethostname: Fix documentation.
7743         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
7744         "not fixed" section.
7745
7746 2011-12-03  Bruno Haible  <bruno@clisp.org>
7747
7748         gnulib-tool: Verify that the License field is present and non-empty.
7749         * gnulib-tool (func_get_license_raw): New function, extracted from
7750         func_get_license.
7751         (func_get_license): Use it. Warn if the module is not a test module and
7752         has no license.
7753         Suggested by Jim Meyering.
7754
7755 2011-12-03  Bruno Haible  <bruno@clisp.org>
7756
7757         sethostname tests: Fix link error on mingw.
7758         * tests/test-sethostname1.c: New file, extracted from
7759         tests/test-sethostname.c.
7760         * tests/test-sethostname2.c: New file, extracted from
7761         tests/test-sethostname.c.
7762         * tests/test-sethostname.c: Remove file.
7763         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
7764         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
7765         (Depends-on): Add gethostname.
7766         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
7767         Link the latter with $(GETHOSTNAME_LIB).
7768
7769         sethostname tests: Fix compilation error on mingw.
7770         * tests/test-sethostname.c: Don't include <sys/types.h>.
7771         (geteuid): Use a dummy value without uid_t.
7772         * modules/sethostname-tests (Depends-on): Remove sys_types.
7773
7774         sethostname tests: Avoid a gcc warning.
7775         * tests/test-sethostname.c (main): Remove an unused variable.
7776
7777         Tweak last commit.
7778         * modules/sethostname-tests (Files): Sort by decreasing importance.
7779         (configure.ac): Check for geteuid.
7780         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
7781         the test when there's nothing to test. Drop an unnecessary cast.
7782         Improve an error message. Verify that the final sethostname() call
7783         succeeds.
7784
7785 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7786
7787         Add a test suite for the sethostname module.
7788         * modules/sethostname-tests: New file.  A test program
7789         for the sethostname module.
7790         * tests/test-sethostname.c: Likewise.
7791
7792 2011-12-03  Bruno Haible  <bruno@clisp.org>
7793
7794         Tweak last commit.
7795         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
7796         Fix preprocessor directives indentation. Fix typos.
7797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
7798         * modules/unistd (Makefile): Likewise.
7799
7800 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7801
7802         Integrate the sethostname module into unistd.
7803         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
7804         into the unistd.h header.
7805         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
7806         preprocessor directives.
7807         * modules/unistd: Setup the Makefile substitutions of the
7808         SETHOSTNAME preprocessor directives.
7809
7810 2011-12-03  Bruno Haible  <bruno@clisp.org>
7811
7812         Tweak last commit.
7813         * lib/sethostname.c: Don't include <string.h>.
7814         (sethostname): No need to copy the argument string to the stack. Don't
7815         call clearerr. Preserve errno when fprintf failed.
7816         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
7817         Don't invoke AC_REPLACE_FUNCS.
7818         * modules/sethostname (Link): Remove empty section.
7819         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
7820         failure problem.
7821
7822 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7823
7824         New module 'sethostname'.
7825         * lib/sethostname.c (sethostname): New file.  Provide sethostname
7826         for systems that lack it.
7827         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
7828         sethostname declaration and function.
7829         * modules/sethostname: New file.  Define the sethostname module.
7830
7831 2011-12-03  Bruno Haible  <bruno@clisp.org>
7832
7833         Tweak last commit.
7834         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
7835
7836 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7837
7838         Split the HOST_NAME_MAX detection into a separate m4 macro.
7839         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
7840         macro so it can be used by the pending sethostname module.
7841
7842 2011-12-03  Bruno Haible  <bruno@clisp.org>
7843
7844         Fix module descriptions syntax.
7845         * modules/argv-iter (License): Fix syntax.
7846         * modules/di-set (License): Likewise.
7847         * modules/ino-map (License): Likewise.
7848         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
7849
7850 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7851
7852         stdalign: port to Clang 3.0
7853         Problem reported by Simon Josefsson in
7854         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
7855         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
7856         which has <stdalign.h> but which does not define alignof.
7857         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
7858
7859 2011-12-01  Eric Blake  <eblake@redhat.com>
7860
7861         mktempd: silence dd usage
7862         * build-aux/mktempd (rand_bytes): Silence dd.
7863
7864 2011-11-30  Simon Josefsson  <simon@josefsson.org>
7865
7866         manywarnings: Don't mention gcc version in docstring.
7867         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
7868         Jim Meyering <meyering@redhat.com>.
7869
7870 2011-11-30  Jim Meyering  <meyering@redhat.com>
7871
7872         hash: mark a few floating point constants with "f" suffix
7873         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
7874         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
7875         floating point constants with "f", since they're destined to be
7876         saved/used as "float"s.
7877
7878 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
7879
7880         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
7881         * tests/test-float.c (test_long_double): Correct and re-enable the
7882         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
7883
7884 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
7885
7886         Avoid subtracting two pointers that don't point into the same block.
7887         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
7888         only pointers into the same memory block are subtracted. We cannot
7889         assume that sizeof (ptrdiff_t) == sizeof (void *).
7890
7891 2011-11-29  Eric Blake  <eblake@redhat.com>
7892
7893         maint.mk: add syntax check for use of compare from init.sh
7894         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
7895         moved here from coreutils.
7896
7897         manywarnings: drop -Wunsuffixed-float-constants
7898         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
7899         '1.0D', which is the only way to silence this warning for 'double'.
7900
7901 2011-11-29  Jim Meyering  <meyering@redhat.com>
7902
7903         hash: mark compute_bucket_size with the pure attribute
7904         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
7905
7906         quotearg, propername: correct pragma guard expression
7907         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
7908         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
7909
7910 2011-11-28  Jim Meyering  <meyering@redhat.com>
7911
7912         propername: do not mark proper_name with the const attribute
7913         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
7914         since it examines data pointed to by its parameter.
7915         * lib/propername.c (proper_name): Instead, add a pragma to suppress
7916         the suggestion from -Wsuggest-attribute=const.
7917
7918         propername: mark one more function as const
7919         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
7920
7921 2011-11-27  Jim Meyering  <meyering@redhat.com>
7922
7923         mark functions with const and pure attributes
7924
7925         Mark functions per suggestions from gcc-4.6 when using these options:
7926         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
7927         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
7928         Follow these guidelines: when possible, apply the attribute to
7929         an extern declaration, not to its definition.  Apply it to the
7930         definition only when the definition is static.
7931         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
7932         * lib/argv-iter.h (argv_iter_n_args): Likewise.
7933         * lib/base64.h (isbase64): Likewise.
7934         * lib/basename-lgpl.c (last_component, base_len): Likewise.
7935         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
7936         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
7937         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
7938         (c_tolower, c_toupper): Likewise.
7939         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
7940         * lib/chdir-long.c (find_non_slash): Likewise.
7941         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
7942         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
7943         * lib/file-type.h (file_type): Likewise.
7944         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
7945         * lib/filevercmp.c (verrevcmp): Likewise.
7946         * lib/freadahead.h (freadahead): Likewise.
7947         * lib/fts.c (fts_maxarglen): Likewise.
7948         * lib/hash-pjw.h (hash_pjw): Likewise.
7949         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
7950         * lib/hash.c (is_prime, next_prime): Likewise.
7951         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
7952         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
7953         (hash_table_ok, hash_get_first, hash_string): Likewise.
7954         (compute_bucket_size): Likewise.
7955         * lib/i-ring.h (i_ring_empty): Likewise.
7956         * lib/isnan.c (isnanl): Likewise.
7957         * lib/math.h (isnanl, rpl_isnanl): Likewise.
7958         * lib/memcasecmp.h (memcasecmp): Likewise.
7959         * lib/memchr2.h (memchr2): Likewise.
7960         * lib/memcmp2.h (memcmp2): Likewise.
7961         * lib/parse-datetime.y (lookup_zone): Likewise.
7962         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
7963         [!WINDOWS_SOCKETS]: Likewise.
7964         * lib/strnlen1.h (strnlen1): Likewise.
7965         * lib/uniwidth.in.h (uc_width): Likewise.
7966         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
7967         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
7968         (quoting_options_from_style): Add a comment.
7969         * lib/propername.h (proper_name): Add a comment.
7970
7971 2011-11-27  Bruno Haible  <bruno@clisp.org>
7972
7973         Remove unused macros from !_LIBC code in glibc-borrowed files.
7974         * lib/fnmatch.c (STRCOLL): Remove macro.
7975         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
7976         * lib/glob.c (__stat, __readdir64): Remove macros.
7977         * lib/tempname.c (__open64, __xstat64): Remove macros.
7978         Suggested by Paul Eggert.
7979
7980 2011-11-27  Bruno Haible  <bruno@clisp.org>
7981
7982         getcwd: Fix link error on MSVC 9.
7983         * modules/getcwd (Depends-on): Add readdir, rewinddir.
7984
7985 2011-11-27  Bruno Haible  <bruno@clisp.org>
7986
7987         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
7988         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
7989         HAVE_OPENDIR is 0.
7990         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
7991         HAVE_CLOSEDIR is 0.
7992         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
7993         is 0.
7994         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
7995
7996 2011-11-27  Bruno Haible  <bruno@clisp.org>
7997
7998         getcwd: Fix bug from 2011-08-17.
7999         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8000         platforms that need it.
8001         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8002         code of 4 to be a failure, not a success. This ensures that
8003         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8004
8005 2011-11-27  Bruno Haible  <bruno@clisp.org>
8006
8007         binary-io tests: Avoid test failure on mingw when libtool is used.
8008         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8009         Don't verify the size of t-bin-out1.tmp here.
8010         * tests/test-binary-io.sh: Verify it here.
8011         Reported by Simon Josefsson.
8012
8013 2011-11-26  Bruno Haible  <bruno@clisp.org>
8014
8015         Fix conflict between two instantiations of module 'unistd'.
8016         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8017         ${include_guard_prefix} also in the autoconf snippet.
8018         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8020         GNULIB_UNISTD_H_GETOPT.
8021         * modules/getopt-posix (configure.ac): Set the
8022         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8023         * modules/getopt-gnu (configure.ac): Likewise.
8024         * modules/unistd (Makefile.am): Change the substitution value of
8025         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8026         Reported by Simon Josefsson.
8027
8028 2011-11-25  Bruno Haible  <bruno@clisp.org>
8029
8030         pagealign_alloc: Doc and comments.
8031         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8032         module.
8033         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8034
8035 2011-11-25  Jim Meyering  <meyering@redhat.com>
8036
8037         test-update-copyright.sh: avoid false-positive failure
8038         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8039         around false positive failure on Cygwin/Windows.  The latter was
8040         matching erroneously-created files with names like
8041         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8042
8043 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8044
8045         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8046         * m4/valgrind-tests.m4: Check that the parameters that will be
8047         used works, not just a subset of them.  Reported by Bruno Haible
8048         <bruno@clisp.org>.
8049
8050 2011-11-24  Jim Meyering  <meyering@redhat.com>
8051
8052         test-stdalign.c: comment out long double tests
8053         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8054         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8055         error: '_Alignas' specifiers cannot reduce alignment of \
8056         'static_longdouble_alignas'.
8057
8058 2011-11-22  Jim Meyering  <meyering@redhat.com>
8059
8060         init.sh: make "compare /dev/null FILE" output more readable
8061         * tests/init.sh (compare_): Document the preferred order of arguments.
8062         (emit_diff_u_header_): New function.
8063         (compare_dev_null_): Emit a simulated diff, rather than just the
8064         contents of the unexpected file.  Suggestion from Bruno Haible.
8065
8066 2011-11-21  Jim Meyering  <meyering@redhat.com>
8067             Eric Blake  <eblake@redhat.com>
8068
8069         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8070         * tests/init.sh: Make our compare function slightly more portable.
8071         Reported by Bruno Haible in
8072         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8073
8074 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8075
8076         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8077         before using it, in code that ends up in config.h.
8078
8079 2011-11-20  Bruno Haible  <bruno@clisp.org>
8080
8081         getcwd: Work around getcwd bug on AIX 5..7.
8082         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8083         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8084         Use a different value for gl_cv_func_getcwd_path_max. Move the
8085         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8086         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8087         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8088         Define HAVE_MINIMALLY_WORKING_GETCWD.
8089         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8090         where it is not even minimally working, that is, on AIX.
8091         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8092         m4/getcwd-path-max.m4.
8093         (main): Update exit code computation.
8094         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8095         getcwd does not handle long file names.
8096
8097 2011-11-20  Bruno Haible  <bruno@clisp.org>
8098
8099         getcwd: Fix bug from 2009-09-10.
8100         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8101         like "no".
8102
8103 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8104
8105         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8106
8107 2011-11-20  Bruno Haible  <bruno@clisp.org>
8108
8109         fma tests: Avoid shadowing local variables.
8110         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8111         expected.
8112
8113 2011-11-20  Bruno Haible  <bruno@clisp.org>
8114
8115         copysignf tests: Fix.
8116         * tests/test-copysignf.c: Fix signature check.
8117
8118 2011-11-20  Bruno Haible  <bruno@clisp.org>
8119
8120         fma: Remove unused code.
8121         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8122         unused macros.
8123
8124 2011-11-20  Bruno Haible  <bruno@clisp.org>
8125
8126         sethostname: Fix doc about AIX.
8127         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8128         sethostname; it has it.
8129
8130         sethostname: Mention more portability problems.
8131         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8132         problem.
8133         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8134
8135 2011-11-19  Bruno Haible  <bruno@clisp.org>
8136
8137         Depend on module fcntl-h when AT_FDCWD is used.
8138         * modules/utimens (Depends-on): Add fcntl-h.
8139         * modules/areadlinkat (Depends-on): Likewise.
8140         * modules/areadlinkat-with-size (Depends-on): Likewise.
8141         * modules/faccessat (Depends-on): Likewise.
8142         * modules/fchmodat (Depends-on): Likewise.
8143         * modules/fchownat (Depends-on): Likewise.
8144         * modules/getcwd (Depends-on): Likewise.
8145         * modules/mkdirat (Depends-on): Likewise.
8146         * modules/mkfifoat (Depends-on): Likewise.
8147         * modules/readlinkat (Depends-on): Likewise.
8148         * modules/symlinkat (Depends-on): Likewise.
8149         * modules/dup2-tests (Depends-on): Likewise.
8150         * modules/fdutimensat-tests (Depends-on): Likewise.
8151         * modules/futimens-tests (Depends-on): Likewise.
8152
8153 2011-11-19  Bruno Haible  <bruno@clisp.org>
8154
8155         euidaccess: Update a comment.
8156         * lib/euidaccess.c: Update comment about platforms with faccessat.
8157
8158 2011-11-19  Bruno Haible  <bruno@clisp.org>
8159
8160         openat: Fix file list.
8161         * modules/openat (Files): Remove lib/at-func.c.
8162
8163 2011-11-19  Bruno Haible  <bruno@clisp.org>
8164
8165         fstatat: Simplify.
8166         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8167         gnulib should define rpl_fstatat, there is a
8168         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8169
8170 2011-11-19  Bruno Haible  <bruno@clisp.org>
8171
8172         Ensure 'inline' can be used in tests/test-utimens-common.h.
8173         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8174         * modules/futimens-tests (configure.ac): Likewise.
8175         * modules/utimens-tests (configure.ac): Likewise.
8176         * modules/utimensat-tests (configure.ac): Likewise.
8177
8178 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8179
8180         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8181         not hash_insert0.
8182         (hash_insert_if_absent): Doc fix.
8183
8184 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8185
8186         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8187
8188 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8189
8190         test-getcwd: disambiguate exit status
8191         * tests/test-getcwd.c (test_long_name): Return 0..7.
8192         (main): Exit with an unambiguous exit status.  The old
8193         code yielded a mysterious mixture of two failure codes.
8194
8195         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8196         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8197         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8198         rpl_fstatat or fstatat.  This should fix the other problem
8199         reported by Kai Habel in
8200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8201         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8203         and I reproduced it on a Solaris 8 host we still have in production.
8204
8205 2011-11-18  Jim Meyering  <meyering@redhat.com>
8206
8207         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8208         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8209         Add a sentence to the comment.
8210         (hash_insert0): New function that simply calls hash_insert_if_absent.
8211         * lib/hash.h (hash_insert_if_absent): Declare it.
8212         (hash_insert0): Add deprecation attribute.
8213         (_GL_ATTRIBUTE_DEPRECATED): Define.
8214         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8215         not hash_insert0.
8216         * NEWS: Mention it, even though it's not really an incompatible change.
8217
8218 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8219
8220         openat: avoid compilation failure due to lack of <errno.h> inclusion
8221         * lib/openat.c: Include <errno.h>.
8222
8223 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8224
8225         * modules/getcwd (Depends-on): Add fdopendir.
8226         This fixes one of the two problems reported by Kai Habel in
8227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8228
8229         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8230         stdalign problem reported by Ian Beckwith in
8231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8232         * modules/crypto/gc-arcfour (Depends-on):
8233         Depend conditionally on crypto/arcfour.
8234         * modules/crypto/gc-arctwo (Depends-on):
8235         Depend conditionally on crypto/arctwo.
8236         * modules/crypto/gc-des (Depends-on):
8237         Depend conditionally on crypto/des.
8238         * modules/crypto/gc-hmac-md5 (Depends-on):
8239         Depend conditionally on crypto/hmac-md5.
8240         * modules/crypto/gc-hmac-sha1 (Depends-on):
8241         Depend conditionally on crypto/hmac-sha1.
8242         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8243         * modules/crypto/gc-md4 (Depends-on):
8244         Depend conditionally on crypto/md4.
8245         * modules/crypto/gc-md5 (Depends-on):
8246         Depend conditionally on crypto/md5.
8247         * modules/crypto/gc-rijndael (Depends-on):
8248         Depend conditionally on crypto/rijndael.
8249         * modules/crypto/gc-sha1 (Depends-on):
8250         Depend conditionally on crypto/sha1.
8251         * modules/crypto/gc-arcfour:
8252         * modules/crypto/gc-arctwo:
8253         * modules/crypto/gc-des:
8254         * modules/crypto/gc-hmac-md5:
8255         * modules/crypto/gc-hmac-sha1:
8256         * modules/crypto/gc-md2:
8257         * modules/crypto/gc-md4:
8258         * modules/crypto/gc-md5:
8259         * modules/crypto/gc-rijndael:
8260         * modules/crypto/gc-sha1:
8261         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8262         now that the conditional dependencies do the work for us.
8263
8264 2011-11-17  Jim Meyering  <meyering@redhat.com>
8265
8266         tests: factor st_ctime-comparison out of two headers
8267         * tests/test-utimens-common.h (ctime_compare): Define.
8268         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8269         * tests/test-lutimens.h (test_lutimens): Likewise.
8270         * tests/test-utimens.h (test_utimens): Likewise.
8271
8272         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8273         Invoke the test program via an init.sh-using wrapper.
8274         * tests/test-getcwd.sh: New file.
8275         * modules/getcwd-tests (Files): Add it.
8276         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8277
8278 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8279
8280         gitlog-to-changelog: support multi-author commits.
8281         The FSF cares about keeping track of all authors of patches to its
8282         projects, but Git doesn't provide obvious support for multi-author
8283         changesets. Consensus seems to be forming around the use of extra
8284         Signed-off-by inspired lines in the log message formatted as
8285         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8286         multi-author commits between version control systems.
8287         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8288         log message and output in standard ChangeLog multi-author format.
8289         Reported by Peter Rosin <peda@lysator.liu.se>
8290
8291 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8292             Bruno Haible  <bruno@clisp.org>
8293
8294         Fix some modules' file list.
8295         * modules/fstatat (Files): Add m4/lstat.m4.
8296         * modules/openat (Files): Likewise.
8297         * modules/unlinkat (Files): Likewise.
8298
8299 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8300
8301         maint.mk: fix tight-scope.mk generation in VPATH builds.
8302         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8303         reference with $(srcdir) so that the file is found correctly even
8304         when running `make syntax-check' in a VPATH build.
8305
8306 2011-11-13  Bruno Haible  <bruno@clisp.org>
8307             Jim Meyering  <meyering@redhat.com>
8308
8309         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8310         * tests/init.sh (compare): Remove "No differences encountered" or
8311         synonymous output from the 'diff' program.
8312
8313 2011-11-13  Bruno Haible  <bruno@clisp.org>
8314
8315         Makefile: Tweak indentation.
8316         * Makefile: Use tab as first character in every line that contains rule
8317         commands.
8318
8319 2011-11-13  Bruno Haible  <bruno@clisp.org>
8320
8321         Syntax check for copyright statements.
8322         * check-copyright: New file.
8323         * Makefile (sc_check_copyright): New rule.
8324
8325 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8326
8327         * build-aux/git-version-gen: Add --prefix to configure the tag
8328         match string.
8329
8330 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8331
8332         * build-aux/git-version-gen: Add --help and --version.
8333
8334 2011-11-12  Jim Meyering  <meyering@redhat.com>
8335
8336         revamp the other test-exclude?.sh scripts to use init.sh, too
8337         * tests/test-exclude1.sh: Use init.sh.
8338         * tests/test-exclude2.sh: Likewise.
8339         * tests/test-exclude3.sh: Likewise.
8340         * tests/test-exclude4.sh: Likewise.
8341         * tests/test-exclude5.sh: Likewise.
8342         * tests/test-exclude6.sh: Likewise.
8343         * tests/test-exclude7.sh: Likewise.
8344         * tests/test-exclude8.sh: Likewise.
8345         * modules/exclude-tests (Files): List init.sh.
8346
8347         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8348         These shell scripts ignored failure of the binary test-exclude,
8349         so making the latter return 77 didn't cause them to be skipped.
8350         * tests/test-exclude5.sh: Exit with test-exclude's error status
8351         when that program fails.  Revamp to use init.sh.
8352         * tests/test-exclude2.sh: Likewise.
8353
8354         test-exclude: fix a typo
8355         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8356
8357 2011-11-11  Bruno Haible  <bruno@clisp.org>
8358
8359         obstack: Fix compilation error on MSVC 9.
8360         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8361
8362 2011-11-11  Jim Meyering  <meyering@redhat.com>
8363
8364         test-exclude: skip tests rather than failing on deficient systems
8365         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8366         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8367         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8368         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8369
8370 2011-11-10  Bruno Haible  <bruno@clisp.org>
8371
8372         ptsname_r test: Avoid gcc warning on glibc systems.
8373         * tests/test-ptsname_r.c (null_ptr): New function.
8374         (test_errors): Use it.
8375
8376 2011-11-10  Bruno Haible  <bruno@clisp.org>
8377
8378         ptsname_r: Avoid compilation error on OSF/1 5.1.
8379         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8381         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8382         function is not declared or incompatibly declared.
8383         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8384         * modules/ptsname_r (Depends-on, configure.ac): Update.
8385         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8386
8387 2011-11-10  Bruno Haible  <bruno@clisp.org>
8388
8389         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8390         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8391         When cross-compiling, guess yes on all platforms except AIX.
8392         Reported by Ludovic Courtès <ludo@gnu.org>.
8393
8394 2011-11-09  Bruno Haible  <bruno@clisp.org>
8395
8396         ptsname_r tests: Fix bugs.
8397         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8398         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8399
8400 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8401
8402         fstatat: work with cross-compilation
8403         Problem reported by Ludovic Courtès in
8404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8405         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8406         "cross-compiling" and assume the bug is present.  Replace
8407         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8408         an inverted sense, to be more conservative about our assumptions.
8409         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8410
8411 2011-11-09  Bruno Haible  <bruno@clisp.org>
8412
8413         Improve MODULES.html output.
8414         * modules/mkfifoat (Description): Use the word "function".
8415         * modules/readlinkat (Description): Likewise.
8416         * modules/symlinkat (Description): Likewise.
8417
8418 2011-11-09  Eric Blake  <eblake@redhat.com>
8419
8420         ptsname_r-tests: new test module
8421         * modules/ptsname_r-tests: New module.
8422         * tests/test-ptsname_r.c: New file.
8423
8424         ptsname_r: new module
8425         * modules/ptsname_r: New module.
8426         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8427         * lib/ptsname.c (__ptsname_r): Split...
8428         * lib/ptsname_r.c: ...into new file.
8429         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8430         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8431         * modules/stdlib (Makefile.am): Substitute witnesses.
8432         * lib/stdlib.in.h (ptsname_r): Declare it.
8433         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8434         * MODULES.html.sh (Misc): Likewise.
8435         * modules/ptsname (Depends-on): Alter dependency.
8436         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8437
8438 2011-11-09  Jim Meyering  <meyering@redhat.com>
8439
8440         announce-gen: be more concise when there's only one URL+tarball
8441         * build-aux/announce-gen (get_tool_versions): When you distribute
8442         only one type of tarball, combine the first two "Here are..."
8443         sections and make the key-checking grammar independent of
8444         how many tarballs there are.
8445
8446 2011-11-09  Eric Blake  <eblake@redhat.com>
8447
8448         openpty: provide a stub on mingw
8449         * lib/pty.in.h (includes): Provide forward declarations.
8450         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8451
8452         raise: fix mingw handling of SIGPIPE
8453         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8454
8455 2011-11-08  Bruno Haible  <bruno@clisp.org>
8456
8457         More conditional dependencies.
8458         * modules/faccessat (Depends-on): Add conditions.
8459         * modules/fchmodat (Depends-on): Likewise.
8460         * modules/fchownat (Depends-on): Likewise.
8461         * modules/fstatat (Depends-on): Likewise.
8462         * modules/mkfifoat (Depends-on): Likewise.
8463         * modules/readlinkat (Depends-on): Likewise.
8464         * modules/symlinkat (Depends-on): Likewise.
8465         * modules/unlinkat (Depends-on): Likewise.
8466         * modules/utimensat (Depends-on): Likewise.
8467         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8468         * modules/linkat (Depends-on): Refine the conditions.
8469         * modules/renameat (Depends-on): Likewise.
8470
8471 2011-11-08  Bruno Haible  <bruno@clisp.org>
8472
8473         faccessat: Move AC_LIBOBJ invocation to module description.
8474         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8475         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8476         invocation from here...
8477         * modules/faccessat (configure.ac): ... to here. Invoke
8478         gl_PREREQ_FACCESSAT.
8479
8480 2011-11-08  Bruno Haible  <bruno@clisp.org>
8481
8482         faccessat: Simplify autoconf macro.
8483         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8484         gl_FUNC_EUIDACCESS.
8485
8486 2011-11-08  Bruno Haible  <bruno@clisp.org>
8487
8488         renameat: Fix dependencies.
8489         * modules/renameat (Depends-on): Add stdbool.
8490
8491 2011-11-08  Bruno Haible  <bruno@clisp.org>
8492
8493         mkfifoat: Fix module description.
8494         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8495         not gl_UNISTD_MODULE_INDICATOR.
8496
8497 2011-11-08  Bruno Haible  <bruno@clisp.org>
8498
8499         fstatat: Remove unused dependency.
8500         * modules/fstatat (Depends-on): Remove fstat.
8501
8502 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8503
8504         GNUmakefile: behave when Makefile is missing.
8505         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8506
8507 2011-11-08  Bruno Haible  <bruno@clisp.org>
8508
8509         openat: Conditionalize dependencies.
8510         * lib/openat.c: Reduce the scope of some #includes.
8511         * modules/openat (Depends-on): Add conditions.
8512
8513 2011-11-07  Jim Meyering  <meyering@redhat.com>
8514
8515         maint.mk: extract GPG key ID without using a temporary file
8516         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8517         without using a temporary file.  Based on a suggestion from Werner Koch
8518         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8519
8520 2011-11-07  Eric Blake  <eblake@redhat.com>
8521
8522         grantpt: fix typo
8523         * lib/stdlib.in.h (grantpt): Check correct function.
8524
8525         maint.mk: silence new syntax check
8526         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
8527
8528 2011-11-06  Bruno Haible  <bruno@clisp.org>
8529
8530         Doc about floating-point and math API.
8531         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
8532         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
8533
8534 2011-11-06  Bruno Haible  <bruno@clisp.org>
8535
8536         stdalign tests: Skip the test when compiled by Sun C.
8537         * tests/test-stdalign.c (main): Skip the test on Sun C.
8538
8539 2011-11-06  Bruno Haible  <bruno@clisp.org>
8540
8541         ansi-c++-opt: Complete the 2011-06-05 change.
8542         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
8543         does not support namespaces, set the variable to "no", not to ":".
8544
8545 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8546
8547         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
8548
8549 2011-11-06  Bruno Haible  <bruno@clisp.org>
8550
8551         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
8552         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
8553         (minus_zerol) [HP-UX]: New macro.
8554         (unary_minus) [HP-UX]: New function.
8555         (copysignl) [HP-UX]: Use unary_minus function.
8556
8557 2011-11-06  Bruno Haible  <bruno@clisp.org>
8558
8559         ldexp, ldexpf, ldexpl: Enhance tests.
8560         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
8561         and tests/test-ldexpl.c.
8562         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
8563         LDEXP, MIN_EXP, MAX_EXP): New macros.
8564         Include test-ldexp.h.
8565         (main): Just call test_function.
8566         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
8567         infinity.h, nan.h.
8568         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8569         MAX_EXP): New macros.
8570         Include test-ldexp.h.
8571         (x, y): Remove variables.
8572         (main): Just call test_function.
8573         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
8574         infinity.h, nan.h.
8575         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8576         MAX_EXP): New macros.
8577         Include test-ldexp.h.
8578         (x, y): Remove variables.
8579         (main): Just call test_function.
8580         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
8581         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
8582         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8583         (Depends-on): Add isnand-nolibm, signbit, float.
8584         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
8585         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8586         (Depends-on): Add isnanf-nolibm, signbit, float.
8587
8588 2011-11-06  Bruno Haible  <bruno@clisp.org>
8589
8590         math tests: Cosmetics.
8591         * tests/test-math-c++.cc: Reorder declarations.
8592
8593 2011-11-05  Bruno Haible  <bruno@clisp.org>
8594
8595         fma*: Simplify test.
8596         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
8597         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
8598
8599         Tests for module 'fmal'.
8600         * modules/fmal-tests: New file.
8601         * tests/test-fmal1.c: New file.
8602         * tests/test-fmal2.c: New file.
8603
8604         New module 'fmal'.
8605         * lib/math.in.h (fmal): New declaration.
8606         * lib/fmal.c: New file.
8607         * m4/fmal.m4: New file.
8608         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
8609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
8610         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
8611         REPLACE_FMAL.
8612         * modules/fmal: New file.
8613         * doc/posix-functions/fmal.texi: Mention the new module and the various
8614         bugs.
8615
8616         Tests for module 'fmaf'.
8617         * modules/fmaf-tests: New file.
8618         * tests/test-fmaf1.c: New file.
8619         * tests/test-fmaf2.c: New file.
8620
8621         New module 'fmaf'.
8622         * lib/math.in.h (fmaf): New declaration.
8623         * lib/fmaf.c: New file.
8624         * m4/fmaf.m4: New file.
8625         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
8626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
8627         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
8628         REPLACE_FMAF.
8629         * modules/fmaf: New file.
8630         * doc/posix-functions/fmaf.texi: Mention the new module and the various
8631         bugs.
8632
8633         Tests for module 'fma'.
8634         * modules/fma-tests: New file.
8635         * tests/test-fma1.c: New file.
8636         * tests/test-fma1.h: New file.
8637         * tests/test-fma2.c: New file.
8638         * tests/test-fma2.h: New file.
8639
8640         New module 'fma'.
8641         * lib/math.in.h (fma): New declaration.
8642         * lib/fma.c: New file.
8643         * m4/fma.m4: New file.
8644         * m4/fegetround.m4: New file.
8645         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
8646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
8647         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
8648         REPLACE_FMA.
8649         * modules/fma: New file.
8650         * doc/posix-functions/fma.texi: Mention the new module and the various
8651         bugs.
8652
8653         Extend gl_MATHFUNC.
8654         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
8655         Support 'void' as argument type.
8656         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
8657
8658 2011-11-05  Jim Meyering  <meyering@redhat.com>
8659
8660         maint.mk: also prohibit inclusion of dirent.h without use
8661         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
8662
8663 2011-11-05  Bruno Haible  <bruno@clisp.org>
8664
8665         ldexpl tests: Avoid test failure on MSVC 9.
8666         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
8667         value. Needed in order to enforce the conversion from a value greater
8668         than LDBL_MAX to Infinity.
8669
8670 2011-11-05  Bruno Haible  <bruno@clisp.org>
8671
8672         New modules 'at-internal', 'openat-h', split off from module 'openat'.
8673         * modules/at-internal: New file, extracted from modules/openat.
8674         * modules/openat-h: New file.
8675         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
8676         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
8677         * modules/openat (Description): Add reference to POSIX function.
8678         (Files): Remove lib/openat.h, lib/openat-proc.c.
8679         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
8680         intprops, unistd.
8681         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
8682         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
8683         gl_FCNTL_MODULE_INDICATOR.
8684         (Include): Remove unistd.h, openat.h.
8685         * modules/areadlinkat (Files): Add lib/at-func.c.
8686         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8687         openat-die, openat-h, save-cwd.
8688         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
8689         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8690         openat-die, openat-h, save-cwd, unistd.
8691         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
8692         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8693         openat-h, save-cwd. Remove fcntl-h, openat.
8694         * modules/fchmodat (Files): Remove lib/openat.h.
8695         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8696         openat, stdbool, unistd.
8697         * modules/fchownat (Files): Remove lib/openat.h.
8698         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8699         openat, stdbool, sys_stat.
8700         * modules/fdopendir (Files): Remove lib/openat-priv.h,
8701         lib/openat-proc.c.
8702         (Depends-on): Add at-internal.
8703         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
8704         * modules/fstatat (Files): Remove lib/openat.h.
8705         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8706         stdbool, unistd.
8707         * modules/fts (Depends-on): Add openat-h.
8708         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
8709         openat.
8710         * modules/mkdirat (Files): Remove lib/openat.h.
8711         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8712         openat, stdbool, sys_stat.
8713         * modules/mkfifoat (Files): Add lib/at-func.c.
8714         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8715         openat-h, save-cwd. Remove fcntl-h, openat.
8716         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
8717         * modules/readlinkat (Files): Add lib/at-func.c.
8718         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8719         openat-h, save-cwd. Remove fcntl-h, openat.
8720         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
8721         openat.
8722         * modules/selinux-at (Files): Add lib/at-func.c.
8723         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8724         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
8725         * modules/symlinkat (Files): Add lib/at-func.c.
8726         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8727         openat-h, save-cwd. Remove fcntl-h, openat.
8728         * modules/unlinkat (Files): Remove lib/openat.h.
8729         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8730         stdbool.
8731         * modules/utimensat (Files): Add lib/at-func.c.
8732         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
8733         openat-die, openat-h, save-cwd.
8734         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
8735         * modules/fdutimensat-tests (Depends-on): Add openat.
8736         * modules/fstatat-tests (Depends-on): Add openat-h.
8737         * modules/readlinkat-tests (Depends-on): Add openat.
8738         * modules/symlinkat-tests (Depends-on): Add openat.
8739
8740 2011-11-05  Bruno Haible  <bruno@clisp.org>
8741
8742         openat: Include <stdbool.h>.
8743         * lib/openat.c: Include <stdbool.h>.
8744
8745 2011-11-04  Bruno Haible  <bruno@clisp.org>
8746
8747         fchownat, renameat, unlinkat: Fix dependencies.
8748         * modules/fchownat (Depends-on): Add fstatat.
8749         * modules/renameat (Depends-on): Likewise.
8750         * modules/unlinkat (Depends-on): Likewise.
8751
8752 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8753
8754         openat: remove direct dependency on dirent
8755         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
8756         and hasn't been needed ever since fdopendir was split into its own
8757         module on 2009-08-31.
8758         * modules/openat (Depends-on): Remove dirent.
8759
8760 2011-11-04  Bruno Haible  <bruno@clisp.org>
8761
8762         renameat: Optimize code size.
8763         * modules/renameat (configure.ac): Don't compile at-func2.c if
8764         REPLACE_RENAMEAT is 1.
8765
8766 2011-11-04  Bruno Haible  <bruno@clisp.org>
8767
8768         openat tests: Fix file list.
8769         * modules/openat-tests (Files): Add tests/test-open.h.
8770
8771 2011-11-04  Bruno Haible  <bruno@clisp.org>
8772
8773         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
8774         * modules/fchmodat (Depends-on): Add openat-die.
8775         * modules/fchownat (Depends-on): Likewise.
8776         * modules/linkat (Depends-on): Likewise.
8777         * modules/renameat (Depends-on): Likewise.
8778         * modules/openat (Depends-on): Add dirent.
8779
8780 2011-11-04  Jim Meyering  <meyering@redhat.com>
8781
8782         at-func*.c: fix comments
8783         * lib/at-func2.c: Correct/improve first-line comment.
8784         * lib/at-func.c: Correct grammar in first-line comment.
8785
8786 2011-11-04  Bruno Haible  <bruno@clisp.org>
8787
8788         New module 'mkdirat', split off from module 'openat'.
8789         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
8790         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
8791         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
8792         * modules/mkdirat: New file, extracted from modules/openat.
8793         * modules/openat (Files): Remove lib/mkdirat.c.
8794         (Depends-on): Remove mkdir.
8795         (configure.ac): Remove AC_LIBOBJ of mkdirat.
8796         (Include): Remove <sys/stat.h>.
8797         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
8798         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
8799         tests/test-mkdir.h.
8800         (Depends-on): Remove ignore-value.
8801         (Makefile.am): Remove rules for test-mkdirat.
8802         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
8803         of module 'openat'.
8804         * NEWS: Mention the change.
8805
8806 2011-11-04  Bruno Haible  <bruno@clisp.org>
8807
8808         closedir: Avoid warning on mingw.
8809         * lib/closedir.c: Include <unistd.h>.
8810
8811 2011-11-04  Bruno Haible  <bruno@clisp.org>
8812
8813         New module 'fstatat', split off from module 'openat'.
8814         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
8815         defined.
8816         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
8817         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
8818         gl_FUNC_FSTATAT.
8819         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
8820         * modules/fstatat: New file, extracted from modules/openat.
8821         * modules/openat (Files): Remove lib/fstatat.c.
8822         (Depends-on): Remove lstat.
8823         (configure.ac): Remove AC_LIBOBJ of fstatat.
8824         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
8825         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
8826         tests/test-lstat.h, tests/test-stat.h.
8827         (Depends-on): Remove getcwd-lgpl.
8828         (Makefile.am): Remove rules for test-fstatat.
8829         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
8830         of module 'openat'.
8831         * NEWS: Mention the change.
8832         * modules/getcwd (Depends-on): Add fstatat.
8833         * modules/linkat (Depends-on): Likewise.
8834         * modules/mkfifoat-tests (Depends-on): Likewise.
8835         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
8836
8837 2011-11-03  Bruno Haible  <bruno@clisp.org>
8838
8839         New module 'unlinkat', split off from module 'openat'.
8840         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
8841         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
8842         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
8843         * modules/unlinkat: New file, extracted from modules/openat. Correct
8844         the dependency conditions.
8845         * modules/openat (Files): Remove lib/unlinkat.c.
8846         (Depends-on): Remove rmdir, unlink.
8847         (configure.ac): Remove AC_LIBOBJ of unlinkat.
8848         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
8849         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
8850         tests/test-rmdir.h, tests/test-unlink.h.
8851         (Depends-on): Remove unlinkdir.
8852         (Makefile.am): Remove rules for test-unlinkat.
8853         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
8854         of module 'openat'.
8855         * NEWS: Mention the change.
8856         * modules/linkat-tests (Depends-on): Add unlinkat.
8857         * modules/mkfifoat-tests (Depends-on): Likewise.
8858         * modules/readlinkat-tests (Depends-on): Likewise.
8859
8860 2011-11-02  Bruno Haible  <bruno@clisp.org>
8861
8862         New module 'fchmodat', split off from module 'openat'.
8863         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
8864         defined.
8865         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
8866         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
8867         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
8868         * modules/fchmodat: New file, extracted from modules/openat.
8869         * modules/openat (Files): Remove lib/fchmodat.c.
8870         (configure.ac): Remove AC_LIBOBJ of fchmodat.
8871         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
8872         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
8873         (Makefile.am): Remove rules for test-fchmodat.
8874         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
8875         of module 'openat'.
8876         * NEWS: Mention the change.
8877
8878 2011-11-02  Jim Meyering  <meyering@redhat.com>
8879
8880         putenv: indent #definition of "environ" to placate cppi
8881         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
8882
8883         gitlog-to-changelog: provide a ChangeLog-repair mechanism
8884         Git logs are often treated as immutable, because editing them
8885         changes the SHA1 checksums of all descendants.  Thus, errors in
8886         git logs tend to stay there forever.  However, when we generate
8887         a ChangeLog file -- typically for distribution -- from that git log,
8888         we can actually make corrections in the generated file.  The key
8889         lies in recording in machine-readable/applicable form the desired
8890         corrections.  See --help for description and an example.
8891         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
8892         (usage): Describe it; alphabetize option descriptions.
8893         (main): Honor the new option, carefully.
8894
8895 2011-11-01  Jim Meyering  <meyering@redhat.com>
8896
8897         gitlog-to-changelog: avoid an infloop
8898         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
8899         that ends up being empty.
8900
8901 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8902
8903         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
8904         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
8905         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
8906         contains (possibly-quoted) backslashes.  This should avoid
8907         all-too-common shell bugs if COMPLICATED contains backslashes in
8908         the "wrong" places.  Reported by David Evans in
8909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
8910         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
8911         because we want ASCII ranges.  Is there some reason we don't use
8912         the C locale everywhere in this script?
8913         (func_module, top level): Avoid unwanted pathname expansion when
8914         $repo_url_prefix or $repo_url_suffix_repl contain shell
8915         metacharacters like '?' and '*'.
8916
8917 2011-11-01  Bruno Haible  <bruno@clisp.org>
8918
8919         fchownat: Improve description.
8920         * modules/fchownat (Description): Add link to function.
8921
8922 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8923
8924         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
8925         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
8926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
8927         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
8928
8929 2011-11-01  Bruno Haible  <bruno@clisp.org>
8930
8931         alignof: Avoid collision with stdalign module.
8932         * lib/alignof.h (alignof): Remove macro.
8933         * NEWS: Mention the change.
8934         Reported by Paul Eggert.
8935
8936 2011-11-01  Bruno Haible  <bruno@clisp.org>
8937
8938         New module 'fchownat', split off from module 'openat'.
8939         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
8940         defined.
8941         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
8942         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
8943         invoke gl_FUNC_FCHOWNAT.
8944         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
8945         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
8946         * modules/fchownat: New file, extracted from modules/openat.
8947         * modules/openat (Files): Remove lib/fchownat.c.
8948         (Depends-on): Remove lchown.
8949         (configure.ac): Remove AC_LIBOBJ of fchownat.
8950         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
8951         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
8952         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
8953         (Depends-on): Remove mgetgroups, usleep, stat-time.
8954         (configure.ac): Remove test for getegid.
8955         (Makefile.am): Remove rules for test-fchownat.
8956         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
8957         of module 'openat'.
8958         * NEWS: Mention the change.
8959
8960 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8961
8962         stdalign: port better to MSVC and to Sun C 5.11
8963         This fixes some of the problems reported by Bruno Haible in
8964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
8965         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
8966         shortcomings of MSVC and of Sun C 5.11.
8967         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
8968         around __declspec arg.
8969         * modules/stdalign-tests (Files): Add tests/macros.h.
8970         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
8971         Include macros.h, for ASSERT.
8972         (DECLARE_ALIGNED): Remove.
8973         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
8974         to catch bug), and to 1 if not (simplifies the rest of the code).
8975         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
8976         (CHECK_AUTO): Remove.
8977         (CHECK_ALIGNED): Check only the alignment of the static vars,
8978         since auto var alignment isn't supported by Sun C 5.11.
8979         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
8980         ASSERT failures are easier to diagnose.
8981
8982 2011-10-31  Bruno Haible  <bruno@clisp.org>
8983
8984         doc about some IRIX 5.3 problems.
8985         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
8986         on IRIX 5.3.
8987         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
8988         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
8989         5.3.
8990         * doc/posix-functions/grantpt.texi: Likewise.
8991         * doc/posix-functions/unlockpt.texi: Likewise.
8992         * doc/posix-functions/lgamma.texi: Likewise.
8993         * doc/posix-functions/nextafter.texi: Likewise.
8994         * doc/posix-functions/remainder.texi: Likewise.
8995         * doc/posix-functions/select.texi: Mention misplaced declaration on
8996         IRIX 5.3.
8997         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8998
8999 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9000
9001         gitlog-to-changelog: fix git-log invocation.
9002         git-log mishandles date strings before 1970-01-01 UTC, and there is
9003         no use to specify --since=1970-01-01 by default anyway.
9004         * build-aux/gitlog-to-changelog: By default, when no --since option
9005         was given, do not specify explicit --since option to git-log.
9006
9007 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9008
9009         gitlog-to-changelog: new option --append-dot.
9010         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9011         first non-blank line of each commit message terminated with a dot.
9012
9013 2011-10-30  Bruno Haible  <bruno@clisp.org>
9014
9015         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9016         * lib/ffsl.h: Include <config.h>.
9017         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9018
9019 2011-10-30  Jim Meyering  <meyering@redhat.com>
9020
9021         GNUmakefile: reenable "make syntax-check" for most projects
9022         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9023         build-aux variable", "syntax-check" would do nothing but succeed with
9024         the "No version control files detected..." diagnostic (unless you
9025         happened to override _build-aux via cfg.mk).
9026         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9027         to precede inclusion of maint.mk.  Otherwise, these variables would
9028         be used undefined in any project that does not override the default.
9029
9030 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9031
9032         gitlog-to-changelog: treat a message with only blank lines as empty.
9033         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9034         trailing blank lines before the code that issues a warning about an
9035         empty commit message.
9036
9037 2011-10-30  Jim Meyering  <meyering@redhat.com>
9038
9039         test-parse-datetime.c: avoid new DST-related false positive test failure
9040         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9041         based on the time/date we'll convert, not the current time.
9042         Otherwise, the moment we cross a DST boundary like today's in
9043         Europe, (CEST to CET), that offset ends up being one hour off.
9044
9045 2011-10-27  Bruno Haible  <bruno@clisp.org>
9046
9047         fstat: Tweak documentation.
9048         * modules/fstat (Description): More precise description.
9049
9050 2011-10-27  Bruno Haible  <bruno@clisp.org>
9051
9052         Update documentation regarding 'largefile' module.
9053         * doc/posix-functions/fstat.texi: Tweak wording.
9054         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9055         problems with huge directories and/or small ino_t types.
9056         * doc/posix-functions/readdir.texi: Likewise.
9057         * doc/posix-functions/rewinddir.texi: Likewise.
9058
9059 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9060
9061         maint.mk: don't maintain a second build-aux variable.
9062         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9063         depends on GNUmakefile, which already maintains a cfg.mk
9064         overridable $(_build-aux) for projects with a non-standard
9065         build-aux directory location, although without the $(srcdir)
9066         prefix.  Use that variable consistently instead of introducing a
9067         second one.  Adjust all call sites.
9068
9069 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9070
9071         Add stdalign module and use it in other modules.
9072         This is based on a previous proposal by Bruno Haible
9073         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9074
9075         stdalign: new module
9076         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9077         * modules/stdalign: New files.
9078         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9079         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9080
9081         stdalign-tests: new module
9082         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9083
9084         argp: use stdalign
9085         * lib/argp-parse.c: Include <stdalign.h>.
9086         (alignof): Remove.
9087         * modules/argp (Depends-on): Add stdalign.
9088
9089         crypto libraries: use stdalign
9090         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9091         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9092         Do not include <stdlib.h> twice, in md4.c.
9093         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9094         because we are accessing a pointer's bit-pattern, not a size.
9095         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9096         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9097         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9098         * modules/crypto/sha512: Likewise.
9099
9100         sys_socket: use stdalign, not alignof
9101         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9102         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9103
9104 2011-10-27  Bruno Haible  <bruno@clisp.org>
9105
9106         raise test: Avoid a test failure on Linux/MIPS.
9107         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9108         because 99 is a valid signal on Linux/MIPS.
9109
9110 2011-10-27  Bruno Haible  <bruno@clisp.org>
9111
9112         nonblocking tests: Fix test failure on Linux/MIPS.
9113         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9114         Set to 270000.
9115
9116 2011-10-27  Bruno Haible  <bruno@clisp.org>
9117
9118         utimensat: Work around problem on Linux/hppa.
9119         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9120         values.
9121         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9122
9123 2011-10-25  Jim Meyering  <meyering@redhat.com>
9124
9125         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9126         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9127         after symbols like NULL, size_t, etc.
9128         Reported by Alfred M. Szmidt.
9129
9130         maint.mk: exempt ENODATA from a syntax-check rule
9131         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9132         from the sc_prohibit_always-defined_macros syntax-check rule.
9133         Add a comment.  See this for more details:
9134         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9135
9136 2011-10-23  Jim Meyering  <meyering@redhat.com>
9137
9138         fts: close parent dir FD before returning from post-traversal fts_read
9139         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9140         unlink A, even though an FD open on A remained.  This is suboptimal
9141         (holding a file descriptor open longer than needed), but otherwise not
9142         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9143         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9144         that represents a real problem: it causes the removal of A to fail
9145         with e.g., "rm: cannot remove `A': Device or resource busy"
9146
9147         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9148         directory file descriptors.  After completing the final, FTS_DP,
9149         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9150         cache, but then proceeded to add a new FD to it via the subsequent
9151         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9152         final file descriptor would be closed only via fts_close's call to
9153         fd_ring_clear.  Now, it is usually closed earlier, via the final
9154         FTS_DP-returning fts_read call.
9155         * lib/fts.c (restore_initial_cwd): New function, converted from
9156         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9157         Update callers.
9158         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9159         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9160
9161 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9162             Bruno Haible  <bruno@clisp.org>
9163             Jim Meyering  <jim@meyering.net>
9164
9165         readme-release: improve safety of release prep instructions.
9166         * README-release: Don't git pull all branches when only master
9167         is needed for the release process.
9168         Run make maintainer-clean before changing trees and merging.
9169         Don't try to run ./configure right after git pull in case files
9170         that influence the bootstrap process have changed, move the
9171         ./configure step to after running ./bootstrap.
9172         Don't bootstrap "one last time"... it's the first time!
9173
9174 2011-10-22  Bruno Haible  <bruno@clisp.org>
9175
9176         errno, strerror-override: Support for MSVC 10.
9177         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9178         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9179         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9180         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9181         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9182         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9183         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9184         Assign values compatible with MSVC 10.
9185         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9186         New macros.
9187         (GNULIB_defined_EWINSOCK): New macro.
9188         * lib/strerror-override.c (strerror_override): Update accordingly.
9189         * lib/strerror-override.h: Likewise.
9190         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9191         longer equal to the corresponding errno value.
9192         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9193
9194 2011-10-22  Bruno Haible  <bruno@clisp.org>
9195
9196         perror: Recognize when test program crashes.
9197         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9198         strerror, set gl_cv_func_perror_works to no.
9199         Reported by Daniel Richard G. <skunk@iskunk.org>.
9200
9201         perror: Fix indentation.
9202         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9203
9204 2011-10-22  Bruno Haible  <bruno@clisp.org>
9205
9206         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9207         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9208         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9209         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9210         functions, not as a macro.
9211         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9212         macros.
9213         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9214         absence of macro.
9215         Suggested by Eric Blake.
9216         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9217
9218 2011-10-21  Bruno Haible  <bruno@clisp.org>
9219
9220         relocatable-prog-wrapper: Don't leave object files behind.
9221         * build-aux/install-reloc: Re-synchronize list of .o files to be
9222         removed with list of compilation units.
9223
9224 2011-10-20  Bruno Haible  <bruno@clisp.org>
9225
9226         openpty, posix_openpt: Remove code duplication.
9227         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9228         * lib/openpty.c: Include <stdlib.h>.
9229         (openpty): Use posix_openpt on all platforms except IRIX.
9230         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9231
9232 2011-10-20  Bruno Haible  <bruno@clisp.org>
9233
9234         unlockpt: Detect invalid argument.
9235         * lib/unlockpt.c: Include <fcntl.h>.
9236         (unlockpt): Check whether fd is valid, using fcntl().
9237         * modules/unlockpt (Depends-on): Add fcntl-h.
9238
9239 2011-10-20  Bruno Haible  <bruno@clisp.org>
9240
9241         openpty: Avoid compilation error on AIX 6.1.
9242         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9243
9244 2011-10-20  Bruno Haible  <bruno@clisp.org>
9245
9246         posix_openpt: Support for OpenBSD.
9247         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9248         (posix_openpt) [OpenBSD]: New code.
9249         * lib/grantpt.c: Include <fcntl.h>.
9250         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9251         * modules/grantpt (Depends-on): Add fcntl-h.
9252
9253 2011-10-20  Bruno Haible  <bruno@clisp.org>
9254
9255         posix_openpt test: Coding style.
9256         * tests/test-posix_openpt.c: Use GNU coding style.
9257
9258 2011-10-20  Bruno Haible  <bruno@clisp.org>
9259
9260         grantpt: Support --avoid=pt_chown.
9261         * modules/grantpt (Files): Add lib/pty-private.h.
9262
9263 2011-10-20  Bruno Haible  <bruno@clisp.org>
9264
9265         posix_openpt: Fix autoconf macro.
9266         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9267         unneeded check for _getpty.
9268
9269 2011-10-20  Bruno Haible  <bruno@clisp.org>
9270
9271         openpty: Update comments.
9272         * lib/openpty.c: Add comments about Minix.
9273
9274 2011-10-19  Eric Blake  <eblake@redhat.com>
9275
9276         openpty: relax license
9277         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9278
9279         pt_chown: use configmake to simplify build
9280         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9281
9282         ptsname and others: relax license
9283         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9284         * modules/unlockpt (License): Likewise.
9285         * modules/pt_chown (License): Likewise.
9286         * modules/ptsname (License): Likewise.
9287         * modules/ttyname_r (License): Likewise.
9288
9289 2011-10-19  Jim Meyering  <meyering@redhat.com>
9290
9291         posix_openpt: remove spurious #endif
9292         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9293
9294 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9295
9296         maint.mk: Respect $(build_aux) in web-manual rule.
9297         * top/maint.mk (web-manual): Find gen-announce script in user's
9298         $(build_aux) directory instead of hard-coding 'build-aux'.
9299
9300 2011-10-19  Bruno Haible  <bruno@clisp.org>
9301
9302         posix_openpt: Fix compilation error.
9303         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9304         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9305         Mention the openpty module as an alternative.
9306
9307 2011-10-19  Bruno Haible  <bruno@clisp.org>
9308
9309         Support for old NeXTstep 3.3 frexp().
9310         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9311         execution time of the test to 5 seconds.
9312         Reported by Daniel Richard G. <skunk@iskunk.org>.
9313
9314 2011-10-19  Bruno Haible  <bruno@clisp.org>
9315
9316         Support for old NeXTstep 3.3 sed.
9317         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9318         part, use /.../, not \|...|. Escape periods in the header file name.
9319         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9320         Reported by Daniel Richard G. <skunk@iskunk.org>.
9321
9322 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9323
9324         Support for old NeXTstep 3.3 gcc.
9325         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9326         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9327         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9328         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9329         * lib/regex.h (_Restrict_arr_): Likewise.
9330         * lib/regex_internal.h (re_token_t): Likewise.
9331         * lib/regexec.c (check_node_accept_bytes): Likewise.
9332         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9333
9334 2011-10-18  Eric Blake  <eblake@redhat.com>
9335
9336         posix_openpt: new module
9337         * modules/posix_openpt: New module.
9338         * m4/posix_openpt.m4: New file.
9339         * lib/posix_openpt.c: Likewise.
9340         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9341         (gl_STDLIB_H_DEFAULTS): Set defaults.
9342         * modules/stdlib (Makefile.am): Substitute macros.
9343         * lib/stdlib.in.h (posix_openpt): Declare.
9344         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9345         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9346         * modules/posix_openpt-tests: New test module.
9347         * tests/test-posix_openpt.c: New test.
9348
9349 2011-10-15  Bruno Haible  <bruno@clisp.org>
9350
9351         xstrtoll: Fix compilation failure.
9352         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9353         from lib/strtol.c.
9354         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9355         some platforms.
9356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9357
9358 2011-10-15  Bruno Haible  <bruno@clisp.org>
9359
9360         vasnprintf: Optimize bit search operation.
9361         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9363         gl_DOUBLE_EXPONENT_LOCATION.
9364         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9365         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9366         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9367         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9368         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9369         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9370         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9371         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9372         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9373
9374 2011-10-15  Bruno Haible  <bruno@clisp.org>
9375
9376         vasnprintf: Fix comments.
9377         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9378
9379 2011-10-14  Bruno Haible  <bruno@clisp.org>
9380
9381         Tests for module 'integer_length_ll'.
9382         * modules/integer_length_ll-tests: New file.
9383         * tests/test-integer_length_ll.c: New file.
9384
9385         New module 'integer_length_ll'.
9386         * lib/integer_length_ll.c: New file.
9387         * modules/integer_length_ll: New file.
9388
9389 2011-10-14  Bruno Haible  <bruno@clisp.org>
9390
9391         Tests for module 'integer_length_l'.
9392         * modules/integer_length_l-tests: New file.
9393         * tests/test-integer_length_l.c: New file.
9394
9395         New module 'integer_length_l'.
9396         * lib/integer_length_l.c: New file.
9397         * modules/integer_length_l: New file.
9398
9399 2011-10-14  Bruno Haible  <bruno@clisp.org>
9400
9401         Tests for module 'integer_length'.
9402         * modules/integer_length-tests: New file.
9403         * tests/test-integer_length.c: New file.
9404
9405         New module 'integer_length'.
9406         * lib/integer_length.h: New file.
9407         * lib/integer_length.c: New file.
9408         * modules/integer_length: New file.
9409
9410 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9411
9412         popen: Fix dependency conditions.
9413         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9414
9415 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9416
9417         perror: Fix autoconf test.
9418         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9419         <stdlib.h> and <string.h>.
9420
9421 2011-10-14  Bruno Haible  <bruno@clisp.org>
9422
9423         ffsl: Optimize on 64-bit platforms.
9424         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9425         unrolling.
9426
9427 2011-10-13  Bruno Haible  <bruno@clisp.org>
9428
9429         ffsl: Optimize on 32-bit platforms.
9430         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9431         use ffs() without a loop.
9432
9433         ffsl, ffsll: Optimize for GCC.
9434         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9435         * lib/ffsl.c (GCC_BUILTIN): New macro.
9436         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9437
9438 2011-10-13  Bruno Haible  <bruno@clisp.org>
9439
9440         ffs, bcopy, memset: Support symbol renaming via config.h.
9441         * lib/ffs.c: Include <config.h>.
9442         * lib/bcopy.c: Likewise.
9443         * lib/memset.c: Likewise.
9444
9445 2011-10-10  Bruno Haible  <bruno@clisp.org>
9446
9447         atanl: Simplify for platforms where 'long double' == 'double'.
9448         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9449         alternative implementation.
9450         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9451         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9452         * modules/atanl (Depends-on): Add atan. Update conditions.
9453
9454 2011-10-10  Bruno Haible  <bruno@clisp.org>
9455
9456         acosl: Simplify for platforms where 'long double' == 'double'.
9457         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9458         alternative implementation.
9459         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9460         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9461         * modules/acosl (Depends-on): Add acos. Update conditions.
9462
9463 2011-10-10  Bruno Haible  <bruno@clisp.org>
9464
9465         asinl: Simplify for platforms where 'long double' == 'double'.
9466         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9467         alternative implementation.
9468         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9469         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9470         * modules/asinl (Depends-on): Add asin. Update conditions.
9471
9472 2011-10-10  Bruno Haible  <bruno@clisp.org>
9473
9474         tanl: Simplify for platforms where 'long double' == 'double'.
9475         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9476         implementation.
9477         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9478         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9479         * modules/tanl (Depends-on): Add tan. Update conditions.
9480         (configure.ac): Don't compile trigl.c if
9481         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9482
9483 2011-10-10  Bruno Haible  <bruno@clisp.org>
9484
9485         cosl: Simplify for platforms where 'long double' == 'double'.
9486         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9487         implementation.
9488         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9489         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9490         * modules/cosl (Depends-on): Add cos. Update conditions.
9491         (configure.ac): Don't compile sincosl.c and trigl.c if
9492         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9493
9494 2011-10-10  Bruno Haible  <bruno@clisp.org>
9495
9496         sinl: Simplify for platforms where 'long double' == 'double'.
9497         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9498         implementation.
9499         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9500         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9501         * modules/sinl (Depends-on): Add sin. Update conditions.
9502         (configure.ac): Don't compile sincosl.c and trigl.c if
9503         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9504
9505 2011-10-10  Bruno Haible  <bruno@clisp.org>
9506
9507         logl: Simplify for platforms where 'long double' == 'double'.
9508         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9509         implementation.
9510         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9511         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9512         * modules/logl (Depends-on): Add log. Update conditions.
9513
9514 2011-10-10  Bruno Haible  <bruno@clisp.org>
9515
9516         expl: Simplify for platforms where 'long double' == 'double'.
9517         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9518         implementation.
9519         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9520         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9521         * modules/expl (Depends-on): Add exp. Update conditions.
9522
9523 2011-10-10  Bruno Haible  <bruno@clisp.org>
9524
9525         sqrtl: Simplify for platforms where 'long double' == 'double'.
9526         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9527         alternative implementation.
9528         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9529         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9530         * modules/sqrtl (Depends-on): Update conditions.
9531
9532 2011-10-10  Bruno Haible  <bruno@clisp.org>
9533
9534         ldexpl: Simplify for platforms where 'long double' == 'double'.
9535         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9536         alternative implementation.
9537         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9538         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9539         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
9540
9541 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
9542
9543         ffsll: set correct witness
9544         * modules/ffsll (configure.ac): Fix typo.
9545
9546 2011-10-10  Bruno Haible  <bruno@clisp.org>
9547
9548         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
9549         * lib/printf-frexpl.c: Include <config.h>.
9550         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9551         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
9552         second time.
9553         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
9554         gl_LONG_DOUBLE_VS_DOUBLE.
9555         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
9556         conditions.
9557
9558 2011-10-10  Bruno Haible  <bruno@clisp.org>
9559
9560         frexpl: Simplify for platforms where 'long double' == 'double'.
9561         * lib/frexpl.c: Include <config.h>.
9562         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9563         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9564         time.
9565         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9566         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9567         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
9568         * modules/frexpl (Depends-on): Add frexp. Update conditions.
9569         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
9570         conditions.
9571
9572 2011-10-10  Jim Meyering  <meyering@redhat.com>
9573
9574         test-renameat: don't leave behind a temporary file
9575         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
9576           ERROR: files left in build directory after distclean:
9577           ./gltests/test-renameat.too
9578           make[1]: *** [distcleancheck] Error 1
9579         Reported by Tom G. Christensen.
9580
9581 2011-10-09  Bruno Haible  <bruno@clisp.org>
9582
9583         rint: Determine RINT_LIBM correctly on AIX 7.
9584         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
9585         directly, not only through a function pointer. Also accept an optional
9586         4th argument with extra code.
9587         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
9588         rintf() call by gcc when optimizing.
9589
9590         mathfunc.m4: Refactor.
9591         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
9592         m4 variable.
9593
9594 2011-10-09  Bruno Haible  <bruno@clisp.org>
9595
9596         rintl: Simplify for platforms where 'long double' == 'double'.
9597         * lib/rintl.c: Include <config.h>.
9598         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9599         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9600         time.
9601         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9602         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9603         * modules/rintl (Depends-on): Add rint. Update conditions.
9604
9605 2011-10-09  Bruno Haible  <bruno@clisp.org>
9606
9607         roundl: Simplify for platforms where 'long double' == 'double'.
9608         * lib/roundl.c: Include <config.h>.
9609         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9610         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9611         time.
9612         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9613         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9614         * modules/roundl (Depends-on): Add round. Update conditions.
9615
9616 2011-10-09  Bruno Haible  <bruno@clisp.org>
9617
9618         truncl: Simplify for platforms where 'long double' == 'double'.
9619         * lib/truncl.c: Include <config.h>.
9620         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9621         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9622         time.
9623         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9624         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9625         * modules/truncl (Depends-on): Add trunc. Update conditions.
9626
9627 2011-10-09  Bruno Haible  <bruno@clisp.org>
9628
9629         ceill: Simplify for platforms where 'long double' == 'double'.
9630         * lib/ceill.c: Include <config.h>.
9631         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9632         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9633         time.
9634         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9635         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9636         * modules/ceill (Depends-on): Add ceil. Update conditions.
9637
9638 2011-10-09  Bruno Haible  <bruno@clisp.org>
9639
9640         floorl: Simplify for platforms where 'long double' == 'double'.
9641         * lib/floorl.c: Include <config.h>.
9642         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9643         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9644         time.
9645         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9646         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9647         * modules/floorl (Depends-on): Add floor. Update conditions.
9648
9649 2011-10-09  Bruno Haible  <bruno@clisp.org>
9650
9651         rint: Fix ordering constraints.
9652         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
9653         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
9654         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
9655
9656 2011-10-09  Bruno Haible  <bruno@clisp.org>
9657
9658         copysignl: Simplify for platforms where 'long double' == 'double'.
9659         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9660         alternative.
9661         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9662         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9663         * modules/copysignl (Depends-on): Add copysign. Update conditions.
9664
9665 2011-10-09  Bruno Haible  <bruno@clisp.org>
9666
9667         Tests for module 'rintl'.
9668         * modules/rintl-tests: New file.
9669         * tests/test-rintl.c: New file.
9670
9671         New module 'rintl'.
9672         * lib/math.in.h (rintl): New declaration.
9673         * lib/rintl.c: New file.
9674         * m4/rintl.m4: New file.
9675         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
9676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
9677         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
9678         * modules/rintl: New file.
9679         * tests/test-math-c++.cc: Check the declaration of rintl.
9680         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9681         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
9682         * doc/posix-functions/rintl.texi: Mention the new module.
9683
9684 2011-10-09  Bruno Haible  <bruno@clisp.org>
9685
9686         Tests for module 'rintf'.
9687         * modules/rintf-tests: New file.
9688         * tests/test-rintf.c: New file.
9689
9690         New module 'rintf'.
9691         * lib/math.in.h (rintf): New declaration.
9692         * lib/rintf.c: New file.
9693         * m4/rintf.m4: New file.
9694         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
9695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
9696         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
9697         * modules/rintf: New file.
9698         * tests/test-math-c++.cc: Check the declaration of rintf.
9699         * doc/posix-functions/rintf.texi: Mention the new module.
9700
9701 2011-10-09  Bruno Haible  <bruno@clisp.org>
9702
9703         rint: Support for MSVC.
9704         * lib/math.in.h (rint): New declaration.
9705         * lib/rint.c: New file.
9706         * m4/rint.m4: New file.
9707         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
9708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
9709         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
9710         * modules/rint (Description): Fix.
9711         (Files): Add lib/rint.c, m4/rint.m4.
9712         (Depends-on): Add math.
9713         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
9714         gl_MATH_MODULE_INDICATOR.
9715         * tests/test-math-c++.cc: Check the declaration of rint.
9716         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9717         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
9718         * doc/posix-functions/rint.texi: Mention the replacement provided by
9719         the module.
9720
9721         rint tests: More tests.
9722         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
9723         minus-zero.h, infinity.h, nan.h.
9724         (main): Skip the test if the current rounding mode is not standard. Add
9725         tests for negative numbers, minus zero, infinity, NaN.
9726         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
9727         tests/nan.h.
9728         (Depends-on): Add isnand-nolibm.
9729
9730 2011-10-09  Bruno Haible  <bruno@clisp.org>
9731
9732         Tests for module 'copysignl'.
9733         * modules/copysignl-tests: New file.
9734         * tests/test-copysignl.c: New file.
9735
9736         New module 'copysignl'.
9737         * lib/math.in.h (copysignl): New declaration.
9738         * lib/copysignl.c: New file.
9739         * m4/copysignl.m4: New file.
9740         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
9741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
9742         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
9743         HAVE_COPYSIGNL.
9744         * modules/copysignl: New file.
9745         * tests/test-math-c++.cc: Check the declaration of copysignl.
9746         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9747         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
9748         * doc/posix-functions/copysignl.texi: Mention the new module.
9749
9750 2011-10-09  Bruno Haible  <bruno@clisp.org>
9751
9752         Tests for module 'copysignf'.
9753         * modules/copysignf-tests: New file.
9754         * tests/test-copysignf.c: New file.
9755
9756         New module 'copysignf'.
9757         * lib/math.in.h (copysignf): New declaration.
9758         * lib/copysignf.c: New file.
9759         * m4/copysignf.m4: New file.
9760         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
9761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
9762         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
9763         HAVE_COPYSIGNF.
9764         * modules/copysignf: New file.
9765         * tests/test-math-c++.cc: Check the declaration of copysignf.
9766         * doc/posix-functions/copysignf.texi: Mention the new module.
9767
9768 2011-10-09  Bruno Haible  <bruno@clisp.org>
9769
9770         Ensure that HAVE_* variables are set to 1 before they are set to 0.
9771         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
9772         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
9773         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9774         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
9775         gl_SIGNAL_H_DEFAULTS.
9776
9777 2011-10-09  Bruno Haible  <bruno@clisp.org>
9778
9779         poll: Make macro safer.
9780         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
9781         ac_cv_header_poll_h is not set.
9782
9783 2011-10-09  Bruno Haible  <bruno@clisp.org>
9784
9785         copysign: Provide replacement.
9786         * lib/math.in.h (copysign): New declaration.
9787         * lib/copysign.c: New file.
9788         * m4/copysign.m4: New file.
9789         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
9790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
9791         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
9792         HAVE_COPYSIGN.
9793         * modules/copysign (Description): Clarify.
9794         (Files): Add lib/copysign.c, m4/copysign.m4.
9795         (Depends-on): Add math, signbit.
9796         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
9797         gl_MATH_MODULE_INDICATOR.
9798         * tests/test-math-c++.cc: Check the declaration of copysign.
9799         * doc/posix-functions/copysign.texi: Mention the effects of the module
9800         on Minix and MSVC.
9801
9802 2011-10-09  Bruno Haible  <bruno@clisp.org>
9803
9804         isinf: Ensure macro on AIX 5.1.
9805         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
9806         macro.
9807         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
9808
9809 2011-10-09  Bruno Haible  <bruno@clisp.org>
9810
9811         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
9812         * modules/snprintf-posix-tests (configure.ac): Require
9813         gl_LONG_DOUBLE_VS_DOUBLE.
9814         * modules/sprintf-posix-tests (configure.ac): Likewise.
9815         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
9816         * modules/vasprintf-posix-tests (configure.ac): Likewise.
9817         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
9818         * modules/vsprintf-posix-tests (configure.ac): Likewise.
9819         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
9820         tests on platforms where 'long double' is the same as 'double'.
9821         * tests/test-sprintf-posix.h (test_function): Likewise.
9822         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9823         * tests/test-vasprintf-posix.c (test_function): Likewise.
9824
9825         *printf: Fix for platforms where 'long double' == 'double'.
9826         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9827         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
9828         * modules/dprintf-posix (Files): Add m4/math_h.m4.
9829         * modules/fprintf-posix (Files): Likewise.
9830         * modules/obstack-printf-posix (Files): Likewise.
9831         * modules/snprintf-posix (Files): Likewise.
9832         * modules/sprintf-posix (Files): Likewise.
9833         * modules/vasnprintf (Files): Likewise.
9834         * modules/vasnprintf-posix (Files): Likewise.
9835         * modules/vasprintf-posix (Files): Likewise.
9836         * modules/vdprintf-posix (Files): Likewise.
9837         * modules/vfprintf-posix (Files): Likewise.
9838         * modules/vsnprintf-posix (Files): Likewise.
9839         * modules/vsprintf-posix (Files): Likewise.
9840         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9841         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9842         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9843         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9844         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9845         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9846         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9847
9848         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
9849         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
9850         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9851         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
9852         'long double'.
9853         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
9854
9855         isinf: Fix for platforms where 'long double' == 'double'.
9856         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9857         Don't blindly assume 80-bit 'long double'.
9858
9859         isfinite: Fix for platforms where 'long double' == 'double'.
9860         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9861         Don't blindly assume 80-bit 'long double'.
9862
9863         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
9864         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
9865         * modules/isfinite-tests (configure.ac): Require
9866         gl_LONG_DOUBLE_VS_DOUBLE.
9867         * modules/isinf-tests (configure.ac): Likewise.
9868         * modules/isnan-tests (configure.ac): Likewise.
9869         * modules/isnanl-tests (configure.ac): Likewise.
9870         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
9871         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
9872         tests on platforms where 'long double' is the same as 'double'.
9873         * tests/test-isinf.c (test_isinfl): Likewise.
9874         * tests/test-isnan.c (test_long_double): Likewise.
9875         * tests/test-isnanl.h (main): Likewise.
9876
9877 2011-10-08  Bruno Haible  <bruno@clisp.org>
9878
9879         Tests for module 'tanhf'.
9880         * modules/tanhf-tests: New file.
9881         * tests/test-tanhf.c: New file.
9882
9883         New module 'tanhf'.
9884         * lib/math.in.h (tanhf): New declaration.
9885         * lib/tanhf.c: New file.
9886         * m4/tanhf.m4: New file.
9887         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
9888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
9889         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
9890         * modules/tanhf: New file.
9891         * tests/test-math-c++.cc: Check the declaration of tanhf.
9892         * doc/posix-functions/tanhf.texi: Mention the new module.
9893
9894         tanh: Use a .m4 file.
9895         * m4/tanh.m4: New file.
9896         * modules/tanh (Files): Add it.
9897         (configure.ac): Just invoke gl_FUNC_TANH.
9898
9899 2011-10-08  Bruno Haible  <bruno@clisp.org>
9900
9901         Tests for module 'coshf'.
9902         * modules/coshf-tests: New file.
9903         * tests/test-coshf.c: New file.
9904
9905         New module 'coshf'.
9906         * lib/math.in.h (coshf): New declaration.
9907         * lib/coshf.c: New file.
9908         * m4/coshf.m4: New file.
9909         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
9910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
9911         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
9912         * modules/coshf: New file.
9913         * tests/test-math-c++.cc: Check the declaration of coshf.
9914         * doc/posix-functions/coshf.texi: Mention the new module.
9915
9916         cosh: Use a .m4 file.
9917         * m4/cosh.m4: New file.
9918         * modules/cosh (Files): Add it.
9919         (configure.ac): Just invoke gl_FUNC_COSH.
9920
9921 2011-10-08  Bruno Haible  <bruno@clisp.org>
9922
9923         Tests for module 'sinhf'.
9924         * modules/sinhf-tests: New file.
9925         * tests/test-sinhf.c: New file.
9926
9927         New module 'sinhf'.
9928         * lib/math.in.h (sinhf): New declaration.
9929         * lib/sinhf.c: New file.
9930         * m4/sinhf.m4: New file.
9931         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
9932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
9933         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
9934         * modules/sinhf: New file.
9935         * tests/test-math-c++.cc: Check the declaration of sinhf.
9936         * doc/posix-functions/sinhf.texi: Mention the new module.
9937
9938         sinh: Use a .m4 file.
9939         * m4/sinh.m4: New file.
9940         * modules/sinh (Files): Add it.
9941         (configure.ac): Just invoke gl_FUNC_SINH.
9942
9943 2011-10-08  Bruno Haible  <bruno@clisp.org>
9944
9945         Tests for module 'atan2f'.
9946         * modules/atan2f-tests: New file.
9947         * tests/test-atan2f.c: New file.
9948
9949         New module 'atan2f'.
9950         * lib/math.in.h (atan2f): New declaration.
9951         * lib/atan2f.c: New file.
9952         * m4/atan2f.m4: New file.
9953         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
9954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
9955         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
9956         * modules/atan2f: New file.
9957         * tests/test-math-c++.cc: Check the declaration of atan2f.
9958         * doc/posix-functions/atan2f.texi: Mention the new module.
9959
9960         atan2: Use a .m4 file.
9961         * m4/atan2.m4: New file.
9962         * modules/atan2 (Files): Add it.
9963         (configure.ac): Just invoke gl_FUNC_ATAN2.
9964
9965 2011-10-08  Bruno Haible  <bruno@clisp.org>
9966
9967         Tests for module 'atanf'.
9968         * modules/atanf-tests: New file.
9969         * tests/test-atanf.c: New file.
9970
9971         New module 'atanf'.
9972         * lib/math.in.h (atanf): New declaration.
9973         * lib/atanf.c: New file.
9974         * m4/atanf.m4: New file.
9975         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
9976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
9977         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
9978         * modules/atanf: New file.
9979         * tests/test-math-c++.cc: Check the declaration of atanf.
9980         * doc/posix-functions/atanf.texi: Mention the new module.
9981
9982         atan: Use a .m4 file.
9983         * m4/atan.m4: New file.
9984         * modules/atan (Files): Add it.
9985         (configure.ac): Just invoke gl_FUNC_ATAN.
9986
9987 2011-10-08  Bruno Haible  <bruno@clisp.org>
9988
9989         Tests for module 'acosf'.
9990         * modules/acosf-tests: New file.
9991         * tests/test-acosf.c: New file.
9992
9993         New module 'acosf'.
9994         * lib/math.in.h (acosf): New declaration.
9995         * lib/acosf.c: New file.
9996         * m4/acosf.m4: New file.
9997         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
9998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
9999         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10000         * modules/acosf: New file.
10001         * tests/test-math-c++.cc: Check the declaration of acosf.
10002         * doc/posix-functions/acosf.texi: Mention the new module.
10003
10004         acos: Use a .m4 file.
10005         * m4/acos.m4: New file.
10006         * modules/acos (Files): Add it.
10007         (configure.ac): Just invoke gl_FUNC_ACOS.
10008
10009 2011-10-08  Bruno Haible  <bruno@clisp.org>
10010
10011         Tests for module 'asinf'.
10012         * modules/asinf-tests: New file.
10013         * tests/test-asinf.c: New file.
10014
10015         New module 'asinf'.
10016         * lib/math.in.h (asinf): New declaration.
10017         * lib/asinf.c: New file.
10018         * m4/asinf.m4: New file.
10019         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10021         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10022         * modules/asinf: New file.
10023         * tests/test-math-c++.cc: Check the declaration of asinf.
10024         * doc/posix-functions/asinf.texi: Mention the new module.
10025
10026         asin: Use a .m4 file.
10027         * m4/asin.m4: New file.
10028         * modules/asin (Files): Add it.
10029         (configure.ac): Just invoke gl_FUNC_ASIN.
10030
10031 2011-10-08  Bruno Haible  <bruno@clisp.org>
10032
10033         Tests for module 'tanf'.
10034         * modules/tanf-tests: New file.
10035         * tests/test-tanf.c: New file.
10036
10037         New module 'tanf'.
10038         * lib/math.in.h (tanf): New declaration.
10039         * lib/tanf.c: New file.
10040         * m4/tanf.m4: New file.
10041         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10043         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10044         * modules/tanf: New file.
10045         * tests/test-math-c++.cc: Check the declaration of tanf.
10046         * doc/posix-functions/tanf.texi: Mention the new module.
10047
10048         tan: Use a .m4 file.
10049         * m4/tan.m4: New file.
10050         * modules/tan (Files): Add it.
10051         (configure.ac): Just invoke gl_FUNC_TAN.
10052
10053 2011-10-08  Bruno Haible  <bruno@clisp.org>
10054
10055         Tests for module 'cosf'.
10056         * modules/cosf-tests: New file.
10057         * tests/test-cosf.c: New file.
10058
10059         New module 'cosf'.
10060         * lib/math.in.h (cosf): New declaration.
10061         * lib/cosf.c: New file.
10062         * m4/cosf.m4: New file.
10063         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10065         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10066         * modules/cosf: New file.
10067         * tests/test-math-c++.cc: Check the declaration of cosf.
10068         * doc/posix-functions/cosf.texi: Mention the new module.
10069
10070         cos: Use a .m4 file.
10071         * m4/cos.m4: New file.
10072         * modules/cos (Files): Add it.
10073         (configure.ac): Just invoke gl_FUNC_COS.
10074
10075 2011-10-08  Bruno Haible  <bruno@clisp.org>
10076
10077         Tests for module 'sinf'.
10078         * modules/sinf-tests: New file.
10079         * tests/test-sinf.c: New file.
10080
10081         New module 'sinf'.
10082         * lib/math.in.h (sinf): New declaration.
10083         * lib/sinf.c: New file.
10084         * m4/sinf.m4: New file.
10085         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10087         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10088         * modules/sinf: New file.
10089         * tests/test-math-c++.cc: Check the declaration of sinf.
10090         * doc/posix-functions/sinf.texi: Mention the new module.
10091
10092         sin: Use a .m4 file.
10093         * m4/sin.m4: New file.
10094         * modules/sin (Files): Add it.
10095         (configure.ac): Just invoke gl_FUNC_SIN.
10096
10097 2011-10-08  Bruno Haible  <bruno@clisp.org>
10098
10099         Tests for module 'powf'.
10100         * modules/powf-tests: New file.
10101         * tests/test-powf.c: New file.
10102
10103         New module 'powf'.
10104         * lib/math.in.h (powf): New declaration.
10105         * lib/powf.c: New file.
10106         * m4/powf.m4: New file.
10107         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10109         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10110         * modules/powf: New file.
10111         * tests/test-math-c++.cc: Check the declaration of powf.
10112         * doc/posix-functions/powf.texi: Mention the new module.
10113
10114         pow: Use a .m4 file.
10115         * m4/pow.m4: New file.
10116         * modules/pow (Files): Add it.
10117         (configure.ac): Just invoke gl_FUNC_POW.
10118
10119 2011-10-08  Bruno Haible  <bruno@clisp.org>
10120
10121         Tests for module 'log10f'.
10122         * modules/log10f-tests: New file.
10123         * tests/test-log10f.c: New file.
10124
10125         New module 'log10f'.
10126         * lib/math.in.h (log10f): New declaration.
10127         * lib/log10f.c: New file.
10128         * m4/log10f.m4: New file.
10129         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10131         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10132         * modules/log10f: New file.
10133         * tests/test-math-c++.cc: Check the declaration of log10f.
10134         * doc/posix-functions/log10f.texi: Mention the new module.
10135
10136         log10: Use a .m4 file.
10137         * m4/log10.m4: New file.
10138         * modules/log10 (Files): Add it.
10139         (configure.ac): Just invoke gl_FUNC_LOG10.
10140
10141 2011-10-08  Bruno Haible  <bruno@clisp.org>
10142
10143         Tests for module 'logf'.
10144         * modules/logf-tests: New file.
10145         * tests/test-logf.c: New file.
10146
10147         New module 'logf'.
10148         * lib/math.in.h (logf): New declaration.
10149         * lib/logf.c: New file.
10150         * m4/logf.m4: New file.
10151         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10153         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10154         * modules/logf: New file.
10155         * tests/test-math-c++.cc: Check the declaration of logf.
10156         * doc/posix-functions/logf.texi: Mention the new module.
10157
10158         log: Use a .m4 file.
10159         * m4/log.m4: New file.
10160         * modules/log (Files): Add it.
10161         (configure.ac): Just invoke gl_FUNC_LOG.
10162
10163 2011-10-08  Bruno Haible  <bruno@clisp.org>
10164
10165         Tests for module 'expf'.
10166         * modules/expf-tests: New file.
10167         * tests/test-expf.c: New file.
10168
10169         New module 'expf'.
10170         * lib/math.in.h (expf): New declaration.
10171         * lib/expf.c: New file.
10172         * m4/expf.m4: New file.
10173         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10175         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10176         * modules/expf: New file.
10177         * tests/test-math-c++.cc: Check the declaration of expf.
10178         * doc/posix-functions/expf.texi: Mention the new module.
10179
10180         exp: Use a .m4 file.
10181         * m4/exp.m4: New file.
10182         * modules/exp (Files): Add it.
10183         (configure.ac): Just invoke gl_FUNC_EXP.
10184
10185 2011-10-08  Bruno Haible  <bruno@clisp.org>
10186
10187         Tests for module 'sqrtf'.
10188         * modules/sqrtf-tests: New file.
10189         * tests/test-sqrtf.c: New file.
10190
10191         New module 'sqrtf'.
10192         * lib/math.in.h (sqrtf): New declaration.
10193         * lib/sqrtf.c: New file.
10194         * m4/sqrtf.m4: New file.
10195         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10197         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10198         * modules/sqrtf: New file.
10199         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10200         * doc/posix-functions/sqrtf.texi: Mention the new module.
10201
10202 2011-10-08  Bruno Haible  <bruno@clisp.org>
10203
10204         Tests: Avoid link failures w.r.t. libintl.
10205         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10206         $(LIBINTL).
10207         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10208         $(LIBINTL).
10209         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10210         against $(LIBINTL).
10211         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10212         $(LIBINTL).
10213         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10214         $(LIBINTL).
10215         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10216
10217 2011-10-08  Bruno Haible  <bruno@clisp.org>
10218
10219         pow tests: Defeat compiler optimizations.
10220         * tests/test-pow.c (main): Assign arguments to x and y before use.
10221
10222 2011-10-08  Bruno Haible  <bruno@clisp.org>
10223
10224         gnulib-tool: Improve last commit.
10225         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10226         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10227         ignore dependencies that are not among the modules list.
10228
10229 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10230
10231         gnulib-tool: don't follow dependencies to avoided modules
10232         This fixes a bug that is related to the previous one.
10233         * gnulib-tool (func_modules_transitive_closure)
10234         (func_emit_autoconf_snippets):
10235         Check whether a dependency is acceptable before using it.
10236         (--extract-dependencies): Report an error if --avoid is also used,
10237         since this combination of options is not yet supported.
10238
10239         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10240         Problem reported by Peter Dyballa in
10241         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10242         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10243         when echoing "$condition".
10244
10245 2011-10-07  Bruno Haible  <bruno@clisp.org>
10246
10247         Fix documentation about math functions on MacOS X.
10248         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10249         MacOS X 10.5.
10250         * doc/posix-functions/fdim.texi: Likewise.
10251         * doc/posix-functions/feclearexcept.texi: Likewise.
10252         * doc/posix-functions/fegetenv.texi: Likewise.
10253         * doc/posix-functions/fegetround.texi: Likewise.
10254         * doc/posix-functions/feholdexcept.texi: Likewise.
10255         * doc/posix-functions/feraiseexcept.texi: Likewise.
10256         * doc/posix-functions/fesetenv.texi: Likewise.
10257         * doc/posix-functions/fesetround.texi: Likewise.
10258         * doc/posix-functions/fetestexcept.texi: Likewise.
10259         * doc/posix-functions/feupdateenv.texi: Likewise.
10260         * doc/posix-functions/fmax.texi: Likewise.
10261         * doc/posix-functions/fmin.texi: Likewise.
10262         * doc/posix-functions/log2.texi: Likewise.
10263         * doc/posix-functions/modff.texi: Likewise.
10264         * doc/posix-functions/nan.texi: Likewise.
10265         * doc/posix-functions/nanf.texi: Likewise.
10266         * doc/posix-functions/nextafterf.texi: Likewise.
10267         * doc/posix-functions/remquo.texi: Likewise.
10268
10269 2011-10-07  Bruno Haible  <bruno@clisp.org>
10270
10271         modff: Drop assumption about library that defines modff.
10272         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10273         AC_CHECK_FUNCS.
10274         * modules/modff (Files): Add m4/mathfunc.m4.
10275
10276 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10277
10278         raise tests: Avoid a GCC warning.
10279         * tests/test-raise.c (handler): Use _Noreturn.
10280
10281 2011-10-07  Bruno Haible  <bruno@clisp.org>
10282
10283         Tests for module 'ldexpf'.
10284         * modules/ldexpf-tests: New file.
10285         * tests/test-ldexpf.c: New file.
10286
10287         New module 'ldexpf'.
10288         * lib/math.in.h (ldexpf): New declaration.
10289         * lib/ldexpf.c: New file.
10290         * m4/ldexpf.m4: New file.
10291         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10293         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10294         * modules/ldexpf: New file.
10295         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10296         * doc/posix-functions/ldexpf.texi: Mention the new module.
10297
10298 2011-10-06  Bruno Haible  <bruno@clisp.org>
10299
10300         frexpf: Work around problems on IRIX and mingw.
10301         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10303         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10304         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10305         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10306         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10307         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10308
10309 2011-10-06  Bruno Haible  <bruno@clisp.org>
10310
10311         fabsf: Drop assumption about library that defines fabsf.
10312         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10313         AC_CHECK_FUNCS.
10314         * modules/fabsf (Files): Add m4/mathfunc.m4.
10315
10316 2011-10-06  Bruno Haible  <bruno@clisp.org>
10317
10318         frexpf: Drop assumption about library that defines frexpf.
10319         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10320         'int *', 'float *', 'long double *', 'float', 'long double'.
10321         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10322         AC_CHECK_FUNCS.
10323         * modules/frexpf (Files): Add m4/mathfunc.m4.
10324
10325         Tests for module 'frexpf'.
10326         * modules/frexpf-tests: New file.
10327         * tests/test-frexpf.c: New file.
10328
10329         New module 'frexpf'.
10330         * lib/math.in.h (frexpf): New declaration.
10331         * lib/frexpf.c: New file.
10332         * m4/frexpf.m4: New file.
10333         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10335         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10336         * modules/frexpf: New file.
10337         * tests/test-math-c++.cc: Check the declaration of frexpf.
10338         * doc/posix-functions/frexpf.texi: Mention the new module.
10339
10340 2011-10-06  Bruno Haible  <bruno@clisp.org>
10341
10342         math: Sort function declarations of math.in.h.
10343         * lib/math.in.h (frexp, logb): Move declarations.
10344
10345 2011-10-05  Bruno Haible  <bruno@clisp.org>
10346
10347         Tests for module 'modff'.
10348         * modules/modff-tests: New file.
10349         * tests/test-modff.c: New file.
10350
10351         New module 'modff'.
10352         * lib/math.in.h (modff): New declaration.
10353         * lib/modff.c: New file.
10354         * m4/modff.m4: New file.
10355         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10357         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10358         * modules/modff: New file.
10359         * tests/test-math-c++.cc: Check the declaration of modff.
10360         * doc/posix-functions/modff.texi: Mention the new module.
10361
10362         modf tests: Make test sharper.
10363         * tests/test-modf.c (main): Strengthen upper bound.
10364
10365         modf: Use a .m4 file.
10366         * m4/modf.m4: New file.
10367         * modules/modf (Files): Add it.
10368         (configure.ac): Just invoke gl_FUNC_MODF.
10369
10370 2011-10-05  Bruno Haible  <bruno@clisp.org>
10371
10372         Tests for module 'fmodf'.
10373         * modules/fmodf-tests: New file.
10374         * tests/test-fmodf.c: New file.
10375
10376         New module 'fmodf'.
10377         * lib/math.in.h (fmodf): New declaration.
10378         * lib/fmodf.c: New file.
10379         * m4/fmodf.m4: New file.
10380         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10382         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10383         * modules/fmodf: New file.
10384         * tests/test-math-c++.cc: Check the declaration of fmodf.
10385         * doc/posix-functions/fmodf.texi: Mention the new module.
10386
10387         fmod: Use a .m4 file.
10388         * m4/fmod.m4: New file.
10389         * modules/fmod (Files): Add it.
10390         (configure.ac): Just invoke gl_FUNC_FMOD.
10391
10392 2011-10-05  Bruno Haible  <bruno@clisp.org>
10393
10394         Tests for module 'fabsf'.
10395         * modules/fabsf-tests: New file.
10396         * tests/test-fabsf.c: New file.
10397
10398         New module 'fabsf'.
10399         * lib/math.in.h (fabsf): New declaration.
10400         * lib/fabsf.c: New file.
10401         * m4/fabsf.m4: New file.
10402         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10404         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10405         * modules/fabsf: New file.
10406         * tests/test-math-c++.cc: Check the declaration of fabsf.
10407         * doc/posix-functions/fabsf.texi: Mention the new module.
10408
10409         fabs: Use a .m4 file.
10410         * m4/fabs.m4: New file.
10411         * modules/fabs (Files): Add it.
10412         (configure.ac): Just invoke gl_FUNC_FABS.
10413
10414 2011-10-05  Jim Meyering  <meyering@redhat.com>
10415
10416         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10417         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10418         ls -lL regression introduced in coreutils-8.12, it does so at the
10419         cost of an additional stat call in the common case.  Besides, now
10420         that the kernel change that prompted commit 95f7c57f has been reverted
10421         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10422         we have no use for commit 95f7c57f, "file-has-acl: use
10423         acl_extended_file_nofollow if available".
10424
10425 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10426
10427         file-has-acl: revert unintended change in behavior of ls -L
10428         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10429         derived from...
10430         (file_has_acl): ...code here.  Call it.
10431         This problem was introduced with 2011-07-22 commit 95f7c57f,
10432         "file-has-acl: use acl_extended_file_nofollow if available".
10433         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10434
10435 2011-10-03  Bruno Haible  <bruno@clisp.org>
10436
10437         poll: Avoid link errors on MSVC.
10438         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10439         * modules/poll (Depends-on): Add sockets.
10440         (Link): New section.
10441         * NEWS: Mention the change.
10442         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10443         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10444         $(LIB_POLL) instead of $(LIBSOCKET).
10445
10446 2011-10-03  Bruno Haible  <bruno@clisp.org>
10447
10448         sys_select tests: Fix link error on MSVC 9.
10449         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10450         with $(LIB_SELECT) instead of $(LIBSOCKET).
10451
10452 2011-10-03  Bruno Haible  <bruno@clisp.org>
10453
10454         sys_select: Fix compilation error on mingw.
10455         * lib/sys_select.in.h: On native Windows, include <io.h>.
10456
10457 2011-10-03  Bruno Haible  <bruno@clisp.org>
10458
10459         wmemset: Support for MSVC.
10460         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10461         whether wmemset() exists.
10462
10463 2011-10-03  Bruno Haible  <bruno@clisp.org>
10464
10465         wmemmove: Support for MSVC.
10466         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10467         whether wmemmove() exists.
10468
10469 2011-10-03  Bruno Haible  <bruno@clisp.org>
10470
10471         wmemcpy: Support for MSVC.
10472         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10473         whether wmemcpy() exists.
10474
10475 2011-10-03  Bruno Haible  <bruno@clisp.org>
10476
10477         wmemcmp: Support for MSVC.
10478         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10479         whether wmemcmp() exists.
10480
10481 2011-10-03  Bruno Haible  <bruno@clisp.org>
10482
10483         wmemchr: Support for MSVC.
10484         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10485         whether wmemchr() exists.
10486
10487 2011-10-03  Bruno Haible  <bruno@clisp.org>
10488
10489         glthread/*, strsignal: Support for MSVC.
10490         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10491         including <winsock.h> on MSVC 9.
10492         * lib/glthread/lock.h: Likewise.
10493         * lib/glthread/thread.h: Likewise.
10494         * lib/glthread/tls.h: Likewise.
10495         * lib/glthread/yield.h: Likewise.
10496         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10497         if HAVE_UNISTD_H is false.
10498         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10499
10500 2011-10-03  Bruno Haible  <bruno@clisp.org>
10501
10502         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10503         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10504         Set to 100000.
10505
10506 2011-10-03  Bruno Haible  <bruno@clisp.org>
10507
10508         acl: Fix specification.
10509         * lib/file-has-acl.c (file_has_acl): Fix specification.
10510
10511 2011-10-03  Bruno Haible  <bruno@clisp.org>
10512
10513         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10514         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10515         (compute_curr_prefix, shared_library_fullname,
10516         find_shared_library_fullname, get_shared_library_fullname, relocate):
10517         Use it together with PIC && INSTALLDIR.
10518         Reported by <jojelino@gmail.com>
10519         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10520
10521 2011-10-01  Jim Meyering  <meyering@redhat.com>
10522
10523         maint.mk: adjust a release-related rule not to require use of gzip
10524         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10525         Instead, check each file in $(DIST_ARCHIVES).  This is better for
10526         projects that build only .tar.xz files.  Also fix an erroneous test.
10527
10528         test-linkat: don't leave behind a temporary file
10529         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
10530         Otherwise, coreutils' "make distcheck" would fail with this:
10531           Only in /c/cu/tests/torture/coreutils/test/\
10532             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
10533           make[2]: *** [my-distcheck] Error 1
10534
10535         float, math: add omitted file
10536         * lib/itold.c: Add file, required for yesterday's float change.
10537
10538 2011-10-01  Bruno Haible  <bruno@clisp.org>
10539
10540         isinf: Fix for OpenBSD/x86.
10541         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
10542         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
10543         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
10544
10545 2011-10-01  Bruno Haible  <bruno@clisp.org>
10546
10547         isfinite: Fix syntax error in configure test.
10548         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
10549
10550         isfinite: Fix typo.
10551         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
10552         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
10553
10554 2011-10-01  Bruno Haible  <bruno@clisp.org>
10555
10556         nonblocking tests: Fix test failure on Linux/IA-64.
10557         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
10558         Set to 270000.
10559
10560 2011-10-01  Bruno Haible  <bruno@clisp.org>
10561
10562         mkfifoat tests: Fix a test failure on mingw.
10563         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
10564         with error ENOSYS.
10565
10566 2011-09-30  Bruno Haible  <bruno@clisp.org>
10567
10568         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
10569         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
10570         'long double'. Set REPLACE_ITOLD.
10571         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
10572         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
10573         * lib/itold.c: New file.
10574         * modules/float (Files): Add lib/itold.c.
10575         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
10576         (Makefile.am): Substitute REPLACE_ITOLD.
10577         * modules/math (Depends-on): Add float.
10578         (Makefile.am): Substitute REPLACE_ITOLD.
10579         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
10580         * doc/posix-headers/math.texi: Likewise.
10581         * doc/posix-functions/logl.texi: Likewise.
10582
10583 2011-09-30  Bruno Haible  <bruno@clisp.org>
10584
10585         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
10586         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
10587         Set to 140000.
10588
10589 2011-09-30  Bruno Haible  <bruno@clisp.org>
10590
10591         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
10592         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
10593         invocation, say "right after AC_PROG_CC_STDC", not "right after
10594         AC_PROG_CC".
10595         Reported by Gary V. Vaughan <gary@gnu.org>.
10596
10597 2011-09-30  Bruno Haible  <bruno@clisp.org>
10598
10599         Centralize C99 requirement.
10600         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
10601         * modules/stdarg (configure.ac-early): Invoke it instead of
10602         AC_PROG_CC_STDC.
10603         Reported by Gary V. Vaughan and Paul Eggert.
10604
10605 2011-09-29  Bruno Haible  <bruno@clisp.org>
10606
10607         float: Fix LDBL_MAX value on Linux/PowerPC.
10608         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
10609         on Linux/PowerPC.
10610         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
10611         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
10612         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
10613         platform.
10614         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
10615
10616 2011-09-29  Bruno Haible  <bruno@clisp.org>
10617
10618         doc: Improve doc about gl_EARLY.
10619         * doc/gnulib-tool.texi (Initial import): Mention where to place an
10620         AC_PROG_CC_STDC invocation.
10621         Reported by Gary V. Vaughan <gary@gnu.org>.
10622
10623 2011-09-28  Bruno Haible  <bruno@clisp.org>
10624
10625         fgetc, fputc, fread, fwrite tests: Fix link error.
10626         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
10627         on non-MSVC platforms.
10628         * tests/test-fputc.c (main): Likewise.
10629         * tests/test-fread.c (main): Likewise.
10630         * tests/test-fwrite.c (main): Likewise.
10631         Reported by Jim Meyering.
10632
10633 2011-09-27  Bruno Haible  <bruno@clisp.org>
10634
10635         fputc, fwrite tests: Avoid test failure on MSVC.
10636         * tests/test-fgetc.c: Include msvc-inval.h.
10637         (main): Invoke gl_msvc_inval_ensure_handler.
10638         * tests/test-fputc.c: Include msvc-inval.h.
10639         (main): Invoke gl_msvc_inval_ensure_handler.
10640         * tests/test-fread.c: Include msvc-inval.h.
10641         (main): Invoke gl_msvc_inval_ensure_handler.
10642         * tests/test-fwrite.c: Include msvc-inval.h.
10643         (main): Invoke gl_msvc_inval_ensure_handler.
10644         * modules/fgetc-tests (Depends-on): Add msvc-inval.
10645         * modules/fputc-tests (Depends-on): Likewise.
10646         * modules/fread-tests (Depends-on): Likewise.
10647         * modules/fwrite-tests (Depends-on): Likewise.
10648
10649 2011-09-27  Bruno Haible  <bruno@clisp.org>
10650
10651         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
10652         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
10653         (raise): Remove older, duplicated declaration.
10654         (_gl_raise_SIGPIPE): New declaration.
10655         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
10656         (rpl_raise): Remove function.
10657         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
10658         a gnulib-defined SIGPIPE here.
10659         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
10660         'sigprocmask' has detected missing signal-blocking and the module
10661         'sigpipe' is enabled.
10662         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10663
10664 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
10665
10666         base64-tests: avoid memory leak
10667         * tests/test-base64.c (main): Plug memory leak.
10668
10669         base32: new module
10670         * modules/base32: New module.
10671         * lib/base32.c: New file.
10672         * lib/base32.h: Likewise.
10673         * m4/base32.m4: Likewise.
10674         * modules/base32-tests: New test.
10675         * tests/test-base32.c: Likewise.
10676         * MODULES.html.sh (Misc): Mention it.
10677
10678 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10679
10680         gnulib: use more-standard license notice wording
10681         * gnulib-tool (func_emit_copyright_notice): When emitting a
10682         license notice into a file, use the standard wording as suggested
10683         by the current information for GNU maintainers, except say "file"
10684         rather than "program".  The new wording gives a license version
10685         number, which addresses an issue raised by Glenn Morris in
10686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
10687         * m4/onceonly.m4: Use that same wording here, too.
10688
10689         dup2: minor simplification
10690         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
10691         as lib/dup2.c no longer uses 'inline'.
10692
10693 2011-09-25  Bruno Haible  <bruno@clisp.org>
10694
10695         strings: Fix compilation error on MSVC.
10696         * lib/strings.in.h: Include <stddef.h> for size_t.
10697
10698 2011-09-25  Bruno Haible  <bruno@clisp.org>
10699
10700         fflush et al.: Document limitation on MSVC.
10701         * doc/posix-functions/fflush.texi: Document possible crash in handling
10702         mode other than DEFAULT_HANDLING.
10703         * doc/posix-functions/fgetc.texi: Likewise.
10704         * doc/posix-functions/fputc.texi: Likewise.
10705         * doc/posix-functions/fread.texi: Likewise.
10706         * doc/posix-functions/fwrite.texi: Likewise.
10707
10708 2011-09-25  Bruno Haible  <bruno@clisp.org>
10709
10710         msvc-inval: Allow three invalid parameter handling modes.
10711         * lib/msvc-inval.h: Don't include <stdlib.h> here.
10712         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
10713         macros.
10714         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
10715         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
10716         SANE_LIBRARY_HANDLING as a no-op.
10717         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
10718         <stdlib.h>.
10719         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
10720
10721 2011-09-25  Bruno Haible  <bruno@clisp.org>
10722
10723         msvc-inval: Make handler multithread-safe.
10724         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
10725         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
10726         declarations.
10727         (gl_msvc_inval_current): New declaration.
10728         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10729         Operate on the structure returned by gl_msvc_inval_current().
10730         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
10731         Remove varaiables.
10732         (tls_index, tls_initialized): New variables.
10733         (not_per_thread): New variable.
10734         (gl_msvc_inval_current): New function.
10735         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
10736         returned by gl_msvc_inval_current().
10737
10738 2011-09-25  Bruno Haible  <bruno@clisp.org>
10739
10740         msvc-inval: Install handler globally.
10741         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
10742         !_MSC_VER.
10743         (gl_msvc_invalid_parameter_handler): Remove declaration.
10744         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
10745         declarations.
10746         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10747         Install the handler globally, don't uninstall it.
10748         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
10749         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
10750         currently valid, call RaiseException instead.
10751         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
10752         for !_MSC_VER.
10753
10754 2011-09-25  Bruno Haible  <bruno@clisp.org>
10755
10756         strerror_r-posix: Fix for MSVC 9.
10757         * lib/strerror_r.c (local_snprintf): New function.
10758         (snprintf): Define to local_snprintf, not to _snprintf.
10759
10760 2011-09-25  Bruno Haible  <bruno@clisp.org>
10761
10762         ftruncate: Support for MSVC 9.
10763         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
10764         (chsize_nothrow): New function.
10765         (chsize): Redefine as a macro.
10766         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
10767         * modules/ftruncate (Depends-on): Add msvc-inval.
10768
10769 2011-09-25  Bruno Haible  <bruno@clisp.org>
10770
10771         New module 'fstat'.
10772         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
10773         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
10774         * lib/fchdir.c (rpl_fstat): Remove function.
10775         * m4/fstat.m4: New file.
10776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
10777         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
10778         declared.
10779         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
10780         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
10781         * modules/fstat: New file.
10782         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
10783         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
10784         is set.
10785         * doc/posix-functions/fstat.texi: Mention the new module and the
10786         problem on MSVC.
10787         * NEWS: Mention the change.
10788         * modules/acl (Depends-on): Add fstat.
10789         * modules/chdir-safer (Depends-on): Likewise.
10790         * modules/chown (Depends-on): Likewise.
10791         * modules/copy-file (Depends-on): Likewise.
10792         * modules/fchdir (Depends-on): Likewise.
10793         * modules/fdopendir (Depends-on): Likewise.
10794         * modules/fopen (Depends-on): Likewise.
10795         * modules/fts (Depends-on): Likewise.
10796         * modules/getcwd (Depends-on): Likewise.
10797         * modules/isapipe (Depends-on): Likewise.
10798         * modules/linkat (Depends-on): Likewise.
10799         * modules/lseek (Depends-on): Likewise.
10800         * modules/mkdir-p (Depends-on): Likewise.
10801         * modules/open (Depends-on): Likewise.
10802         * modules/openat (Depends-on): Likewise.
10803         * modules/read-file (Depends-on): Likewise.
10804         * modules/renameat (Depends-on): Likewise.
10805         * modules/utimens (Depends-on): Likewise.
10806
10807 2011-09-25  Bruno Haible  <bruno@clisp.org>
10808
10809         linkat: Fix compilation on MSVC 9.
10810         * lib/linkat.c: Don't include <stdint.h>.
10811
10812 2011-09-25  Bruno Haible  <bruno@clisp.org>
10813
10814         fclose: Support for MSVC 9.
10815         * lib/fclose.c: Include msvc-inval.h.
10816         (fclose_nothrow): New function.
10817         (rpl_fclose): Use it.
10818         * modules/fclose (Depends-on): Add msvc-inval.
10819         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
10820
10821 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10822
10823         dup2: minor simplifications
10824         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
10825         that it's a performance win.
10826         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
10827         ! defined __CYGWIN__)" to "ifdef F_GETFL".
10828
10829 2011-09-24  Jim Meyering  <meyering@redhat.com>
10830
10831         test-futimens: avoid a warning from gcc -Wshadow
10832         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
10833         to avoid a shadowing warning.
10834
10835 2011-09-24  Bruno Haible  <bruno@clisp.org>
10836
10837         fdopen: Support for MSVC 9.
10838         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
10839         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
10840         * lib/fdopen.c: Include msvc-inval.h.
10841         (fdopen_nothrow): New function.
10842         (rpl_fdopen): Use it.
10843         * modules/fdopen (Depends-on): Add msvc-inval.
10844         * modules/fclose-tests (Depends-on): Add fdopen.
10845         * modules/fflush-tests (Depends-on): Likewise.
10846         * modules/fgetc-tests (Depends-on): Likewise.
10847         * modules/fputc-tests (Depends-on): Likewise.
10848         * modules/fread-tests (Depends-on): Likewise.
10849         * modules/freopen-tests (Depends-on): Likewise.
10850         * modules/fseeko-tests (Depends-on): Likewise.
10851         * modules/ftello-tests (Depends-on): Likewise.
10852         * modules/fwrite-tests  (Depends-on): Likewise.
10853         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
10854
10855 2011-09-24  Bruno Haible  <bruno@clisp.org>
10856
10857         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
10858         * modules/fgetc-tests (Depends-on): Add unistd.
10859         * modules/fputc-tests (Depends-on): Likewise.
10860         * modules/fread-tests (Depends-on): Likewise.
10861         * modules/fwrite-tests (Depends-on): Likewise.
10862
10863 2011-09-24  Bruno Haible  <bruno@clisp.org>
10864
10865         dup: Simplify autoconf test.
10866         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
10867         on gl_MSVC_INVAL's result.
10868
10869 2011-09-24  Bruno Haible  <bruno@clisp.org>
10870
10871         Tests for function fwrite().
10872         * modules/fwrite-tests: New file.
10873         * tests/test-fwrite.c: New file.
10874         * modules/stdio-tests (Depends-on): Add fwrite-tests.
10875
10876         Tests for function fread().
10877         * modules/fread-tests: New file.
10878         * tests/test-fread.c: New file.
10879         * modules/stdio-tests (Depends-on): Add fread-tests.
10880
10881         Activate fputc tests.
10882         * modules/stdio-tests (Depends-on): Add fputc-tests.
10883
10884         Enhance fgetc, fputc tests.
10885         * tests/test-fgetc.c (main): Also test the stream's error indicator.
10886         * tests/test-fputc.c (main): Likewise.
10887
10888 2011-09-24  Bruno Haible  <bruno@clisp.org>
10889
10890         write: Support for MSVC 9.
10891         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10892         is not 1.
10893         * lib/write.c (write_nothrow): New function.
10894         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
10895         not 1. Use write_nothrow.
10896         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
10897         invalid parameter handler.
10898         (gl_PREREQ_WRITE): New macro.
10899         * modules/write (Depends-on): Add msvc-inval.
10900         (configure.ac): Invoke gl_PREREQ_WRITE.
10901         * doc/posix-functions/write.texi: Mention the problem on MSVC.
10902
10903 2011-09-24  Bruno Haible  <bruno@clisp.org>
10904
10905         read: Fix last commit.
10906         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
10907
10908 2011-09-24  Bruno Haible  <bruno@clisp.org>
10909
10910         dup2: Fix last commit.
10911         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
10912         (rpl_dup2): Disable fcntl workaround on native Windows.
10913
10914         sigprocmask: Make code safer.
10915         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
10916         section that changes macro definitions for this compilation unit.
10917
10918 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10919
10920         dup2: clarify by coalescing Windows-specific material
10921         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
10922         "msvc-nothrow.h"' to the Windows-specific section, so that the
10923         Emacs source need not contain these include files.
10924         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
10925         Windows-specific fixes into this function rather than just the
10926         nothrow fix, as this shortens and clarifies the code.  Always
10927         define as a function, as that's a bit cleaner than having it be
10928         sometimes a function and sometimes a macro.
10929         (rpl_dup2): Move the Windows-specific stuff out of here and into
10930         ms_windows_dup2.  Don't protect the Haiku-related fix with
10931         "#if !defined __linux__", as the same code also works around
10932         a Linux kernel bug, and it doesn't add any system calls on any
10933         platform.  Add comment about FreeBSD 6.1.
10934
10935         sigprocmask: move #include directive
10936         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
10937         Windows-specific section, so that the Emacs source need not
10938         contain msvc-inval.h.
10939
10940 2011-09-23  Bruno Haible  <bruno@clisp.org>
10941
10942         read: Support for MSVC 9.
10943         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10944         is not 1.
10945         * lib/read.c (read_nothrow): New function.
10946         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
10947         read_nothrow.
10948         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
10949         invalid parameter handler.
10950         (gl_PREREQ_READ): New macro.
10951         * modules/read (Depends-on): Add msvc-inval.
10952         (configure.ac): Invoke gl_PREREQ_READ.
10953         * doc/posix-functions/read.texi: Mention the problem on MSVC.
10954
10955 2011-09-23  Bruno Haible  <bruno@clisp.org>
10956
10957         close: Support for MSVC 9.
10958         * lib/close.c: Include <errno.h>, msvc-inval.h.
10959         (close_nothrow): New function.
10960         (rpl_close): Use it.
10961         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
10962         invalid parameter handler.
10963         * modules/close (Depends-on): Add msvc-inval.
10964         * modules/dup2-tests (Depends-on): Add close.
10965         * modules/dup3-tests (Depends-on): Likewise.
10966         * modules/fcntl-tests (Depends-on): Likewise.
10967         * modules/spawn-pipe-tests (Depends-on): Likewise.
10968         * modules/unistd-safer-tests (Depends-on): Likewise.
10969         * doc/posix-functions/close.texi: Mention the problem on MSVC.
10970
10971 2011-09-23  Bruno Haible  <bruno@clisp.org>
10972
10973         New module 'dup'.
10974         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
10975         Allow replacement.
10976         * lib/dup.c: New file.
10977         * lib/fchdir.c (rpl_dup): Remove function.
10978         * m4/dup.m4: New file.
10979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
10980         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
10981         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
10982         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
10983         * modules/dup: New file.
10984         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
10985         'dup' module is in use.
10986         * modules/fdopendir (Depends-on): Add dup.
10987         * modules/fdutimensat-tests (Depends-on): Likewise.
10988         * modules/fts (Depends-on): Likewise.
10989         * modules/futimens-tests (Depends-on): Likewise.
10990         * modules/posix_spawnp-tests (Depends-on): Likewise.
10991         * modules/unistd-safer-tests (Depends-on): Likewise.
10992         * modules/utimens-tests (Depends-on): Likewise.
10993         * doc/posix-functions/dup.texi: Mention the new module and the problem
10994         on MSVC.
10995
10996 2011-09-23  Bruno Haible  <bruno@clisp.org>
10997
10998         getdtablesize: Support for MSVC 9.
10999         * lib/getdtablesize.c: Include msvc-inval.h.
11000         (_setmaxstdio_nothrow): New function.
11001         (_setmaxstdio): Redefine it.
11002         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11003         * modules/getdtablesize (Depends-on): Add msvc-inval.
11004         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11005
11006 2011-09-23  Bruno Haible  <bruno@clisp.org>
11007
11008         signal-h: Rename from signal.
11009         * modules/signal-h: Renamed from modules/signal.
11010         * modules/pthread_sigmask (Depends-on): Update.
11011         * modules/raise (Depends-on): Likewise.
11012         * modules/sigaction (Depends-on): Likewise.
11013         * modules/sigpipe (Depends-on): Likewise.
11014         * modules/sigprocmask (Depends-on): Likewise.
11015         * modules/sys_select (Depends-on): Likewise.
11016         * modules/signal-h-tests: Renamed from modules/signal-tests.
11017         (Files, Depends-on, Makefile.am): Update.
11018         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11019         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11020         (Files, Makefile.am): Update.
11021         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11022         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11023         * modules/signal: New placeholder file.
11024         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11025         * doc/posix-headers/signal.texi: Update.
11026         * NEWS: Mention the change.
11027
11028 2011-09-23  Bruno Haible  <bruno@clisp.org>
11029
11030         sigprocmask: Avoid crashes through signal() on MSVC 9.
11031         * lib/sigprocmask.c: Include msvc-inval.h.
11032         (signal_nothrow): New function.
11033         (signal): Redefine it.
11034         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11035         * modules/sigprocmask (Depends-on): Add msvc-inval.
11036         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11037
11038 2011-09-23  Bruno Haible  <bruno@clisp.org>
11039
11040         Tests for module 'raise'.
11041         * modules/raise-tests: New file.
11042         * tests/test-raise.c: New file.
11043
11044         raise: Support for MSVC.
11045         * lib/signal.in.h (raise): New declaration.
11046         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11047         for native Windows platforms.
11048         * m4/raise.m4: New file.
11049         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11050         HAVE_RAISE, REPLACE_RAISE.
11051         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11052         REPLACE_RAISE.
11053         * modules/raise (Status, Notice): Remove fields.
11054         (Files): Add m4/raise.m4.
11055         (Depends-on): Add signal, msvc-inval.
11056         (configure.ac): Use the common idioms.
11057         (Maintainer): Add me.
11058         * tests/test-signal-c++.cc: Check the signature of raise.
11059         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11060
11061 2011-09-23  Bruno Haible  <bruno@clisp.org>
11062
11063         pipe2: Fix compilation on pre-C99 compilers.
11064         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11065
11066 2011-09-23  Bruno Haible  <bruno@clisp.org>
11067
11068         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11069         * lib/msvc-nothrow.h: New file.
11070         * lib/msvc-nothrow.c: New file.
11071         * m4/msvc-nothrow.m4: New file.
11072         * modules/msvc-nothrow: New file.
11073         * lib/dup2.c: Include msvc-nothrow.h.
11074         (rpl_dup2): No need to protect _get_osfhandle call here.
11075         * lib/accept4.c: Include msvc-nothrow.h.
11076         * lib/error.c: Likewise.
11077         * lib/fcntl.c: Likewise.
11078         * lib/lseek.c: Likewise.
11079         * lib/nonblocking.c: Likewise.
11080         * lib/poll.c: Likewise.
11081         * lib/read.c: Likewise.
11082         * lib/select.c: Likewise.
11083         * lib/sockets.h: Likewise.
11084         * lib/sockets.c: Likewise.
11085         * lib/stdio-read.c: Likewise.
11086         * lib/stdio-write.c: Likewise.
11087         * lib/write.c: Likewise.
11088         * lib/w32sock.h: Likewise.
11089         * lib/w32spawn.h: Likewise.
11090         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11091         * lib/fsync.c: Likewise.
11092         * lib/isapipe.c: Likewise.
11093         * modules/dup2 (Depends-on): Add msvc-nothrow.
11094         * modules/accept4 (Depends-on): Likewise.
11095         * modules/error (Depends-on): Likewise.
11096         * modules/fcntl (Depends-on): Likewise.
11097         * modules/lseek (Depends-on): Likewise.
11098         * modules/nonblocking (Depends-on): Likewise.
11099         * modules/poll (Depends-on): Likewise.
11100         * modules/read (Depends-on): Likewise.
11101         * modules/select (Depends-on): Likewise.
11102         * modules/sockets (Depends-on): Likewise.
11103         * modules/sigpipe (Depends-on): Likewise.
11104         * modules/write (Depends-on): Likewise.
11105         * modules/accept (Depends-on): Likewise.
11106         * modules/bind (Depends-on): Likewise.
11107         * modules/connect (Depends-on): Likewise.
11108         * modules/gethostname (Depends-on): Likewise.
11109         * modules/getpeername (Depends-on): Likewise.
11110         * modules/getsockname (Depends-on): Likewise.
11111         * modules/getsockopt (Depends-on): Likewise.
11112         * modules/ioctl (Depends-on): Likewise.
11113         * modules/listen (Depends-on): Likewise.
11114         * modules/recv (Depends-on): Likewise.
11115         * modules/recvfrom (Depends-on): Likewise.
11116         * modules/send (Depends-on): Likewise.
11117         * modules/sendto (Depends-on): Likewise.
11118         * modules/setsockopt (Depends-on): Likewise.
11119         * modules/shutdown (Depends-on): Likewise.
11120         * modules/socket (Depends-on): Likewise.
11121         * modules/execute (Depends-on): Likewise.
11122         * modules/spawn-pipe (Depends-on): Likewise.
11123         * modules/flock (Depends-on): Likewise.
11124         * modules/fsync (Depends-on): Likewise.
11125         * modules/isapipe (Depends-on): Likewise.
11126         * tests/test-cloexec.c: Include msvc-nothrow.h.
11127         * tests/test-dup-safer.c: Likewise.
11128         * tests/test-dup2.c: Likewise.
11129         * tests/test-dup3.c: Likewise.
11130         * tests/test-fcntl.c: Likewise.
11131         * tests/test-pipe.c: Likewise.
11132         * tests/test-pipe2.c: Likewise.
11133         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11134         * modules/unistd-safer-tests (Depends-on): Likewise.
11135         * modules/dup2-tests (Depends-on): Likewise.
11136         * modules/dup3-tests (Depends-on): Likewise.
11137         * modules/fcntl-tests (Depends-on): Likewise.
11138         * modules/pipe-posix-tests (Depends-on): Likewise.
11139         * modules/pipe2-tests (Depends-on): Likewise.
11140
11141 2011-09-23  Bruno Haible  <bruno@clisp.org>
11142
11143         dup2: Make code more maintainable.
11144         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11145         (rpl_dup2): Use it.
11146         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11147         * modules/dup2 (configure.ac): Invoke it.
11148         Reported by Paul Eggert.
11149
11150 2011-09-23  Bruno Haible  <bruno@clisp.org>
11151
11152         msvc-inval: Fix compilation error.
11153         * lib/msvc-inval.h: Include <excpt.h>.
11154
11155 2011-09-23  Bruno Haible  <bruno@clisp.org>
11156
11157         mkdir: Tweak for MSVC 9.
11158         * lib/sys_stat.in.h: Update comments.
11159         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11160
11161         Tests for module 'chdir'.
11162         * modules/chdir-tests: New file.
11163         * tests/test-chdir.c: New file.
11164
11165         New module 'chdir'.
11166         * modules/chdir: New file.
11167         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11168         (chdir): New declaration.
11169         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11170         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11171         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11172         * tests/test-unistd-c++.cc: Check signature of chdir.
11173         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11174         * modules/chdir-long (Depends-on): Add chdir.
11175         * modules/fchdir (Depends-on): Likewise.
11176         * modules/rename (Depends-on): Likewise.
11177         * modules/savewd (Depends-on): Likewise.
11178
11179         rmdir: Support for mingw, MSVC 9.
11180         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11181         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11182
11183         getcwd: Tweak for MSVC 9.
11184         * lib/unistd.in.h: Update comments.
11185         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11186
11187 2011-09-22  Bruno Haible  <bruno@clisp.org>
11188
11189         strerror_r-posix: Avoid a link error on MSVC.
11190         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11191         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11192
11193 2011-09-22  Bruno Haible  <bruno@clisp.org>
11194
11195         select: Avoid link errors on MSVC.
11196         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11197         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11198         * modules/pselect (Link): Likewise.
11199         * NEWS: Mention the change.
11200         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11201         test-select-stdin against $(LIB_SELECT).
11202         * modules/pselect-tests (Makefile.am): Link test-pselect against
11203         $(LIB_SELECT).
11204
11205 2011-09-22  Bruno Haible  <bruno@clisp.org>
11206
11207         select: Avoid compilation error on MSVC.
11208         * lib/select.c: Don't include <stdbool.h>.
11209
11210 2011-09-21  Bruno Haible  <bruno@clisp.org>
11211
11212         Consolidate all uses of PATH_MAX in *.m4 files.
11213         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11214         macros.
11215         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11216         and gl_PATHMAX_SNIPPET.
11217         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11218         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11219         * modules/chdir-long (Files): Add m4/pathmax.m4.
11220         * modules/getcwd (Files): Likewise.
11221
11222 2011-09-21  Bruno Haible  <bruno@clisp.org>
11223
11224         ftruncate: Un-deprecate, concentrate on Win32 support.
11225         * modules/ftruncate (Status, Notice): Remove sections.
11226         (Depends-on): Add largefile.
11227         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11228         non-mingw platforms.
11229         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11230         include <io.h>.
11231         * modules/perror-tests (Depends-on): Add ftruncate.
11232         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11233         'ftruncate' module.
11234
11235 2011-09-21  Bruno Haible  <bruno@clisp.org>
11236
11237         Add dependencies to new dirent related modules.
11238         * modules/opendir (Depends-on): Add closedir.
11239         * modules/getcwd (Depends-on): Add opendir, closedir.
11240         * modules/dirent-safer-tests (Depends-on): Likewise.
11241         * modules/fdopendir-tests (Depends-on): Likewise.
11242         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11243         * modules/renameat-tests (Depends-on): Likewise.
11244
11245 2011-09-21  Bruno Haible  <bruno@clisp.org>
11246
11247         opendir: Avoid compilation error on mingw.
11248         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11249         * modules/opendir (Depends-on): Add unistd.
11250
11251 2011-09-21  Bruno Haible  <bruno@clisp.org>
11252
11253         ftruncate tests: Avoid a test failure on mingw.
11254         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11255
11256 2011-09-21  Bruno Haible  <bruno@clisp.org>
11257
11258         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11259         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11260         native Windows.
11261
11262 2011-09-21  Bruno Haible  <bruno@clisp.org>
11263
11264         New module 'fdopen'.
11265         * lib/stdio.in.h (fdopen): New declaration.
11266         * lib/fdopen.c: New file.
11267         * m4/fdopen.m4: New file.
11268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11269         REPLACE_FDOPEN.
11270         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11271         REPLACE_FDOPEN.
11272         * modules/fdopen: New file.
11273         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11274         * tests/test-stdio-c++.cc: Check signature of fdopen.
11275         * doc/posix-functions/fdopen.texi: Mention the new module.
11276
11277 2011-09-21  Bruno Haible  <bruno@clisp.org>
11278
11279         unlockpt tests: Avoid test failure on NetBSD 5.1.
11280         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11281         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11282
11283 2011-09-21  Bruno Haible  <bruno@clisp.org>
11284
11285         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11286         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11287         * tests/test-getlogin_r.c (main): Likewise.
11288
11289 2011-09-20  Bruno Haible  <bruno@clisp.org>
11290
11291         time tests: Don't require pid_t.
11292         * doc/posix-headers/time.texi: Revert last change.
11293         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11294         * tests/test-time.c: Comment out the check for pid_t.
11295
11296 2011-09-20  Bruno Haible  <bruno@clisp.org>
11297
11298         fsync tests: Avoid a test failure on mingw.
11299         * tests/test-fsync.c (main): Allow a failure with EIO.
11300
11301 2011-09-20  Bruno Haible  <bruno@clisp.org>
11302
11303         euidaccess: Update comments.
11304         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11305
11306 2011-09-20  Bruno Haible  <bruno@clisp.org>
11307
11308         Ensure EBADF returns for socket functions on mingw.
11309         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11310         descriptor is invalid.
11311         * lib/bind.c (rpl_bind): Likewise.
11312         * lib/connect.c (rpl_connect): Likewise.
11313         * lib/getpeername.c (rpl_getpeername): Likewise.
11314         * lib/getsockname.c (rpl_getsockname): Likewise.
11315         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11316         * lib/listen.c (rpl_listen): Likewise.
11317         * lib/recv.c (rpl_recv): Likewise.
11318         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11319         * lib/send.c (rpl_send): Likewise.
11320         * lib/sendto.c (rpl_sendto): Likewise.
11321         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11322         * lib/shutdown.c (rpl_shutdown): Likewise.
11323
11324 2011-09-20  Bruno Haible  <bruno@clisp.org>
11325
11326         select tests: EBADF tests.
11327         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11328         test_bad_fd): New functions.
11329         (test_function): Invoke also test_bad_fd.
11330
11331 2011-09-20  Bruno Haible  <bruno@clisp.org>
11332
11333         Tests for module 'posix_spawn_file_actions_addopen.
11334         * modules/posix_spawn_file_actions_addopen-tests: New file.
11335         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11336
11337         Tests for module 'posix_spawn_file_actions_adddup2'.
11338         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11339         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11340
11341         Tests for module 'posix_spawn_file_actions_addclose'.
11342         * modules/posix_spawn_file_actions_addclose-tests: New file.
11343         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11344
11345 2011-09-20  Bruno Haible  <bruno@clisp.org>
11346
11347         Tests for module 'unlockpt'.
11348         * modules/unlockpt-tests: New file.
11349         * tests/test-unlockpt.c: New file.
11350         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11351
11352         Tests for module 'grantpt'.
11353         * modules/grantpt-tests: New file.
11354         * tests/test-grantpt.c: New file.
11355         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11356
11357 2011-09-20  Bruno Haible  <bruno@clisp.org>
11358
11359         freopen tests: EBADF tests.
11360         * tests/test-freopen.c: Include errno.h, unistd.h.
11361         (main): Add tests for EBADF, commented out for the moment.
11362
11363         fclose tests: EBADF tests.
11364         * tests/test-fclose.c (main): Add tests for EBADF.
11365
11366         fflush tests: EBADF tests.
11367         * tests/test-fflush.c: Include errno.h, macros.h.
11368         (main): Add tests for EBADF.
11369
11370         ftello tests: EBADF tests.
11371         * tests/test-ftello4.sh: New file.
11372         * tests/test-ftello4.c: New file.
11373         * modules/ftello-tests (Files): Add them.
11374         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11375
11376         fseeko tests: EBADF tests.
11377         * tests/test-fseeko4.sh: New file.
11378         * tests/test-fseeko4.c: New file.
11379         * modules/fseeko-tests (Files): Add them.
11380         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11381
11382         Tests for function fputc().
11383         * modules/fputc-tests: New file.
11384         * tests/test-fputc.c: New file.
11385         * modules/stdio-tests (Depends-on): Add fputc-tests.
11386
11387         Tests for function fgetc().
11388         * modules/fgetc-tests: New file.
11389         * tests/test-fgetc.c: New file.
11390         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11391
11392         Tests for function fdopen().
11393         * modules/fdopen-tests: New file.
11394         * tests/test-fdopen.c: New file.
11395         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11396
11397         Tests for module 'vdprintf'.
11398         * modules/vdprintf-tests: New file.
11399         * tests/test-vdprintf.c: New file.
11400
11401         Tests for module 'dprintf'.
11402         * modules/dprintf-tests: New file.
11403         * tests/test-dprintf.c: New file.
11404
11405 2011-09-20  Bruno Haible  <bruno@clisp.org>
11406
11407         Tests for module 'ioctl'.
11408         * modules/ioctl-tests: New file.
11409         * tests/test-ioctl.c: New file.
11410
11411 2011-09-20  Bruno Haible  <bruno@clisp.org>
11412
11413         fcntl tests: EBADF tests.
11414         * tests/test-fcntl.c (main): Add more tests for EBADF.
11415
11416 2011-09-20  Bruno Haible  <bruno@clisp.org>
11417
11418         utimensat tests: EBADF tests.
11419         * tests/test-utimensat.c (main): Add tests for EBADF.
11420
11421         renameat tests: EBADF tests.
11422         * tests/test-renameat.c (main): Add tests for EBADF.
11423
11424         mkfifoat tests: EBADF tests.
11425         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11426
11427         readlinkat tests: EBADF tests.
11428         * tests/test-readlinkat.c (main): Add tests for EBADF.
11429
11430         symlinkat tests: EBADF tests.
11431         * tests/test-symlinkat.c (main): Add tests for EBADF.
11432
11433         linkat tests: EBADF tests.
11434         * tests/test-linkat.c (main): Add tests for EBADF.
11435
11436         Tests for module 'faccessat'.
11437         * modules/faccessat-tests: New file.
11438         * tests/test-faccessat.c: New file.
11439
11440         fdopendir tests: EBADF tests.
11441         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11442
11443         openat tests: EBADF tests.
11444         * tests/test-fchownat.c (main): Add tests for EBADF.
11445         * tests/test-fstatat.c (main): Likewise.
11446         * tests/test-mkdirat.c (main): Likewise.
11447         * tests/test-openat.c (main): Likewise.
11448         * tests/test-unlinkat.c (main): Likewise.
11449         * tests/test-fchmodat.c: New file.
11450         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11451         (Makefile.am): Also run 'test-fchmodat'.
11452
11453 2011-09-20  Bruno Haible  <bruno@clisp.org>
11454
11455         utimens, futimens, fdutimensat tests: EBADF tests.
11456         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11457
11458         Tests for function fstat().
11459         * modules/fstat-tests: New file.
11460         * tests/test-fstat.c: New file.
11461         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11462
11463 2011-09-20  Bruno Haible  <bruno@clisp.org>
11464
11465         test-ttyname_r tests: EBADF tests.
11466         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11467
11468         Tests for module 'isatty'.
11469         * modules/isatty-tests: New file.
11470         * tests/test-isatty.c: New file.
11471
11472         Tests for module 'write'.
11473         * modules/write-tests: New file.
11474         * tests/test-write.c: New file.
11475
11476         Tests for module 'read'.
11477         * modules/read-tests: New file.
11478         * tests/test-read.c: New file.
11479
11480         pwrite tests: EBADF tests.
11481         * tests/test-pwrite.c (main): Add tests for EBADF.
11482
11483         pread tests: EBADF tests.
11484         * tests/test-pread.c (main): Add tests for EBADF.
11485
11486         lseek tests: EBADF tests.
11487         * tests/test-lseek.c (main): Add more tests for EBADF.
11488
11489         Tests for module 'ftruncate'.
11490         * modules/ftruncate-tests: New file.
11491         * tests/test-ftruncate.sh: New file.
11492         * tests/test-ftruncate.c: New file.
11493
11494         fsync tests: EBADF tests.
11495         * tests/test-fsync.c (main): Add more tests for EBADF.
11496
11497         fdatasync tests: EBADF tests.
11498         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11499
11500         Tests for module 'fchown'.
11501         * modules/fchown-tests: New file.
11502         * tests/test-fchown.c: New file.
11503
11504         Tests for module 'fchmod'.
11505         * modules/fchmod-tests: New file.
11506         * tests/test-fchmod.c: New file.
11507
11508         fchdir tests: EBADF tests.
11509         * tests/test-fchdir.c (main): Add more tests for EBADF.
11510
11511         dup2 tests: EBADF tests.
11512         * tests/test-dup2.c (main): Add more tests for EBADF.
11513
11514         Tests for module 'dup'.
11515         * modules/dup-tests: New file.
11516         * tests/test-dup.c: New file.
11517
11518         Tests for module 'close'.
11519         * modules/close-tests: New file.
11520         * tests/test-close.c: New file.
11521
11522 2011-09-20  Bruno Haible  <bruno@clisp.org>
11523
11524         Tests for module 'shutdown'.
11525         * modules/shutdown-tests: New file.
11526         * tests/test-shutdown.c: New file.
11527
11528         Tests for module 'setsockopt'.
11529         * modules/setsockopt-tests: New file.
11530         * tests/test-setsockopt.c: New file.
11531
11532         Tests for module 'sendto'.
11533         * modules/sendto-tests: New file.
11534         * tests/test-sendto.c: New file.
11535
11536         Tests for module 'send'.
11537         * modules/send-tests: New file.
11538         * tests/test-send.c: New file.
11539
11540         Tests for module 'recvfrom'.
11541         * modules/recvfrom-tests: New file.
11542         * tests/test-recvfrom.c: New file.
11543
11544         Tests for module 'recv'.
11545         * modules/recv-tests: New file.
11546         * tests/test-recv.c: New file.
11547
11548         Tests for module 'listen'.
11549         * modules/listen-tests: New file.
11550         * tests/test-listen.c: New file.
11551
11552         Tests for module 'getsockopt'.
11553         * modules/getsockopt-tests: New file.
11554         * tests/test-getsockopt.c: New file.
11555
11556         Tests for module 'getsockname'.
11557         * modules/getsockname-tests: New file.
11558         * tests/test-getsockname.c: New file.
11559
11560         Tests for module 'getpeername'.
11561         * modules/getpeername-tests: New file.
11562         * tests/test-getpeername.c: New file.
11563
11564         Tests for module 'connect'.
11565         * modules/connect-tests: New file.
11566         * tests/test-connect.c: New file.
11567
11568         Tests for module 'bind'.
11569         * modules/bind-tests: New file.
11570         * tests/test-bind.c: New file.
11571
11572         accept4 tests: Fix for native Windows.
11573         * tests/test-accept4.c: Include sockets.h.
11574         (main): Invoke gl_sockets_startup.
11575         * modules/accept4-tests (Depends-on): Add sockets.
11576
11577         accept tests: Fix for native Windows.
11578         * tests/test-accept.c: Include sockets.h.
11579         (main): Invoke gl_sockets_startup.
11580         * modules/accept-tests (Depends-on): Add sockets.
11581
11582 2011-09-19  Bruno Haible  <bruno@clisp.org>
11583
11584         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
11585         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
11586         do...while(0).
11587         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
11588         Suggested by Paul Eggert.
11589
11590 2011-09-19  Bruno Haible  <bruno@clisp.org>
11591
11592         sched: Ensure pid_t is defined.
11593         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
11594         not define pid_t.
11595         * lib/sched.in.h: Include <sys/types.h>.
11596         * doc/posix-headers/sched.texi: Mention the pid_t problem.
11597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11598
11599 2011-09-19  Bruno Haible  <bruno@clisp.org>
11600
11601         msvc-inval: Ensure the entire expansion is a single statement.
11602         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
11603         of braces.
11604
11605 2011-09-19  Jim Meyering  <meyering@redhat.com>
11606
11607         tests: use printf, not echo in init.sh's warn_ function
11608         * tests/init.sh (warn_): Use printf, not echo.  The latter would
11609         misbehave when given strings containing a backslash or starting
11610         with e.g., -n.  James Youngman suggested setting IFS.
11611
11612 2011-09-19  Eric Blake  <eblake@redhat.com>
11613
11614         futimens: enhance test
11615         * tests/test-futimens.h (test_futimens): Also check for EBADF on
11616         closed non-negative fd.
11617
11618         date: accept 'hence' as opposite of 'ago'
11619         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
11620         * tests/test-parse-datetime.c (main): Enhance test.
11621         Suggested by Jesse Wilson.
11622
11623 2011-09-19  Jim Meyering  <meyering@redhat.com>
11624
11625         getcwd: don't fail in a deep directory on a system without openat
11626         Before this change, getcwd would fail when called from a directory
11627         of depth PATH_MAX / 3 or greater.  That was due to the fact that
11628         the non-openat implementation used "..", "../..", "../../..", etc.
11629         to access ancestor directories.  With too many, that string would
11630         be longer than PATH_MAX.
11631         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
11632         using gnulib's openat replacement.
11633         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
11634         we're using the replacement function.
11635
11636 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
11637
11638         maint.mk: avoid warnings from perl about missing files
11639         * top/maint.mk (def_sym_regex): Ignore files listed in
11640         $(gl_other_headers_) that do not exist, say because a project
11641         does not use a corresponding module.
11642
11643 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11644
11645         stat: use pathmax.h only if needed
11646         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
11647         This is better for Emacs, which does not have a mingw port and
11648         therefore can avoid the pathmax module.
11649
11650         utimens: remove dependency on dup2
11651         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
11652         to work around the Linux kernel bug.
11653         * modules/utimens (Depends-on): Remove dup2.
11654
11655 2011-09-18  Bruno Haible  <bruno@clisp.org>
11656
11657         inet_ntop, inet_pton: Look for it also in libresolv.
11658         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
11659         libnsl, search for it in libresolv.
11660         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11661         Needed on Solaris 7.
11662
11663 2011-09-18  Bruno Haible  <bruno@clisp.org>
11664
11665         accept, accept4 tests: Avoid link error on Solaris.
11666         * modules/accept-tests (Makefile.am): Link test-accept against
11667         $(LIBSOCKET).
11668         * modules/accept4-tests (Makefile.am): Link test-accept4 against
11669         $(LIBSOCKET).
11670
11671         accept4: Avoid link error on Solaris.
11672         * modules/accept4 (Link): New section.
11673
11674         socket functions: Avoid link errors on Solaris.
11675         * modules/accept (Depends-on): Add socketlib.
11676         (Link): New section.
11677         * modules/bind (Depends-on): Add socketlib.
11678         (Link): New section.
11679         * modules/connect (Depends-on): Add socketlib.
11680         (Link): New section.
11681         * modules/getpeername (Depends-on): Add socketlib.
11682         (Link): New section.
11683         * modules/getsockname (Depends-on): Add socketlib.
11684         (Link): New section.
11685         * modules/getsockopt (Depends-on): Add socketlib.
11686         (Link): New section.
11687         * modules/listen (Depends-on): Add socketlib.
11688         (Link): New section.
11689         * modules/recv (Depends-on): Add socketlib.
11690         (Link): New section.
11691         * modules/recvfrom (Depends-on): Add socketlib.
11692         (Link): New section.
11693         * modules/send (Depends-on): Add socketlib.
11694         (Link): New section.
11695         * modules/sendto (Depends-on): Add socketlib.
11696         (Link): New section.
11697         * modules/setsockopt (Depends-on): Add socketlib.
11698         (Link): New section.
11699         * modules/shutdown (Depends-on): Add socketlib.
11700         (Link): New section.
11701         * modules/socket (Depends-on): Add socketlib.
11702         (Link): New section.
11703
11704 2011-09-18  Bruno Haible  <bruno@clisp.org>
11705
11706         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
11707         * tests/test-ptsname.c (main): Terminate the test if it takes longer
11708         than 5 seconds.
11709         * modules/ptsname-tests (configure.ac): Test for alarm.
11710
11711 2011-09-18  Bruno Haible  <bruno@clisp.org>
11712
11713         posix_spawn_file_actions_add*: Fix module dependencies.
11714         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
11715         posix_spawn_file_actions_init.
11716         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
11717         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
11718
11719 2011-09-18  Bruno Haible  <bruno@clisp.org>
11720
11721         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
11722         * tests/test-rename.h (test_rename): Allow error code EEXIST.
11723         * tests/test-renameat.c (main): Likewise.
11724
11725 2011-09-18  Bruno Haible  <bruno@clisp.org>
11726
11727         Tests for module 'accept4'.
11728         * modules/accept4-tests: New file.
11729         * tests/test-accept4.c: New file.
11730
11731 2011-09-18  Bruno Haible  <bruno@clisp.org>
11732
11733         Tests for module 'accept'.
11734         * modules/accept-tests: New file.
11735         * tests/test-accept.c: New file.
11736
11737 2011-09-18  Bruno Haible  <bruno@clisp.org>
11738
11739         dup2: Support for MSVC.
11740         * lib/dup2.c: Include msvc-inval.h.
11741         (rpl_dup2): Handle invalid parameter notifications during dup2 and
11742         _get_osfhandle calls.
11743         * modules/dup2 (Depends-on): Add msvc-inval.
11744         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
11745
11746         New module 'msvc-inval'.
11747         * lib/msvc-inval.h: New file.
11748         * lib/msvc-inval.c: New file.
11749         * m4/msvc-inval.m4: New file.
11750         * modules/msvc-inval: New file.
11751
11752 2011-09-17  Bruno Haible  <bruno@clisp.org>
11753
11754         Tests for module 'pclose'.
11755         * modules/pclose-tests: New file.
11756
11757         New module 'pclose'.
11758         * lib/stdio.in.h (pclose): New declaration.
11759         * lib/pclose.c: New file.
11760         * m4/pclose.m4: New file.
11761         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
11762         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
11763         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
11764         * modules/pclose: New file.
11765         * modules/popen-tests (Depends-on): Add pclose.
11766         * modules/popen-safer-tests (Depends-on): Likewise.
11767         * doc/posix-functions/pclose.texi: Mention the new module.
11768
11769 2011-09-17  Bruno Haible  <bruno@clisp.org>
11770
11771         popen: Support for MSVC.
11772         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
11773         * lib/popen.c (popen): Provide alternate definition for native Windows.
11774         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
11775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
11776         * modules/popen (Depends-on, configure.ac): Update condition.
11777         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
11778         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
11779         fixed.
11780
11781 2011-09-17  Bruno Haible  <bruno@clisp.org>
11782
11783         isnanl, isnand, isnanf: Work around MSVC bug.
11784         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
11785
11786 2011-09-17  Bruno Haible  <bruno@clisp.org>
11787
11788         sys_socket tests: Fix recent mistake.
11789         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
11790
11791 2011-09-17  Bruno Haible  <bruno@clisp.org>
11792
11793         putenv: Support for MSVC.
11794         * modules/putenv (Depends-on): Add environ.
11795         * lib/putenv.c (environ): Disable declaration.
11796         * lib/unistd.in.h: Update comment.
11797
11798 2011-09-17  Bruno Haible  <bruno@clisp.org>
11799
11800         math: Avoid macro redefinition warnings on MSVC.
11801         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
11802         Undefine before redefining.
11803
11804 2011-09-17  Bruno Haible  <bruno@clisp.org>
11805
11806         doc: Mention functions which are declared as macros.
11807         * doc/posix-functions/*[fl].texi: Mention that some functions are
11808         defined as macros with arguments only.
11809
11810 2011-09-17  Bruno Haible  <bruno@clisp.org>
11811
11812         Add dependencies to new dirent related modules.
11813         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
11814         * modules/fts (Depends-on): Likewise.
11815         * modules/glob (Depends-on): Likewise.
11816         * modules/savedir (Depends-on): Likewise.
11817         * modules/scandir (Depends-on): Likewise.
11818         * modules/dirent-safer (Depends-on): Add opendir, closedir.
11819         * modules/fdopendir (Depends-on): Add opendir.
11820
11821 2011-09-17  Bruno Haible  <bruno@clisp.org>
11822
11823         inet_pton: Support for MSVC on Windows Vista or newer.
11824         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
11825         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
11826         HAVE_DECL_INET_PTON is defined.
11827         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11828         On platforms with <winsock2.h>, test whether inet_pton is declared in
11829         <ws2tcpip.h>. If so, arrange to replace it.
11830         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11831         REPLACE_INET_PTON.
11832         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
11833         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
11834         (Depends-on, configure.ac): Update condition.
11835         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
11836
11837 2011-09-17  Bruno Haible  <bruno@clisp.org>
11838
11839         inet_ntop: Support for MSVC on Windows Vista or newer.
11840         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
11841         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
11842         HAVE_DECL_INET_NTOP is defined.
11843         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11844         On platforms with <winsock2.h>, test whether inet_ntop is declared in
11845         <ws2tcpip.h>. If so, arrange to replace it.
11846         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11847         REPLACE_INET_NTOP.
11848         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
11849         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
11850         (Depends-on, configure.ac): Update condition.
11851         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
11852
11853 2011-09-16  Eric Blake  <eblake@redhat.com>
11854
11855         test-fsync: yet another enhancement
11856         * tests/test-fsync.c (main): Also test behavior on read-only text
11857         file.
11858
11859 2011-09-16  Bruno Haible  <bruno@clisp.org>
11860
11861         Enhance fsync, fdatasync tests.
11862         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
11863         * tests/test-fdatasync.c (main): Likewise.
11864
11865 2011-09-16  Bruno Haible  <bruno@clisp.org>
11866
11867         Support for MSVC compiler: Ensure mode_t gets defined.
11868         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
11869         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11870         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11871         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
11872         * tests/test-fcntl-h.c: Check that mode_t is defined.
11873         * tests/test-sys_stat.c: Likewise.
11874         * tests/test-sys_types.c: Likewise.
11875         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
11876         * doc/posix-headers/sys_stat.texi: Likewise.
11877         * doc/posix-headers/sys_types.texi: Likewise.
11878
11879 2011-09-16  Bruno Haible  <bruno@clisp.org>
11880
11881         sys_stat: Support for MSVC.
11882         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
11883         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
11884         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
11885         MSVC.
11886
11887 2011-09-16  Bruno Haible  <bruno@clisp.org>
11888
11889         Support for MSVC compiler: Ensure off_t gets defined.
11890         * lib/unistd.in.h: Include <sys/types.h>.
11891         * tests/test-fcntl-h.c: Check that off_t is defined.
11892         * tests/test-sys_stat.c: Likewise.
11893         * tests/test-sys_types.c: Likewise.
11894
11895 2011-09-16  Eric Blake  <eblake@redhat.com>
11896
11897         fdatasync: port to Solaris
11898         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
11899         * modules/fdatasync (Link): Document it.
11900         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
11901
11902         fdatasync: port to MacOS X 10.7
11903         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
11904         declared.
11905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
11906         * modules/unistd (Makefile.am): Substitute it.
11907         * lib/unistd.in.h (fdatasync): Declare on MacOS.
11908         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
11909
11910         fdatasync: minor improvements
11911         * modules/fdatasync (Depends-on): Add condition for fsync.
11912         * lib/fdatasync.c (fdatasync): Add comment.
11913         * tests/test-unistd-c++.cc: Test fdatasync.
11914
11915         unistd: update refs to newer POSIX
11916         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
11917         Suggested by Bruno Haible.
11918
11919         fdatasync: new module
11920         * modules/fsync (Description): Document difference to fdatasync.
11921         * modules/fdatasync: New module.
11922         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
11923         * lib/fdatasync.c (fdatasync): Likewise.
11924         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
11925         defaults.
11926         * modules/unistd (Makefile.am): Set witnesses.
11927         * lib/unistd.in.h (fdatasync): Declare.
11928         * MODULES.html.sh: Document it.
11929         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
11930         * modules/fdatasync-tests: New test.
11931         * tests/test-fdatasync.c: Likewise.
11932
11933 2011-09-16  Eric Blake  <eblake@redhat.com>
11934
11935         test-fsync: enhance tests
11936         * modules/fsync-tests (Depends-on): Add errno, for mingw.
11937         * tests/test-fsync.c (main): Enhance test.
11938
11939 2011-09-15  Bruno Haible  <bruno@clisp.org>
11940
11941         Support for MSVC compiler: Ensure ssize_t gets defined.
11942         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
11943         * doc/posix-headers/stdio.texi: Likewise.
11944         * modules/stdio (Depends-on): Add ssize_t.
11945         * modules/sys_socket (Depends-on): Likewise.
11946         * modules/sys_types (Depends-on): Likewise.
11947         * modules/sys_uio (Depends-on): Likewise.
11948         * modules/unistd (Depends-on): Likewise.
11949         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
11950         * tests/test-sys_types.c: Check that ssize_t is defined.
11951
11952 2011-09-14  Bruno Haible  <bruno@clisp.org>
11953
11954         Avoid using #, the m4 comment starter character, near brackets.
11955         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
11956         delimiter character in sed expressions.
11957         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11958         Suggested by Eric Blake.
11959
11960         Properly quote AC_CHECK_DECLS' 4th argument.
11961         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
11962         argument.
11963         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11964         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11965         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11966         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11967         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11968         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
11969         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
11970         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
11971         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
11972         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11973         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
11974         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11975         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11976         * m4/isinf.m4 (gl_ISINF): Likewise.
11977         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11978         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11979         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11980         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11981         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11982         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11983         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11984         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11985         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
11986         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11987         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11988         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
11990         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11991         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11992         Reported by Eric Blake.
11993
11994         Properly quote AC_CHECK_DECL's 4th argument.
11995         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
11996         argument.
11997         * m4/argp.m4 (gl_ARGP): Likewise.
11998         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11999         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12000         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12001         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12002         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12003         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12004         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12005         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12006         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12007         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12008         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12009         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12010         Reported by Eric Blake.
12011
12012 2011-09-14  Eric Blake  <eblake@redhat.com>
12013
12014         opendir: avoid compile warning
12015         * lib/opendir.c (includes): Always include errno.h.
12016         Reported by Tatsuro MATSUOKA.
12017
12018 2011-09-14  Jim Meyering  <meyering@redhat.com>
12019
12020         maint.mk: sc_tight_scope: propagate failure from sub-make
12021         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12022         Reported by Martin von Gagern.
12023
12024 2011-09-13  Bruno Haible  <bruno@clisp.org>
12025
12026         tempname: Support for MSVC.
12027         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12028         MSVC.
12029         * modules/tempname (Depends-on): Add fcntl-h.
12030
12031 2011-09-13  Bruno Haible  <bruno@clisp.org>
12032
12033         sys_time: Support for MSVC.
12034         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12035         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12036         include <winsock2.h>.
12037         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12038         function declarations that collide with POSIX.
12039         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12040         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12041
12042 2011-09-13  Bruno Haible  <bruno@clisp.org>
12043
12044         stat: Support for MSVC.
12045         * lib/stat.c: Include pathmax.h.
12046         * modules/stat (Depends-on): Add pathmax.
12047
12048         pathmax: Support for native Windows.
12049         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12050
12051 2011-09-12  Bruno Haible  <bruno@clisp.org>
12052
12053         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12054         * lib/dirent.in.h (struct dirent): New type.
12055         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12056         DT_WHT): New macros.
12057         (DIR): New type.
12058         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12059         (readdir, rewinddir): New declarations.
12060         * lib/dirent-private.h: New file.
12061         * lib/opendir.c: New file.
12062         * lib/readdir.c: New file.
12063         * lib/rewinddir.c: New file.
12064         * lib/closedir.c: New file.
12065         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12066         * m4/opendir.m4: New file.
12067         * m4/readdir.m4: New file.
12068         * m4/rewinddir.m4: New file.
12069         * m4/closedir.m4: New file.
12070         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12071         REPLACE_CLOSEDIR here.
12072         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12073         readdir, rewinddir are declared.
12074         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12075         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12076         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12077         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12078         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12079         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12080         * modules/opendir: New file.
12081         * modules/readdir: New file.
12082         * modules/rewinddir: New file.
12083         * modules/closedir: New file.
12084         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12085         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12086         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12087         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12088         * NEWS: Mention the 'fchdir' change.
12089
12090 2011-09-11  Bruno Haible  <bruno@clisp.org>
12091
12092         asm-underscore.m4: Support for MSVC.
12093         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12094         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12095
12096 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12097
12098         Doc about crypt functions.
12099         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12100         needing for _GNU_SOURCE to get crypt.
12101         * doc/posix-functions/encrypt.texi: Likewise.
12102         * doc/posix-functions/setkey.texi: Likewise.
12103
12104 2011-09-11  Bruno Haible  <bruno@clisp.org>
12105
12106         doc: Update regarding MSVC 9.
12107         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12108         tested".
12109         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12110         * doc/posix-headers/*.texi: Likewise.
12111         * doc/pastposix-functions/*.texi: Likewise.
12112         * doc/glibc-functions/*.texi: Likewise.
12113         * doc/glibc-headers/*.texi: Likewise.
12114
12115 2011-09-11  Bruno Haible  <bruno@clisp.org>
12116
12117         unistd et al.: Don't assume <unistd.h> exists.
12118         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12119         does not exist.
12120         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12121         exist. But include <stdlib.h>.
12122         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12123         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12124         symlink() does not exist.
12125         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12126         include <io.h> instead.
12127         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12128         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12129         include <direct.h> instead.
12130         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12131         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12132         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12133         <io.h> instead.
12134         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12135         correctly if the system does not have hard links.
12136         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12137         <direct.h> instead.
12138         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12139         it when looking for function declarations.
12140         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12141         <direct.h> and <io.h> instead.
12142         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12143
12144 2011-09-11  Bruno Haible  <bruno@clisp.org>
12145
12146         strcase: Support for MSVC.
12147         * modules/strcase (Status, Notice): Remove obsoletion mark.
12148         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12149         * doc/posix-functions/strncasecmp.texi: Likewise.
12150
12151         strings: Don't assume <strings.h> exists.
12152         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12153         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12154         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12155         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12156
12157 2011-09-11  Bruno Haible  <bruno@clisp.org>
12158
12159         dirent: Don't assume <dirent.h> exists.
12160         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12161         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12162         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12163         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12164
12165 2011-09-11  Bruno Haible  <bruno@clisp.org>
12166
12167         Fix wint_t on MSVC.
12168         * lib/wchar.in.h (wint_t): On MSVC, override it.
12169         * lib/wctype.in.h (wint_t): Likewise.
12170         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12171         MSVC.
12172         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12173         * doc/posix-headers/wctype.texi: Likewise.
12174
12175 2011-09-11  Bruno Haible  <bruno@clisp.org>
12176
12177         sys_types: Fix typo.
12178         * lib/sys_types.in.h: Fix typo in comment.
12179         Reported by Paul Eggert.
12180
12181         Support for MSVC compiler: Ensure size_t gets defined.
12182         * modules/strings (Depends-on): Add 'sys_types'.
12183         * modules/sys_uio (Depends-on): Likewise.
12184         * lib/sys_uio.in.h: Update comment.
12185
12186         C++ tests for module 'sys_types'.
12187         * modules/sys_types-c++-tests: New file.
12188         * tests/test-sys_types-c++.cc: New file.
12189
12190         Tests for module 'sys_types'.
12191         * modules/sys_types-tests: New file.
12192         * tests/test-sys_types.c: New file.
12193
12194         New module 'sys_types'.
12195         * lib/sys_types.in.h: New file.
12196         * m4/sys_types_h.m4: New file.
12197         * modules/sys_types: New file.
12198         * doc/posix-headers/sys_types.texi: Mention the new module and the
12199         size_t problem on MSVC 9.
12200
12201 2011-09-11  Bruno Haible  <bruno@clisp.org>
12202
12203         Support for MSVC compiler: Avoid division by a literal 0.
12204         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12205         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12206         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12207         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12208         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12209         * tests/infinity.h: New file.
12210         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12211         on MSVC.
12212         * tests/test-ceilf1.c: Include infinity.h.
12213         (main): Use Infinityf.
12214         * tests/test-ceil1.c: Include infinity.h.
12215         (main): Use Infinityd.
12216         * tests/test-ceill.c: Include infinity.h.
12217         (main): Use Infinityl.
12218         * tests/test-dprintf-posix.c: Include infinity.h.
12219         (test_function): Use Infinityd.
12220         * tests/test-floorf1.c: Include infinity.h.
12221         (main): Use Infinityf.
12222         * tests/test-floor1.c: Include infinity.h.
12223         (main): Use Infinityd.
12224         * tests/test-floorl.c: Include infinity.h.
12225         (main): Use Infinityl.
12226         * tests/test-fprintf-posix.c: Include infinity.h.
12227         (test_function): Use Infinityd.
12228         * tests/test-frexp.c: Include infinity.h.
12229         (main): Use Infinityd.
12230         * tests/test-frexpl.c: Include infinity.h.
12231         (main): Use Infinityl.
12232         * tests/test-isfinite.c: Include infinity.h.
12233         (test_isfinitef): Use Infinityf.
12234         (test_isfinited): Use Infinityd.
12235         (test_isfinitel): Use Infinityl.
12236         * tests/test-isinf.c: Include infinity.h.
12237         (test_isinff): Use Infinityf.
12238         (test_isinfd): Use Infinityd.
12239         (test_isinfl): Use Infinityl.
12240         * tests/test-isnan.c: Include infinity.h.
12241         (test_float): Use Infinityf.
12242         (test_double): Use Infinityd.
12243         (test_long_double): Use Infinityl.
12244         * tests/test-isnanf.h: Include infinity.h.
12245         (main): Use Infinityf.
12246         * tests/test-isnand.h: Include infinity.h.
12247         (main): Use Infinityd.
12248         * tests/test-isnanl.h: Include infinity.h.
12249         (main): Use Infinityl.
12250         * tests/test-ldexpl.c: Include infinity.h.
12251         (main): Use Infinityl.
12252         * tests/test-printf-posix.h: Include infinity.h.
12253         (test_function): Use Infinityd.
12254         * tests/test-roundf1.c: Include infinity.h.
12255         (main): Use Infinityf.
12256         * tests/test-round1.c: Include infinity.h.
12257         (main): Use Infinityd.
12258         * tests/test-roundl.c: Include infinity.h.
12259         (main): Use Infinityl.
12260         * tests/test-signbit.c: Include infinity.h.
12261         (test_signbitf): Use Infinityf.
12262         (test_signbitd): Use Infinityd.
12263         (test_signbitl): Use Infinityl.
12264         * tests/test-snprintf-posix.h: Include infinity.h.
12265         (test_function): Use Infinityd, Infinityl.
12266         * tests/test-sprintf-posix.h: Include infinity.h.
12267         (test_function): Use Infinityd, Infinityl.
12268         * tests/test-truncf1.c: Include infinity.h.
12269         (main): Use Infinityf.
12270         * tests/test-trunc1.c: Include infinity.h.
12271         (main): Use Infinityd.
12272         * tests/test-truncl.c: Include infinity.h.
12273         (main): Use Infinityl.
12274         * tests/test-vasnprintf-posix.c: Include infinity.h.
12275         (test_function): Use Infinityd, Infinityl.
12276         * tests/test-vasprintf-posix.c: Include infinity.h.
12277         (test_function): Use Infinityd, Infinityl.
12278         * modules/ceilf-tests (Files): Add tests/infinity.h.
12279         * modules/ceil-tests (Files): Likewise.
12280         * modules/ceill-tests (Files): Likewise.
12281         * modules/dprintf-posix-tests (Files): Likewise.
12282         * modules/floorf-tests (Files): Likewise.
12283         * modules/floor-tests (Files): Likewise.
12284         * modules/floorl-tests (Files): Likewise.
12285         * modules/fprintf-posix-tests (Files): Likewise.
12286         * modules/frexp-tests (Files): Likewise.
12287         * modules/frexp-nolibm-tests (Files): Likewise.
12288         * modules/frexpl-tests (Files): Likewise.
12289         * modules/frexpl-nolibm-tests (Files): Likewise.
12290         * modules/isfinite-tests (Files): Likewise.
12291         * modules/isinf-tests (Files): Likewise.
12292         * modules/isnan-tests (Files): Likewise.
12293         * modules/isnanf-tests (Files): Likewise.
12294         * modules/isnanf-nolibm-tests (Files): Likewise.
12295         * modules/isnand-tests (Files): Likewise.
12296         * modules/isnand-nolibm-tests (Files): Likewise.
12297         * modules/isnanl-tests (Files): Likewise.
12298         * modules/isnanl-nolibm-tests (Files): Likewise.
12299         * modules/ldexpl-tests (Files): Likewise.
12300         * modules/printf-posix-tests (Files): Likewise.
12301         * modules/roundf-tests (Files): Likewise.
12302         * modules/round-tests (Files): Likewise.
12303         * modules/roundl-tests (Files): Likewise.
12304         * modules/signbit-tests (Files): Likewise.
12305         * modules/snprintf-posix-tests (Files): Likewise.
12306         * modules/sprintf-posix-tests (Files): Likewise.
12307         * modules/truncf-tests (Files): Likewise.
12308         * modules/trunc-tests (Files): Likewise.
12309         * modules/truncl-tests (Files): Likewise.
12310         * modules/vasnprintf-posix-tests (Files): Likewise.
12311         * modules/vasprintf-posix-tests (Files): Likewise.
12312         * modules/vdprintf-posix-tests (Files): Likewise.
12313         * modules/vfprintf-posix-tests (Files): Likewise.
12314         * modules/vprintf-posix-tests (Files): Likewise.
12315         * modules/vsnprintf-posix-tests (Files): Likewise.
12316         * modules/vsprintf-posix-tests (Files): Likewise.
12317         * modules/xprintf-posix-tests (Files): Likewise.
12318
12319 2011-09-11  Bruno Haible  <bruno@clisp.org>
12320
12321         Ensure pid_t gets defined.
12322         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12323         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12324         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12325         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12326         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12327         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12328         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12329         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12330         * tests/test-fcntl-h.c: Check that pid_t is defined.
12331         * tests/test-sched.c: Likewise.
12332         * tests/test-termios.c: Likewise.
12333         * tests/test-time.c: Likewise.
12334         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12335         * doc/posix-headers/signal.texi: Likewise.
12336         * doc/posix-headers/sys_types.texi: Likewise.
12337         * doc/posix-headers/time.texi: Likewise.
12338
12339 2011-09-11  Bruno Haible  <bruno@clisp.org>
12340
12341         acl: Fix compilation on Solaris 10 (older version).
12342         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12343         of ACE_EVERYONE.
12344         * lib/set-mode-acl.c (qset_acl): Likewise.
12345         Reported by Christian Jullien <eligis@orange.fr>.
12346
12347 2011-09-10  Bruno Haible  <bruno@clisp.org>
12348
12349         iconv, unsetenv: Add support for MSVC compiler.
12350         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12351         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12352
12353 2011-09-10  Bruno Haible  <bruno@clisp.org>
12354
12355         *printf: Add support for MSVC compiler.
12356         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12357         handles the exception caused by the %n directive. When cross-compiling,
12358         guess no on native Windows.
12359         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12360         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12361         emulate it through vsnprintf.
12362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12363         * doc/posix-functions/dprintf.texi: Update documentation regarding
12364         MSVC 9.
12365         * doc/posix-functions/fprintf.texi: Likewise.
12366         * doc/posix-functions/printf.texi: Likewise.
12367         * doc/posix-functions/snprintf.texi: Likewise.
12368         * doc/posix-functions/sprintf.texi: Likewise.
12369         * doc/posix-functions/swprintf.texi: Likewise.
12370         * doc/posix-functions/vdprintf.texi: Likewise.
12371         * doc/posix-functions/vfprintf.texi: Likewise.
12372         * doc/posix-functions/vprintf.texi: Likewise.
12373         * doc/posix-functions/vsnprintf.texi: Likewise.
12374         * doc/posix-functions/vsprintf.texi: Likewise.
12375         * doc/glibc-functions/asprintf.texi: Likewise.
12376         * doc/glibc-functions/obstack_printf.texi: Likewise.
12377         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12378         * doc/glibc-functions/vasprintf.texi: Likewise.
12379
12380 2011-09-10  Bruno Haible  <bruno@clisp.org>
12381
12382         nocrash: Add support for native Windows.
12383         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12384
12385 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12386             Bruno Haible  <bruno@clisp.org>
12387
12388         absolute-header, include-next: Add support for MSVC compiler.
12389         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12390         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12391         directory separator in #line directives.
12392         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12393         recognize also backslash as directory separator in #line directives.
12394
12395 2011-09-08  Jim Meyering  <meyering@redhat.com>
12396
12397         maint.mk: mark the post-release commit log with "maint: " prefix
12398         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12399         one-line commit-log summary.
12400
12401 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12402             Bruno Haible  <bruno@clisp.org>
12403
12404         Doc about crypt functions.
12405         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12406         systems.
12407         * doc/posix-functions/encrypt.texi: Likewise.
12408         * doc/posix-functions/setkey.texi: Likewise.
12409
12410 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12411
12412         * lib/gc.h: Fix copyright header.
12413
12414 2011-09-07  Bruno Haible  <bruno@clisp.org>
12415
12416         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12417         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12418         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12419
12420 2011-09-07  Bruno Haible  <bruno@clisp.org>
12421
12422         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12423         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12424         * lib/freopen.c: Likewise.
12425         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12426         * lib/lstat.c: Likewise.
12427         * lib/stat.c: Likewise.
12428         * lib/open.c: Use different syntax for include of <fcntl.h>.
12429         * lib/openat.c: Include fcntl.h again, explicitly.
12430
12431 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12432
12433         parse-datetime: document the newly accepted format
12434         * doc/parse-datetime.texi (Combined date and time of day items):
12435         New section.
12436
12437 2011-09-06  Bruno Haible  <bruno@clisp.org>
12438
12439         acl: Fix a test failure on newer Solaris 10 with ZFS.
12440         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12441         ENOSYS as no ACL.
12442         Reported by Jim Meyering.
12443
12444 2011-09-06  Bruno Haible  <bruno@clisp.org>
12445
12446         acl: Update for AIX >= 5.3 with NFS.
12447         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12448         ENOSYS as no ACL.
12449
12450         acl: Fix a test failure on AIX >= 5.3 with NFS.
12451         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12452         as no ACL.
12453
12454 2011-09-06  Bruno Haible  <bruno@clisp.org>
12455
12456         acl: Fix a test failure on IRIX 6.5 with NFS.
12457         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12458         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12459         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12460         * lib/copy-acl.c (qcopy_acl): Likewise.
12461
12462 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12463
12464         openat: port to AIX 7.1 with large files
12465         AIX 7.1 does a "#define openat open64at" if large files are in use,
12466         so we can't simply #undef openat.  Use the orig_openat trick (similar
12467         to orig_open in lib/open.c) to work around the problem.  Problem
12468         reported by Kevin Brott for GNU tar, in the thread containing
12469         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12470         * lib/openat.c (__need_system_fcntl_h): Define first.
12471         Include <fcntl.h> and <sys/types.h> before undefining.
12472         (orig_openat) [HAVE_OPENAT]: New inline function.
12473         (openat) [HAVE_OPENAT]: Do not undef.
12474         (rpl_openat): Use orig_openat, not openat.
12475
12476 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12477             Bruno Haible  <bruno@clisp.org>
12478
12479         acl: Avoid errors on NonStop Kernel.
12480         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12481         ENOTSUP errors.
12482
12483 2011-09-05  Bruno Haible  <bruno@clisp.org>
12484
12485         acl: Clean up Solaris code.
12486         * lib/acl-internal.h: Remove no-op #if.
12487         * lib/file-has-acl.c: Likewise.
12488         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12489         * lib/copy-acl.c (qcopy_acl): Likewise.
12490
12491 2011-09-05  Bruno Haible  <bruno@clisp.org>
12492
12493         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12494         binaries built on the original Solaris 10.
12495         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12496         trivial.
12497
12498 2011-09-05  Bruno Haible  <bruno@clisp.org>
12499
12500         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12501         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12502         10.
12503         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12504         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12505         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12506         instead of acl_get, facl_get, acl_set, facl_set.
12507
12508 2011-09-05  Bruno Haible  <bruno@clisp.org>
12509
12510         copy-file: Try unit tests on more file systems.
12511         * tests/test-copy-file-1.sh: New file.
12512         * tests/test-copy-file-2.sh: New file.
12513         * modules/copy-file-tests (Files): Add them.
12514         (Makefile.am): Add them to TESTS.
12515
12516         acl: Try unit tests on more file systems.
12517         * tests/test-file-has-acl-1.sh: New file.
12518         * tests/test-file-has-acl-2.sh: New file.
12519         * tests/test-set-mode-acl-1.sh: New file.
12520         * tests/test-set-mode-acl-2.sh: New file.
12521         * tests/test-copy-acl-1.sh: New file.
12522         * tests/test-copy-acl-2.sh: New file.
12523         * modules/acl-tests (Files): Add them.
12524         (Makefile.am): Add them to TESTS.
12525
12526 2011-09-04  Bruno Haible  <bruno@clisp.org>
12527
12528         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12529         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
12530         10.
12531         (OLD_ALLOW, OLD_DENY): New macros.
12532         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
12533         ACE_ACCESS_ALLOWED_ACE_TYPE.
12534         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
12535         ACE_ACCESS_DENIED_ACE_TYPE.
12536         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
12537         (NEW_ACE_EXECUTE): Fix value.
12538         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
12539         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
12540         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
12541         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
12542         NEW_ACE_SYNCHRONIZE): New macros.
12543         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
12544         instead of acl_fromtext, acl_set, facl_set.
12545         Fixes a coreutils/tests/cp/perm failure.
12546
12547 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
12548
12549         openat: test for fstatat (..., 0) bug
12550         Further testing with tar suggests that fstatat (..., 0)
12551         does not work in general, on AIX 7.1; see
12552         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
12553         So, give up entirely on AIX 7.1's fstatat, and fall back on our
12554         replacement fstatat (which is what older AIX releases were using
12555         anyway).
12556         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
12557         use is now changed to orig_fstatat.  This was probably the right
12558         thing to do anyway.
12559         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
12560         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
12561         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
12562         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
12563         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
12564         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
12565         if the bug is found.
12566
12567         openat: test for fstatat (AT_FDCWD, ..., 0) bug
12568         This tests for another fstatat bug on AIX 7.1:
12569         fstatat (AT_FDCWD, ..., 0) does not work.  See
12570         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
12571         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
12572         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
12573         (rpl_fstatat): Adjust so that it works around either (or both)
12574         bugs if present.
12575         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
12576
12577 2011-09-03  Karl Berry  <karl@gnu.org>
12578
12579         * doc/regex.texi (Character Class Operators): Avoid literal ":"
12580         in index entries.
12581
12582 2011-09-02  Bruno Haible  <bruno@clisp.org>
12583
12584         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
12585         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
12586         values of AR, ARFLAGS, RANLIB.
12587         Reported by John W. Eaton <jwe@gnu.org> for Octave.
12588
12589 2011-09-02  Bruno Haible  <bruno@clisp.org>
12590
12591         Find 'ar' program that fits with --host argument.
12592         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
12593
12594 2011-09-02  Bruno Haible  <bruno@clisp.org>
12595
12596         tests: init.sh: Support any non-GNU diff.
12597         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
12598         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
12599         Solaris 8.
12600
12601 2011-09-02  Bruno Haible  <bruno@clisp.org>
12602
12603         tests: init.sh: work also with any non-GNU diff that supports -u
12604         * tests/init.sh: Relax check for diff -u support.
12605         Rather than checking for GNU diff via --version, simply check
12606         for support for -u itself.  Useful at least on OpenBSD 4.9,
12607         AIX 7.1, IRIX 6.5, and Solaris 10.
12608
12609 2011-09-01  Bruno Haible  <bruno@clisp.org>
12610
12611         strtoimax, strtoumax: Document problem on HP-UX 11.
12612         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
12613         * doc/posix-functions/strtoumax.texi: Likewise.
12614
12615 2011-09-01  Bruno Haible  <bruno@clisp.org>
12616
12617         strtoumax: Avoid link error on OSF/1 with DTK cc.
12618         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
12619         defined as a function.
12620         * modules/strtoumax (Depends-on, configure.ac): Test only whether
12621         strtoumax is defined, not whether it is declared.
12622
12623 2011-09-01  Bruno Haible  <bruno@clisp.org>
12624
12625         strtoimax: Avoid link error on OSF/1 with DTK cc.
12626         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
12627         defined as a function.
12628         * modules/strtoimax (Depends-on, configure.ac): Test only whether
12629         strtoimax is defined, not whether it is declared.
12630
12631 2011-09-01  Bruno Haible  <bruno@clisp.org>
12632
12633         imaxdiv: Avoid link error on OSF/1 with DTK cc.
12634         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
12635         as a function.
12636         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
12637         whether it is declared.
12638
12639 2011-09-01  Bruno Haible  <bruno@clisp.org>
12640
12641         imaxabs: Avoid link error on OSF/1 with DTK cc.
12642         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
12643         as a function.
12644         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
12645         whether it is declared.
12646
12647 2011-09-01  Bruno Haible  <bruno@clisp.org>
12648
12649         Tests for module 'strtoumax'.
12650         * modules/strtoumax-tests: New file.
12651         * tests/test-strtoumax.c: New file.
12652
12653         Tests for module 'strtoimax'.
12654         * modules/strtoimax-tests: New file.
12655         * tests/test-strtoimax.c: New file.
12656
12657         Tests for module 'imaxdiv'.
12658         * modules/imaxdiv-tests: New file.
12659         * tests/test-imaxdiv.c: New file.
12660
12661         Tests for module 'imaxabs'.
12662         * modules/imaxabs-tests: New file.
12663         * tests/test-imaxabs.c: New file.
12664
12665 2011-09-01  Bruno Haible  <bruno@clisp.org>
12666
12667         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
12668         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
12669         pthread_create.
12670
12671 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12672
12673         openat: work around AIX 7.1 fstatat issue
12674         This should fix the problem that was not properly fixed
12675         in the previous change, dated 2011-08-30.
12676         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
12677         __need_system_stat_h defined.
12678         (orig_fstatat) [HAVE_FSTATAT]: New function.
12679         (rpl_fstatat): Go back to the old way of doing things,
12680         except call orig_fstatat instead of fstatat.
12681         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
12682         Remove unnecessary check whether fstatat fills in st_size etc.
12683
12684 2011-09-01  Bruno Haible  <bruno@clisp.org>
12685
12686         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
12687         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
12688         just include the system's header.
12689
12690 2011-08-31  Jim Meyering  <meyering@redhat.com>
12691
12692         tests: avoid spurious assertion failure in test-float.c on ppc64
12693         * tests/test-float.c (test_long_double): Comment out an assertion,
12694         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
12695         with gcc-4.4.4.
12696
12697         maint: indent with spaces, not TABs
12698         I need to get in the habit of running gnulib's "make check".
12699         Both of these would have been caught.
12700         * m4/largefile.m4: Indent with spaces, not TABs.
12701         * lib/parse-datetime.y (iso_8601_time): Likewise.
12702         Spotted by Pádraig Brady.
12703
12704         test-parse-datetime.c: accommodate a relatively strict gcc warning
12705         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
12706         to avoid a warning from gcc's -Werror=missing-declarations.
12707         Insert a few spaces-before-funcall-parenthesis.
12708
12709 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
12710
12711         parse-datetime: accept ISO 8601 date and time rep with "T" separator
12712         The parser now accepts ISO 8601 date-time strings with "T" as the
12713         separator.  It has long parsed dates like "2004-02-29 16:21:42"
12714         with a space between the date and time strings.  Now it also parses
12715         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
12716         variants like "2004-02-29T16:21:42.333-07:00"
12717         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
12718         of day representation using the 'T' separator character.
12719         * doc/parse-datetime.texi (General date syntax): replace use of
12720         deprecated --iso-8601 option with --rfc-3339 in example of date
12721         command output formats that can be parsed.
12722         * tests/test-parse-datetime.c (tm_diff): New function, taken from
12723         lib/parse-datetime.y.
12724         (gmt_offset): New function.
12725         (main): Add additional test cases to validate ISO8601 extended
12726         date and time of day parsing.
12727
12728 2011-08-31  Bruno Haible  <bruno@clisp.org>
12729
12730         freopen: Documentation.
12731         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
12732         name.
12733         Reported by Claudio Bley <claudio.bley@gmail.com>.
12734
12735 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
12736
12737         freopen: Don't crash if the filename argument is NULL.
12738         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
12739         NULL.
12740
12741 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12742
12743         openat: work around AIX 7.1 fstatat bug
12744         Problem reported by Kevin Brott for GNU tar, in the thread containing
12745         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
12746         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
12747         FSTATAT_ST_SIZE_ETC_BROKEN.
12748         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
12749         rpl_fstatat.
12750         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
12751         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
12752         AC_CHECK_FUNCS_ONCE for fstatat.
12753         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
12754         fchmodat, mkdirat, openat and unlinkat.
12755
12756 2011-08-30  Bruno Haible  <bruno@clisp.org>
12757
12758         Avoid endless recursions if config.h includes some header files.
12759         * lib/fopen.c (__need_FILE): Define already before including config.h.
12760         * lib/freopen.c (__need_FILE): Likewise.
12761         * lib/open.c (__need_system_fcntl_h): Likewise.
12762         * lib/stat.c (__need_system_sys_stat_h): Likewise.
12763         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
12764         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12765
12766 2011-08-25  Karl Berry  <karl@gnu.org>
12767
12768         * config/srclist.txt (ylwrap): new try.
12769         * build-aux/ylwrap: new file.
12770
12771 2011-08-23  Bruno Haible  <bruno@clisp.org>
12772
12773         tmpdir: Use a good default directory on native Windows.
12774         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
12775         (P_tmpdir): Default to _P_tmpdir on native Windows.
12776         (path_search): On native Windows, try the value returned by GetTempPath
12777         before trying P_tmpdir.
12778         * modules/tmpdir (Depends-on): Add pathmax.
12779         Suggested by John Darrington <john@darrington.wattle.id.au>.
12780
12781 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
12782
12783         doc: fix typo in README-release
12784         * top/README-release: Capitalize first word of a sentence.
12785
12786 2011-08-19  Jim Meyering  <meyering@redhat.com>
12787
12788         fts: do not exhaust memory when processing million-entry directories
12789         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
12790         directory would require about 256*N bytes of memory.  Thus, it was
12791         easy to construct a directory too large to be processed by any of
12792         those tools.  With this change, fts' maximum memory utilization is
12793         now limited to around 30MB.
12794         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
12795         (fts_read): When we've processed the final entry (i.e., when
12796         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
12797         using the parent entry to read any remaining entries.  Dispatch
12798         depending on what fts_build returns:
12799         - NULL+stop, aka failure: stop
12800         - NULL otherwise: move up in the dir hierarchy
12801         - non-NULL: handle this new entry
12802         (fts_build): Declare and use new local, continue_readdir.
12803         Prepare to be called from fts_read, when the entries
12804         from a partially-read directory have just been exhausted.
12805         In that case, we'll skip the opendir and instead use the parent's
12806         fts_dirp and derive dir_fd from that.
12807         Finally, in the readdir loop, if we read max_entries entries,
12808         exit the loop ensuring *not* to call closedir.  This is required
12809         so that fts_dirp can be reused on a subsequent call.
12810         Prompted by Ben England's report of memory exhaustion in find
12811         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
12812
12813         maint: fts: move decl of `dp' down into while loop; split a long line
12814         * lib/fts.c (fts_build): No semantic change.
12815
12816         fts: add/use new struct member, fts_dirp
12817         We are about to use this to manage any directory with
12818         too many entries to read all of them into memory at once.
12819         To do that, we'll need to save the DIR* pointer in each
12820         affected FTSENT struct.
12821         * lib/fts_.h: Include <dirent.h>.
12822         (struct FTSENT) [fts_dirp]: New member.
12823         * lib/fts.c (closedir_and_clear): Define.
12824         Use it in place of closedir so that we are sure to
12825         clear the new fts_dirp member when done with it.
12826         (fts_alloc): Initialize the new member.
12827         (fts_lfree): Free, if needed.
12828
12829         maint: fts: give __opendir2 a new parameter and rename
12830         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
12831         than surreptitiously using sole caller's "dir_fd".
12832         (fts_opendir): Rename from __opendir2.
12833
12834         maint: fts.c: remove __opendir2's now-unused parameter, oflag
12835         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
12836
12837         maint: fts.c: correct off-by-one indentation
12838         * lib/fts.c (fts_build): Correct indentation, change style
12839         of a couple of block comments, and bracing style.
12840
12841         maint: fts.c: move __opendir2 #define "up" out of function body
12842         * lib/fts.c (__opendir2): Move "up".  No semantic change.
12843
12844         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
12845         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
12846         out for a long time and besides was useful only on BSD systems.
12847
12848 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12849
12850         regex: port to Stratus OpenVOS
12851         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
12852         define to empty, rather than attempting nonportable optimizations.
12853         Problem reported by Paul Green in:
12854         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
12855         and fix suggested by Eric Blake in:
12856         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
12857
12858 2011-08-17  Eric Blake  <eblake@redhat.com>
12859
12860         getcwd: fix test failures on mingw
12861         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
12862         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
12863         test if long directory cannot be created, and allow mingw errno.
12864
12865         getcwd-lgpl: fix m4 to match relaxed test for BSD
12866         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
12867         (gl_FUNC_GETCWD_SIGNATURE): New macro.
12868         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
12869         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
12870         signature problem.
12871
12872         getcwd: fix compilation on mingw64
12873         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
12874         getcwd.
12875         Reported by Marc-André Lureau.
12876
12877         pipe2: silence compiler warning
12878         * lib/pipe2.c (pipe2): Hide label if it is not used.
12879
12880 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
12881
12882         relocatable-prog: fix link error
12883         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
12884         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
12885         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
12886         into modules/relocatable-lib without noticing that
12887         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
12888         also needs to build relocatable.c.
12889
12890 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12891
12892         getaddrinfo: fix sh typo in gai_strerrorA decl checking
12893         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
12894         shell code: it contained a 'break' that was not in a loop.
12895         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
12896         via a shell-language loop; this may have been true in old Autoconf
12897         versions, but it's not true in Autoconf 2.68.  I found this bug
12898         when testing coreutils git on Solaris 8, whose shell complains
12899         about the syntax error.
12900
12901 2011-08-12  Simon Josefsson  <simon@josefsson.org>
12902
12903         * lib/base64.c: Fix comment to reference RFC 4648.
12904         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
12905         <gvtulder@gmail.com>.
12906
12907 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12908
12909         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
12910
12911         po/Makefile.in.in: fix make -q problem
12912         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
12913         rule, since there's no file named 'check-macro-version' and its
12914         use as a file breaks make -q.
12915         (all): Don't depend on check-macro-version.
12916         (CHECK_MACRO_VERSION): New macro.
12917         (stamp-po): Use it.
12918
12919         configmake: fix make -q problem
12920         * modules/configmake (configmake.h): Update configmake.h's time stamp
12921         even if the file does not change.  Otherwise, 'make -q' fails.
12922         Problem reported by Simon Josefsson in
12923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
12924
12925 2011-08-11  Jim Meyering  <meyering@redhat.com>
12926
12927         git-version-gen: correct the advice in a comment
12928         * build-aux/git-version-gen: Correct comment.
12929         Don't recommend to list .tarball-version in .gitignore.
12930
12931 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12932
12933         base64: fix off-by-one buffer size bug
12934         Problem and (trivial) fix reported by Gijs van Tulder in
12935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
12936         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
12937         * tests/test-base64.c (main): Catch the bug.
12938
12939 2011-08-10  Eric Blake  <eblake@redhat.com>
12940
12941         closein: correct comments
12942         * lib/closein.c (close_stdin): Improve comments.
12943
12944 2011-08-09  Bruno Haible  <bruno@clisp.org>
12945
12946         More tests for 'fseeko'.
12947         * tests/test-fseeko3.c: New file, from Eric Blake.
12948         * tests/test-fseeko3.sh: New file.
12949         * modules/fseeko-tests (Files): Add them.
12950         (TESTS): Add test-fseeko3.sh.
12951         (check_PROGRAMS): Add test-fseeko3.
12952
12953 2011-08-09  Eric Blake  <eblake@redhat.com>
12954
12955         fseeko: remove unneeded hack
12956         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
12957
12958         fseeko: fix bug on glibc
12959         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
12960         Reported by John W. Eaton.
12961
12962 2011-08-08  Bruno Haible  <bruno@clisp.org>
12963
12964         unictype/base: Fix interoperability with preinstalled libunistring.
12965         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
12966         Reported by Simon Josefsson.
12967
12968 2011-08-08  Bruno Haible  <bruno@clisp.org>
12969
12970         iswblank: Detect declaration correctly.
12971         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
12972         AC_CHECK_DECLS invocation.
12973
12974 2011-08-08  Bruno Haible  <bruno@clisp.org>
12975
12976         tcgetsid: Detect declaration correctly.
12977         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
12978         AC_CHECK_DECLS invocation.
12979         Reported by Simon Josefsson.
12980
12981 2011-08-08  Eric Blake  <eblake@redhat.com>
12982
12983         largefile: fix typo that regressed large file support
12984         * modules/largefile (configure.ac-early): Fix section name.
12985
12986 2011-08-06  Karl Berry  <karl@gnu.org>
12987
12988         * MODULES.html.sh (func_all_files): _Noreturn is no longer
12989         a separate module.
12990
12991 2011-08-05  Simon Josefsson  <simon@josefsson.org>
12992
12993         openat: Fix warnings and commens when building unlinkat.c on Hurd.
12994         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
12995         get prototype for free.
12996
12997 2011-08-04  Bruno Haible  <bruno@clisp.org>
12998
12999         Tests for module 'pathmax'.
13000         * modules/pathmax-tests: New file.
13001         * tests/test-pathmax.c: New file.
13002
13003         canonicalize-lgpl: Support larger filenames on the Hurd.
13004         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13005         Reported by Paul Eggert.
13006
13007         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13008         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13009         * lib/chdir-long.h: Include pathmax.h.
13010         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13011         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13012         (PATH_MAX): Remove code that is done by pathmax.h.
13013         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13014         * lib/tmpfile.c: Add a comment.
13015         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13016         * modules/chdir-long (Depends-on): Add pathmax.
13017         * modules/getcwd (Depends-on): Add pathmax.
13018         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13019         is not defined.
13020         * doc/posix-headers/limits.texi: Mention the pathmax module.
13021         * NEWS: Mention the change.
13022
13023 2011-08-02  Bruno Haible  <bruno@clisp.org>
13024
13025         pthread_sigmask: Actually use results of gl_THREADLIB.
13026         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13027         gl_THREADLIB, not gl_[]THREADLIB.
13028         Reported by Eric Blake.
13029
13030 2011-08-02  Jim Meyering  <meyering@redhat.com>
13031
13032         maint.mk: relax the default _gl_TS_function_match regexp
13033         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13034         space between function name and "(" in an "extern" declaration.
13035         That would fail to match a decl with no space there: extern void foo();
13036
13037 2011-07-31  Iain Nicol  <iain@thenicols.net>
13038
13039         git-version-gen: document that EXTRA_DIST must include .version
13040         * build-aux/git-version-gen: In the how-to-use comment, document
13041         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13042         will fail when run from an unpacked distribution tarball.
13043
13044 2011-08-01  Bruno Haible  <bruno@clisp.org>
13045
13046         wctype-h: Fix last change.
13047         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13048         REPLACE_TOWLOWER to 0.
13049         Reported by Sam Steingold <sds@gnu.org>.
13050
13051 2011-07-31  Bruno Haible  <bruno@clisp.org>
13052
13053         frexpl: Update autoconf test.
13054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13055         according to changes of 2011-06-20.
13056
13057 2011-07-31  Bruno Haible  <bruno@clisp.org>
13058
13059         sys_utsname: Add support for Minix.
13060         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13061         <sys/utsname.h>.
13062         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13063         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13064
13065 2011-07-31  Bruno Haible  <bruno@clisp.org>
13066
13067         strings: Add support for Minix.
13068         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13069         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13070         * doc/posix-headers/strings.texi: Document the Minix problem.
13071
13072 2011-07-31  Bruno Haible  <bruno@clisp.org>
13073
13074         wctype-h: Add support for Minix.
13075         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13076         REPLACE_TOWLOWER.
13077         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13078         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13079         REPLACE_ISWCNTRL.
13080
13081 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13082
13083         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13084         This is a performance improvement for 64-bit hosts: it causes the
13085         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13086
13087 2011-07-31  Bruno Haible  <bruno@clisp.org>
13088
13089         stdioext: Add support for Minix.
13090         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13091         * lib/fpurge.c (fpurge): Likewise.
13092         * lib/freadahead.c (freadahead): Likewise.
13093         * lib/freadable.c (freadable): Likewise.
13094         * lib/freading.c (freading): Likewise.
13095         * lib/freadptr.c (freadptr): Likewise.
13096         * lib/freadseek.c (freadptrinc): Likewise.
13097         * lib/fseeko.c (rpl_fseeko): Likewise.
13098         * lib/fseterr.c (fseterr): Likewise.
13099         * lib/fwritable.c (fwritable): Likewise.
13100         * lib/fwriting.c (fwriting): Likewise.
13101         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13102         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13103
13104 2011-07-31  Bruno Haible  <bruno@clisp.org>
13105
13106         errno: Port to Minix.
13107         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13108         ECONNABORTED are defined.
13109         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13110         GNULIB_defined_ECONNABORTED): New macros.
13111         * lib/strerror-override.h (strerror_override): Test also
13112         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13113         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13114         ECONNABORTED.
13115         * doc/posix-headers/errno.texi: Mention the Minix problem.
13116
13117 2011-07-31  Bruno Haible  <bruno@clisp.org>
13118
13119         Work around declaration collisions on Minix.
13120         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13121         defined, set REPLACE_MBSINIT.
13122         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13123         defined, set REPLACE_MBRTOWC.
13124         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13125         set REPLACE_MBRLEN.
13126         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13127         defined, set REPLACE_MBSRTOWCS.
13128         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13129         defined, set REPLACE_WCRTOMB.
13130         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13131         defined, set REPLACE_WCSRTOMBS.
13132
13133 2011-07-31  Bruno Haible  <bruno@clisp.org>
13134
13135         Add support for Minix with ACK compiler.
13136         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13137         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13138         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13139
13140 2011-07-31  Bruno Haible  <bruno@clisp.org>
13141
13142         Documentation about Minix.
13143         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13144         * doc/glibc-headers/*.texi: Likewise.
13145         * doc/posix-functions/*.texi: Likewise.
13146         * doc/glibc-functions/*.texi: Likewise.
13147
13148 2011-07-31  Bruno Haible  <bruno@clisp.org>
13149
13150         snippet/warn-on-use: Fix indentation.
13151         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13152
13153 2011-07-25  Jim Meyering  <meyering@redhat.com>
13154
13155         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13156         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13157         commands.
13158
13159 2011-07-27  Jim Meyering  <meyering@redhat.com>
13160
13161         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13162         * top/maint.mk (gl_extract_significant_defines_): Now that
13163         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13164         gnulib/lib/signal.in.h, and now that we recommend to
13165         define-if-undefined those two symbols in application code,
13166         we must filter them out of the "significant" list.
13167         This avoids a "make syntax-check" failure in coreutils.
13168
13169 2011-07-26  Eric Blake  <eblake@redhat.com>
13170
13171         warnings: add comments about previous patch
13172         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13173         * m4/include_next.m4: Likewise.
13174         * m4/warn-on-use.m4: Likewise.
13175         * m4/warnings.m4: Likewise, and simplify use.
13176         Suggested by Stefano Lattarini.
13177
13178         include-next, warnings: support older autoconf
13179         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13180         AS_VAR_PUSHDEF in a way that works with older autoconf.
13181         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13182         Reported by Daniel P. Berrange.
13183
13184 2011-07-25  Bruno Haible  <bruno@clisp.org>
13185
13186         fseek, ftell: Fix doc.
13187         * doc/posix-functions/fseek.texi: Reword statement about
13188         AC_SYS_LARGEFILE.
13189         * doc/posix-functions/ftell.texi: Likewise.
13190
13191 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13192             Bruno Haible  <bruno@clisp.org>
13193
13194         Add dependencies to the 'largefile' module.
13195         * modules/fopen (Depends-on): Add 'largefile'.
13196         * modules/freopen (Depends-on): Likewise.
13197         * modules/fseeko (Depends-on): Likewise.
13198         * modules/ftello (Depends-on): Likewise.
13199         * modules/glob (Depends-on): Likewise.
13200         * modules/lseek (Depends-on): Likewise.
13201         * modules/lstat (Depends-on): Likewise.
13202         * modules/mkostemp (Depends-on): Likewise.
13203         * modules/mkostemps (Depends-on): Likewise.
13204         * modules/mkstemp (Depends-on): Likewise.
13205         * modules/mkstemps (Depends-on): Likewise.
13206         * modules/open (Depends-on): Likewise.
13207         * modules/openat (Depends-on): Likewise.
13208         * modules/pread (Depends-on): Likewise.
13209         * modules/pwrite (Depends-on): Likewise.
13210         * modules/scandir (Depends-on): Likewise.
13211         * modules/stat (Depends-on): Likewise.
13212         * modules/tmpfile (Depends-on): Likewise.
13213         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13214         since the containing module now depends on the largefile module.
13215         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13216         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13217         off_t is fixed by gnulib.
13218         * doc/posix-functions/freopen.texi: Likewise.
13219         * doc/posix-functions/fseeko.texi: Likewise.
13220         * doc/posix-functions/fstatat.texi: Likewise.
13221         * doc/posix-functions/ftello.texi: Likewise.
13222         * doc/posix-functions/glob.texi: Likewise.
13223         * doc/posix-functions/lseek.texi: Likewise.
13224         * doc/posix-functions/lstat.texi: Likewise.
13225         * doc/posix-functions/mkstemp.texi: Likewise.
13226         * doc/posix-functions/open.texi: Likewise.
13227         * doc/posix-functions/openat.texi: Likewise.
13228         * doc/posix-functions/pread.texi: Likewise.
13229         * doc/posix-functions/pwrite.texi: Likewise.
13230         * doc/posix-functions/scandir.texi: Likewise.
13231         * doc/posix-functions/stat.texi: Likewise.
13232         * doc/posix-functions/tmpfile.texi: Likewise.
13233         * doc/glibc-functions/mkostemp.texi: Likewise.
13234         * doc/glibc-functions/mkostemps.texi: Likewise.
13235         * doc/glibc-functions/mkstemps.texi: Likewise.
13236
13237 2011-07-25  Bruno Haible  <bruno@clisp.org>
13238
13239         fcntl: Move AC_LIBOBJ invocation to module description.
13240         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13241         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13242
13243         fcntl: Remove call-in from fchdir.m4.
13244         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13246
13247         dup3: Remove potential call-in from fchdir.m4.
13248         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13249         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13250
13251         dup2: Move AC_LIBOBJ invocation to module description.
13252         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13253         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13254         Don't invoke AC_LIBOBJ.
13255         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13256
13257         dup2: Remove call-in from fchdir.m4.
13258         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13260
13261         fclose: Move AC_LIBOBJ invocation to module description.
13262         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13263         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13264         to 1.
13265         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13266
13267         fclose: Remove call-in from close.m4.
13268         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13269         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13270
13271         close: Move AC_LIBOBJ invocation to module description.
13272         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13273         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13274         1.
13275         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13276
13277         close: Remove call-in from fchdir.m4.
13278         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13280
13281         open: Move AC_LIBOBJ invocation to module description.
13282         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13283         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13284         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13285
13286         open: Remove call-in from fchdir.m4.
13287         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13289
13290         fchdir: Start to remove gl_REPLACE_* idiom.
13291         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13292         (gl_FUNC_FCHDIR): Invoke it.
13293
13294 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13295
13296         * lib/ftell.c (ftell): Comment out cast.
13297
13298         close: use gl_REPLACE_FCLOSE only if defined
13299         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13300         is defined.  The close module doesn't depend on the fclose module
13301         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13303         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13304
13305 2011-07-24  Jim Meyering  <meyering@redhat.com>
13306
13307         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13308         * tests/test-select.h (test_function): Declare as "static".
13309
13310 2011-07-24  Bruno Haible  <bruno@clisp.org>
13311
13312         doc: Mention the effects of AC_SYS_LARGEFILE.
13313         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13314         on this function.
13315         * doc/posix-functions/aio_error.texi: Likewise.
13316         * doc/posix-functions/aio_fsync.texi: Likewise.
13317         * doc/posix-functions/aio_read.texi: Likewise.
13318         * doc/posix-functions/aio_return.texi: Likewise.
13319         * doc/posix-functions/aio_suspend.texi: Likewise.
13320         * doc/posix-functions/aio_write.texi: Likewise.
13321         * doc/posix-functions/fgetpos.texi: Likewise.
13322         * doc/posix-functions/fopen.texi: Likewise.
13323         * doc/posix-functions/freopen.texi: Likewise.
13324         * doc/posix-functions/fsetpos.texi: Likewise.
13325         * doc/posix-functions/fstatvfs.texi: Likewise.
13326         * doc/posix-functions/ftruncate.texi: Likewise.
13327         * doc/posix-functions/ftw.texi: Likewise.
13328         * doc/posix-functions/getrlimit.texi: Likewise.
13329         * doc/posix-functions/glob.texi: Likewise.
13330         * doc/posix-functions/lio_listio.texi: Likewise.
13331         * doc/posix-functions/lockf.texi: Likewise.
13332         * doc/posix-functions/mkstemp.texi: Likewise.
13333         * doc/posix-functions/mmap.texi: Likewise.
13334         * doc/posix-functions/nftw.texi: Likewise.
13335         * doc/posix-functions/openat.texi: Likewise.
13336         * doc/posix-functions/opendir.texi: Likewise.
13337         * doc/posix-functions/posix_fadvise.texi: Likewise.
13338         * doc/posix-functions/posix_fallocate.texi: Likewise.
13339         * doc/posix-functions/pread.texi: Likewise.
13340         * doc/posix-functions/pwrite.texi: Likewise.
13341         * doc/posix-functions/readdir.texi: Likewise.
13342         * doc/posix-functions/readdir_r.texi: Likewise.
13343         * doc/posix-functions/rewinddir.texi: Likewise.
13344         * doc/posix-functions/scandir.texi: Likewise.
13345         * doc/posix-functions/seekdir.texi: Likewise.
13346         * doc/posix-functions/setrlimit.texi: Likewise.
13347         * doc/posix-functions/statvfs.texi: Likewise.
13348         * doc/posix-functions/telldir.texi: Likewise.
13349         * doc/posix-functions/tmpfile.texi: Likewise.
13350         * doc/posix-functions/truncate.texi: Likewise.
13351         * doc/glibc-functions/fallocate.texi: Likewise.
13352         * doc/glibc-functions/fstatfs.texi: Likewise.
13353         * doc/glibc-functions/fts_children.texi: Likewise.
13354         * doc/glibc-functions/fts_read.texi: Likewise.
13355         * doc/glibc-functions/getdirentries.texi: Likewise.
13356         * doc/glibc-functions/mkostemp.texi: Likewise.
13357         * doc/glibc-functions/mkostemps.texi: Likewise.
13358         * doc/glibc-functions/mkstemps.texi: Likewise.
13359         * doc/glibc-functions/preadv.texi: Likewise.
13360         * doc/glibc-functions/pwritev.texi: Likewise.
13361         * doc/glibc-functions/sendfile.texi: Likewise.
13362         * doc/glibc-functions/statfs.texi: Likewise.
13363
13364 2011-07-24  Bruno Haible  <bruno@clisp.org>
13365
13366         doc: Fix typo.
13367         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13368
13369 2011-07-24  Bruno Haible  <bruno@clisp.org>
13370
13371         doc: Mention fsusage.
13372         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13373
13374 2011-07-24  Bruno Haible  <bruno@clisp.org>
13375
13376         doc: Mention new glibc headers and functions.
13377         * doc/glibc-headers/gshadow.texi: New file.
13378         * doc/glibc-functions/endsgent.texi: New file.
13379         * doc/glibc-functions/fgetsgent.texi: New file.
13380         * doc/glibc-functions/fgetsgent_r.texi: New file.
13381         * doc/glibc-functions/getsgent.texi: New file.
13382         * doc/glibc-functions/getsgent_r.texi: New file.
13383         * doc/glibc-functions/getsgnam.texi: New file.
13384         * doc/glibc-functions/getsgnam_r.texi: New file.
13385         * doc/glibc-functions/putsgent.texi: New file.
13386         * doc/glibc-functions/setsgent.texi: New file.
13387         * doc/glibc-functions/sgetsgent.texi: New file.
13388         * doc/glibc-functions/sgetsgent_r.texi: New file.
13389         * doc/glibc-functions/malloc_info.texi: New file.
13390         * doc/glibc-functions/preadv.texi: New file.
13391         * doc/glibc-functions/pwritev.texi: New file.
13392         * doc/glibc-functions/register_printf_modifier.texi: New file.
13393         * doc/glibc-functions/register_printf_specifier.texi: New file.
13394         * doc/glibc-functions/register_printf_type.texi: New file.
13395         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13396         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13397         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13398         * doc/glibc-functions/pthread_getname_np.texi: New file.
13399         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13400         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13401         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13402         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13403         * doc/glibc-functions/pthread_setname_np.texi: New file.
13404         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13405         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13406         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13407         * doc/glibc-functions/qsort_r.texi: New file.
13408         * doc/glibc-functions/quick_exit.texi: New file.
13409         * doc/glibc-functions/syncfs.texi: New file.
13410         * doc/gnulib.texi: Include them.
13411         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13412         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13413         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13414         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13415         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13416         * doc/glibc-functions/execvpe.texi: Likewise.
13417
13418 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13419
13420         ftell: don't include <unistd.h>
13421         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13422         guaranteed to define off_t, and the ftell module depends on the
13423         stdio module.
13424
13425         ftell: do not assume wraparound signed arithmetic
13426         * lib/ftell.c: Include <limits.h>.
13427         (ftell): Don't assume wraparound signed arithmetic.
13428
13429 2011-07-24  Bruno Haible  <bruno@clisp.org>
13430
13431         close: No longer depend on module 'fclose'.
13432         * modules/close (Depends-on): Remove fclose.
13433         * NEWS: Mention the change.
13434         Suggested by Sam Steingold <sds@gnu.org>.
13435
13436 2011-07-24  Bruno Haible  <bruno@clisp.org>
13437
13438         fsusage: Enable large volume support on AIX >= 5.2.
13439         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13440         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13441         instead of STAT_STATVFS.
13442         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13443
13444         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13445         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13446         f_blocks field only on MacOS X.
13447
13448         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13449         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13450         * modules/fsusage (Depends-on): Add largefile.
13451
13452 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13453
13454         * README: Modernize discussion of signed integers.
13455         Assuming overflow wraparound is no longer safe.
13456         Mention ones' complement and signed magnitude.
13457
13458 2011-07-22  Bruno Haible  <bruno@clisp.org>
13459
13460         select tests, pselect tests: Refactor.
13461         * tests/test-select.h: New file, extracted from tests/test-select.c.
13462         (select_fn): New type.
13463         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13464         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13465         test_pipe): Add my_select argument.
13466         (test_function): Renamed from main. Add my_select argument.
13467         * tests/test-select.c: Move most code to tests/test-select.h. Include
13468         test-select.h.
13469         * modules/select-tests (Files): Add tests/test-select.h.
13470         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13471         (my_select, main): New functions.
13472         * modules/pselect-tests (Files): Add tests/test-select.h,
13473         tests/macros.h, tests/signature.h.
13474         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13475         (configure.ac): Check for <sys/wait.h>.
13476
13477 2011-07-22  Bruno Haible  <bruno@clisp.org>
13478
13479         sys_select tests: Check the signature of FD_*.
13480         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13481         signature tests from here...
13482         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13483         here.
13484         * modules/sys_select-tests (Files): Add tests/signature.h.
13485
13486 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13487
13488         largefile: new module, replacing large-inode
13489         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13490         * MODULES.html.sh: Add largefile, remove large-inode.
13491         * modules/largefile, m4/largefile.m4: New files.
13492         * modules/large-inode, m4/large-inode.m4: Remove.
13493
13494         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13495         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13496         implementations that use only 32 bits to count blocks.
13497         On typical hosts with 1024-byte blocks, this fails with file
13498         systems as small as 4 TiB.  Problem reported by Herb Wartens
13499         <http://debbugs.gnu.org/9140> and this should also fix a similar
13500         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13501
13502         large-inode: New module
13503         * MODULES.html.sh: Add it.
13504         * modules/large-inode, m4/large-inode.m4: New files.
13505
13506         extensions: Enable extensions on MacOS X 10.5 and later.
13507         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13508
13509 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13510
13511         file-has-acl: use acl_extended_file_nofollow if available
13512         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13513         (acl_extended_file): New macro.
13514         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13515         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13516
13517 2011-07-21  Bruno Haible  <bruno@clisp.org>
13518
13519         Declare system functions in a way that works with C++.
13520         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13521         declare fdopendir as extern "C".
13522         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13523         declare frexpl as extern "C".
13524         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13525         declare gai_strerror as extern "C".
13526         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
13527         programs, declare gai_strerror as extern "C".
13528         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
13529         declare getlogin_r as extern "C".
13530         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
13531         as extern "C".
13532         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
13533         declare ldexpl as extern "C".
13534         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
13535         as extern "C".
13536         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
13537         program, declare getmntinfo as extern "C".
13538         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
13539         stpncpy as extern "C".
13540         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
13541         program, declare __xpg_strerror_r as extern "C".
13542         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
13543         strndup as extern "C".
13544         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
13545         declare memset and bzero as extern "C".
13546         Reported by Sam Steingold <sds@gnu.org>.
13547
13548 2011-07-12  Jim Meyering  <meyering@redhat.com>
13549
13550         maint.mk: prohibit inclusion of "verify.h" without use
13551         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
13552
13553 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13554
13555         timer-time: A new module to check for timer_settime()
13556         * m4/timer_time.m4: Check for the posix function.
13557         * modules/timer-time: Add the new module.
13558         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
13559         Mention it.
13560
13561 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
13562             Bruno Haible  <bruno@clisp.org>
13563
13564         pthread_sigmask: assume POSIX threads if --avoid=threadlib
13565         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
13566         not defined, assume POSIX threads and look for pthread_sigmask in
13567         $LIBS, without changing $CPPFLAGS.
13568
13569 2011-07-19  Bruno Haible  <bruno@clisp.org>
13570
13571         strstr: Update cross-compilation guess.
13572         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
13573         CPUs, guess no, in view of glibc
13574         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
13575         Suggested by Eric Blake. Reported by Reuben Thomas.
13576
13577 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13578
13579         getopt-gnu: suppress core dumps from detection code
13580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
13581         to suppress core dumps that may well occur on glibc systems.
13582         * modules/getopt-gnu: Depend on nocrash.
13583
13584 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13585
13586         pthread_sigmask: ensure usleep is declared
13587         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
13588         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
13589
13590 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13591
13592         doc: Document NonStop portability issues.
13593         * doc/posix-functions/sigaction.texi (sigaction):
13594         * doc/posix-headers/signal.texi (signal.h):
13595         Document NonStop.  See Joachim Schmitz in
13596         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
13597
13598 2011-07-15  Bruno Haible  <bruno@clisp.org>
13599
13600         ffsl, ffsll: Avoid unportable behaviour.
13601         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
13602
13603 2011-07-15  Bruno Haible  <bruno@clisp.org>
13604
13605         ffs: More tests.
13606         * tests/test-ffs.c (NBITS): New macro.
13607         (main): Add more tests.
13608         * tests/test-ffsl.c (NBITS): New macro.
13609         (main): Add more tests.
13610         * tests/test-ffsll.c (NBITS): New macro.
13611         (main): Add more tests.
13612
13613 2011-07-15  Eric Blake  <eblake@redhat.com>
13614
13615         ffsl, ffsll: new modules
13616         * modules/ffsl: New file.
13617         * modules/ffsll: Likewise.
13618         * m4/ffsl.m4: Likewise.
13619         * m4/ffsll.m4: Likewise.
13620         * lib/ffsl.c: Likewise.
13621         * lib/ffsl.h: Likewise.
13622         * lib/ffsll.c: Likewise.
13623         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
13624         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
13625         * modules/string (Makefile.am): Substitute witnesses.
13626         * lib/strings.in.h (ffsl, ffsll): Declare.
13627         * modules/ffsl-tests: New test file.
13628         * modules/ffsll-tests: Likewise.
13629         * tests/test-ffsl.c: Likewise.
13630         * tests/test-ffsll.c: Likewise.
13631         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13632         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
13633         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
13634
13635         ffs: fix m4 prerequisite
13636         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
13637
13638         ffs: avoid undefined behavior
13639         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
13640         * tests/test-ffs.c (naive, main): Avoid signed shifts.
13641         Reported by Bruno Haible.
13642
13643 2011-07-12  Bruno Haible  <bruno@clisp.org>
13644
13645         pthread_sigmask: Rely on module 'threadlib'.
13646         * modules/pthread_sigmask (Depends-on): Add threadlib.
13647         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
13648         is defined.
13649
13650 2011-07-12  Bruno Haible  <bruno@clisp.org>
13651
13652         regex: Depend on module 'strcase'.
13653         * modules/regex (Depends-on): Add strcase, for strcasecmp().
13654
13655 2011-07-12  Jim Meyering  <meyering@redhat.com>
13656
13657         warn-on-use: fix typo in file name
13658         * modules/snippet/warn-on-use (Files): Correct file name:
13659         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
13660
13661 2011-07-12  Bruno Haible  <bruno@clisp.org>
13662
13663         strings: Document module.
13664         * doc/posix-headers/strings.texi: Mention module 'strings'.
13665
13666 2011-07-12  Bruno Haible  <bruno@clisp.org>
13667
13668         Rename module '_Noreturn' to 'snippet/_Noreturn'.
13669         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
13670         (Files, Makefile.am): Update.
13671         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
13672         * modules/stdlib (Depends-on): Update.
13673
13674 2011-07-12  Bruno Haible  <bruno@clisp.org>
13675
13676         * NEWS: Mention the changes.
13677
13678         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
13679         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
13680         (Files, Makefile.am): Update.
13681         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
13682         * modules/arpa_inet (Depends-on): Update.
13683         * modules/ctype (Depends-on): Update.
13684         * modules/dirent (Depends-on): Update.
13685         * modules/fcntl-h (Depends-on): Update.
13686         * modules/glob (Depends-on): Update.
13687         * modules/iconv-h (Depends-on): Update.
13688         * modules/inttypes-incomplete (Depends-on): Update.
13689         * modules/langinfo (Depends-on): Update.
13690         * modules/locale (Depends-on): Update.
13691         * modules/math (Depends-on): Update.
13692         * modules/netdb (Depends-on): Update.
13693         * modules/poll-h (Depends-on): Update.
13694         * modules/pty (Depends-on): Update.
13695         * modules/search (Depends-on): Update.
13696         * modules/signal (Depends-on): Update.
13697         * modules/spawn (Depends-on): Update.
13698         * modules/stdio (Depends-on): Update.
13699         * modules/stdlib (Depends-on): Update.
13700         * modules/string (Depends-on): Update.
13701         * modules/strings (Depends-on): Update.
13702         * modules/sys_file (Depends-on): Update.
13703         * modules/sys_ioctl (Depends-on): Update.
13704         * modules/sys_select (Depends-on): Update.
13705         * modules/sys_socket (Depends-on): Update.
13706         * modules/sys_stat (Depends-on): Update.
13707         * modules/sys_time (Depends-on): Update.
13708         * modules/sys_times (Depends-on): Update.
13709         * modules/sys_utsname (Depends-on): Update.
13710         * modules/sys_wait (Depends-on): Update.
13711         * modules/termios (Depends-on): Update.
13712         * modules/time (Depends-on): Update.
13713         * modules/unistd (Depends-on): Update.
13714         * modules/wchar (Depends-on): Update.
13715         * modules/wctype-h (Depends-on): Update.
13716         * MODULES.html.sh (Support for building libraries and executables):
13717         Update.
13718
13719         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
13720         * modules/snippet/unused-parameter: Renamed from
13721         modules/unused-parameter.
13722         (Files, Makefile.am): Update.
13723         * build-aux/snippet/unused-parameter.h: Renamed from
13724         build-aux/unused-parameter.h.
13725         * modules/selinux-h (Depends-on): Update.
13726         * modules/unistr/base (Depends-on): Update.
13727         * MODULES.html.sh (Core language properties): Update.
13728
13729         Rename module 'link-warning' to 'snippet/link-warning'.
13730         * modules/snippet/link-warning: Renamed from modules/link-warning.
13731         (Files, Makefile.am): Update.
13732         * build-aux/snippet/link-warning.h: Renamed from
13733         build-aux/link-warning.h.
13734         * MODULES.html.sh (Support for building libraries and executables):
13735         Update.
13736
13737         Rename module 'c++defs' to 'snippet/c++defs'.
13738         * modules/snippet/c++defs: Renamed from modules/c++defs.
13739         (Files, Makefile.am): Update.
13740         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
13741         * modules/arpa_inet (Depends-on): Update.
13742         * modules/ctype (Depends-on): Update.
13743         * modules/dirent (Depends-on): Update.
13744         * modules/fcntl-h (Depends-on): Update.
13745         * modules/glob (Depends-on): Update.
13746         * modules/iconv-h (Depends-on): Update.
13747         * modules/langinfo (Depends-on): Update.
13748         * modules/locale (Depends-on): Update.
13749         * modules/math (Depends-on): Update.
13750         * modules/netdb (Depends-on): Update.
13751         * modules/poll-h (Depends-on): Update.
13752         * modules/pty (Depends-on): Update.
13753         * modules/search (Depends-on): Update.
13754         * modules/signal (Depends-on): Update.
13755         * modules/spawn (Depends-on): Update.
13756         * modules/stdio (Depends-on): Update.
13757         * modules/stdlib (Depends-on): Update.
13758         * modules/string (Depends-on): Update.
13759         * modules/strings (Depends-on): Update.
13760         * modules/sys_ioctl (Depends-on): Update.
13761         * modules/sys_select (Depends-on): Update.
13762         * modules/sys_socket (Depends-on): Update.
13763         * modules/sys_stat (Depends-on): Update.
13764         * modules/sys_time (Depends-on): Update.
13765         * modules/sys_wait (Depends-on): Update.
13766         * modules/termios (Depends-on): Update.
13767         * modules/time (Depends-on): Update.
13768         * modules/unistd (Depends-on): Update.
13769         * modules/wchar (Depends-on): Update.
13770         * modules/wctype-h (Depends-on): Update.
13771
13772         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
13773         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
13774         (Files, Makefile.am): Update.
13775         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
13776         * modules/argv-iter (Depends-on): Update.
13777         * modules/arpa_inet (Depends-on): Update.
13778         * modules/dirent (Depends-on): Update.
13779         * modules/fcntl-h (Depends-on): Update.
13780         * modules/fnmatch (Depends-on): Update.
13781         * modules/getopt-posix (Depends-on): Update.
13782         * modules/glob (Depends-on): Update.
13783         * modules/iconv-h (Depends-on): Update.
13784         * modules/inttypes-incomplete (Depends-on): Update.
13785         * modules/locale (Depends-on): Update.
13786         * modules/math (Depends-on): Update.
13787         * modules/netdb (Depends-on): Update.
13788         * modules/search (Depends-on): Update.
13789         * modules/signal (Depends-on): Update.
13790         * modules/spawn (Depends-on): Update.
13791         * modules/stdio (Depends-on): Update.
13792         * modules/stdlib (Depends-on): Update.
13793         * modules/string (Depends-on): Update.
13794         * modules/strings (Depends-on): Update.
13795         * modules/sys_socket (Depends-on): Update.
13796         * modules/sys_stat (Depends-on): Update.
13797         * modules/sys_time (Depends-on): Update.
13798         * modules/sys_times (Depends-on): Update.
13799         * modules/sys_utsname (Depends-on): Update.
13800         * modules/time (Depends-on): Update.
13801         * modules/unistd (Depends-on): Update.
13802         * modules/wchar (Depends-on): Update.
13803         * MODULES.html.sh (Support for building libraries and executables):
13804         Update.
13805
13806 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13807
13808         Improvements on _Noreturn and related modules.
13809
13810         modules/_Exit-tests: test _Noreturn too
13811         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
13812         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
13813         (main): Use them.
13814
13815         stdnoreturn, stdnoreturn-tests: remove modules
13816         They're not needed here and a bit premature for use elsewhere.  See
13817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
13818         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
13819         * tests/test-stdnoreturn.c: Remove files.
13820         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
13821         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
13822         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
13823         and using noreturn.
13824         * modules/openat, modules/sigpipe-die, modules/xalloc:
13825         * modules/xmemdup0, modules/xstrtol:
13826         Remove dependency on stdnoreturn.
13827
13828         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
13829         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
13830         Reparenthesize to avoid GCC warning.
13831         Support Microsoft's syntax.
13832         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
13833
13834         _Noreturn-tests: remove module
13835         * modules/_Noreturn-tests: Remove.
13836         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
13837         * tests/test-_Noreturn.c: Remove.
13838         * tests/test-stdnoreturn.c: Merge from the old
13839         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
13840
13841 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13842
13843         _Noreturn, stdnoreturn, and related modules.
13844
13845         * top/maint.mk: Adjust to new noreturn support.
13846         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
13847         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
13848
13849         xalloc: use stdnoreturn.h
13850         * lib/xalloc.h: Include <stdnoreturn.h>.
13851         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13852         * modules/xalloc (Depends-on): Add stdnoreturn.
13853
13854         xstrtol: use stdnoreturn.h
13855         * lib/xstrtol.h: Include <stdnoreturn.h>.
13856         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13857         * modules/xstrtol (Depends-on): Add stdnoreturn.
13858
13859         xmemdup0: use stdnoreturn.h
13860         * lib/xmemdup0.h: Include <stdnoreturn.h>.
13861         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13862         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
13863
13864         sigpipe-die: use stdnoreturn.h
13865         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
13866         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13867         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
13868
13869         openat: use stdnoreturn.h
13870         * lib/openat.h: Include <stdnoreturn.h>.
13871         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13872         * modules/openat (Depends-on): Add stdnoreturn.
13873
13874         * lib/openat-die.c (openat_save_fail): Modernize comment.
13875
13876         * lib/xalloc-die.c (xalloc_die): Modernize comment.
13877
13878         * lib/glthread/thread.h: Modernize comment.
13879
13880         obstack: use _Noreturn
13881         * lib/obstack.c (__attribute__): Remove macro.
13882         (print_and_abort): Use _Noreturn.
13883
13884         c-stack: use _Noreturn
13885         * lib/c-stack.c (die, overflow_handler, segv_handler):
13886         Use _Noreturn rather than __attribute__((noreturn)).
13887
13888         argmatch-tests, exclude_tests: use _Noreturn
13889         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
13890         Remove.
13891         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
13892
13893         stdlib: use _Noreturn
13894         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
13895         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
13896         * modules/stdlib (Depends-on): Add _Noreturn.
13897         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
13898
13899         stdnoreturn-tests: new module
13900         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
13901
13902         stdnoreturn: new module
13903         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
13904         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
13905
13906         _Noreturn-tests: new module
13907         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
13908
13909         _Noreturn: new module
13910         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
13911         New section, mentioning it.
13912         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
13913
13914         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
13915
13916 2011-07-11  Eric Blake  <eblake@redhat.com>
13917
13918         ffs: new module
13919         * modules/ffs: New file.
13920         * m4/ffs.m4: Likewise.
13921         * lib/ffs.c: Likewise.
13922         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
13923         * modules/strings (Makefile.am): Substitute witness.
13924         (Depends-on): Add c++defs.
13925         * lib/strings.in.h (ffs): Declare.
13926         * modules/ffs-tests: New test file.
13927         * tests/test-ffs.c: Test new module.
13928         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13929         * doc/posix-functions/ffs.texi (ffs): Likewise.
13930
13931         regex: avoid compiler warning
13932         * lib/regex.c (includes): Include <strings.h>, for use of
13933         strcasecmp in regcomp.c.
13934         Reported by Joachim Schmitz.
13935
13936 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13937
13938         stdint: respect system's intmax_t if INTMAX_MAX
13939         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
13940         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
13941         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
13942         long but int64_t is long long, and where we will clash with the
13943         system intmax_t if we override it.  See
13944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
13945         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
13946         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
13947         similarly for UINTMAX_C.
13948
13949 2011-07-08  Bruno Haible  <bruno@clisp.org>
13950
13951         pthread_sigmask tests: Avoid a compiler warning.
13952         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
13953         non-zero.
13954
13955         sigprocmask tests: A better way to avoid a compiler warning.
13956         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
13957         (main): Complain if system() returns non-zero.
13958         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
13959
13960 2011-07-08  Bruno Haible  <bruno@clisp.org>
13961
13962         pthread_sigmask: Work around IRIX bug.
13963         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
13964         bug.
13965         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
13966         there may be unblocked pending signals.
13967         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
13968
13969 2011-07-08  Bruno Haible  <bruno@clisp.org>
13970
13971         pthread_sigmask: Work around Cygwin bug.
13972         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
13973         bug.
13974         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
13975         the system's pthread_sigmask function.
13976         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
13977
13978 2011-07-08  Bruno Haible  <bruno@clisp.org>
13979
13980         pthread_sigmask: Work around bug in single-threaded implementation.
13981         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
13982         FreeBSD, HP-UX, Solaris bug.
13983         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
13984         * lib/pthread_sigmask.c: Include <stddef.h>.
13985         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
13986         the system's pthread_sigmask function.
13987         * modules/pthread_sigmask (configure.ac): Invoke
13988         gl_PREREQ_PTHREAD_SIGMASK.
13989         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
13990         HP-UX, Solaris.
13991
13992 2011-07-08  Eric Blake  <eblake@redhat.com>
13993
13994         test-sigprocmask: avoid compiler warning
13995         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
13996         * tests/test-sigprocmask.c (main): Use it to silence warning.
13997         Reported by Jim Meyering.
13998
13999         test-snprintf: avoid compiler warning
14000         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14001         * tests/test-vsnprintf.c (main): Likewise.
14002         Reported by Jim Meyering.
14003
14004 2011-07-08  Bruno Haible  <bruno@clisp.org>
14005
14006         Tests for module 'pthread_sigmask'.
14007         * modules/pthread_sigmask-tests: New file.
14008         * tests/test-pthread_sigmask1.c: New file, based on
14009         tests/test-sigprocmask.c.
14010         * tests/test-pthread_sigmask2.c: New file.
14011
14012 2011-07-08  Jim Meyering  <meyering@redhat.com>
14013
14014         test-getopt.h: avoid warning about an unused variable
14015         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14016
14017 2011-07-07  Jim Meyering  <meyering@redhat.com>
14018
14019         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14020         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14021         now that it no longer contains leading TABs.
14022         Remove unused "url=FIXME" statement.
14023
14024 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14025
14026         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14027         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14028         When gl_THREADLIB is not in use, assume that the POSIX sematics
14029         are desired.  This is better for Emacs, which uses POSIX semantics
14030         on GNUish and/or POSIXish platforms, and does not use threads at
14031         all otherwise.
14032
14033         pthread_sigmask: fix typo when testing for libraries
14034         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14035         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14036
14037 2011-07-08  Eric Blake  <eblake@redhat.com>
14038
14039         fts: introduce FTS_NOATIME
14040         * lib/fts_.h (FTS_NOATIME): New bit flag.
14041         (FTS_OPTIONMASK): Adjust.
14042         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14043         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14044
14045 2011-07-08  Bruno Haible  <bruno@clisp.org>
14046
14047         Tests for module 'thread'.
14048         * modules/thread-tests: New file.
14049         * tests/test-thread_self.c: New file.
14050         * tests/test-thread_create.cc: New file.
14051
14052 2011-07-08  Bruno Haible  <bruno@clisp.org>
14053
14054         thread: Avoid gcc warnings when using gl_thread_self().
14055         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14056         'void *'.
14057         (gl_thread_self_pointer): Update.
14058
14059 2011-07-07  Bruno Haible  <bruno@clisp.org>
14060
14061         signal-c++-tests: Check declaration of pthread_sigmask.
14062         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14063         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14064         $(LIB_PTHREAD_SIGMASK).
14065
14066 2011-07-07  Bruno Haible  <bruno@clisp.org>
14067
14068         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14069         * lib/signal.in.h (pthread_sigmask): Override if
14070         REPLACE_PTHREAD_SIGMASK is 1.
14071         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14072         REPLACE_PTHREAD_SIGMASK.
14073         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14074         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14075         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14076         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14077         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14078
14079 2011-07-07  Bruno Haible  <bruno@clisp.org>
14080
14081         pthread_sigmask: Ensure declaration in <signal.h>.
14082         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14083         include <pthread.h>.
14084         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14085         problem.
14086
14087 2011-07-07  Bruno Haible  <bruno@clisp.org>
14088
14089         pthread_sigmask: Document the module.
14090         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14091
14092 2011-07-07  Bruno Haible  <bruno@clisp.org>
14093
14094         pthread_sigmask: Follow gnulib conventions.
14095         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14096         gl_PTHREAD_SIGMASK.
14097         * modules/pthread_sigmask (configure.ac): Update.
14098
14099 2011-07-07  Bruno Haible  <bruno@clisp.org>
14100
14101         pthread_sigmask: Make declaration C++ safe.
14102         * lib/signal.in.h: In two special conditions, just do an #include_next.
14103         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14104         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14105         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14106         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14107         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14108         not REPLACE_PTHREAD_MASK.
14109         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14110         not REPLACE_PTHREAD_MASK.
14111         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14112
14113 2011-07-07  Bruno Haible  <bruno@clisp.org>
14114
14115         pthread_sigmask: Fix return value.
14116         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14117         * lib/pthread_sigmask.c: New file.
14118         * modules/pthread_sigmask (Files): Add it.
14119         (configure.ac): Invoke AC_LIBOBJ.
14120
14121 2011-07-07  Eric Blake  <eblake@redhat.com>
14122
14123         getopt: more portable argv creation
14124         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14125         const, use char arrays rather than strings.
14126         Suggested by Paul Eggert.
14127
14128 2011-07-07  Bruno Haible  <bruno@clisp.org>
14129
14130         Tests for module 'sigprocmask'.
14131         * modules/sigprocmask-tests: New file.
14132         * tests/test-sigprocmask.c: New file.
14133
14134 2011-07-07  Bruno Haible  <bruno@clisp.org>
14135
14136         float tests: Tweak.
14137         * tests/test-float.c (main): Tweak skip message.
14138
14139 2011-07-07  Eric Blake  <eblake@redhat.com>
14140
14141         getopt: avoid compiler warning during configure
14142         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14143         assigning string literals to non-const pointer.
14144
14145         getopt-gnu: avoid crash in glibc getopt
14146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14147         * tests/test-getopt.h (test_getopt): Enhance test.
14148         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14149         * doc/posix-functions/getopt.texi (getopt): Document it.
14150         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14151         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14152         Likewise.
14153
14154 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14155
14156         getopt: handle W; without long options in getopt [BZ #12922]
14157         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14158         but no long options are defined, just return 'W'.
14159
14160 2011-07-07  Bruno Haible  <bruno@clisp.org>
14161
14162         Avoid literal tabs.
14163         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14164         variable containing a tab instead of a literal tab.
14165         Reported by Jim Meyering.
14166
14167 2011-07-07  Bruno Haible  <bruno@clisp.org>
14168
14169         Comments.
14170         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14171
14172 2011-07-06  Bruno Haible  <bruno@clisp.org>
14173
14174         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14175         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14176         <winsock2.h>.
14177         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14178         lib/sys_socket.in.h.
14179         (close, gethostname): Hide declarations from <winsock2.h>.
14180         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14181         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14182         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14183         (select): Don't override if gnulib's <sys/select.h> was already
14184         included.
14185         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14186         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14187         setsockopt, shutdown, select): Tweak indentation.
14188
14189 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14190
14191         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14192         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14193         in an application that does not use the sys_select module.
14194
14195 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14196
14197         poll: do not return 0 on timeout=-1
14198         * lib/poll.c: Loop with yield if no events occured
14199
14200 2011-07-06  Eric Blake  <eblake@redhat.com>
14201
14202         pthread_sigmask: always replace when not using pthread
14203         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14204         replacement when using some threading other than pthread.  Fix
14205         logic bug.
14206
14207 2011-07-06  Bruno Haible  <bruno@clisp.org>
14208
14209         Comments.
14210         * m4/printf.m4: Update comments about mingw.
14211
14212 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14213
14214         sys_select: define sigset_t more portably
14215         * lib/sys_select.in.h: Always include <sys/types.h>, since
14216         we now need sigset_t and mingw defines it there.
14217         Include <signal.h> before split inclusion guard, to avoid
14218         mishaps on Solaris, whose <signal.h> eventually includes us.
14219         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14220         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14221         which come from ...
14222         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14223         gl_CHECK_TYPE_SIGSET_T.
14224         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14225         does the real work.
14226         * modules/sys_select (Depends-on): Add 'signal'.
14227
14228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14229         Suggested by Bruno Haible.
14230
14231         pselect: Use pthread_sigmask, not sigprocmask.
14232         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14233         multithreaded apps better than sigprocmask does.
14234         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14235         sigprocmask directly.
14236
14237 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14238
14239         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14240         Don't #undef,  since we don't need any underlying pselect.
14241         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14242         (Depends-on): Add select.
14243         (Link): Add $(LIBSOCKET).
14244         These changes suggested by Bruno Haible.
14245
14246         pselect: document better
14247         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14248         * doc/posix-functions/pselect.texi (pselect): Document new module.
14249
14250         pthread_sigmask: new module
14251         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14252         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14253         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14254         This is done only as a macro; I don't know how well that'll
14255         work for C++.  Move <sys/types.h> include before the include_next,
14256         to avoid mishap on Solaris.
14257         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14258         * modules/signal (Makefile.am): Substitute the check's results.
14259         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14260
14261         test-pselect: new module
14262         * modules/pselect-tests, tests/test-pselect.c: New files.
14263         * tests/test-select.c, tests/test-sys_select-c++.cc:
14264         If TEST_PSELECT is defined, test pselect instead of testing select.
14265
14266         * tests/test-sys_select.c (sigset_t): Test for it, too.
14267         Suggested by Bruno Haible.
14268
14269 2011-07-05  Eric Blake  <eblake@redhat.com>
14270
14271         snprintf: guarantee %1$d, for libintl
14272         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14273         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14274         * doc/posix-functions/snprintf.texi (snprintf): Update.
14275         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14276         * tests/test-snprintf.c (main): Enhance test.
14277         * tests/test-vsnprintf.c (main): Likewise.
14278
14279 2011-07-05  Jim Meyering  <meyering@redhat.com>
14280
14281         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14282         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14283         per Bruno's request, to accommodate this idiom (no space after "#")
14284         even when the function is inside an #if block:
14285         char *
14286         gets (char *s)
14287         #undef gets
14288         {
14289           ...
14290         }
14291
14292 2011-07-04  Jim Meyering  <meyering@redhat.com>
14293
14294         maint: indent with spaces, not TABs, and add a rule to check this
14295         * tests/test-userspec.c: Indent with spaces, not TABs.
14296         * tests/test-argp.c: Likewise.
14297         * tests/test-c-stack2.sh: Likewise.
14298         * tests/test-parse-duration.sh: Likewise
14299         * m4/strtod.m4: Likewise.
14300         * m4/alloca.m4: Likewise.
14301         * m4/pselect.m4: Likewise.
14302         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14303
14304 2011-07-03  Jim Meyering  <meyering@redhat.com>
14305
14306         maint.mk: correct omissions in prohibit_argmatch_without_use check
14307         This rule would mistakenly report that argmatch.h is included without
14308         use even when both the argmatch and invalid_arg macro were used.
14309         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14310         of argmatch and invalid_arg.
14311
14312 2011-07-03  Bruno Haible  <bruno@clisp.org>
14313
14314         Comments about EINTR.
14315         * lib/safe-read.h: Explain the purpose of this module.
14316         * lib/safe-write.h: Likewise.
14317         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14318         module.
14319         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14320         module.
14321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14322
14323 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14324
14325         xnanosleep: Rewrite to use new dtotimespec module.
14326         It has the conversion code that used to be in xnanosleep.
14327         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14328         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14329         (TIME_T_MAX): Remove.
14330         (xnanosleep): Rewrite in terms of dtotimespec.
14331         * modules/xnanosleep (Depends-on): Add dtotimespec.
14332         Remove intprops, stdbool.
14333
14334         timespec-add, timespec-sub: new modules
14335         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14336         * lib/timespec-add.c, lib/timespec-sub.c:
14337         * modules/timespec-add, modules/timespec-sub: New files.
14338
14339         dtotimespec: new module
14340         * lib/timespec.h (dtotimespec): New decl.
14341         * lib/dtotimespec.c, modules/dtotimespec: New files.
14342
14343         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14344
14345         pselect: new module
14346         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14347         (pselect): New decls.
14348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14349         since the standard pselect decl uses 'restrict'.
14350         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14351         HAVE_PSELECT, REPLACE_PSELECT.
14352         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14353         HAVE_PSELECT, REPLACE_PSELECT.
14354         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14355
14356         sys_select: don't depend on sys_socket
14357         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14359         This fix works on GNU and GNU-like platforms, but has not been tested
14360         on native Windows.
14361         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14362         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14363         gl_HEADER_SYS_SOCKET.
14364         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14365         gl_PREREQ_SYS_H_WINSOCK2.
14366
14367 2011-06-29  Eric Blake  <eblake@redhat.com>
14368
14369         pipe2: fix C89 compile problem
14370         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14371         Reported by Bruno Haible.
14372
14373         pipe, pipe2: don't corrupt fd on error
14374         * lib/pipe.c (pipe): Leave fd unchanged on error.
14375         * lib/pipe2.c (pipe2): Likewise.
14376         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14377         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14378
14379 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14380
14381         mmap-anon: do not use regular expressions inadvertently
14382         * m4/mmap-anon.m4: Remove trailing period from strings sought
14383         in the output.
14384
14385 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14386
14387         nanosleep: fix integer overflow problem
14388         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14389         arithmetic wraps around on overflow.
14390
14391         nanosleep: simplify carrying
14392         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14393         first call to the underyling nanosleep, not for the last one.
14394         This doesn't fix any bugs, but it simplifies the computation of
14395         the remaining delay.  Found while auditing integer overflow issues.
14396
14397         dup2: remove test for existence of fcntl
14398         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14399         "#if HAVE_FCNTL", in the configure-time test program.
14400         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14401         and therefore speeds up "configure" a bit.  Found while
14402         adding the dup2 module to Emacs.
14403
14404 2011-06-24  Eric Blake  <eblake@redhat.com>
14405
14406         maint.mk: enhance useless header checks
14407         * top/maint.mk (_sc_header_without_use): Check both include
14408         styles.
14409         (sc_prohibit_assert_without_use)
14410         (sc_prohibit_close_stream_without_use)
14411         (sc_prohibit_getopt_without_use)
14412         (sc_prohibit_quotearg_without_use)
14413         (sc_prohibit_quote_without_use)
14414         (sc_prohibit_long_options_without_use)
14415         (sc_prohibit_inttostr_without_use)
14416         (sc_prohibit_ignore_value_without_use)
14417         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14418         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14419         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14420         (sc_prohibit_hash_pjw_without_use)
14421         (sc_prohibit_safe_read_without_use)
14422         (sc_prohibit_argmatch_without_use)
14423         (sc_prohibit_canonicalize_without_use)
14424         (sc_prohibit_root_dev_ino_without_use)
14425         (sc_prohibit_openat_without_use)
14426         (sc_prohibit_c_ctype_without_use)
14427         (sc_prohibit_signal_without_use)
14428         (sc_prohibit_stdio--_without_use)
14429         (sc_prohibit_stdio-safer_without_use)
14430         (sc_prohibit_strings_without_use)
14431         (sc_prohibit_intprops_without_use)
14432         (sc_prohibit_stddef_without_use)
14433         (sc_prohibit_xfreopen_without_use): Update clients.
14434
14435 2011-06-24  Jim Meyering  <meyering@redhat.com>
14436
14437         syntax-check: keep one maint.mk rule in sync with its header
14438         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14439         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14440         I prefer to avoid temporary files here, so use <(...), but that
14441         is not supported by /bin/sh, so...
14442         (SHELL): Define to /bin/bash.
14443
14444 2011-06-24  Eric Blake  <eblake@redhat.com>
14445
14446         maint.mk: update sc_prohibit_intprops_without_use
14447         * top/maint.mk (_intprops_names): Match recent changes.
14448
14449 2011-06-24  Bruno Haible  <bruno@clisp.org>
14450
14451         strerror-override: No-op tweak.
14452         * lib/strerror-override.h (strerror_override): Reorder conditions,
14453         for consistency with lib/strerror-override.c.
14454
14455 2011-06-23  Eric Blake  <eblake@redhat.com>
14456
14457         maint.mk: test further PATH_MAX issues
14458         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14459         (sc_prohibit_path_max_allocation): ...and also test alloca.
14460         Suggested by Jim Meyering.
14461
14462 2011-06-22  Eric Blake  <eblake@redhat.com>
14463
14464         maint.mk: add syntax-check to avoid char[PATH_MAX]
14465         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14466
14467         stat: be robust to PATH_MAX definition
14468         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14469         * modules/stat (Depends-on): Add verify.
14470
14471         link: work around IRIX bug
14472         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14473         * lib/link.c (rpl_link): Work around it.
14474         * tests/test-link.h (test_link): Enhance test.
14475         * doc/posix-functions/link.texi (link): Document the bug.
14476
14477         getopt: silence clang warning
14478         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14479         dereference.
14480         Reported by Gustavo Martin Domato.
14481
14482 2011-06-22  Jim Meyering  <meyering@redhat.com>
14483
14484         bootstrap: do not insert a blank line into each .gitignore file
14485         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14486
14487 2011-06-21  Eric Blake  <eblake@redhat.com>
14488
14489         perror: test for output mismatch
14490         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14491         perror on IRIX.
14492
14493         strerror_r: fix OpenBSD behavior on out-of-range
14494         * lib/strerror_r.c (strerror_r): Always use maximal string.
14495         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14496
14497         strerror_r: fix OpenBSD behavior on 0
14498         * lib/strerror-override.c (strerror_override): Also override 0
14499         when needed.
14500         * lib/strerror-override.h (strerror_override): Likewise.
14501         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14502         earlier.
14503         * lib/strerror_r.c (strerror_r): Likewise.
14504         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14505         behavior...
14506         (gl_FUNC_STRERROR_0): ...into new macro.
14507         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14508         is overridden.
14509         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14510         * modules/strerror-override (Files): Add strerror.m4.
14511         (configure.ac): Also provide override for 0 when needed.
14512         * doc/posix-functions/strerror.texi (strerror): Document this.
14513         * doc/posix-functions/perror.texi (perror): Likewise.
14514
14515         perror: adjust array size
14516         * modules/perror (Depends-on): Add strerror-override.
14517         * lib/perror.c (perror): Use it to avoid magic number.
14518
14519         strerror-override: reduce size
14520         * lib/strerror-override.c (strerror_override): Use fewer lines.
14521
14522 2011-06-20  Bruno Haible  <bruno@clisp.org>
14523
14524         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14525         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
14526
14527 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14528
14529         alloca: port to compilers that can optimize like GCC 4.6.0
14530         * lib/alloca.c (find_stack_direction): New signature, taken from
14531         Autoconf git.  This works with GCC 4.6.0.  This code should never
14532         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
14533         be used with other compilers that optimize as well as GCC 4.6.0 does.
14534         (alloca): Adjust to new signature.
14535         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
14536         New macro, which patches Autoconf in a similar way.
14537
14538         c-stack: stop worrying about stack direction
14539         * lib/c-stack.c (find_stack_direction): Remove.
14540         (segv_handler): Don't worry about stack direction growth, as it's
14541         too much of a pain to configure this correctly, given how compilers
14542         are optimizing-away our stack-growth detection code.  Instead, assume
14543         that any access to just before or just after the stack is OK.
14544         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14545         Don't require AC_FUNC_ALLOCA; no longer needed.
14546
14547 2011-06-20  Eric Blake  <eblake@redhat.com>
14548
14549         test-stat: don't allocate PATH_MAX bytes
14550         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
14551         PATH_MAX-sized buffer.
14552         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
14553         * modules/stat-tests (Depends-on): Likewise.
14554         * tests/test-fstatat.c (includes): Drop pathmax.h.
14555         * tests/test-stat.c (includes): Likewise.
14556         Reported by Bruno Haible.
14557
14558 2011-06-20  Bruno Haible  <bruno@clisp.org>
14559
14560         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
14561         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
14562         * lib/float.c: New file.
14563         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
14564         REPLACE_FLOAT_LDBL.
14565         * modules/float (Files): Add lib/float.c.
14566         (configure.ac): Invoke AC_LIBOBJ.
14567         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
14568
14569 2011-06-20  Bruno Haible  <bruno@clisp.org>
14570
14571         Tests for module 'float'.
14572         * modules/float-tests: New file.
14573         * tests/test-float.c: New file.
14574
14575 2011-06-19  Bruno Haible  <bruno@clisp.org>
14576
14577         isinf: Coding style.
14578         * lib/isinf.c: Use GNU coding style.
14579
14580 2011-06-19  Bruno Haible  <bruno@clisp.org>
14581
14582         linkat test: Avoid test failure on AIX 7.1.
14583         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
14584         * tests/test-link.h (test_link): Likewise.
14585
14586 2011-06-19  Bruno Haible  <bruno@clisp.org>
14587
14588         pread test: Avoid test failure on OpenBSD 4.9.
14589         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
14590
14591 2011-06-19  Bruno Haible  <bruno@clisp.org>
14592
14593         sprintf-posix: Fix test failure on AIX 7.1.
14594         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
14595         * doc/posix-functions/dprintf.texi: Mention limited precision problem
14596         on AIX.
14597         * doc/posix-functions/fprintf.texi: Likewise.
14598         * doc/posix-functions/printf.texi: Likewise.
14599         * doc/posix-functions/snprintf.texi: Likewise.
14600         * doc/posix-functions/sprintf.texi: Likewise.
14601         * doc/posix-functions/vdprintf.texi: Likewise.
14602         * doc/posix-functions/vfprintf.texi: Likewise.
14603         * doc/posix-functions/vprintf.texi: Likewise.
14604         * doc/posix-functions/vsnprintf.texi: Likewise.
14605         * doc/posix-functions/vsprintf.texi: Likewise.
14606
14607 2011-06-19  Bruno Haible  <bruno@clisp.org>
14608
14609         roundl-ieee: Fix test failure on AIX 7.1.
14610         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
14611         * doc/posix-functions/roundl.texi: Mention problem with negative
14612         arguments.
14613
14614 2011-06-19  Bruno Haible  <bruno@clisp.org>
14615
14616         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14617         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
14618         * doc/posix-functions/round.texi: Mention problem with negative
14619         arguments.
14620         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
14621
14622 2011-06-19  Bruno Haible  <bruno@clisp.org>
14623
14624         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14625         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
14626         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
14627         * doc/posix-functions/roundf.texi: Mention problem with negative
14628         arguments.
14629         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
14630
14631 2011-06-19  Bruno Haible  <bruno@clisp.org>
14632
14633         ceilf-ieee: Work around bug on MacOS X 10.5.
14634         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
14635
14636         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
14637         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
14638         IEEE compliant, avoid compiler optimizations.
14639         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14640         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14641         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14642         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14643         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14644         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14645         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14646         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14647         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14648         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14649
14650 2011-06-19  Bruno Haible  <bruno@clisp.org>
14651
14652         ceilf-ieee: Work around bug on AIX 7.1.
14653         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
14654         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
14655
14656 2011-06-19  Bruno Haible  <bruno@clisp.org>
14657
14658         ceil-ieee: Work around bug on AIX 7.1.
14659         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
14660         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
14661
14662 2011-06-18  Bruno Haible  <bruno@clisp.org>
14663
14664         fsync test: Avoid test failure on MacOS X and AIX.
14665         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
14666         EINVAL.
14667
14668 2011-06-18  Bruno Haible  <bruno@clisp.org>
14669
14670         openat, fdopendir tests: Fix link errors.
14671         * modules/openat-tests (Depends-on): Add progname.
14672         * modules/fdopendir-tests (Depends-on): Likewise.
14673         * tests/test-fchownat.c: Include progname.h.
14674         (main): Call set_program_name.
14675         * tests/test-fstatat.c: Include progname.h.
14676         (main): Call set_program_name.
14677         * tests/test-mkdirat.c: Include progname.h.
14678         (main): Call set_program_name.
14679         * tests/test-openat.c: Include progname.h.
14680         (main): Call set_program_name.
14681         * tests/test-unlinkat.c: Include progname.h.
14682         (main): Call set_program_name.
14683         * tests/test-fdopendir.c: Include progname.h.
14684         (main): Call set_program_name.
14685
14686 2011-06-18  Bruno Haible  <bruno@clisp.org>
14687
14688         Doc update.
14689         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
14690         HP-UX.
14691         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
14692
14693 2011-06-18  Bruno Haible  <bruno@clisp.org>
14694
14695         getcwd tests: Avoid compilation error on HP-UX 11.31.
14696         * modules/getcwd-tests (Depends-on): Add pathmax.
14697         * tests/test-getcwd.c: Include pathmax.h.
14698
14699 2011-06-18  Bruno Haible  <bruno@clisp.org>
14700
14701         isfinite, isinf: Fix link error on AIX 6 and 7.
14702         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
14703         needed, also test the macro with a 'float' argument.
14704         * m4/isinf.m4 (gl_ISINF): Likewise.
14705
14706 2011-06-18  Bruno Haible  <bruno@clisp.org>
14707
14708         getloadavg: Don't clobber LIBS. Regression from previous commit.
14709         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
14710         AC_CHECK_LIB from here...
14711         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
14712         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
14713         gl_func_getloadavg_done.
14714         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14715
14716 2011-06-18  Bruno Haible  <bruno@clisp.org>
14717
14718         clean-temp: Improve documentation.
14719         * lib/clean-temp.h: Explain better how to use this module.
14720         Reported by John Darrington <john@darrington.wattle.id.au>.
14721
14722 2011-06-17  Bruno Haible  <bruno@clisp.org>
14723
14724         pread, pwrite: Avoid cc warning on AIX.
14725         * lib/unistd.in.h (pread): Undefine before defining as a macro.
14726         (pwrite): Likewise.
14727
14728 2011-06-17  Bruno Haible  <bruno@clisp.org>
14729
14730         spawn-pipe tests: Fix link error.
14731         * tests/test-spawn-pipe-child.c: Undefine fprintf.
14732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14733
14734 2011-06-17  Bruno Haible  <bruno@clisp.org>
14735
14736         Tests: Remove unnecessary dependency.
14737         * modules/canonicalize-tests (Depends-on): Remove progname.
14738         * modules/chown-tests (Depends-on): Likewise.
14739         * modules/dirname-tests (Depends-on): Likewise.
14740         * modules/fdopendir-tests (Depends-on): Likewise.
14741         * modules/fdutimensat-tests (Depends-on): Likewise.
14742         * modules/hash-tests (Depends-on): Likewise.
14743         * modules/lchown-tests (Depends-on): Likewise.
14744         * modules/linkat-tests (Depends-on): Likewise.
14745         * modules/renameat-tests (Depends-on): Likewise.
14746         * modules/spawn-pipe-tests (Depends-on): Likewise.
14747         * modules/utimensat-tests (Depends-on): Likewise.
14748
14749 2011-06-17  Bruno Haible  <bruno@clisp.org>
14750
14751         spawn-pipe tests: Fix link error.
14752         * tests/test-spawn-pipe-child.c: Undefine fflush.
14753
14754 2011-06-17  Bruno Haible  <bruno@clisp.org>
14755
14756         Fix tests link errors.
14757         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
14758         * modules/chown-tests (Makefile.am): Don't link test-chown with
14759         LIBINTL.
14760         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
14761         LIBINTL.
14762         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
14763         LIBINTL.
14764         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
14765         LIBINTL.
14766
14767 2011-06-16  Bruno Haible  <bruno@clisp.org>
14768
14769         crypto/gc-sha1: Fix recent regression.
14770         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
14771         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
14772
14773         crypto/gc-md5: Fix recent regression.
14774         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
14775
14776         crypto/gc-md4: Fix recent regression.
14777         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
14778         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
14779
14780         crypto/gc-arctwo: Fix recent regression.
14781         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
14782         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
14783
14784         crypto/gc-rijndael: Fix recent regression.
14785         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
14786         (configure.ac): Invoke AC_LIBOBJ here.
14787         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
14788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14789
14790         crypto/gc-hmac-sha1: Fix recent regression.
14791         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
14792         (configure.ac): Invoke AC_LIBOBJ here.
14793         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
14794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14795
14796         crypto/gc-hmac-md5: Fix recent regression.
14797         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
14798         (configure.ac): Invoke AC_LIBOBJ here.
14799         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
14800         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14801
14802         crypto/gc-des: Fix recent regression.
14803         * modules/crypto/gc-des (Files): Remove m4/des.m4.
14804         (configure.ac): Invoke AC_LIBOBJ here.
14805         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
14806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14807
14808         crypto/gc-arcfour: Fix recent regression.
14809         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
14810         (configure.ac): Invoke AC_LIBOBJ here.
14811         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
14812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14813
14814 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
14815
14816         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
14817         After the 2011-05-21 change, this macro requires
14818         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
14819         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14820
14821 2011-06-16  Bruno Haible  <bruno@clisp.org>
14822
14823         fprintftime: Move AC_LIBOBJ invocations to module description.
14824         * m4/fprintftime.m4: Remove file.
14825         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
14826         (configure.ac): Remove gl_FPRINTFTIME call.
14827         (Makefile.am): Augment lib_SOURCES.
14828         Reported by Jim Meyering.
14829
14830 2011-06-16  Bruno Haible  <bruno@clisp.org>
14831
14832         tmpfile-safer: Finish 2011-05-23 commit.
14833         * m4/stdio-safer.m4: Really remove file.
14834         Reported by Jim Meyering.
14835
14836 2011-06-16  Bruno Haible  <bruno@clisp.org>
14837
14838         syntax-check: Fix typo.
14839         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
14840         printf-posix.m4.
14841         Reported by Jim Meyering.
14842
14843 2011-06-13  Jim Meyering  <meyering@redhat.com>
14844
14845         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
14846         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
14847
14848 2011-05-23  Bruno Haible  <bruno@clisp.org>
14849
14850         yesno: Move AC_LIBOBJ invocations to module description.
14851         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
14852         * modules/yesno (Makefile.am): Augment lib_SOURCES.
14853
14854 2011-05-23  Bruno Haible  <bruno@clisp.org>
14855
14856         xstrtol: Move AC_LIBOBJ invocations to module description.
14857         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
14858         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
14859
14860 2011-05-23  Bruno Haible  <bruno@clisp.org>
14861
14862         xstrtold: Move AC_LIBOBJ invocations to module description.
14863         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
14864         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
14865
14866 2011-05-23  Bruno Haible  <bruno@clisp.org>
14867
14868         xstrtod: Move AC_LIBOBJ invocations to module description.
14869         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
14870         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
14871
14872 2011-05-23  Bruno Haible  <bruno@clisp.org>
14873
14874         xnanosleep: Move AC_LIBOBJ invocations to module description.
14875         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
14876         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
14877
14878 2011-05-23  Bruno Haible  <bruno@clisp.org>
14879
14880         xgetcwd: Move AC_LIBOBJ invocations to module description.
14881         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
14882         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
14883
14884 2011-05-23  Bruno Haible  <bruno@clisp.org>
14885
14886         xalloc: Move AC_LIBOBJ invocations to module description.
14887         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
14888         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
14889
14890 2011-05-23  Bruno Haible  <bruno@clisp.org>
14891
14892         write-any-file: Move AC_LIBOBJ invocations to module description.
14893         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
14894         invocation.
14895         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
14896
14897 2011-05-23  Bruno Haible  <bruno@clisp.org>
14898
14899         utimens: Move AC_LIBOBJ invocations to module description.
14900         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
14901         * modules/utimens (Makefile.am): Augment lib_SOURCES.
14902
14903 2011-05-23  Bruno Haible  <bruno@clisp.org>
14904
14905         utimecmp: Move AC_LIBOBJ invocations to module description.
14906         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
14907         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
14908
14909 2011-05-23  Bruno Haible  <bruno@clisp.org>
14910
14911         userspec: Move AC_LIBOBJ invocations to module description.
14912         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
14913         * modules/userspec (Makefile.am): Augment lib_SOURCES.
14914
14915 2011-05-23  Bruno Haible  <bruno@clisp.org>
14916
14917         unlinkdir: Move AC_LIBOBJ invocations to module description.
14918         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
14919         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
14920
14921 2011-05-23  Bruno Haible  <bruno@clisp.org>
14922
14923         unistd-safer: Move AC_LIBOBJ invocations to module description.
14924         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
14925         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
14926
14927 2011-05-23  Bruno Haible  <bruno@clisp.org>
14928
14929         tempname: Move AC_LIBOBJ invocations to module description.
14930         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
14931         * modules/tempname (Makefile.am): Augment lib_SOURCES.
14932
14933 2011-05-23  Bruno Haible  <bruno@clisp.org>
14934
14935         strftime: Move AC_LIBOBJ invocations to module description.
14936         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
14937         * modules/strftime (Makefile.am): Augment lib_SOURCES.
14938
14939 2011-05-23  Bruno Haible  <bruno@clisp.org>
14940
14941         stdlib-safer: Move AC_LIBOBJ invocations to module description.
14942         * m4/stdlib-safer.m4: Remove file.
14943         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
14944         (configure.ac): Remove gl_STDLIB_SAFER call.
14945         (Makefile.am): Augment lib_SOURCES.
14946
14947 2011-05-23  Bruno Haible  <bruno@clisp.org>
14948
14949         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
14950         * m4/stdio-safer.m4: Remove file.
14951         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
14952         (configure.ac): Remove gl_TMPFILE_SAFER call.
14953         (Makefile.am): Augment lib_SOURCES.
14954
14955 2011-05-23  Bruno Haible  <bruno@clisp.org>
14956
14957         popen-safer: Move AC_LIBOBJ invocations to module description.
14958         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
14959         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
14960         (configure.ac): Remove gl_POPEN_SAFER call.
14961         (Makefile.am): Augment lib_SOURCES.
14962
14963 2011-05-23  Bruno Haible  <bruno@clisp.org>
14964
14965         freopen-safer: Move AC_LIBOBJ invocations to module description.
14966         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
14967         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
14968         (configure.ac): Remove gl_FREOPEN_SAFER call.
14969         (Makefile.am): Augment lib_SOURCES.
14970
14971 2011-05-23  Bruno Haible  <bruno@clisp.org>
14972
14973         fopen-safer: Move AC_LIBOBJ invocations to module description.
14974         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
14975         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
14976         (configure.ac): Remove gl_FOPEN_SAFER call.
14977         (Makefile.am): Augment lib_SOURCES.
14978
14979 2011-05-23  Bruno Haible  <bruno@clisp.org>
14980
14981         crypto/sha512: Move AC_LIBOBJ invocations to module description.
14982         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
14983         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
14984
14985 2011-05-23  Bruno Haible  <bruno@clisp.org>
14986
14987         crypto/sha256: Move AC_LIBOBJ invocations to module description.
14988         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
14989         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
14990
14991 2011-05-23  Bruno Haible  <bruno@clisp.org>
14992
14993         crypto/sha1: Move AC_LIBOBJ invocations to module description.
14994         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
14995         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
14996
14997 2011-05-23  Bruno Haible  <bruno@clisp.org>
14998
14999         settime: Move AC_LIBOBJ invocations to module description.
15000         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15001         * modules/settime (Makefile.am): Augment lib_SOURCES.
15002
15003 2011-05-23  Bruno Haible  <bruno@clisp.org>
15004
15005         savedir: Move AC_LIBOBJ invocations to module description.
15006         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15007         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15008
15009 2011-05-23  Bruno Haible  <bruno@clisp.org>
15010
15011         save-cwd: Move AC_LIBOBJ invocations to module description.
15012         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15013         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15014
15015 2011-05-23  Bruno Haible  <bruno@clisp.org>
15016
15017         same: Move AC_LIBOBJ invocations to module description.
15018         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15019         * modules/same (Makefile.am): Augment lib_SOURCES.
15020
15021 2011-05-23  Bruno Haible  <bruno@clisp.org>
15022
15023         safe-write: Move AC_LIBOBJ invocations to module description.
15024         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15025         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15026         instead of gl_SAFE_WRITE.
15027         (Makefile.am): Augment lib_SOURCES.
15028
15029 2011-05-23  Bruno Haible  <bruno@clisp.org>
15030
15031         safe-read: Move AC_LIBOBJ invocations to module description.
15032         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15033         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15034         of gl_SAFE_READ.
15035         (Makefile.am): Augment lib_SOURCES.
15036
15037 2011-05-23  Bruno Haible  <bruno@clisp.org>
15038
15039         safe-alloc: Move AC_LIBOBJ invocations to module description.
15040         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15041         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15042
15043 2011-05-23  Bruno Haible  <bruno@clisp.org>
15044
15045         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15046         * m4/rijndael.m4: Remove file.
15047         * modules/crypto/rijndael (Files): Remove it.
15048         (configure.ac): Remove gl_RIJNDAEL call.
15049         (Makefile.am): Augment lib_SOURCES.
15050
15051 2011-05-23  Bruno Haible  <bruno@clisp.org>
15052
15053         readtokens: Move AC_LIBOBJ invocations to module description.
15054         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15055         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15056
15057 2011-05-23  Bruno Haible  <bruno@clisp.org>
15058
15059         read-file: Move AC_LIBOBJ invocations to module description.
15060         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15061         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15062         of gl_FUNC_READ_FILE.
15063         (Makefile.am): Augment lib_SOURCES.
15064
15065 2011-05-23  Bruno Haible  <bruno@clisp.org>
15066
15067         quotearg: Move AC_LIBOBJ invocations to module description.
15068         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15069         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15070
15071 2011-05-23  Bruno Haible  <bruno@clisp.org>
15072
15073         quote: Move AC_LIBOBJ invocations to module description.
15074         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15075         * modules/quote (Makefile.am): Augment lib_SOURCES.
15076
15077 2011-05-23  Bruno Haible  <bruno@clisp.org>
15078
15079         posixver: Move AC_LIBOBJ invocations to module description.
15080         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15081         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15082
15083 2011-05-23  Bruno Haible  <bruno@clisp.org>
15084
15085         posixtm: Move AC_LIBOBJ invocations to module description.
15086         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15087         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15088
15089 2011-05-23  Bruno Haible  <bruno@clisp.org>
15090
15091         physmem: Move AC_LIBOBJ invocations to module description.
15092         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15093         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15094
15095 2011-05-23  Bruno Haible  <bruno@clisp.org>
15096
15097         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15098         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15099         invocation.
15100         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15101
15102 2011-05-23  Bruno Haible  <bruno@clisp.org>
15103
15104         mpsort: Move AC_LIBOBJ invocations to module description.
15105         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15106         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15107
15108 2011-05-23  Bruno Haible  <bruno@clisp.org>
15109
15110         modechange: Move AC_LIBOBJ invocations to module description.
15111         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15112         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15113
15114 2011-05-23  Bruno Haible  <bruno@clisp.org>
15115
15116         mkdir-p: Move AC_LIBOBJ invocations to module description.
15117         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15118         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15119
15120 2011-05-23  Bruno Haible  <bruno@clisp.org>
15121
15122         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15123         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15124         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15125
15126 2011-05-23  Bruno Haible  <bruno@clisp.org>
15127
15128         mgetgroups: Move AC_LIBOBJ invocations to module description.
15129         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15130         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15131
15132 2011-05-23  Bruno Haible  <bruno@clisp.org>
15133
15134         memxor: Move AC_LIBOBJ invocations to module description.
15135         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15136         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15137
15138 2011-05-23  Bruno Haible  <bruno@clisp.org>
15139
15140         memcoll: Move AC_LIBOBJ invocations to module description.
15141         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15142         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15143
15144 2011-05-23  Bruno Haible  <bruno@clisp.org>
15145
15146         memcasecmp: Move AC_LIBOBJ invocations to module description.
15147         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15148         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15149
15150 2011-05-23  Bruno Haible  <bruno@clisp.org>
15151
15152         crypto/md5: Move AC_LIBOBJ invocations to module description.
15153         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15154         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15155
15156 2011-05-23  Bruno Haible  <bruno@clisp.org>
15157
15158         crypto/md4: Move AC_LIBOBJ invocations to module description.
15159         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15160         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15161
15162 2011-05-23  Bruno Haible  <bruno@clisp.org>
15163
15164         crypto/md2: Move AC_LIBOBJ invocations to module description.
15165         * m4/md2.m4: Remove file.
15166         * modules/crypto/md2 (Files): Remove it.
15167         (configure.ac): Remove gl_MD2 call.
15168         (Makefile.am): Augment lib_SOURCES.
15169
15170 2011-05-23  Bruno Haible  <bruno@clisp.org>
15171
15172         long-options: Move AC_LIBOBJ invocations to module description.
15173         * m4/long-options.m4: Remove file.
15174         * modules/long-options (Files): Remove it.
15175         (configure.ac): Remove gl_LONG_OPTIONS call.
15176         (Makefile.am): Augment lib_SOURCES.
15177
15178 2011-05-23  Bruno Haible  <bruno@clisp.org>
15179
15180         i-ring: Move AC_LIBOBJ invocations to module description.
15181         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15182         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15183
15184 2011-05-23  Bruno Haible  <bruno@clisp.org>
15185
15186         idcache: Move AC_LIBOBJ invocations to module description.
15187         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15188         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15189
15190 2011-05-23  Bruno Haible  <bruno@clisp.org>
15191
15192         human: Move AC_LIBOBJ invocations to module description.
15193         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15194         * modules/human (Makefile.am): Augment lib_SOURCES.
15195
15196 2011-05-23  Bruno Haible  <bruno@clisp.org>
15197
15198         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15199         * m4/hmac-sha1.m4: Remove file.
15200         * modules/crypto/hmac-sha1 (Files): Remove it.
15201         (configure.ac): Remove gl_HMAC_SHA1 call.
15202         (Makefile.am): Augment lib_SOURCES.
15203
15204 2011-05-23  Bruno Haible  <bruno@clisp.org>
15205
15206         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15207         * m4/hmac-md5.m4: Remove file.
15208         * modules/crypto/hmac-md5 (Files): Remove it.
15209         (configure.ac): Remove gl_HMAC_MD5 call.
15210         (Makefile.am): Augment lib_SOURCES.
15211
15212 2011-05-23  Bruno Haible  <bruno@clisp.org>
15213
15214         hash: Move AC_LIBOBJ invocations to module description.
15215         * m4/hash.m4: Remove file.
15216         * modules/hash (Files): Remove it.
15217         (configure.ac): Remove gl_HASH call.
15218         (Makefile.am): Augment lib_SOURCES.
15219
15220 2011-05-23  Bruno Haible  <bruno@clisp.org>
15221
15222         hard-locale: Move AC_LIBOBJ invocations to module description.
15223         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15224         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15225
15226 2011-05-23  Bruno Haible  <bruno@clisp.org>
15227
15228         getugroups: Move AC_LIBOBJ invocations to module description.
15229         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15230         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15231
15232 2011-05-23  Bruno Haible  <bruno@clisp.org>
15233
15234         gettime: Move AC_LIBOBJ invocations to module description.
15235         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15236         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15237
15238 2011-05-23  Bruno Haible  <bruno@clisp.org>
15239
15240         getndelim2: Move AC_LIBOBJ invocations to module description.
15241         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15242         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15243
15244 2011-05-23  Bruno Haible  <bruno@clisp.org>
15245
15246         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15247         * m4/gc-pbkdf2-sha1.m4: Remove file.
15248         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15249         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15250         (Makefile.am): Augment lib_SOURCES.
15251
15252 2011-05-23  Bruno Haible  <bruno@clisp.org>
15253
15254         fts: Move AC_LIBOBJ invocations to module description.
15255         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15256         * modules/fts (configure.ac): ... to here.
15257
15258 2011-05-23  Bruno Haible  <bruno@clisp.org>
15259
15260         file-type: Move AC_LIBOBJ invocations to module description.
15261         * m4/file-type.m4: Remove file.
15262         * modules/file-type (Files): Remove it.
15263         (configure.ac): Remove gl_FILE_TYPE call.
15264         (Makefile.am): Augment lib_SOURCES.
15265
15266 2011-05-23  Bruno Haible  <bruno@clisp.org>
15267
15268         filenamecat*: Respect rules for use of AC_LIBOBJ.
15269         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15270         Remove AC_LIBOBJ invocation.
15271         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15272         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15273
15274 2011-05-23  Bruno Haible  <bruno@clisp.org>
15275
15276         filemode: Move AC_LIBOBJ invocations to module description.
15277         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15278         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15279
15280 2011-05-23  Bruno Haible  <bruno@clisp.org>
15281
15282         openat-safer: Move AC_LIBOBJ invocations to module description.
15283         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15284         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15285
15286 2011-05-23  Bruno Haible  <bruno@clisp.org>
15287
15288         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15289         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15290         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15291
15292 2011-05-23  Bruno Haible  <bruno@clisp.org>
15293
15294         exclude: Move AC_LIBOBJ invocations to module description.
15295         * m4/exclude.m4: Remove file.
15296         * modules/exclude (Files): Remove it.
15297         (configure.ac): Remove gl_EXCLUDE call.
15298         (Makefile.am): Augment lib_SOURCES.
15299
15300 2011-05-23  Bruno Haible  <bruno@clisp.org>
15301
15302         dirname*: Respect rules for use of AC_LIBOBJ.
15303         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15304         invocations.
15305         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15306         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15307
15308 2011-05-23  Bruno Haible  <bruno@clisp.org>
15309
15310         dirent-safer: Move AC_LIBOBJ invocations to module description.
15311         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15312         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15313
15314 2011-05-23  Bruno Haible  <bruno@clisp.org>
15315
15316         crypto/des: Move AC_LIBOBJ invocations to module description.
15317         * m4/des.m4: Remove file.
15318         * modules/crypto/des (Files): Remove it.
15319         (configure.ac): Remove gl_DES call.
15320         (Makefile.am): Augment lib_SOURCES.
15321
15322 2011-05-23  Bruno Haible  <bruno@clisp.org>
15323
15324         cycle-check: Move AC_LIBOBJ invocations to module description.
15325         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15326         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15327
15328 2011-05-23  Bruno Haible  <bruno@clisp.org>
15329
15330         c-strtold: Move AC_LIBOBJ invocations to module description.
15331         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15332         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15333
15334 2011-05-23  Bruno Haible  <bruno@clisp.org>
15335
15336         c-strtod: Move AC_LIBOBJ invocations to module description.
15337         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15338         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15339
15340 2011-05-23  Bruno Haible  <bruno@clisp.org>
15341
15342         crc: Move AC_LIBOBJ invocations to module description.
15343         * m4/crc.m4: Remove file.
15344         * modules/crc (Files): Remove it.
15345         (configure.ac): Remove gl_CRC call.
15346         (Makefile.am): Augment lib_SOURCES.
15347
15348 2011-05-23  Bruno Haible  <bruno@clisp.org>
15349
15350         close-stream: Move AC_LIBOBJ invocations to module description.
15351         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15352         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15353
15354 2011-05-23  Bruno Haible  <bruno@clisp.org>
15355
15356         closeout: Move AC_LIBOBJ invocations to module description.
15357         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15358         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15359
15360 2011-05-23  Bruno Haible  <bruno@clisp.org>
15361
15362         closein: Move AC_LIBOBJ invocations to module description.
15363         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15364         * modules/closein (Makefile.am): Augment lib_SOURCES.
15365
15366 2011-05-23  Bruno Haible  <bruno@clisp.org>
15367
15368         cloexec: Move AC_LIBOBJ invocations to module description.
15369         * m4/cloexec.m4: Remove file.
15370         * modules/cloexec (Files): Remove it.
15371         (configure.ac): Remove gl_CLOEXEC call.
15372         (Makefile.am): Augment lib_SOURCES.
15373
15374 2011-05-23  Bruno Haible  <bruno@clisp.org>
15375
15376         check-version: Move AC_LIBOBJ invocations to module description.
15377         * m4/check-version.m4: Remove file.
15378         * modules/check-version (Files): Remove it.
15379         (configure.ac): Remove gl_CHECK_VERSION call.
15380         (Makefile.am): Augment lib_SOURCES.
15381
15382 2011-05-23  Bruno Haible  <bruno@clisp.org>
15383
15384         chdir-safer: Move AC_LIBOBJ invocations to module description.
15385         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15386         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15387
15388 2011-05-23  Bruno Haible  <bruno@clisp.org>
15389
15390         canonicalize: Move AC_LIBOBJ invocations to module description.
15391         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15392         AC_LIBOBJ invocation.
15393         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15394
15395 2011-05-23  Bruno Haible  <bruno@clisp.org>
15396
15397         canon-host: Move AC_LIBOBJ invocations to module description.
15398         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15399         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15400         instead of gl_CANON_HOST.
15401         (Makefile.am): Augment lib_SOURCES.
15402
15403 2011-05-23  Bruno Haible  <bruno@clisp.org>
15404
15405         backupfile: Move AC_LIBOBJ invocations to module description.
15406         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15407         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15408
15409 2011-05-23  Bruno Haible  <bruno@clisp.org>
15410
15411         argmatch: Move AC_LIBOBJ invocations to module description.
15412         * m4/argmatch.m4: Remove file.
15413         * modules/argmatch (Files): Remove it.
15414         (configure.ac): Remove gl_ARGMATCH call.
15415         (Makefile.am): Augment lib_SOURCES.
15416
15417 2011-05-23  Bruno Haible  <bruno@clisp.org>
15418
15419         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15420         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15421         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15422
15423 2011-05-23  Bruno Haible  <bruno@clisp.org>
15424
15425         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15426         * m4/arcfour.m4: Remove file.
15427         * modules/crypto/arcfour (Files): Remove it.
15428         (configure.ac): Remove gl_ARCFOUR call.
15429         (Makefile.am): Augment lib_SOURCES.
15430
15431 2011-05-22  Bruno Haible  <bruno@clisp.org>
15432
15433         write: Move AC_LIBOBJ invocations to module description.
15434         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15435         * modules/write (configure.ac): ... to here.
15436
15437 2011-05-22  Bruno Haible  <bruno@clisp.org>
15438
15439         wmemset: Move AC_LIBOBJ invocations to module description.
15440         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15441         here...
15442         * modules/wmemset (configure.ac): ... to here.
15443
15444 2011-05-22  Bruno Haible  <bruno@clisp.org>
15445
15446         wmemmove: Move AC_LIBOBJ invocations to module description.
15447         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15448         here...
15449         * modules/wmemmove (configure.ac): ... to here.
15450
15451 2011-05-22  Bruno Haible  <bruno@clisp.org>
15452
15453         wmemcpy: Move AC_LIBOBJ invocations to module description.
15454         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15455         here...
15456         * modules/wmemcpy (configure.ac): ... to here.
15457
15458 2011-05-22  Bruno Haible  <bruno@clisp.org>
15459
15460         wmemcmp: Move AC_LIBOBJ invocations to module description.
15461         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15462         here...
15463         * modules/wmemcmp (configure.ac): ... to here.
15464
15465 2011-05-22  Bruno Haible  <bruno@clisp.org>
15466
15467         wmemchr: Move AC_LIBOBJ invocations to module description.
15468         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15469         here...
15470         * modules/wmemchr (configure.ac): ... to here.
15471
15472 2011-05-22  Bruno Haible  <bruno@clisp.org>
15473
15474         wcswidth: Move AC_LIBOBJ invocations to module description.
15475         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15476         here...
15477         * modules/wcswidth (configure.ac): ... to here.
15478
15479 2011-05-22  Bruno Haible  <bruno@clisp.org>
15480
15481         wcwidth: Respect rules for use of AC_LIBOBJ.
15482         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15483         invocation from here...
15484         * modules/wcwidth (configure.ac): ... to here.
15485         (Depends-on): Update conditions.
15486
15487 2011-05-22  Bruno Haible  <bruno@clisp.org>
15488
15489         wctype: Move AC_LIBOBJ invocations to module description.
15490         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15491         invocation from here...
15492         * modules/wctype (configure.ac): ... to here.
15493         (Depends-on): Update conditions.
15494
15495 2011-05-22  Bruno Haible  <bruno@clisp.org>
15496
15497         wctrans: Move AC_LIBOBJ invocations to module description.
15498         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15499         invocation from here...
15500         * modules/wctrans (configure.ac): ... to here.
15501
15502 2011-05-22  Bruno Haible  <bruno@clisp.org>
15503
15504         wctomb: Move AC_LIBOBJ invocations to module description.
15505         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15506         invocations from here...
15507         * modules/wctomb (configure.ac): ... to here.
15508
15509 2011-05-22  Bruno Haible  <bruno@clisp.org>
15510
15511         wctob: Move AC_LIBOBJ invocations to module description.
15512         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15513         gl_PREREQ_WCTOB invocations from here...
15514         * modules/wctob (configure.ac): ... to here.
15515         (Depends-on): Update conditions.
15516
15517 2011-05-22  Bruno Haible  <bruno@clisp.org>
15518
15519         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15520         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15521         here...
15522         * modules/wcsxfrm (configure.ac): ... to here.
15523
15524 2011-05-22  Bruno Haible  <bruno@clisp.org>
15525
15526         wcstok: Move AC_LIBOBJ invocations to module description.
15527         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
15528         * modules/wcstok (configure.ac): ... to here.
15529
15530 2011-05-22  Bruno Haible  <bruno@clisp.org>
15531
15532         wcsstr: Move AC_LIBOBJ invocations to module description.
15533         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
15534         * modules/wcsstr (configure.ac): ... to here.
15535
15536 2011-05-22  Bruno Haible  <bruno@clisp.org>
15537
15538         wcsspn: Move AC_LIBOBJ invocations to module description.
15539         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
15540         * modules/wcsspn (configure.ac): ... to here.
15541
15542 2011-05-22  Bruno Haible  <bruno@clisp.org>
15543
15544         wcsrtombs: Move AC_LIBOBJ invocations to module description.
15545         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
15546         gl_PREREQ_WCSRTOMBS invocations from here...
15547         * modules/wcsrtombs (configure.ac): ... to here.
15548
15549 2011-05-22  Bruno Haible  <bruno@clisp.org>
15550
15551         wcsrchr: Move AC_LIBOBJ invocations to module description.
15552         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
15553         here...
15554         * modules/wcsrchr (configure.ac): ... to here.
15555
15556 2011-05-22  Bruno Haible  <bruno@clisp.org>
15557
15558         wcspbrk: Move AC_LIBOBJ invocations to module description.
15559         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
15560         here...
15561         * modules/wcspbrk (configure.ac): ... to here.
15562
15563 2011-05-22  Bruno Haible  <bruno@clisp.org>
15564
15565         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
15566         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
15567         gl_PREREQ_WCSNRTOMBS invocations from here...
15568         * modules/wcsnrtombs (configure.ac): ... to here.
15569
15570 2011-05-22  Bruno Haible  <bruno@clisp.org>
15571
15572         wcsnlen: Move AC_LIBOBJ invocations to module description.
15573         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
15574         here...
15575         * modules/wcsnlen (configure.ac): ... to here.
15576
15577 2011-05-22  Bruno Haible  <bruno@clisp.org>
15578
15579         wcsncpy: Move AC_LIBOBJ invocations to module description.
15580         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
15581         here...
15582         * modules/wcsncpy (configure.ac): ... to here.
15583
15584 2011-05-22  Bruno Haible  <bruno@clisp.org>
15585
15586         wcsncmp: Move AC_LIBOBJ invocations to module description.
15587         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
15588         here...
15589         * modules/wcsncmp (configure.ac): ... to here.
15590
15591 2011-05-22  Bruno Haible  <bruno@clisp.org>
15592
15593         wcsncat: Move AC_LIBOBJ invocations to module description.
15594         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
15595         here...
15596         * modules/wcsncat (configure.ac): ... to here.
15597
15598 2011-05-22  Bruno Haible  <bruno@clisp.org>
15599
15600         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
15601         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
15602         from here...
15603         * modules/wcsncasecmp (configure.ac): ... to here.
15604
15605 2011-05-22  Bruno Haible  <bruno@clisp.org>
15606
15607         wcslen: Move AC_LIBOBJ invocations to module description.
15608         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
15609         * modules/wcslen (configure.ac): ... to here.
15610
15611 2011-05-22  Bruno Haible  <bruno@clisp.org>
15612
15613         wcsdup: Move AC_LIBOBJ invocations to module description.
15614         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
15615         * modules/wcsdup (configure.ac): ... to here.
15616
15617 2011-05-22  Bruno Haible  <bruno@clisp.org>
15618
15619         wcscspn: Move AC_LIBOBJ invocations to module description.
15620         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
15621         here...
15622         * modules/wcscspn (configure.ac): ... to here.
15623
15624 2011-05-22  Bruno Haible  <bruno@clisp.org>
15625
15626         wcscpy: Move AC_LIBOBJ invocations to module description.
15627         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
15628         * modules/wcscpy (configure.ac): ... to here.
15629
15630 2011-05-22  Bruno Haible  <bruno@clisp.org>
15631
15632         wcscoll: Move AC_LIBOBJ invocations to module description.
15633         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
15634         here...
15635         * modules/wcscoll (configure.ac): ... to here.
15636
15637 2011-05-22  Bruno Haible  <bruno@clisp.org>
15638
15639         wcscmp: Move AC_LIBOBJ invocations to module description.
15640         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
15641         * modules/wcscmp (configure.ac): ... to here.
15642
15643 2011-05-22  Bruno Haible  <bruno@clisp.org>
15644
15645         wcschr: Move AC_LIBOBJ invocations to module description.
15646         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
15647         * modules/wcschr (configure.ac): ... to here.
15648
15649 2011-05-22  Bruno Haible  <bruno@clisp.org>
15650
15651         wcscat: Move AC_LIBOBJ invocations to module description.
15652         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
15653         * modules/wcscat (configure.ac): ... to here.
15654
15655 2011-05-22  Bruno Haible  <bruno@clisp.org>
15656
15657         wcscasecmp: Move AC_LIBOBJ invocations to module description.
15658         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
15659         here...
15660         * modules/wcscasecmp (configure.ac): ... to here.
15661
15662 2011-05-22  Bruno Haible  <bruno@clisp.org>
15663
15664         wcrtomb: Move AC_LIBOBJ invocations to module description.
15665         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
15666         invocations from here...
15667         * modules/wcrtomb (configure.ac): ... to here.
15668
15669 2011-05-22  Bruno Haible  <bruno@clisp.org>
15670
15671         wcpncpy: Move AC_LIBOBJ invocations to module description.
15672         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
15673         here...
15674         * modules/wcpncpy (configure.ac): ... to here.
15675
15676 2011-05-22  Bruno Haible  <bruno@clisp.org>
15677
15678         wcpcpy: Move AC_LIBOBJ invocations to module description.
15679         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
15680         * modules/wcpcpy (configure.ac): ... to here.
15681
15682 2011-05-22  Bruno Haible  <bruno@clisp.org>
15683
15684         waitpid: Move AC_LIBOBJ invocations to module description.
15685         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
15686         invocation from here...
15687         * modules/waitpid (configure.ac): ... to here.
15688
15689 2011-05-22  Bruno Haible  <bruno@clisp.org>
15690
15691         utimensat: Move AC_LIBOBJ invocations to module description.
15692         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
15693         here...
15694         * modules/utimensat (configure.ac): ... to here.
15695
15696 2011-05-22  Bruno Haible  <bruno@clisp.org>
15697
15698         usleep: Move AC_LIBOBJ invocations to module description.
15699         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
15700         here...
15701         * modules/usleep (configure.ac): ... to here.
15702
15703 2011-05-22  Bruno Haible  <bruno@clisp.org>
15704
15705         unlockpt: Move AC_LIBOBJ invocations to module description.
15706         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
15707         gl_PREREQ_UNLOCKPT invocations from here...
15708         * modules/unlockpt (configure.ac): ... to here.
15709
15710 2011-05-22  Bruno Haible  <bruno@clisp.org>
15711
15712         unlink: Respect rules for use of AC_LIBOBJ.
15713         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
15714         * modules/unlink (configure.ac): ... to here.
15715
15716 2011-05-22  Bruno Haible  <bruno@clisp.org>
15717
15718         uname: Move AC_LIBOBJ invocations to module description.
15719         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
15720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
15721         here...
15722         * modules/uname (configure.ac): ... to here.
15723
15724 2011-05-22  Bruno Haible  <bruno@clisp.org>
15725
15726         ttyname_r: Move AC_LIBOBJ invocations to module description.
15727         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
15728         gl_PREREQ_TTYNAME_R invocations from here...
15729         * modules/ttyname_r (configure.ac): ... to here.
15730
15731 2011-05-22  Bruno Haible  <bruno@clisp.org>
15732
15733         tsearch: Move AC_LIBOBJ invocations to module description.
15734         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
15735         invocations from here...
15736         * modules/tsearch (configure.ac): ... to here.
15737
15738 2011-05-22  Bruno Haible  <bruno@clisp.org>
15739
15740         towctrans: Move AC_LIBOBJ invocations to module description.
15741         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
15742         AC_LIBOBJ invocation from here...
15743         * modules/towctrans (configure.ac): ... to here.
15744
15745 2011-05-22  Bruno Haible  <bruno@clisp.org>
15746
15747         tmpfile: Move AC_LIBOBJ invocations to module description.
15748         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
15749         invocations from here...
15750         * modules/tmpfile (configure.ac): ... to here.
15751
15752 2011-05-22  Bruno Haible  <bruno@clisp.org>
15753
15754         times: Move AC_LIBOBJ invocations to module description.
15755         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
15756         * modules/times (configure.ac): ... to here.
15757
15758 2011-05-22  Bruno Haible  <bruno@clisp.org>
15759
15760         time_r: Move AC_LIBOBJ invocations to module description.
15761         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
15762         invocations from here...
15763         * modules/time_r (configure.ac): ... to here.
15764
15765 2011-05-22  Bruno Haible  <bruno@clisp.org>
15766
15767         timegm: Move AC_LIBOBJ invocations to module description.
15768         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
15769         invocations from here...
15770         * modules/timegm (configure.ac): ... to here.
15771
15772 2011-05-22  Bruno Haible  <bruno@clisp.org>
15773
15774         tcgetsid: Move AC_LIBOBJ invocations to module description.
15775         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
15776         and gl_PREREQ_TCGETSID invocations from here...
15777         * modules/tcgetsid (configure.ac): ... to here.
15778         (Depends-on): Update conditions.
15779
15780 2011-05-22  Bruno Haible  <bruno@clisp.org>
15781
15782         symlinkat: Move AC_LIBOBJ invocations to module description.
15783         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
15784         here...
15785         * modules/symlinkat (configure.ac): ... to here.
15786
15787 2011-05-22  Bruno Haible  <bruno@clisp.org>
15788
15789         symlink: Move AC_LIBOBJ invocations to module description.
15790         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
15791         here...
15792         * modules/symlink (configure.ac): ... to here.
15793
15794 2011-05-22  Bruno Haible  <bruno@clisp.org>
15795
15796         strverscmp: Move AC_LIBOBJ invocations to module description.
15797         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
15798         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
15799         from here...
15800         * modules/strverscmp (configure.ac): ... to here.
15801
15802 2011-05-22  Bruno Haible  <bruno@clisp.org>
15803
15804         strtok_r: Move AC_LIBOBJ invocations to module description.
15805         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
15806         and gl_PREREQ_STRTOK_R invocations from here...
15807         * modules/strtok_r (configure.ac): ... to here.
15808         (Depends-on): Update conditions.
15809
15810 2011-05-22  Bruno Haible  <bruno@clisp.org>
15811
15812         strtoumax: Move AC_LIBOBJ invocations to module description.
15813         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
15814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
15815         from here...
15816         * modules/strtoumax (configure.ac): ... to here.
15817
15818 2011-05-22  Bruno Haible  <bruno@clisp.org>
15819
15820         strtoimax: Move AC_LIBOBJ invocations to module description.
15821         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
15822         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
15823         from here...
15824         * modules/strtoimax (configure.ac): ... to here.
15825
15826 2011-05-22  Bruno Haible  <bruno@clisp.org>
15827
15828         strtoull: Move AC_LIBOBJ invocations to module description.
15829         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
15830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
15831         from here...
15832         * modules/strtoull (configure.ac): ... to here.
15833
15834 2011-05-22  Bruno Haible  <bruno@clisp.org>
15835
15836         strtoll: Move AC_LIBOBJ invocations to module description.
15837         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
15838         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
15839         here...
15840         * modules/strtoll (configure.ac): ... to here.
15841
15842 2011-05-22  Bruno Haible  <bruno@clisp.org>
15843
15844         strtoul: Move AC_LIBOBJ invocations to module description.
15845         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
15846         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15847         * modules/strtoul (configure.ac): ... to here.
15848
15849 2011-05-22  Bruno Haible  <bruno@clisp.org>
15850
15851         strtol: Move AC_LIBOBJ invocations to module description.
15852         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
15853         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15854         * modules/strtol (configure.ac): ... to here.
15855
15856 2011-05-22  Bruno Haible  <bruno@clisp.org>
15857
15858         strtod: Move AC_LIBOBJ invocations to module description.
15859         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
15860         invocations from here...
15861         * modules/strtod (configure.ac): ... to here.
15862
15863 2011-05-22  Bruno Haible  <bruno@clisp.org>
15864
15865         strstr*: Move AC_LIBOBJ invocations to module description.
15866         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
15867         invocations from here...
15868         * modules/strstr-simple (configure.ac): ... to here.
15869         * modules/strstr (configure.ac): ... and here.
15870
15871 2011-05-22  Bruno Haible  <bruno@clisp.org>
15872
15873         strsignal: Move AC_LIBOBJ invocations to module description.
15874         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
15875         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
15876         * modules/strsignal (configure.ac): ... to here.
15877         (Depends-on): Update conditions.
15878
15879 2011-05-22  Bruno Haible  <bruno@clisp.org>
15880
15881         strsep: Move AC_LIBOBJ invocations to module description.
15882         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
15883         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
15884         here...
15885         * modules/strsep (configure.ac): ... to here.
15886
15887 2011-05-22  Bruno Haible  <bruno@clisp.org>
15888
15889         strptime: Move AC_LIBOBJ invocations to module description.
15890         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
15891         gl_PREREQ_STRPTIME invocations from here...
15892         * modules/strptime (configure.ac): ... to here.
15893
15894 2011-05-22  Bruno Haible  <bruno@clisp.org>
15895
15896         strpbrk: Move AC_LIBOBJ invocations to module description.
15897         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
15898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
15899         here...
15900         * modules/strpbrk (configure.ac): ... to here.
15901
15902 2011-05-22  Bruno Haible  <bruno@clisp.org>
15903
15904         strnlen: Move AC_LIBOBJ invocations to module description.
15905         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
15906         invocations from here...
15907         * modules/strnlen (configure.ac): ... to here.
15908
15909 2011-05-22  Bruno Haible  <bruno@clisp.org>
15910
15911         strndup: Move AC_LIBOBJ invocations to module description.
15912         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
15913         invocations from here...
15914         * modules/strndup (configure.ac): ... to here.
15915         (Depends-on): Update conditions.
15916
15917 2011-05-22  Bruno Haible  <bruno@clisp.org>
15918
15919         strncat: Move AC_LIBOBJ invocations to module description.
15920         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
15921         invocations from here...
15922         * modules/strncat (configure.ac): ... to here.
15923
15924 2011-05-22  Bruno Haible  <bruno@clisp.org>
15925
15926         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
15927         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
15928         invocations from here...
15929         * modules/strdup (configure.ac): ... to here.
15930         * modules/strdup-posix (configure.ac): ... and here.
15931
15932 2011-05-22  Bruno Haible  <bruno@clisp.org>
15933
15934         strcspn: Move AC_LIBOBJ invocations to module description.
15935         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
15936         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
15937         here...
15938         * modules/strcspn (configure.ac): ... to here.
15939
15940 2011-05-22  Bruno Haible  <bruno@clisp.org>
15941
15942         strchrnul: Move AC_LIBOBJ invocations to module description.
15943         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
15944         gl_PREREQ_STRCHRNUL invocations from here...
15945         * modules/strchrnul (configure.ac): ... to here.
15946
15947 2011-05-22  Bruno Haible  <bruno@clisp.org>
15948
15949         strcasestr*: Move AC_LIBOBJ invocations to module description.
15950         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15951         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
15952         * modules/strcasestr-simple (configure.ac): ... to here.
15953         * modules/strcasestr (configure.ac): ... and here.
15954
15955 2011-05-22  Bruno Haible  <bruno@clisp.org>
15956
15957         strcase: Move AC_LIBOBJ invocations to module description.
15958         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
15959         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
15960         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
15961         gl_PREREQ_STRNCASECMP invocations from here...
15962         * modules/strcase (configure.ac): ... to here.
15963
15964 2011-05-22  Bruno Haible  <bruno@clisp.org>
15965
15966         stpncpy: Move AC_LIBOBJ invocations to module description.
15967         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
15968         here...
15969         * modules/stpncpy (configure.ac): ... to here.
15970
15971 2011-05-22  Bruno Haible  <bruno@clisp.org>
15972
15973         stpcpy: Move AC_LIBOBJ invocations to module description.
15974         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
15975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
15976         here...
15977         * modules/stpcpy (configure.ac): ... to here.
15978
15979 2011-05-21  Bruno Haible  <bruno@clisp.org>
15980
15981         stat: Move AC_LIBOBJ invocations to module description.
15982         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
15983         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
15984         here...
15985         * modules/stat (configure.ac): ... to here.
15986
15987 2011-05-21  Bruno Haible  <bruno@clisp.org>
15988
15989         sleep: Move AC_LIBOBJ invocations to module description.
15990         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
15991         * modules/sleep (configure.ac): ... to here.
15992
15993 2011-05-21  Bruno Haible  <bruno@clisp.org>
15994
15995         signbit: Move AC_LIBOBJ invocations to module description.
15996         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
15997         * modules/signbit (configure.ac): ... to here.
15998
15999 2011-05-21  Bruno Haible  <bruno@clisp.org>
16000
16001         sigprocmask: Move AC_LIBOBJ invocations to module description.
16002         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16003         gl_PREREQ_SIGPROMASK invocations from here...
16004         * modules/sigprocmask (configure.ac): ... to here.
16005
16006 2011-05-21  Bruno Haible  <bruno@clisp.org>
16007
16008         sigaction: Move AC_LIBOBJ invocations to module description.
16009         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16010         gl_PREREQ_SIGACTION invocations from here...
16011         * modules/sigaction (configure.ac): ... to here.
16012
16013 2011-05-21  Bruno Haible  <bruno@clisp.org>
16014
16015         sig2str: Move AC_LIBOBJ invocations to module description.
16016         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16017         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16018         here...
16019         * modules/sig2str (configure.ac): ... to here.
16020
16021 2011-05-21  Bruno Haible  <bruno@clisp.org>
16022
16023         setlocale: Move AC_LIBOBJ invocations to module description.
16024         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16025         gl_PREREQ_SETLOCALE invocations from here...
16026         * modules/setlocale (configure.ac): ... to here.
16027
16028 2011-05-21  Bruno Haible  <bruno@clisp.org>
16029
16030         unsetenv: Move AC_LIBOBJ invocations to module description.
16031         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16032         and gl_PREREQ_UNSETENV invocations from here...
16033         * modules/unsetenv (configure.ac): ... to here.
16034         (Depends-on): Update.
16035
16036 2011-05-21  Bruno Haible  <bruno@clisp.org>
16037
16038         setenv: Move AC_LIBOBJ invocations to module description.
16039         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16040         here...
16041         * modules/setenv (configure.ac): ... to here.
16042
16043 2011-05-21  Bruno Haible  <bruno@clisp.org>
16044
16045         selinux-h: Move AC_LIBOBJ invocations to module description.
16046         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16047         AC_LIBOBJ invocation from here...
16048         * modules/selinux-h (configure.ac): ... to here.
16049
16050 2011-05-21  Bruno Haible  <bruno@clisp.org>
16051
16052         select: Respect rules for use of AC_LIBOBJ.
16053         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16054         here...
16055         * modules/select (configure.ac): ... to here.
16056
16057 2011-05-21  Bruno Haible  <bruno@clisp.org>
16058
16059         scandir: Move AC_LIBOBJ invocations to module description.
16060         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16061         invocations from here...
16062         * modules/scandir (configure.ac): ... to here.
16063
16064 2011-05-21  Bruno Haible  <bruno@clisp.org>
16065
16066         rpmatch: Move AC_LIBOBJ invocations to module description.
16067         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16068         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16069         here...
16070         * modules/rpmatch (configure.ac): ... to here.
16071
16072 2011-05-21  Bruno Haible  <bruno@clisp.org>
16073
16074         rmdir: Respect rules for use of AC_LIBOBJ.
16075         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16076         * modules/rmdir (configure.ac): ... to here.
16077
16078 2011-05-21  Bruno Haible  <bruno@clisp.org>
16079
16080         renameat: Move AC_LIBOBJ invocations to module description.
16081         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16082         here...
16083         * modules/renameat (configure.ac): ... to here.
16084
16085 2011-05-21  Bruno Haible  <bruno@clisp.org>
16086
16087         rename: Respect rules for use of AC_LIBOBJ.
16088         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16089         here...
16090         * modules/rename (configure.ac): ... to here.
16091
16092 2011-05-21  Bruno Haible  <bruno@clisp.org>
16093
16094         remove: Move AC_LIBOBJ invocations to module description.
16095         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16096         here...
16097         * modules/remove (configure.ac): ... to here.
16098
16099 2011-05-21  Bruno Haible  <bruno@clisp.org>
16100
16101         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16102         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16103         macro.
16104         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16105         * modules/relocatable-lib (configure.ac): ... to here.
16106         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16107         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16108
16109 2011-05-21  Bruno Haible  <bruno@clisp.org>
16110
16111         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16112         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16113         here...
16114         * modules/relocatable-prog (configure.ac): ... to here.
16115
16116 2011-05-21  Bruno Haible  <bruno@clisp.org>
16117
16118         regex: Move AC_LIBOBJ invocations to module description.
16119         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16120         invocations from here...
16121         * modules/regex (configure.ac): ... to here.
16122
16123 2011-05-21  Bruno Haible  <bruno@clisp.org>
16124
16125         realloc-*: Move AC_LIBOBJ invocations to module description.
16126         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16127         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16128         AC_LIBOBJ invocations from here...
16129         * modules/realloc-gnu (configure.ac): ... to here.
16130         * modules/realloc-posix (configure.ac): ... and here.
16131
16132 2011-05-21  Bruno Haible  <bruno@clisp.org>
16133
16134         readutmp: Move AC_LIBOBJ invocations to module description.
16135         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16136         * modules/readutmp (configure.ac): ... to here.
16137
16138 2011-05-21  Bruno Haible  <bruno@clisp.org>
16139
16140         readlinkat: Move AC_LIBOBJ invocations to module description.
16141         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16142         here...
16143         * modules/readlinkat (configure.ac): ... to here.
16144
16145 2011-05-21  Bruno Haible  <bruno@clisp.org>
16146
16147         readlink: Move AC_LIBOBJ invocations to module description.
16148         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16149         gl_PREREQ_READLINK invocations from here...
16150         * modules/readlink (configure.ac): ... to here.
16151
16152 2011-05-21  Bruno Haible  <bruno@clisp.org>
16153
16154         readline: Move AC_LIBOBJ invocations to module description.
16155         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16156         gl_PREREQ_READLINE invocations from here...
16157         * modules/readline (configure.ac): ... to here.
16158
16159 2011-05-21  Bruno Haible  <bruno@clisp.org>
16160
16161         read: Move AC_LIBOBJ invocations to module description.
16162         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16163         * modules/read (configure.ac): ... to here.
16164
16165 2011-05-21  Bruno Haible  <bruno@clisp.org>
16166
16167         rawmemchr: Move AC_LIBOBJ invocations to module description.
16168         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16169         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16170         from here...
16171         * modules/rawmemchr (configure.ac): ... to here.
16172
16173 2011-05-21  Bruno Haible  <bruno@clisp.org>
16174
16175         random_r: Move AC_LIBOBJ invocations to module description.
16176         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16177         gl_PREREQ_RANDOM_R invocations from here...
16178         * modules/random_r (configure.ac): ... to here.
16179
16180 2011-05-21  Bruno Haible  <bruno@clisp.org>
16181
16182         pwrite: Move AC_LIBOBJ invocations to module description.
16183         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16184         * modules/pwrite (configure.ac): ... to here.
16185
16186 2011-05-21  Bruno Haible  <bruno@clisp.org>
16187
16188         putenv: Move AC_LIBOBJ invocations to module description.
16189         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16190         * modules/putenv (configure.ac): ... to here.
16191
16192 2011-05-21  Bruno Haible  <bruno@clisp.org>
16193
16194         login_tty: Move AC_LIBOBJ invocations to module description.
16195         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16196         * modules/login_tty (configure.ac): ... to here.
16197
16198 2011-05-21  Bruno Haible  <bruno@clisp.org>
16199
16200         openpty: Move AC_LIBOBJ invocations to module description.
16201         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16202         * modules/openpty (configure.ac): ... to here.
16203
16204 2011-05-21  Bruno Haible  <bruno@clisp.org>
16205
16206         forkpty: Move AC_LIBOBJ invocations to module description.
16207         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16208         * modules/forkpty (configure.ac): ... to here.
16209
16210 2011-05-21  Bruno Haible  <bruno@clisp.org>
16211
16212         ptsname: Move AC_LIBOBJ invocations to module description.
16213         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16214         invocations from here...
16215         * modules/ptsname (configure.ac): ... to here.
16216
16217 2011-05-21  Bruno Haible  <bruno@clisp.org>
16218
16219         pread: Move AC_LIBOBJ invocations to module description.
16220         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16221         * modules/pread (configure.ac): ... to here.
16222
16223 2011-05-21  Bruno Haible  <bruno@clisp.org>
16224
16225         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16226         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16227         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16228         * modules/posix_spawn (configure.ac): ... to here.
16229         * modules/posix_spawnp (configure.ac): ... and here.
16230
16231 2011-05-21  Bruno Haible  <bruno@clisp.org>
16232
16233         popen: Move AC_LIBOBJ invocations to module description.
16234         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16235         invocations from here...
16236         * modules/popen (configure.ac): ... to here.
16237
16238 2011-05-21  Bruno Haible  <bruno@clisp.org>
16239
16240         poll: Move AC_LIBOBJ invocations to module description.
16241         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16242         invocations from here...
16243         * modules/poll (configure.ac): ... to here.
16244
16245 2011-05-21  Bruno Haible  <bruno@clisp.org>
16246
16247         pipe-posix: Move AC_LIBOBJ invocations to module description.
16248         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16249         * modules/pipe-posix (configure.ac): ... to here.
16250
16251 2011-05-21  Bruno Haible  <bruno@clisp.org>
16252
16253         openat: Respect rules for use of AC_LIBOBJ.
16254         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16255         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16256         * modules/openat (configure.ac): ... to here.
16257
16258 2011-05-21  Bruno Haible  <bruno@clisp.org>
16259
16260         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16261         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16262         invocation from here...
16263         * modules/obstack-printf (configure.ac): ... to here.
16264         * modules/obstack-printf-posix (configure.ac): ... and here.
16265
16266 2011-05-21  Bruno Haible  <bruno@clisp.org>
16267
16268         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16269         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16270         from here...
16271         * modules/nl_langinfo (configure.ac): ... to here.
16272
16273 2011-05-21  Bruno Haible  <bruno@clisp.org>
16274
16275         nanosleep: Move AC_LIBOBJ invocations to module description.
16276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16277         gl_PREREQ_NANOSLEEP invocations from here...
16278         * modules/nanosleep (configure.ac): ... to here.
16279
16280 2011-05-21  Bruno Haible  <bruno@clisp.org>
16281
16282         mountlist: Move AC_LIBOBJ invocations to module description.
16283         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16284         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16285         * modules/mountlist (configure.ac): ... to here.
16286
16287 2011-05-21  Bruno Haible  <bruno@clisp.org>
16288
16289         mktime: Respect rules for use of AC_LIBOBJ.
16290         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16291         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16292         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16293         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16294         * modules/mktime (configure.ac): ... to here.
16295         * modules/mktime-internal (configure.ac): ... and here.
16296         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16297
16298 2011-05-21  Bruno Haible  <bruno@clisp.org>
16299
16300         mkstemps: Move AC_LIBOBJ invocations to module description.
16301         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16302         here...
16303         * modules/mkstemps (configure.ac): ... to here.
16304
16305 2011-05-21  Bruno Haible  <bruno@clisp.org>
16306
16307         mkstemp: Move AC_LIBOBJ invocations to module description.
16308         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16309         gl_PREREQ_MKSTEMP invocations from here...
16310         * modules/mkstemp (configure.ac): ... to here.
16311
16312 2011-05-21  Bruno Haible  <bruno@clisp.org>
16313
16314         mkostemps: Move AC_LIBOBJ invocations to module description.
16315         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16316         here...
16317         * modules/mkostemps (configure.ac): ... to here.
16318
16319 2011-05-21  Bruno Haible  <bruno@clisp.org>
16320
16321         mkostemp: Move AC_LIBOBJ invocations to module description.
16322         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16323         gl_PREREQ_MKOSTEMP invocations from here...
16324         * modules/mkostemp (configure.ac): ... to here.
16325
16326 2011-05-21  Bruno Haible  <bruno@clisp.org>
16327
16328         mknod: Move AC_LIBOBJ invocations to module description.
16329         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16330         * modules/mknod (configure.ac): ... to here.
16331
16332 2011-05-21  Bruno Haible  <bruno@clisp.org>
16333
16334         mkfifoat: Move AC_LIBOBJ invocations to module description.
16335         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16336         here...
16337         * modules/mkfifoat (configure.ac): ... to here.
16338
16339 2011-05-21  Bruno Haible  <bruno@clisp.org>
16340
16341         mkfifo: Respect rules for use of AC_LIBOBJ.
16342         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16343         here...
16344         * modules/mkfifo (configure.ac): ... to here.
16345
16346 2011-05-21  Bruno Haible  <bruno@clisp.org>
16347
16348         mkdtemp: Move AC_LIBOBJ invocations to module description.
16349         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16350         invocations from here...
16351         * modules/mkdtemp (configure.ac): ... to here.
16352
16353 2011-05-21  Bruno Haible  <bruno@clisp.org>
16354
16355         mkdir: Move AC_LIBOBJ invocations to module description.
16356         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16357         * modules/mkdir (configure.ac): ... to here.
16358
16359 2011-05-21  Bruno Haible  <bruno@clisp.org>
16360
16361         memset: Move AC_LIBOBJ invocations to module description.
16362         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16363         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16364         here...
16365         * modules/memset (configure.ac): ... to here.
16366
16367 2011-05-21  Bruno Haible  <bruno@clisp.org>
16368
16369         memrchr: Move AC_LIBOBJ invocations to module description.
16370         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16371         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16372         here...
16373         * modules/memrchr (configure.ac): ... to here.
16374
16375 2011-05-21  Bruno Haible  <bruno@clisp.org>
16376
16377         mempcpy: Move AC_LIBOBJ invocations to module description.
16378         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16380         here...
16381         * modules/mempcpy (configure.ac): ... to here.
16382
16383 2011-05-21  Bruno Haible  <bruno@clisp.org>
16384
16385         memmove: Move AC_LIBOBJ invocations to module description.
16386         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16387         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16388         here...
16389         * modules/memmove (configure.ac): ... to here.
16390
16391 2011-05-21  Bruno Haible  <bruno@clisp.org>
16392
16393         memmem*: Move AC_LIBOBJ invocations to module description.
16394         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16395         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16396         here...
16397         (gl_FUNC_MEMMEM): ... and here...
16398         * modules/memmem-simple (configure.ac): ... to here.
16399         * modules/memmem (configure.ac): ... and here.
16400
16401 2011-05-21  Bruno Haible  <bruno@clisp.org>
16402
16403         memcpy: Move AC_LIBOBJ invocations to module description.
16404         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16405         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16406         here...
16407         * modules/memcpy (configure.ac): ... to here.
16408
16409 2011-05-21  Bruno Haible  <bruno@clisp.org>
16410
16411         memcmp: Simplify autoconf macro.
16412         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16413         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16414         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16415
16416 2011-05-21  Bruno Haible  <bruno@clisp.org>
16417
16418         memcmp: Move AC_LIBOBJ invocations to module description.
16419         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16420         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16421         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16422         * modules/memcmp (configure.ac): ... to here.
16423         (Depends-on): Update conditions.
16424
16425 2011-05-21  Bruno Haible  <bruno@clisp.org>
16426
16427         memchr: Respect rules for use of AC_LIBOBJ.
16428         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16429         invocations from here...
16430         * modules/memchr (configure.ac): ... to here.
16431
16432 2011-05-21  Bruno Haible  <bruno@clisp.org>
16433
16434         mbtowc: Move AC_LIBOBJ invocations to module description.
16435         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16436         invocations from here...
16437         * modules/mbtowc (configure.ac): ... to here.
16438
16439 2011-05-21  Bruno Haible  <bruno@clisp.org>
16440
16441         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16442         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16443         gl_PREREQ_MBSRTOWCS invocations from here...
16444         * modules/mbsrtowcs (configure.ac): ... to here.
16445
16446 2011-05-21  Bruno Haible  <bruno@clisp.org>
16447
16448         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16449         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16450         gl_PREREQ_MBSNRTOWCS invocations from here...
16451         * modules/mbsnrtowcs (configure.ac): ... to here.
16452
16453 2011-05-21  Bruno Haible  <bruno@clisp.org>
16454
16455         mbsinit: Move AC_LIBOBJ invocations to module description.
16456         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16457         invocations from here...
16458         * modules/mbsinit (configure.ac): ... to here.
16459
16460 2011-05-21  Bruno Haible  <bruno@clisp.org>
16461
16462         mbrlen: Move AC_LIBOBJ invocations to module description.
16463         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16464         invocations from here...
16465         * modules/mbrlen (configure.ac): ... to here.
16466
16467 2011-05-21  Bruno Haible  <bruno@clisp.org>
16468
16469         mbrtowc: Respect rules for use of AC_LIBOBJ.
16470         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16471         invocations from here...
16472         * modules/mbrtowc (configure.ac): ... to here.
16473
16474 2011-05-21  Bruno Haible  <bruno@clisp.org>
16475
16476         malloc-*: Move AC_LIBOBJ invocations to module description.
16477         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16478         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16479         AC_LIBOBJ invocations from here...
16480         * modules/malloc-gnu (configure.ac): ... to here.
16481         * modules/malloc-posix (configure.ac): ... and here.
16482
16483 2011-05-21  Bruno Haible  <bruno@clisp.org>
16484
16485         lstat, openat: Respect rules for use of AC_LIBOBJ.
16486         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16487         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16488         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16489         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16490         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16491         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16492         here.
16493         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16494
16495 2011-05-21  Bruno Haible  <bruno@clisp.org>
16496
16497         lseek: Move AC_LIBOBJ invocations to module description.
16498         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16499         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16500         * modules/lseek (configure.ac): ... to here.
16501
16502 2011-05-21  Bruno Haible  <bruno@clisp.org>
16503
16504         linkat: Move AC_LIBOBJ invocations to module description.
16505         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16506         here...
16507         * modules/linkat (configure.ac): ... to here.
16508
16509 2011-05-21  Bruno Haible  <bruno@clisp.org>
16510
16511         link: Respect rules for use of AC_LIBOBJ.
16512         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16513         * modules/link (configure.ac): ... to here.
16514
16515 2011-05-21  Bruno Haible  <bruno@clisp.org>
16516
16517         lchown: Move AC_LIBOBJ invocations to module description.
16518         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16519         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16520         * modules/lchown (configure.ac): ... to here.
16521
16522 2011-05-21  Bruno Haible  <bruno@clisp.org>
16523
16524         iswctype: Move AC_LIBOBJ invocations to module description.
16525         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
16526         here...
16527         * modules/iswctype (configure.ac): ... to here.
16528
16529 2011-05-21  Bruno Haible  <bruno@clisp.org>
16530
16531         iswblank: Move AC_LIBOBJ invocations to module description.
16532         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
16533         here...
16534         * modules/iswblank (configure.ac): ... to here.
16535
16536 2011-05-21  Bruno Haible  <bruno@clisp.org>
16537
16538         atanl: Move AC_LIBOBJ invocations to module description.
16539         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
16540         * modules/atanl (configure.ac): ... to here.
16541
16542 2011-05-21  Bruno Haible  <bruno@clisp.org>
16543
16544         acosl: Move AC_LIBOBJ invocations to module description.
16545         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
16546         * modules/acosl (configure.ac): ... to here.
16547
16548 2011-05-21  Bruno Haible  <bruno@clisp.org>
16549
16550         asinl: Respect rules for use of AC_LIBOBJ.
16551         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
16552         * modules/asinl (configure.ac): ... to here.
16553
16554 2011-05-21  Bruno Haible  <bruno@clisp.org>
16555
16556         tanl: Move AC_LIBOBJ invocations to module description.
16557         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
16558         * modules/tanl (configure.ac): ... to here.
16559
16560 2011-05-21  Bruno Haible  <bruno@clisp.org>
16561
16562         cosl: Move AC_LIBOBJ invocations to module description.
16563         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
16564         * modules/cosl (configure.ac): ... to here.
16565
16566 2011-05-21  Bruno Haible  <bruno@clisp.org>
16567
16568         sinl: Move AC_LIBOBJ invocations to module description.
16569         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
16570         * modules/sinl (configure.ac): ... to here.
16571
16572 2011-05-21  Bruno Haible  <bruno@clisp.org>
16573
16574         logl: Move AC_LIBOBJ invocations to module description.
16575         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
16576         * modules/logl (configure.ac): ... to here.
16577
16578 2011-05-21  Bruno Haible  <bruno@clisp.org>
16579
16580         expl: Move AC_LIBOBJ invocations to module description.
16581         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
16582         * modules/expl (configure.ac): ... to here.
16583
16584 2011-05-21  Bruno Haible  <bruno@clisp.org>
16585
16586         roundl: Move AC_LIBOBJ invocations to module description.
16587         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
16588         * modules/roundl (configure.ac): ... to here.
16589
16590 2011-05-21  Bruno Haible  <bruno@clisp.org>
16591
16592         round: Move AC_LIBOBJ invocations to module description.
16593         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
16594         * modules/round (configure.ac): ... to here.
16595
16596 2011-05-21  Bruno Haible  <bruno@clisp.org>
16597
16598         roundf: Move AC_LIBOBJ invocations to module description.
16599         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
16600         * modules/roundf (configure.ac): ... to here.
16601
16602 2011-05-21  Bruno Haible  <bruno@clisp.org>
16603
16604         truncl: Move AC_LIBOBJ invocations to module description.
16605         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
16606         * modules/truncl (configure.ac): ... to here.
16607
16608 2011-05-21  Bruno Haible  <bruno@clisp.org>
16609
16610         trunc: Move AC_LIBOBJ invocations to module description.
16611         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
16612         * modules/trunc (configure.ac): ... to here.
16613
16614 2011-05-21  Bruno Haible  <bruno@clisp.org>
16615
16616         truncf: Move AC_LIBOBJ invocations to module description.
16617         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
16618         * modules/truncf (configure.ac): ... to here.
16619
16620 2011-05-21  Bruno Haible  <bruno@clisp.org>
16621
16622         ceill: Move AC_LIBOBJ invocations to module description.
16623         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
16624         * modules/ceill (configure.ac): ... to here.
16625
16626 2011-05-21  Bruno Haible  <bruno@clisp.org>
16627
16628         ceil: Move AC_LIBOBJ invocations to module description.
16629         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
16630         * modules/ceil (configure.ac): ... to here.
16631
16632 2011-05-21  Bruno Haible  <bruno@clisp.org>
16633
16634         ceilf: Move AC_LIBOBJ invocations to module description.
16635         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
16636         * modules/ceilf (configure.ac): ... to here.
16637
16638 2011-05-21  Bruno Haible  <bruno@clisp.org>
16639
16640         floorl: Respect rules for use of AC_LIBOBJ.
16641         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
16642         * modules/floorl (configure.ac): ... to here.
16643
16644 2011-05-21  Bruno Haible  <bruno@clisp.org>
16645
16646         floor: Respect rules for use of AC_LIBOBJ.
16647         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
16648         * modules/floor (configure.ac): ... to here.
16649
16650 2011-05-21  Bruno Haible  <bruno@clisp.org>
16651
16652         floorf: Move AC_LIBOBJ invocations to module description.
16653         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
16654         * modules/floorf (configure.ac): ... to here.
16655
16656 2011-05-20  Bruno Haible  <bruno@clisp.org>
16657
16658         sqrtl: Respect rules for use of AC_LIBOBJ.
16659         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
16660         * modules/sqrtl (configure.ac): ... to here.
16661
16662 2011-05-20  Bruno Haible  <bruno@clisp.org>
16663
16664         ldexpl: Respect rules for use of AC_LIBOBJ.
16665         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
16666         * modules/ldexpl (configure.ac): ... to here.
16667
16668 2011-05-20  Bruno Haible  <bruno@clisp.org>
16669
16670         frexpl*: Respect rules for use of AC_LIBOBJ.
16671         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
16672         invocation from here...
16673         * modules/frexpl (configure.ac): ... to here.
16674         * modules/frexpl-nolibm (configure.ac): ... and here.
16675
16676 2011-05-20  Bruno Haible  <bruno@clisp.org>
16677
16678         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
16679         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
16680         invocation from here...
16681         * modules/frexp (configure.ac): ... to here.
16682         * modules/frexp-nolibm (configure.ac): ... and here.
16683
16684 2011-05-20  Bruno Haible  <bruno@clisp.org>
16685
16686         isnan: Respect rules for use of AC_LIBOBJ.
16687         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
16688         invocations here.
16689         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
16690         REPLACE_ISNAN.
16691         * modules/isnand (configure.ac): Likewise.
16692         * modules/isnanl (configure.ac): Likewise.
16693
16694 2011-05-20  Bruno Haible  <bruno@clisp.org>
16695
16696         isnanl*: Respect rules for use of AC_LIBOBJ.
16697         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
16698         invocation from here...
16699         * modules/isnanl (configure.ac): ... to here.
16700         * modules/isnanl-nolibm (configure.ac): ... and here.
16701
16702 2011-05-20  Bruno Haible  <bruno@clisp.org>
16703
16704         isnand*: Move AC_LIBOBJ invocations to module description.
16705         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
16706         invocation from here...
16707         * modules/isnand (configure.ac): ... to here.
16708         * modules/isnand-nolibm (configure.ac): ... and here.
16709
16710 2011-05-20  Bruno Haible  <bruno@clisp.org>
16711
16712         isnanf*: Move AC_LIBOBJ invocations to module description.
16713         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
16714         invocation from here...
16715         * modules/isnanf (configure.ac): ... to here.
16716         * modules/isnanf-nolibm (configure.ac): ... and here.
16717
16718 2011-05-20  Bruno Haible  <bruno@clisp.org>
16719
16720         isnan*: Separate the AC_LIBOBJ invocations.
16721         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
16722         AC_LIBOBJ invocation.
16723         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
16724         here.
16725         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
16726         AC_LIBOBJ invocation.
16727         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
16728         here.
16729         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
16730         AC_LIBOBJ invocation.
16731         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
16732         here.
16733         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
16734
16735 2011-05-08  Bruno Haible  <bruno@clisp.org>
16736
16737         isinf: Move AC_LIBOBJ invocations to module description.
16738         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
16739         * modules/isinf (configure.ac): ... to here.
16740
16741 2011-05-08  Bruno Haible  <bruno@clisp.org>
16742
16743         isfinite: Move AC_LIBOBJ invocations to module description.
16744         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
16745         * modules/isfinite (configure.ac): ... to here.
16746
16747 2011-05-08  Bruno Haible  <bruno@clisp.org>
16748
16749         isblank: Move AC_LIBOBJ invocations to module description.
16750         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
16751         here...
16752         * modules/isblank (configure.ac): ... to here.
16753
16754 2011-05-08  Bruno Haible  <bruno@clisp.org>
16755
16756         isapipe: Move AC_LIBOBJ invocations to module description.
16757         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
16758         gl_PREREQ_ISAPIPE invocations from here...
16759         * modules/isapipe (configure.ac): ... to here.
16760         (Depends-on): Update condition.
16761
16762 2011-05-08  Bruno Haible  <bruno@clisp.org>
16763
16764         ioctl: Move AC_LIBOBJ invocations to module description.
16765         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
16766         invocations from here...
16767         * modules/ioctl (configure.ac): ... to here.
16768         (Depends-on): Update condition.
16769
16770 2011-05-08  Bruno Haible  <bruno@clisp.org>
16771
16772         imaxdiv: Move AC_LIBOBJ invocations to module description.
16773         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
16774         invocations from here...
16775         * modules/imaxdiv (configure.ac): ... to here.
16776
16777 2011-05-08  Bruno Haible  <bruno@clisp.org>
16778
16779         imaxabs: Move AC_LIBOBJ invocations to module description.
16780         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
16781         invocations from here...
16782         * modules/imaxabs (configure.ac): ... to here.
16783
16784 2011-05-08  Bruno Haible  <bruno@clisp.org>
16785
16786         getaddrinfo: Move AC_LIBOBJ invocations to module description.
16787         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
16788         AC_LIBOBJ invocations from here...
16789         * modules/getaddrinfo (configure.ac): ... to here.
16790         (Depends-on): Add conditions.
16791
16792 2011-05-08  Bruno Haible  <bruno@clisp.org>
16793
16794         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16795         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
16796         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16797         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
16798         (gl_PREREQ_INET_PTON): ... from here.
16799         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
16800         gl_PREREQ_INET_PTON here.
16801         (Depends-on): Update condition.
16802
16803 2011-05-08  Bruno Haible  <bruno@clisp.org>
16804
16805         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16806         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
16807         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16808         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
16809         (gl_PREREQ_INET_NTOP): ... from here.
16810         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
16811         gl_PREREQ_INET_NTOP here.
16812         (Depends-on): Update condition.
16813
16814 2011-05-08  Bruno Haible  <bruno@clisp.org>
16815
16816         iconv_open: Move AC_LIBOBJ invocations to module description.
16817         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
16818         AC_LIBOBJ invocations from here...
16819         * modules/iconv_open (configure.ac): ... to here.
16820
16821 2011-05-08  Bruno Haible  <bruno@clisp.org>
16822
16823         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
16824         If module 'iconv_open' is among the main modules and module
16825         'iconv_open-utf' is among the tests dependencies, then
16826         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
16827         return the special iconv_t values. Therefore iconv() and iconv_close()
16828         must support these special iconv_t values, already in lib, not only in
16829         tests.
16830         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
16831         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
16832         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
16833         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
16834         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
16835         (Depends-on): Add the dependencies of iconv_open-utf.
16836         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
16837         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
16838         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
16839
16840 2011-05-08  Bruno Haible  <bruno@clisp.org>
16841
16842         group-member: Move AC_LIBOBJ invocations to module description.
16843         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
16844         gl_PREREQ_GROUP_MEMBER invocations from here...
16845         * modules/group-member (configure.ac): ... to here.
16846
16847 2011-05-08  Bruno Haible  <bruno@clisp.org>
16848
16849         grantpt: Move AC_LIBOBJ invocations to module description.
16850         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
16851         invocations from here...
16852         * modules/grantpt (configure.ac): ... to here.
16853
16854 2011-05-08  Bruno Haible  <bruno@clisp.org>
16855
16856         glob: Move AC_LIBOBJ invocations to module description.
16857         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
16858         from here...
16859         * modules/glob (configure.ac): ... to here.
16860
16861 2011-05-08  Bruno Haible  <bruno@clisp.org>
16862
16863         getusershell: Move AC_LIBOBJ invocations to module description.
16864         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
16865         Move AC_LIBOBJ invocation from here...
16866         * modules/getusershell (configure.ac): ... to here.
16867         (Depends-on): Update condition.
16868
16869 2011-05-08  Bruno Haible  <bruno@clisp.org>
16870
16871         gettimeofday: Move AC_LIBOBJ invocations to module description.
16872         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16873         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
16874         gl_PREREQ_GETTIMEOFDAY invocations from here...
16875         * modules/gettimeofday (configure.ac): ... to here.
16876
16877 2011-05-08  Bruno Haible  <bruno@clisp.org>
16878
16879         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
16880         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
16881         just gl_FUNC_TZSET.
16882         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
16883         (gl_FUNC_TZSET_CLOBBER): Remove actions.
16884         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
16885         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
16886
16887 2011-05-08  Bruno Haible  <bruno@clisp.org>
16888
16889         getsubopt: Move AC_LIBOBJ invocations to module description.
16890         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
16891         gl_PREREQ_GETSUBOPT invocations from here...
16892         * modules/getsubopt (configure.ac): ... to here.
16893
16894 2011-05-08  Bruno Haible  <bruno@clisp.org>
16895
16896         getpass-gnu: Move AC_LIBOBJ invocations to module description.
16897         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
16898         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
16899         * modules/getpass-gnu (configure.ac): ... to here.
16900
16901 2011-05-08  Bruno Haible  <bruno@clisp.org>
16902
16903         getpass: Move AC_LIBOBJ invocations to module description.
16904         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
16905         gl_PREREQ_GETPASS invocations from here...
16906         * modules/getpass (configure.ac): ... to here.
16907
16908 2011-05-08  Bruno Haible  <bruno@clisp.org>
16909
16910         getpagesize: Move AC_LIBOBJ invocations to module description.
16911         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
16912         from here...
16913         * modules/getpagesize (configure.ac): ... to here.
16914
16915 2011-05-08  Bruno Haible  <bruno@clisp.org>
16916
16917         getopt: Move AC_LIBOBJ invocations to module description.
16918         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
16919         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
16920         invocations from here...
16921         * modules/getopt-gnu (configure.ac): ... to here.
16922         * modules/getopt-posix (configure.ac): ... and here.
16923         (Depends-on): Update condition.
16924
16925 2011-05-08  Bruno Haible  <bruno@clisp.org>
16926
16927         getopt, argp: Respect rules for use of AC_LIBOBJ.
16928         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
16929         (gl_REPLACE_GETOPT_ALWAYS): New macro.
16930         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
16931         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
16932
16933 2011-05-08  Bruno Haible  <bruno@clisp.org>
16934
16935         getlogin_r: Move AC_LIBOBJ invocations to module description.
16936         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
16937         gl_PREREQ_GETLOGIN_R invocations from here...
16938         * modules/getlogin_r (configure.ac): ... to here.
16939
16940 2011-05-08  Bruno Haible  <bruno@clisp.org>
16941
16942         getlogin: Move AC_LIBOBJ invocations to module description.
16943         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
16944         here...
16945         * modules/getlogin (configure.ac): ... to here.
16946
16947 2011-05-08  Bruno Haible  <bruno@clisp.org>
16948
16949         getloadavg: Move AC_LIBOBJ invocations to module description.
16950         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
16951         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
16952         * modules/getloadavg (configure.ac): ... to here.
16953
16954 2011-05-08  Bruno Haible  <bruno@clisp.org>
16955
16956         gethrxtime: Move AC_LIBOBJ invocations to module description.
16957         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
16958         LIB_GETHRXTIME from here...
16959         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
16960         invocations from here...
16961         * modules/gethrxtime (configure.ac): ... to here.
16962
16963 2011-05-08  Bruno Haible  <bruno@clisp.org>
16964
16965         gethostname: Move AC_LIBOBJ invocations to module description.
16966         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
16967         gl_PREREQ_GETHOSTNAME invocations from here...
16968         * modules/gethostname (configure.ac): ... to here.
16969
16970 2011-05-08  Bruno Haible  <bruno@clisp.org>
16971
16972         getgroups: Move AC_LIBOBJ invocations to module description.
16973         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
16974         here...
16975         * modules/getgroups (configure.ac): ... to here.
16976
16977 2011-05-08  Bruno Haible  <bruno@clisp.org>
16978
16979         getdtablesize: Move AC_LIBOBJ invocations to module description.
16980         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
16981         invocation from here...
16982         * modules/getdtablesize (configure.ac): ... to here.
16983
16984 2011-05-08  Bruno Haible  <bruno@clisp.org>
16985
16986         getdomainname: Move AC_LIBOBJ invocations to module description.
16987         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
16988         gl_PREREQ_GETDOMAINNAME invocations from here...
16989         * modules/getdomainname (configure.ac): ... to here.
16990
16991 2011-05-08  Bruno Haible  <bruno@clisp.org>
16992
16993         getline: Move AC_LIBOBJ invocations to module description.
16994         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
16995         invocations from here...
16996         * modules/getline (configure.ac): ... to here.
16997
16998 2011-05-08  Bruno Haible  <bruno@clisp.org>
16999
17000         getline: Simplify.
17001         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17002         It's already handled through the module dependency.
17003
17004 2011-05-08  Bruno Haible  <bruno@clisp.org>
17005
17006         getdelim: Move AC_LIBOBJ invocations to module description.
17007         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17008         and gl_PREREQ_GETDELIM invocations from here...
17009         * modules/getdelim (configure.ac): ... to here.
17010         (Depends-on): Fix condition.
17011
17012 2011-05-08  Bruno Haible  <bruno@clisp.org>
17013
17014         getcwd: Move AC_LIBOBJ invocations to module description.
17015         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17016         invocations from here...
17017         * modules/getcwd (configure.ac): ... to here.
17018
17019 2011-05-08  Bruno Haible  <bruno@clisp.org>
17020
17021         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17022         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17023         here...
17024         * modules/getcwd-lgpl (configure.ac): ... to here.
17025
17026 2011-05-07  Bruno Haible  <bruno@clisp.org>
17027
17028         crypto/gc: Move AC_LIBOBJ invocations to module description.
17029         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17030         * modules/crypto/gc (configure.ac): ... to here.
17031
17032 2011-05-07  Bruno Haible  <bruno@clisp.org>
17033
17034         fwriting: Move AC_LIBOBJ invocations to module description.
17035         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17036         here...
17037         * modules/fwriting (configure.ac): ... to here.
17038
17039 2011-05-07  Bruno Haible  <bruno@clisp.org>
17040
17041         fwritable: Move AC_LIBOBJ invocations to module description.
17042         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17043         here...
17044         * modules/fwritable (configure.ac): ... to here.
17045
17046 2011-05-07  Bruno Haible  <bruno@clisp.org>
17047
17048         futimens: Move AC_LIBOBJ invocations to module description.
17049         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17050         here...
17051         * modules/futimens (configure.ac): ... to here.
17052
17053 2011-05-07  Bruno Haible  <bruno@clisp.org>
17054
17055         ftruncate: Move AC_LIBOBJ invocations to module description.
17056         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17057         gl_PREREQ_FTRUNCATE invocations from here...
17058         * modules/ftruncate (configure.ac): ... to here.
17059
17060 2011-05-07  Bruno Haible  <bruno@clisp.org>
17061
17062         fsync: Move AC_LIBOBJ invocations to module description.
17063         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17064         invocations from here...
17065         * modules/fsync (configure.ac): ... to here.
17066
17067 2011-05-07  Bruno Haible  <bruno@clisp.org>
17068
17069         fsusage: Move AC_LIBOBJ invocations to module description.
17070         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17071         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17072         * modules/fsusage (configure.ac): ... to here.
17073
17074 2011-05-07  Bruno Haible  <bruno@clisp.org>
17075
17076         freopen: Move AC_LIBOBJ invocations to module description.
17077         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17078         invocations from here...
17079         * modules/freopen (configure.ac): ... to here.
17080
17081 2011-05-07  Bruno Haible  <bruno@clisp.org>
17082
17083         free: Move AC_LIBOBJ invocations to module description.
17084         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17085         invocations from here...
17086         * modules/free (configure.ac): ... to here.
17087
17088 2011-05-07  Bruno Haible  <bruno@clisp.org>
17089
17090         freadable: Move AC_LIBOBJ invocations to module description.
17091         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17092         here...
17093         * modules/freadable (configure.ac): ... to here.
17094
17095 2011-05-07  Bruno Haible  <bruno@clisp.org>
17096
17097         fpurge: Move AC_LIBOBJ invocations to module description.
17098         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17099         invocations from here...
17100         * modules/fpurge (configure.ac): ... to here.
17101
17102 2011-05-07  Bruno Haible  <bruno@clisp.org>
17103
17104         fpending: Move AC_LIBOBJ invocations to module description.
17105         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17106         gl_FUNC_FPENDING.
17107         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17108         invocations from here...
17109         * modules/fpending (configure.ac): ... to here.
17110
17111 2011-05-07  Bruno Haible  <bruno@clisp.org>
17112
17113         fopen: Move AC_LIBOBJ invocations to module description.
17114         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17115         invocations from here...
17116         * modules/fopen (configure.ac): ... to here.
17117
17118 2011-05-07  Bruno Haible  <bruno@clisp.org>
17119
17120         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17121         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17122         gl_FUNC_FNMATCH_POSIX.
17123         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17124         invocations from here...
17125         * modules/fnmatch (configure.ac): ... to here.
17126         * modules/fnmatch-gnu (configure.ac): ... and here.
17127
17128 2011-05-07  Bruno Haible  <bruno@clisp.org>
17129
17130         flock: Move AC_LIBOBJ invocations to module description.
17131         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17132         invocations from here...
17133         * modules/flock (configure.ac): ... to here.
17134
17135 2011-05-07  Bruno Haible  <bruno@clisp.org>
17136
17137         fileblocks: Move AC_LIBOBJ invocations to module description.
17138         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17139         gl_PREREQ_FILEBLOCKS invocations from here...
17140         * modules/fileblocks (configure.ac): ... to here.
17141
17142 2011-05-06  Bruno Haible  <bruno@clisp.org>
17143
17144         fflush: Move AC_LIBOBJ invocations to module description.
17145         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17146         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17147         invocations from here...
17148         * modules/fflush (configure.ac): ... to here.
17149
17150 2011-05-06  Bruno Haible  <bruno@clisp.org>
17151
17152         fdopendir: Move AC_LIBOBJ invocations to module description.
17153         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17154         here...
17155         * modules/fdopendir (configure.ac): ... to here.
17156         (Depends-on): Improve conditions.
17157
17158 2011-05-06  Bruno Haible  <bruno@clisp.org>
17159
17160         _Exit: Move AC_LIBOBJ invocations to module description.
17161         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17162         invocations from here...
17163         * modules/_Exit (configure.ac): ... to here.
17164
17165 2011-05-21  Bruno Haible  <bruno@clisp.org>
17166
17167         euidaccess: Respect rules for use of AC_LIBOBJ.
17168         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17169         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17170         from here...
17171         * modules/euidaccess (configure.ac): ... to here.
17172
17173 2011-05-06  Bruno Haible  <bruno@clisp.org>
17174
17175         error: Move AC_LIBOBJ invocations to module description.
17176         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17177         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17178         invocations from here...
17179         * modules/error (configure.ac): ... to here.
17180
17181 2011-05-06  Bruno Haible  <bruno@clisp.org>
17182
17183         duplocale: Move AC_LIBOBJ invocations to module description.
17184         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17185         gl_PREREQ_DUPLOCALE invocations from here...
17186         * modules/duplocale (configure.ac): ... to here.
17187
17188 2011-05-05  Bruno Haible  <bruno@clisp.org>
17189
17190         dirfd: Move AC_LIBOBJ invocations to module description.
17191         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17192         gl_FUNC_DIRFD.
17193         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17194         here...
17195         * modules/dirfd (configure.ac): ... to here.
17196         (Depends-on): Fix condition.
17197
17198 2011-05-05  Bruno Haible  <bruno@clisp.org>
17199
17200         chown: Respect rules for use of AC_LIBOBJ.
17201         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17202         * modules/chown (configure.ac): ... to here.
17203
17204 2011-05-05  Bruno Haible  <bruno@clisp.org>
17205
17206         chdir-long: Move AC_LIBOBJ invocations to module description.
17207         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17208         gl_PREREQ_CHDIR_LONG invocations from here...
17209         * modules/chdir-long (configure.ac): ... to here.
17210
17211 2011-05-05  Bruno Haible  <bruno@clisp.org>
17212
17213         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17214         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17215         from here...
17216         * modules/canonicalize-lgpl (configure.ac): ... to here.
17217
17218 2011-05-05  Bruno Haible  <bruno@clisp.org>
17219
17220         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17221         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17222         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17223         REPLACE_CALLOC.
17224         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17225         * modules/calloc-gnu (configure.ac): Likewise.
17226
17227 2011-05-05  Bruno Haible  <bruno@clisp.org>
17228
17229         btowc: Move AC_LIBOBJ invocations to module description.
17230         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17231         invocations from here...
17232         * modules/btowc (configure.ac): ... to here.
17233
17234 2011-05-21  Bruno Haible  <bruno@clisp.org>
17235
17236         atexit: Move AC_LIBOBJ invocations to module description.
17237         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17238         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17239         here...
17240         * modules/atexit (configure.ac): ... to here.
17241
17242 2011-05-05  Bruno Haible  <bruno@clisp.org>
17243
17244         atoll: Move AC_LIBOBJ invocations to module description.
17245         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17246         invocations from here...
17247         * modules/atoll (configure.ac): ... to here.
17248
17249 2011-05-05  Bruno Haible  <bruno@clisp.org>
17250
17251         argz: Move AC_LIBOBJ invocations to module description.
17252         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17253         * modules/argz (configure.ac): ... to here.
17254
17255 2011-05-05  Bruno Haible  <bruno@clisp.org>
17256
17257         alphasort: Move AC_LIBOBJ invocations to module description.
17258         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17259         gl_PREREQ_ALPHASORT invocations from here...
17260         * modules/alphasort (configure.ac): ... to here.
17261
17262 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17263
17264         verify: new macro verify_expr; verify_true deprecated
17265         * NEWS: Mention this.
17266         * doc/verify.texi (Compile-time Assertions): Document this.
17267         * lib/verify.h (verify_true): Deprecate.
17268         (verify_expr): New macro.
17269         * tests/test-verify.c (function): Test verify_expr.
17270
17271 2011-06-14  Jim Meyering  <meyering@redhat.com>
17272
17273         init.sh: give more portable redirection-related advice in a comment
17274         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17275         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17276         for lots of discussion.  Stefano Lattarini suggested the solution
17277         of putting "9>&2" after the command.  Reported by Bruno Haible.
17278
17279 2011-06-13  Bruno Haible  <bruno@clisp.org>
17280
17281         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17282         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17283         'none'.
17284
17285 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17286
17287         ftoastr: use strtof only if HAVE_STRTOF
17288         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17290         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17291         * modules/ftoastr (configure.ac): Check for strtof.
17292
17293 2011-06-13  Bruno Haible  <bruno@clisp.org>
17294
17295         gnulib-tool: Addendum to 2011-06-08 commit.
17296         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17297         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17298
17299 2011-06-13  Bruno Haible  <bruno@clisp.org>
17300
17301         fseeko: Provide a non-inline replacement of fseek().
17302         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17303         * modules/fseeko (Depends-on): Add fseek.
17304         * modules/fseek (License): Change to LGPLv2+.
17305
17306 2011-06-13  Bruno Haible  <bruno@clisp.org>
17307
17308         ftello: Provide a non-inline replacement of ftell().
17309         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17310         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17311         not have ftello() (such as on mingw).
17312         * modules/ftello (Depends-on): Add ftell.
17313         * modules/ftell (License): Change to LGPLv2+.
17314
17315 2011-05-07  Bruno Haible  <bruno@clisp.org>
17316
17317         ftell: Move AC_LIBOBJ invocations to module description.
17318         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17319         * modules/ftell (configure.ac): ... to here.
17320
17321 2011-05-07  Bruno Haible  <bruno@clisp.org>
17322
17323         ftello: Respect rules for use of AC_LIBOBJ.
17324         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17325         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17326         here...
17327         * modules/ftello (configure.ac): ... to here.
17328
17329 2011-05-07  Bruno Haible  <bruno@clisp.org>
17330
17331         fseeko: Simplify.
17332         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17333         (gl_FUNC_FSEEKO): Inline it here.
17334
17335 2011-05-07  Bruno Haible  <bruno@clisp.org>
17336
17337         fseek: Move AC_LIBOBJ invocations to module description.
17338         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17339         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17340         * modules/fseek (configure.ac): ... to here.
17341
17342 2011-05-07  Bruno Haible  <bruno@clisp.org>
17343
17344         fseek: Respect rules for use of AC_LIBOBJ.
17345         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17346         here...
17347         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17348
17349 2011-05-07  Bruno Haible  <bruno@clisp.org>
17350
17351         fseeko: Respect rules for use of AC_LIBOBJ.
17352         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17353         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17354         here...
17355         * modules/fseeko (configure.ac): ... to here.
17356
17357 2011-06-13  Bruno Haible  <bruno@clisp.org>
17358
17359         gnulib-tool: Allow comments in the 'Depends-on' section.
17360         * doc/gnulib.texi (Module description): Mention comment syntax in the
17361         Depends-on section.
17362         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17363
17364 2011-06-13  Bruno Haible  <bruno@clisp.org>
17365
17366         file-set.h: guard __attibute__ use, now that it's not always defined
17367         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17368         versions that support it.  This fixes a coreutils build failure with
17369         the vendor cc on HP-UX 11.31.
17370
17371 2011-06-12  Bruno Haible  <bruno@clisp.org>
17372
17373         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17374         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17375         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17376         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17377         (acl, aclsort): New declarations.
17378         (aclv_nontrivial): New declaration.
17379         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17380         (file_has_acl): Read also the second kind of HP-UX ACLs.
17381         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17382         kind of HP-UX ACLs if the first kind fails.
17383         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17384         second kind of HP-UX ACLs.
17385         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17386         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17387         agree.
17388         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17389         hpuxjfs.
17390         Handle hpuxjfs.
17391         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17392         hpuxjfs.
17393         Handle hpuxjfs.
17394         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17395         (func_test_same_acls): Use both lsacl and getacl.
17396         Handle hpuxjfs.
17397         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17398         (func_test_same_acls): Use both lsacl and getacl.
17399         Handle hpuxjfs.
17400
17401 2011-06-12  Bruno Haible  <bruno@clisp.org>
17402
17403         acl: Complete the 2010-08-10 fix.
17404         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17405         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17406         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17407         explicitly.
17408         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17409         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17410
17411 2011-06-12  Bruno Haible  <bruno@clisp.org>
17412
17413         spawn-pipe tests: Comments.
17414         * tests/test-spawn-pipe-child.c (main): Update comment.
17415         Reported by James Youngman <jay@gnu.org>.
17416
17417 2011-06-11  James Youngman  <jay@gnu.org>
17418
17419         New module 'stat-size'.
17420         * modules/stat-size: New module.  Provides macros for accessing
17421         file size information in instances of struct stat.  Depends on the
17422         fileblocks module because it calls st_blocks.
17423         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17424         * doc/gnulib.texi: Include stat-size.texi.
17425         * doc/stat-size.texi: Documentation for this module.
17426         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17427         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17428         AC_STRUCT_ST_BLOCKS.
17429
17430 2011-06-09  Bruno Haible  <bruno@clisp.org>
17431
17432         thread: Support pthreads-win32.
17433         * lib/glthread/thread.h (gl_thread_self): Define differently on
17434         pthreads-win32.
17435         (gl_null_thread): New declaration.
17436         (gl_thread_self_pointer): New macro.
17437         * lib/glthread/thread.c (gl_null_thread): New constant.
17438         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17439         gl_thread_self.
17440         * tests/test-tls.c: Likewise.
17441         Suggested by Paul Eggert. Reported by Eric Blake.
17442
17443 2011-06-09  Bruno Haible  <bruno@clisp.org>
17444
17445         thread: Fix confusion between NULL and 0.
17446         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17447         Reported by Paul Eggert.
17448
17449 2011-06-09  Bruno Haible  <bruno@clisp.org>
17450
17451         spawn-pipe tests: Avoid test failure on HP-UX 11.
17452         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17453         is closed.
17454
17455 2011-06-09  Bruno Haible  <bruno@clisp.org>
17456
17457         acl tests: Fix compilation error on HP-UX 11.
17458         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17459
17460 2011-06-09  Bruno Haible  <bruno@clisp.org>
17461
17462         rmdir: Avoid test failure on HP-UX 10.20.
17463         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17464         EEXIST.
17465
17466 2011-06-08  Eric Blake  <eblake@redhat.com>
17467
17468         perror: fix test on mingw
17469         * modules/perror-tests (Depends-on): Add dup2.
17470
17471         strerror_r-posix: fix on MacOS
17472         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17473         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17474         logic bug.
17475         * lib/strerror_r.c (strerror_r): Fix the bug.
17476         * lib/strerror.c (strerror): Likewise.
17477         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17478         problem.
17479         * doc/posix-functions/strerror.texi (strerror): Likewise.
17480         * doc/posix-functions/perror.texi (perror): Likewise.
17481         * tests/test-strerror.c (main): Enhance test.
17482         * tests/test-strerror_r.c (main): Likewise.
17483
17484 2011-06-08  Bruno Haible  <bruno@clisp.org>
17485
17486         gnulib-tool: Better isolation between different gnulib-tool invocations.
17487         * gnulib-tool: New option --witness-c-macro.
17488         (witness_c_macro): New variable.
17489         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17490         AM_CPPFLAGS define it as a C macro.
17491         (func_emit_tests_Makefile_am): Likewise.
17492         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17493         read it from there.
17494         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17495         m4_define, not AC_DEFUN.
17496         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17497         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17498         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17499         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17500         s|...|...|, to substitute the values of the GNULIB_* module indicator
17501         variables.
17502         * modules/dirent (Makefile.am): Likewise.
17503         * modules/fcntl-h (Makefile.am): Likewise.
17504         * modules/iconv-h (Makefile.am): Likewise.
17505         * modules/langinfo (Makefile.am): Likewise.
17506         * modules/locale (Makefile.am): Likewise.
17507         * modules/math (Makefile.am): Likewise.
17508         * modules/netdb (Makefile.am): Likewise.
17509         * modules/poll-h (Makefile.am): Likewise.
17510         * modules/pty (Makefile.am): Likewise.
17511         * modules/search (Makefile.am): Likewise.
17512         * modules/signal (Makefile.am): Likewise.
17513         * modules/spawn (Makefile.am): Likewise.
17514         * modules/stdio (Makefile.am): Likewise.
17515         * modules/stdlib (Makefile.am): Likewise.
17516         * modules/string (Makefile.am): Likewise.
17517         * modules/sys_ioctl (Makefile.am): Likewise.
17518         * modules/sys_select (Makefile.am): Likewise.
17519         * modules/sys_socket (Makefile.am): Likewise.
17520         * modules/sys_stat (Makefile.am): Likewise.
17521         * modules/sys_times (Makefile.am): Likewise.
17522         * modules/sys_utsname (Makefile.am): Likewise.
17523         * modules/sys_wait (Makefile.am): Likewise.
17524         * modules/termios (Makefile.am): Likewise.
17525         * modules/time (Makefile.am): Likewise.
17526         * modules/unistd (Makefile.am): Likewise.
17527         * modules/wchar (Makefile.am): Likewise.
17528
17529 2011-06-08  Eric Blake  <eblake@redhat.com>
17530
17531         strerror: simplify replacement
17532         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
17533         * modules/strerror (configure.ac): No prereqs needed here...
17534         * modules/strerror-override (configure.ac): ...but this needs it.
17535         (Files): Add file for needed prereq macro.
17536
17537 2011-06-08  Bruno Haible  <bruno@clisp.org>
17538
17539         strerror_r-posix: Tweaks.
17540         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
17541         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
17542         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
17543         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
17544         (gl_FUNC_STRERROR_R): ... to here.
17545         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
17546
17547 2011-06-07  Eric Blake  <eblake@redhat.com>
17548
17549         perror: document fixed bugs
17550         * doc/posix-functions/perror.texi (perror): Document recent
17551         patches.
17552
17553 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17554
17555         stat-time: get_stat_birthtime failure is better-defined
17556         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
17557         return a timestamp whose tv_sec and tv_nsec values are both -1.
17558         Previously, the spec said only that the tv_nsec value was negative.
17559         This upward-compatible change simplifies GNU tar a bit.
17560
17561 2011-06-07  Eric Blake  <eblake@redhat.com>
17562
17563         strerror_r-posix: work around cygwin 1.7.9
17564         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
17565         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
17566         bug without replacing strerror_r.
17567         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
17568         strerror_r is buggy, but without requiring strerror_r compilation.
17569         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
17570
17571         test-perror: relax test to ignore cygwin bug
17572         * tests/test-perror2.c (main): Relax test on requiring detection
17573         of stream errors, and use unbuffered stream.
17574         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
17575         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17576         * doc/posix-functions/fputc.texi (fputc): Likewise.
17577         * doc/posix-functions/fputs.texi (fputs): Likewise.
17578         * doc/posix-functions/fputws.texi (fputws): Likewise.
17579         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17580         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
17581         * doc/posix-functions/getopt.texi (getopt): Likewise.
17582         * doc/posix-functions/perror.texi (perror): Likewise.
17583         * doc/posix-functions/printf.texi (printf): Likewise.
17584         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
17585         * doc/posix-functions/psignal.texi (psignal): Likewise.
17586         * doc/posix-functions/putc.texi (putc): Likewise.
17587         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
17588         Likewise.
17589         * doc/posix-functions/putchar.texi (putchar): Likewise.
17590         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
17591         Likewise.
17592         * doc/posix-functions/puts.texi (puts): Likewise.
17593         * doc/posix-functions/putwc.texi (putwc): Likewise.
17594         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17595         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17596         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17597         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17598         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17599         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17600         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17601         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17602
17603 2011-05-22  Bruno Haible  <bruno@clisp.org>
17604
17605         strerror: Move AC_LIBOBJ invocations to module description.
17606         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
17607         gl_PREREQ_STRERROR invocations from here...
17608         * modules/strerror (configure.ac): ... to here.
17609
17610 2011-05-21  Bruno Haible  <bruno@clisp.org>
17611
17612         perror: Use common idiom.
17613         * modules/perror (configure.ac): Reorder statements.
17614
17615 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17616
17617         tests: fix usage message in 'mktempd_'
17618         * tests/init.sh (mktempd_): In the usage message, use literal
17619         'mktempd_', not '$ME' (which is even undefined), as the name of
17620         the subroutine.
17621
17622 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17623
17624         tests init: new function 'fatal_', for hard errors
17625         Before this patch, the only way offered by tests/init.sh to
17626         properly signal a hard error was the `framework_failure_'
17627         function.  But the error message issued by that function,
17628         as its name would suggest, refers to a set-up failure in the
17629         testsuite, while hard errors can obviously also be due to
17630         other reasons.  The best way to fix this inconsistency is to
17631         introduce a new function with a more general error message.
17632         * tests/init.sh (fatal_): New function.
17633
17634 2011-06-06  Eric Blake  <eblake@redhat.com>
17635
17636         canonicalize-lgpl: use common idiom
17637         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
17638         over newer POSIX -Rf.
17639         Reported by Bruno Haible.
17640
17641         canonicalize-lgpl: work around AIX realpath bug
17642         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
17643         * doc/posix-functions/realpath.texi (realpath): Document it.
17644         Reported by Bruno Haible.
17645
17646         strerror: work around FreeBSD bug
17647         * lib/strerror.c (strerror): Special case 0.
17648         Reported by Bruno Haible.
17649
17650         strerror-override: avoid bloating errno module
17651         * modules/errno (Files, configure.ac): Move replacement strings...
17652         * modules/strerror-override: ...to new module.
17653         * modules/strerror (Depends-on): Add strerror-override.
17654         * modules/strerror_r-posix (Depends-on): Likewise.
17655         * MODULES.html.sh: Document new module.
17656         Reported by Bruno Haible.
17657
17658 2011-06-06  Bruno Haible  <bruno@clisp.org>
17659
17660         spawn-pipe tests: Rename program.
17661         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
17662         * tests/test-spawn-pipe-child.c: Update comment.
17663         * tests/test-spawn-pipe.sh: Update.
17664         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
17665
17666         spawn-pipe tests: Link the child program only against libc.
17667         * tests/test-spawn-pipe-child.c: New file, extracted from
17668         tests/test-spawn-pipe.c.
17669         (main): Expect only one argument.
17670         (is_open): New function, copied from tests/test-pipe.c.
17671         * tests/test-spawn-pipe.c: Don't include <errno.h>.
17672         (child_main): Remove function.
17673         (test_pipe): Pass only one argument to the child program.
17674         (main): Remove child process code. Expect the child program's name as
17675         first argument.
17676         * tests/test-spawn-pipe.sh: Pass the child program's name as first
17677         argument.
17678         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
17679         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
17680         test-spawn-pipe-child against no libraries.
17681
17682 2011-06-06  Bruno Haible  <bruno@clisp.org>
17683
17684         careadlinkat: Avoid mismatch between ssize_t and int.
17685         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
17686         * lib/careadlinkat.c (careadlinkatcwd): Define always.
17687
17688 2011-06-06  Jim Meyering  <meyering@redhat.com>
17689
17690         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
17691         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
17692         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
17693
17694 2011-06-05  Bruno Haible  <bruno@clisp.org>
17695
17696         ansi-c++-opt: Interoperability with libtool.
17697         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
17698         set the variable to "no", not to ":".
17699         * NEWS: Mention the change.
17700
17701 2011-06-05  Bruno Haible  <bruno@clisp.org>
17702
17703         acl: Fix test failure on AIX 7.
17704         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
17705         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
17706
17707 2011-06-05  Bruno Haible  <bruno@clisp.org>
17708
17709         pipe-filter-ii: Fix test failure on AIX and IRIX.
17710         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
17711         with EAGAIN, retry with a smaller buffer size.
17712
17713 2011-06-05  Bruno Haible  <bruno@clisp.org>
17714
17715         localename: Fix link dependencies.
17716         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
17717         * modules/localename-tests (Makefile.am): Link test-localename with
17718         $(LIBTHREAD).
17719
17720 2011-06-05  Bruno Haible  <bruno@clisp.org>
17721
17722         error: Avoid gcc warning.
17723         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
17724
17725 2011-06-05  Bruno Haible  <bruno@clisp.org>
17726
17727         unsetenv: Avoid gcc warning.
17728         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
17729
17730 2011-06-05  Bruno Haible  <bruno@clisp.org>
17731
17732         setenv: Avoid gcc warning.
17733         * lib/setenv.c (setenv): Provide declaration if system lacks it.
17734
17735 2011-06-05  Bruno Haible  <bruno@clisp.org>
17736
17737         sys_select: Ensure memset is declared also on AIX 7.
17738         * lib/sys_select.in.h: Include <string.h> also on AIX.
17739         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
17740         self-contained also on AIX 7.1.
17741
17742 2011-06-04  Jim Meyering  <meyering@redhat.com>
17743
17744         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
17745         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
17746         function name, "error".
17747         (_gl_translatable_diag_func_re): New configurable variable.
17748
17749 2011-06-04  Bruno Haible  <bruno@clisp.org>
17750
17751         getopt: Avoid gcc warning.
17752         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
17753
17754 2011-06-04  Bruno Haible  <bruno@clisp.org>
17755
17756         strerror_r: Fix comments.
17757         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
17758         commit.
17759
17760 2011-06-04  Bruno Haible  <bruno@clisp.org>
17761
17762         perror: Fix compilation error.
17763         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
17764         Undefine fprintf, not sprintf.
17765         * modules/perror (Depends-on): Remove intprops, verify.
17766
17767 2011-06-04  Bruno Haible  <bruno@clisp.org>
17768
17769         setlocale: Enable replacement on Cygwin 1.5.
17770         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
17771         Cygwin 1.5.x.
17772         * doc/posix-functions/setlocale.texi: Mention that the problem with the
17773         LC_CTYPE category also exists on Cygwin 1.5.x.
17774
17775 2011-06-04  Bruno Haible  <bruno@clisp.org>
17776
17777         strerror-override: Don't disable symbol renamings.
17778         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
17779         * lib/strerror-override.c: Include config.h.
17780         (strerror_override): Don't undefine.
17781
17782 2011-06-03  Bruno Haible  <bruno@clisp.org>
17783
17784         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
17785         * lib/localename.h: Update copyright header.
17786         * lib/localename.c: Likewise.
17787         * lib/relocatable.h: Likewise.
17788         * lib/relocatable.c: Likewise.
17789
17790 2011-06-02  Bruno Haible  <bruno@clisp.org>
17791
17792         doc: Fix a module name.
17793         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
17794
17795 2011-06-02  Bruno Haible  <bruno@clisp.org>
17796
17797         pipe2: Remove dependency on 'nonblocking' module.
17798         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
17799         O_NONBLOCK is defined by gnulib.
17800         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
17801         is zero.
17802         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
17803         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
17804         defined by gnulib.
17805         (get_nonblocking_flag): New function.
17806         (main): Test O_NONBLOCK flag only if it is nonzero.
17807         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
17808
17809 2011-06-03  Jim Meyering  <meyering@redhat.com>
17810
17811         maint: three new prohibit-header-without-use rules
17812         Prohibit use of cloexec.h, posixver.h, same.h without use.
17813         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
17814         (sc_prohibit_posixver_without_use): Likewise.
17815         (sc_prohibit_same_without_use): Likewise.
17816
17817 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17818
17819         allocator: 'die' routine is now given requested size
17820         * lib/allocator.h (struct allocator.die): New size arg.
17821         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
17822         If the actual problem is an ssize_t limitation, not a size_t or
17823         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
17824
17825 2011-06-01  Eric Blake  <eblake@redhat.com>
17826
17827         strerror: drop strerror_r dependency
17828         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
17829         * lib/strerror-override.c (strerror_override): ...to new file.
17830         * lib/strerror-override.h: Add prototype.
17831         * lib/strerror-impl.h: Delete.
17832         * lib/strerror.c (strerror): New implementation.
17833         * modules/errno (Files): Add new files.
17834         (configure.ac): Compile new file as appropriate.
17835         * modules/strerror (Files): Drop unused file.
17836         (Depends-on): Drop strerror_r-posix.
17837         * MODULES.html.sh: Document strerror_r-posix.
17838         Requested by Sam Steingold.
17839
17840         perror: call strerror_r directly
17841         * modules/perror (Files): Drop strerror-impl.h.
17842         * lib/perror.c (perror): Use our own stack buffer, rather than
17843         calling a wrapper that uses static storage.
17844         * doc/posix-functions/perror.texi (perror): Document a limitation
17845         of our replacement.
17846
17847         strerror_r: fix includes for FreeBSD
17848         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
17849         since we use abort on some platforms.
17850         Reported by Matthias Bolte.
17851
17852 2011-05-31  Bruno Haible  <bruno@clisp.org>
17853
17854         Fix link errors in tests: openat-die uses gettext-h.
17855         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
17856         against $(LIBINTL).
17857         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
17858         against $(LIBINTL).
17859         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
17860         $(LIBINTL).
17861         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
17862         against $(LIBINTL).
17863         * modules/linkat-tests (Makefile.am): Link test-linkat against
17864         $(LIBINTL).
17865         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
17866         $(LIBINTL).
17867         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
17868         against $(LIBINTL).
17869         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
17870         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
17871         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
17872         $(LIBINTL).
17873         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
17874         $(LIBINTL).
17875         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
17876         $(LIBINTL).
17877         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17878
17879 2011-05-31  Bruno Haible  <bruno@clisp.org>
17880
17881         Fix link errors in tests: wait-process uses gettext-h.
17882         * modules/nonblocking-pipe-tests (Makefile.am): Set
17883         test_nonblocking_pipe_main_LDADD.
17884         * modules/nonblocking-socket-tests (Makefile.am): Link
17885         test-nonblocking-socket-main against $(LIBINTL).
17886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17887
17888 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17889
17890         assert-h: work around 'verify' incompatibility
17891         * lib/verify.h: Use @...@ directives, not ifdef.
17892         * modules/assert-h (assert.h): Implement the directives.
17893         (assert.h): Substitute the symbol-prefix more consistently.
17894
17895 2011-05-29  Jim Meyering  <meyering@redhat.com>
17896
17897         trim: remove three superfluous assignments
17898         * lib/trim.c (trim2): Remove three superfluous assignments
17899         and correct brace positioning.
17900
17901 2011-05-29  Bruno Haible  <bruno@clisp.org>
17902
17903         wctype-h: Avoid namespace pollution on Solaris 2.6.
17904         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
17905         identifiers.
17906         * doc/posix-headers/wctype.texi: Mention the problem.
17907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17908
17909 2011-05-28  Jim Meyering  <meyering@redhat.com>
17910
17911         parse-datetime.y: accommodate -Wstrict-overflow
17912         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
17913         placate -Wstrict-overflow.
17914
17915         trim: avoid a warning from -O2 -Wstrict-overflow
17916         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
17917
17918 2011-05-29  Bruno Haible  <bruno@clisp.org>
17919
17920         gnulib-tool: Fix bug in yesterday's commit.
17921         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
17922         twice.
17923
17924 2011-05-29  Bruno Haible  <bruno@clisp.org>
17925
17926         Allow multiple gnulib generated include files to be combined.
17927         * gnulib-tool (func_compute_include_guard_prefix): New function.
17928         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
17929         ${gl_include_guard_prefix} references.
17930         (func_import, func_create_testdir): Invoke
17931         func_compute_include_guard_prefix.
17932         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
17933         * lib/ctype.in.h: Likewise.
17934         * lib/dirent.in.h: Likewise.
17935         * lib/errno.in.h: Likewise.
17936         * lib/fcntl.in.h: Likewise.
17937         * lib/float.in.h: Likewise.
17938         * lib/getopt.in.h: Likewise.
17939         * lib/iconv.in.h: Likewise.
17940         * lib/langinfo.in.h: Likewise.
17941         * lib/locale.in.h: Likewise.
17942         * lib/math.in.h: Likewise.
17943         * lib/netdb.in.h: Likewise.
17944         * lib/netinet_in.in.h: Likewise.
17945         * lib/poll.in.h: Likewise.
17946         * lib/pthread.in.h: Likewise.
17947         * lib/pty.in.h: Likewise.
17948         * lib/sched.in.h: Likewise.
17949         * lib/se-selinux.in.h: Likewise.
17950         * lib/search.in.h: Likewise.
17951         * lib/signal.in.h: Likewise.
17952         * lib/spawn.in.h: Likewise.
17953         * lib/stdarg.in.h: Likewise.
17954         * lib/stddef.in.h: Likewise.
17955         * lib/stdint.in.h: Likewise.
17956         * lib/stdio.in.h: Likewise.
17957         * lib/stdlib.in.h: Likewise.
17958         * lib/string.in.h: Likewise.
17959         * lib/strings.in.h: Likewise.
17960         * lib/sys_file.in.h: Likewise.
17961         * lib/sys_ioctl.in.h: Likewise.
17962         * lib/sys_select.in.h: Likewise.
17963         * lib/sys_socket.in.h: Likewise.
17964         * lib/sys_stat.in.h: Likewise.
17965         * lib/sys_time.in.h: Likewise.
17966         * lib/sys_times.in.h: Likewise.
17967         * lib/sys_uio.in.h: Likewise.
17968         * lib/sys_utsname.in.h: Likewise.
17969         * lib/sys_wait.in.h: Likewise.
17970         * lib/sysexits.in.h: Likewise.
17971         * lib/termios.in.h: Likewise.
17972         * lib/time.in.h: Likewise.
17973         * lib/unistd.in.h: Likewise.
17974         * lib/wchar.in.h: Likewise.
17975         * lib/wctype.in.h: Likewise.
17976         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
17977         * modules/ctype (Makefile.am): Likewise.
17978         * modules/dirent (Makefile.am): Likewise.
17979         * modules/errno (Makefile.am): Likewise.
17980         * modules/fcntl-h (Makefile.am): Likewise.
17981         * modules/float (Makefile.am): Likewise.
17982         * modules/getopt-posix (Makefile.am): Likewise.
17983         * modules/iconv-h (Makefile.am): Likewise.
17984         * modules/langinfo (Makefile.am): Likewise.
17985         * modules/locale (Makefile.am): Likewise.
17986         * modules/math (Makefile.am): Likewise.
17987         * modules/netdb (Makefile.am): Likewise.
17988         * modules/netinet_in (Makefile.am): Likewise.
17989         * modules/poll-h (Makefile.am): Likewise.
17990         * modules/pthread (Makefile.am): Likewise.
17991         * modules/pty (Makefile.am): Likewise.
17992         * modules/sched (Makefile.am): Likewise.
17993         * modules/search (Makefile.am): Likewise.
17994         * modules/selinux-h (Makefile.am): Likewise.
17995         * modules/signal (Makefile.am): Likewise.
17996         * modules/spawn (Makefile.am): Likewise.
17997         * modules/stdarg (Makefile.am): Likewise.
17998         * modules/stddef (Makefile.am): Likewise.
17999         * modules/stdint (Makefile.am): Likewise.
18000         * modules/stdio (Makefile.am): Likewise.
18001         * modules/stdlib (Makefile.am): Likewise.
18002         * modules/string (Makefile.am): Likewise.
18003         * modules/strings (Makefile.am): Likewise.
18004         * modules/sys_file (Makefile.am): Likewise.
18005         * modules/sys_ioctl (Makefile.am): Likewise.
18006         * modules/sys_select (Makefile.am): Likewise.
18007         * modules/sys_socket (Makefile.am): Likewise.
18008         * modules/sys_stat (Makefile.am): Likewise.
18009         * modules/sys_time (Makefile.am): Likewise.
18010         * modules/sys_times (Makefile.am): Likewise.
18011         * modules/sys_uio (Makefile.am): Likewise.
18012         * modules/sys_utsname (Makefile.am): Likewise.
18013         * modules/sys_wait (Makefile.am): Likewise.
18014         * modules/sysexits (Makefile.am): Likewise.
18015         * modules/termios (Makefile.am): Likewise.
18016         * modules/time (Makefile.am): Likewise.
18017         * modules/unistd (Makefile.am): Likewise.
18018         * modules/wchar (Makefile.am): Likewise.
18019         * modules/wctype-h (Makefile.am): Likewise.
18020         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18021
18022 2011-05-29  Bruno Haible  <bruno@clisp.org>
18023
18024         assert-h: Allow multiple gnulib generated replacements to coexist.
18025         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18026
18027 2011-05-29  Bruno Haible  <bruno@clisp.org>
18028
18029         argp: Allow coexistence with strerror_r-posix module.
18030         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18031         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18032         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18033         not the glibc signature.
18034
18035 2011-05-28  Bruno Haible  <bruno@clisp.org>
18036
18037         gnulib-tool: Alternative structure of testdirs, similar to --import.
18038         * gnulib-tool: New option --single-configure.
18039         (func_usage): Document it.
18040         (single_configure): New variable.
18041         (func_modules_transitive_closure_separately,
18042         func_modules_transitive_closure_separately,
18043         func_determine_use_libtests, func_modules_add_dummy_separately,
18044         func_modules_to_filelist_separately): New functions, extracted from
18045         func_import.
18046         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18047         (func_import): Use the new functions.
18048         (func_create_testdir): Set final_modules. Handle $single_configure =
18049         true case.
18050
18051 2011-05-28  Bruno Haible  <bruno@clisp.org>
18052
18053         getloadavg: Remove an unreliable safety check.
18054         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18055         getloadavg.c is in place.
18056         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18057         Reported by Sam Steingold <sds@gnu.org>.
18058
18059 2011-05-28  Bruno Haible  <bruno@clisp.org>
18060
18061         doc: Cleanup yet another file produced by texinfo.tex.
18062         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18063
18064 2011-05-28  Bruno Haible  <bruno@clisp.org>
18065
18066         Finish the conditional dependencies mechanism.
18067         * gnulib-tool: New option --no-conditional-dependencies.
18068         (func_usage): Document it. Don't mark --conditional-dependencies as
18069         experimental.
18070         (cond_dependencies): The possible values can now be true, false, empty.
18071         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18072         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18073         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18074
18075 2011-05-28  Bruno Haible  <bruno@clisp.org>
18076
18077         doc: Use a recent texinfo.tex.
18078         * doc/Makefile (tex_opts): New variable.
18079         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18080
18081 2011-05-28  Jim Meyering  <meyering@redhat.com>
18082
18083         intprops.h: adjust comment to match code change
18084         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18085         only once, it *may* have side effects.  Also fix an unrelated typo.
18086         (_GL_INT_SIGNED): Likewise.
18087
18088 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18089
18090         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18091
18092 2011-05-26  Bruno Haible  <bruno@clisp.org>
18093
18094         mbsrchr: Avoid collision with system function on Interix.
18095         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18096         Reported by Markus Duft <mduft@gentoo.org>.
18097
18098 2011-05-15  James Youngman  <jay@gnu.org>
18099
18100         getopt: for ambiguous options, enumerate the possibilities.
18101         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18102         the ambiguous options when an ambiguous prefix is given. This was
18103         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18104         glibc change was
18105         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18106
18107 2011-05-25  Eric Blake  <eblake@redhat.com>
18108
18109         getcwd: work around mingw bug
18110         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18111         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18112         Reported by Matthias Bolte.
18113
18114 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18115
18116         test-intprops: disable -Wtype-limits diagnostics
18117         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18118         diagnostics.  Otherwise, the integer overflow macros generate many
18119         diagnostics.  Reported by Jim Meyering in
18120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18121
18122         intprops: shorten, to pacify gcc -Woverlength-strings
18123         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18124         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18125         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18126         likely to run afoul of C compiler limits for string constant lengths.
18127         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18128
18129 2011-05-24  Eric Blake  <eblake@redhat.com>
18130
18131         docs: document recently fixed glibc printf bug
18132         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18133         * doc/posix-functions/printf.texi (printf): Likewise.
18134         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18135         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18136
18137         closein-tests: convert to init.sh
18138         * modules/closein-tests (Files): Add init.sh
18139         * tests/test-closein.sh Use it.
18140
18141         yesno-tests: convert to init.sh
18142         * modules/yesno-tests (Files): Add init.sh.
18143         * tests/test-yesno.sh: Use it.
18144
18145         atexit-tests: ensure reliable exit status
18146         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18147         Reported by Bruno Haible.
18148
18149 2011-05-24  Bruno Haible  <bruno@clisp.org>
18150
18151         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18152         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18153         gl_PREREQ_STRERROR_R invocations from here...
18154         * modules/strerror_r-posix (configure.ac): ... to here.
18155
18156 2011-05-24  Eric Blake  <eblake@redhat.com>
18157
18158         strerror_r: fix missing header
18159         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18160
18161         strerror_r: fix AIX test failures
18162         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18163         ERANGE failure.
18164
18165         strerror_r: fix Solaris test failures
18166         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18167         failures.
18168         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18169
18170         strerror_r: enforce POSIX recommendations
18171         * lib/strerror_r.c (safe_copy): New helper method.
18172         (strerror_r): Guarantee a non-empty string.
18173         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18174         recent POSIX rulings and to match our strerror guarantees.
18175         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18176
18177 2011-05-24  Jim Meyering  <meyering@redhat.com>
18178
18179         test-perror2.c: avoid warning about unused variable
18180         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18181
18182 2011-05-24  Eric Blake  <eblake@redhat.com>
18183
18184         perror: avoid spurious test failure on HP-UX
18185         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18186
18187         tests: fix logic bug in init.sh
18188         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18189         shell.
18190
18191 2011-05-24  Jim Meyering  <meyering@redhat.com>
18192
18193         utimensat: do not reference an out-of-scope buffer
18194         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18195         declared in an inner scope, yet "times" would be dereferenced outside
18196         the scope in which "ts" was valid.
18197         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18198         of ts[2] "out/up", so that the use of aliased "times" (via
18199         "times = ts;") does not end up referencing an out-of-scope "ts"
18200
18201         opendir-safer.c: don't clobber errno; don't close negative FD
18202         * lib/opendir-safer.c (opendir_safer):
18203         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18204         file descriptor, and more importantly, don't clobber the
18205         offending errno value with EINVAL.  Before, upon failure
18206         of dup_safer, we would pass the negative file descriptor to
18207         fdopendir, which would clobber errno.
18208
18209 2011-05-23  Bruno Haible  <bruno@clisp.org>
18210
18211         idcache: Fix module description.
18212         * modules/idcache (Include): Set to "idcache.h".
18213
18214 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18215
18216         gnulib-tool: fix portability problem with MacOS sed
18217         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18218         before the "}".  Problem reported by Leo in
18219         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18220         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18221         sed_extract_condition1, sed_extract_condition2.
18222
18223 2011-05-23  Bruno Haible  <bruno@clisp.org>
18224
18225         hash: Simplify autoconf macro.
18226         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18227
18228 2011-05-23  Bruno Haible  <bruno@clisp.org>
18229
18230         getugroups: Fix module description.
18231         * modules/getugroups (Include): Set to "getugroups.h".
18232
18233 2011-05-23  Bruno Haible  <bruno@clisp.org>
18234
18235         linkat: Simplify autoconf macro.
18236         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18237
18238 2011-05-23  Bruno Haible  <bruno@clisp.org>
18239             Eric Blake  <eblake@redhat.com>
18240
18241         linkat, renameat: Update dependencies.
18242         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18243         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18244         symlinkat.
18245
18246 2011-05-23  Jim Meyering  <meyering@redhat.com>
18247
18248         maint.mk: more tight_scope improvements
18249         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18250         (_gl_TS_headers): Define only in if-0'd block.
18251         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18252         sometimes we must *not* use it.  Adjust uses accordingly.
18253         (sc_tight_scope): Use much simpler grep-based test to determine
18254         whether we skip this rule.
18255
18256         maint.mk: generalize/improve the tight-scope rule
18257         * top/maint.mk: Emit a warning when the test is skipped.
18258         (_gl_TS_dir): Add $(srcdir)/ prefix.
18259         (_gl_TS_function_match): Simplify, rather than trying
18260         to enumerate common types.  Otherwise, it would fail to match an
18261         "extern unsigned char const *" declaration in idutils.
18262         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18263         a way to support use of that type of macro.
18264         (_gl_TS_var_match): Simplify regexp.
18265         (_gl_TS_obj_files): New configurable variable.
18266         (_gl_TS_headers): Likewise.
18267
18268 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18269
18270         verify: fix bug when gnulib <assert.h> is also included
18271         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18272         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18273         Perhaps there's a better way, but this fixes the immediate problem.
18274         Problem reported by Bruno Haible in
18275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18276
18277 2011-05-22  Bruno Haible  <bruno@clisp.org>
18278
18279         xgetcwd: Simplify autoconf macro.
18280         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18281
18282 2011-05-22  Bruno Haible  <bruno@clisp.org>
18283
18284         New module 'mktime-internal'.
18285         * modules/mktime-internal: New file.
18286         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18287         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18288         mktime_internal as a C macro if libc has __mktime_internal.
18289         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18290         conditions.
18291         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18292
18293 2011-05-22  Bruno Haible  <bruno@clisp.org>
18294
18295         timegm: Correct mktime replacement statements.
18296         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18297         defining mktime as a C macro. This completes a 2009-07-28 commit.
18298
18299 2011-05-22  Bruno Haible  <bruno@clisp.org>
18300
18301         timegm: Simplify autoconf macro.
18302         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18303
18304 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18305
18306         clock-time: change to LGPLv2+.
18307         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18308         BSD-like but we have no mark for that; this is good enough for now.
18309
18310 2011-05-21  Bruno Haible  <bruno@clisp.org>
18311
18312         strerror_r: Fix comments.
18313         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18314
18315 2011-05-21  Bruno Haible  <bruno@clisp.org>
18316
18317         relocatable-prog-wrapper: Fix possible link error.
18318         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18319         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18320         (gl_FUNC_SETENV): ... to here.
18321         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18322         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18323
18324 2011-05-21  Bruno Haible  <bruno@clisp.org>
18325
18326         relocatable-prog-wrapper: Assume strerror() exists.
18327         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18328         m4/strerror.m4.
18329         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18330         * lib/relocwrapper.c: Remove mention of strerror module.
18331         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18332         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18333         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18334         C macro.
18335
18336 2011-05-21  Bruno Haible  <bruno@clisp.org>
18337
18338         select: Simplify replacement idiom.
18339         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18340         Win32 platforms.
18341         * lib/sys_select.in.h (select): Simplify accordingly.
18342         * modules/select (Depends-on): Likewise.
18343
18344 2011-05-21  Bruno Haible  <bruno@clisp.org>
18345
18346         mkdir-p: Simplify autoconf macro.
18347         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18348         gl_FUNC_LCHOWN.
18349
18350 2011-05-21  Eric Blake  <eblake@redhat.com>
18351
18352         strerror_r: avoid clobbering strerror on cygwin
18353         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18354         fall back instead to sys_errlist.
18355         * modules/strerror (configure.ac): Add witness.
18356         * tests/test-strerror_r.c (main): Enhance test.
18357         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18358         * tests/test-perror2.c (main): Free memory before exit.
18359
18360 2011-05-21  Bruno Haible  <bruno@clisp.org>
18361
18362         mkdtemp: Use gnulib naming conventions.
18363         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18364         * modules/mkdtemp (configure.ac): Update.
18365
18366 2011-05-20  Eric Blake  <eblake@redhat.com>
18367
18368         strerror_r: avoid corrupting errno on Solaris
18369         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18370         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18371
18372         strerror_r: avoid compiler warning
18373         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18374
18375         strerror_r: simplify AIX code
18376         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18377
18378         test-perror: avoid spurious failure on FreeBSD
18379         * modules/perror-tests (Depends-on): Add strerror, now that
18380         strerror_r no longer pulls it in.
18381
18382 2011-05-20  Bruno Haible  <bruno@clisp.org>
18383
18384         strerror_r-posix: Remove unused dependencies.
18385         * modules/strerror_r-posix (Depends-on): Remove strerror.
18386         Reported by Eric Blake.
18387
18388 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18389
18390         intprops: remove assumption about A|B representation
18391         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18392         is a valid integer if both A and B are.  Although this is true for
18393         all known practical hosts, the C standard doesn't guarantee it,
18394         and the code need not assume it.  Also, this change may work around
18395         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18397
18398 2011-05-20  Eric Blake  <eblake@redhat.com>
18399
18400         perror: work around FreeBSD bug
18401         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18402         is broken.  Move AC_LIBOBJ...
18403         * modules/perror (configure.ac): Here.
18404         * doc/posix-functions/perror.texi (perror): Document this.
18405         * tests/test-perror2.c (main): Enhance test.
18406
18407         test-perror: check for strerror interactions
18408         * tests/macros.h (STREQ): Add macro.
18409         * modules/perror-tests (Files): Add second test.
18410         * tests/test-perror2.c (main): New file.
18411         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18412
18413         test-perror: rewrite to use init script
18414         * modules/perror-tests (Files): Add init.sh.
18415         * tests/test-perror.sh: Use temporary directory.
18416
18417 2011-05-20  Jim Meyering  <meyering@redhat.com>
18418
18419         maint: replace misused "a" with "an"
18420         * doc/intprops.texi: "a integer"
18421         * doc/regex.texi: "a explanation"
18422         * lib/alignof.h: "a object"
18423         * lib/argmatch.h: "a explanation"
18424         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18425         * lib/stdint.in.h: "a integer"
18426         * lib/userspec.c: "a owner"
18427         * doc/gnulib.texi: Fix "a idea", and reword.
18428
18429 2011-05-19  Jim Meyering  <meyering@redhat.com>
18430
18431         maint: correct misuse of "a" and "an"
18432         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18433         * lib/argp-help.c: "an docum...": s/an/a/
18434         * lib/argp-parse.c: "An vector": s/An/A/
18435         * lib/execute.c: "an native": s/an/a/
18436         * lib/spawn-pipe.c: Likewise.
18437         * lib/gc.h: "an Gc_rc": s/an/a/
18438         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18439         * lib/fts.c: "an stat.st_dev": s/an/a/
18440
18441 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18442
18443         intprops-tests: work around HP-UX 11.23 cc bug with constants
18444         * tests/test-intprops.c (VERIFY): New macro.
18445         (main): Use it, instead of verify, to work around the compiler bug; see
18446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18447
18448         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18449         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18450         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18451         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18452         (_GL_REMAINDER_OVERFLOW): Use it.
18453
18454         intprops-tests: revert unsigned part of previous change
18455         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18456         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18457         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18459
18460 2011-05-19  Bruno Haible  <bruno@clisp.org>
18461
18462         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18463         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18464         strerror_r() returned without filling the buffer.
18465         Reported by Eric Blake.
18466
18467 2011-05-19  Eric Blake  <eblake@redhat.com>
18468
18469         strerror_r: guarantee unchanged errno
18470         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18471         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18472         failure.
18473         * tests/test-strerror_r.c (main): Enhance test.
18474
18475 2011-05-19  Bruno Haible  <bruno@clisp.org>
18476
18477         strerror_r: Reorder #if blocks.
18478         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18479         for consistency with the previous commit.
18480
18481 2011-05-19  Bruno Haible  <bruno@clisp.org>
18482
18483         perror: Avoid clobbering the strerror buffer when possible.
18484         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18485         * lib/strerror.c: Include it.
18486         * modules/strerror (Files): Add lib/strerror-impl.h.
18487         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18488         (my_strerror): New function, defined through lib/strerror-impl.h.
18489         (perror): Use it instead of strerror.
18490         * modules/perror (Files): Add lib/strerror-impl.h.
18491         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18492
18493 2011-05-19  Eric Blake  <eblake@redhat.com>
18494
18495         strerror_r: fix on newer cygwin
18496         * lib/strerror_r.c (strerror_r): Cygwin now has
18497         __xpg_strerror_r, use it.
18498
18499 2011-05-19  Bruno Haible  <bruno@clisp.org>
18500
18501         strerror_r: Avoid clobbering the strerror buffer when possible.
18502         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18503         (sys_nerr, sys_errlist): New declarations.
18504         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18505         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18506         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18507
18508 2011-05-19  Bruno Haible  <bruno@clisp.org>
18509
18510         strerror_r: Fix test failure on mingw.
18511         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18512         EXTEND_STRERROR_R.
18513         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18514         macros from errno.in.h instead.
18515
18516 2011-05-19  Eric Blake  <eblake@redhat.com>
18517
18518         strerror: relax test for Solaris
18519         * tests/test-strerror.c (main): Permit Solaris behavior.
18520         * tests/test-strerror_r.c (main): Likewise.
18521
18522         strerror: enforce POSIX ruling on strerror(0)
18523         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18524         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18525         * lib/strerror_r.c (rpl_strerror_r): Work around it.
18526         * doc/posix-functions/strerror.texi (strerror): Document it.
18527         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
18528         * tests/test-strerror.c (main): Strengthen test.
18529         * tests/test-strerror_r.c (main): Likewise.
18530
18531 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18532
18533         intprop-tests: port to older and more-pedantic compilers
18534         * modules/intprops-tests (Files): Add tests/macros.h.
18535         * tests/test-intprops.c: Include macros.h.
18536         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
18537         it's no longer documented to expand to an integer constant expression.
18538         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
18539         argument is floating point, as it's no longer documented to expand
18540         to an integer constant expression in that case.
18541         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
18542         compiler bugs reported by Bruno Haible.  See
18543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18544         (U0, U1): New constants, to work around the same bugs.  Also,
18545         in tests, use e.g., "(unsigned int) 39" rather than "39u".
18546
18547         intprops: work around C compiler bugs
18548         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
18549         bug in Sun C 5.11 2010/08/13 and other compilers; see
18550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18551
18552         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
18553         * doc/intprops.texi (Integer Type Determination): Fix
18554         documentation for TYPE_IS_INTEGER: it returns an constant
18555         expression, not an integer constant expression.  Fix doc for
18556         TYPE_SIGNED: it returns an integer constant expression only if its
18557         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
18558         hardly worth documented that way....)
18559
18560 2011-05-18  Bruno Haible  <bruno@clisp.org>
18561
18562         strerror_r: Avoid clobbering the strerror buffer when possible.
18563         * lib/strerror_r.c (strerror_r): Merge the three implementations.
18564         Handle gnulib defined errno values here. When strerror() returns NULL
18565         or an empty string, return EINVAL.
18566         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
18567         gnulib defined errno values here.
18568         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
18569
18570 2011-05-18  Eric Blake  <eblake@redhat.com>
18571
18572         fnmatch: avoid compiler warning
18573         * lib/fnmatch_loop.c (FCT): Use correct type.
18574         Reported by Matthias Bolte.
18575
18576 2011-05-13  Jim Meyering  <meyering@redhat.com>
18577
18578         maint.mk: three new prohibit_<HDR>_without_use rules
18579         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
18580         (sc_prohibit_stdio-safer_without_use): Likewise.
18581         (sc_prohibit_xfreopen_without_use): Likewise.
18582
18583 2011-05-17  Jim Meyering  <meyering@redhat.com>
18584
18585         announce-gen: fail if the NEWS delta is empty
18586         If there's nothing noteworthy in NEWS, then either you forgot
18587         or you shouldn't be releasing.
18588         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
18589
18590 2011-05-17  Pádraig Brady <P@draigBrady.com>
18591
18592         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
18593         reserved symbols starting with double underscore from the check.
18594
18595 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18596
18597         intprops: add doc
18598         * doc/intprops.texi: New file, documenting intprops.
18599         * doc/gnulib.texi (Particular Modules): Include it.
18600
18601         verify: add doc to gnulib manual and fix example
18602         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
18603         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
18604         (Compile-time Assertions): Fix example so it can't overflow.
18605
18606 2011-05-17  Jim Meyering  <meyering@redhat.com>
18607
18608         warnings.m4: don't usurp save_CPPFLAGS variable name
18609         * m4/warnings.m4: Prefix local temporary variable name with gl_.
18610
18611         doc: fix typo
18612         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
18613
18614 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18615             Bruno Haible  <bruno@clisp.org>
18616
18617         doc: Tweak recent change.
18618         * README (Portability guidelines): Tweak new text.
18619         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
18620         Interix 6.1.
18621
18622 2011-05-16  Eric Blake  <eblake@redhat.com>
18623
18624         inttypes: avoid autoconf warning
18625         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
18626         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18627
18628 2011-05-16  Sam Steingold <sds@gnu.org>
18629         and Eric Blake  <eblake@redhat.com>
18630
18631         vc-list-files: accept multiple directory operands
18632         * build-aux/vc-list-files: Iterate over all remaining operands.
18633
18634 2011-05-16  Bruno Haible  <bruno@clisp.org>
18635
18636         Fix confusion regarding deprecated modules.
18637         * modules/calloc (Status, Notice): Mark module as deprecated, not
18638         obsolete.
18639         * modules/fnmatch-posix (Status, Notice): Likewise.
18640         * modules/getdate (Status, Notice): Likewise.
18641         * modules/getopt (Status, Notice): Likewise.
18642         * modules/malloc (Status, Notice): Likewise.
18643         * modules/pipe (Status, Notice): Likewise.
18644         * modules/realloc (Status, Notice): Likewise.
18645         * modules/rename-dest-slash (Status, Notice): Likewise.
18646         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
18647         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
18648         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
18649         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
18650         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
18651
18652 2011-05-16  Bruno Haible  <bruno@clisp.org>
18653
18654         doc: List the target platforms.
18655         * doc/gnulib-intro.texi (Target Platforms): New section.
18656         * doc/gnulib.texi (Introduction): Update menu.
18657         * README (Portability guidelines): Refer to the new section. Update
18658         statement about oldest supported environment. Remove rationale why
18659         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
18660         unportable C89 function.
18661         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
18662         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
18663
18664 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18665
18666         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
18667
18668 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18669
18670         intprops-tests: new module
18671         * modules/intprops-tests, tests/test-intprops.c: New files.
18672
18673         intprops: add safe, portable integer overflow checking
18674         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
18675         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
18676         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
18677         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
18678         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
18679         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
18680         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
18681         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
18682         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
18683         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
18684         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
18685
18686 2011-05-12  James Youngman  <jay@gnu.org>
18687
18688         Add a test for glibc's Bugzilla bug #12378.
18689         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
18690         doesn't allow the literal matching of a lone "[" (which is
18691         required by POSIX).
18692         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
18693
18694 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18695
18696         Sync glibc change fixing Bugzilla bug #12378.
18697         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
18698         beginning and fall back to matching as normal character if the
18699         string ends before the matching ']' is found.  This is what POSIX
18700         requires.
18701
18702 2011-05-13  Eric Blake  <eblake@redhat.com>
18703
18704         getcwd-lgpl: relax test for FreeBSD
18705         * doc/posix-functions/getcwd.texi (getcwd): Document portability
18706         issue.
18707         * tests/test-getcwd-lgpl.c (main): Relax test.
18708         Reported by Matthias Bolte.
18709
18710 2011-05-11  Eric Blake  <eblake@redhat.com>
18711
18712         test-fflush: silence compiler warning
18713         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
18714
18715 2011-05-11  Bruno Haible  <bruno@clisp.org>
18716
18717         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
18718         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
18719         * modules/canonicalize (Depends-on): Add 'nocrash'.
18720         * modules/canonicalize-lgpl (Depends-on): Likewise.
18721         * doc/posix-functions/realpath.texi: Update platforms list.
18722         Reported by Ryan Schmidt <ryandesign@macports.org>.
18723
18724 2011-05-11  Bruno Haible  <bruno@clisp.org>
18725
18726         group-member: Declare function in <unistd.h>.
18727         * lib/unistd.in.h (group_member): New declaration.
18728         * lib/group-member.h: Remove file.
18729         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
18730         * tests/test-unistd-c++.cc: Check signature of group_member.
18731         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
18732         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
18733         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
18734         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
18735         HAVE_GROUP_MEMBER.
18736         * modules/group-member (Files): Remove lib/group-member.h.
18737         (Depends-on): Add unistd. Specify conditions.
18738         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18739         (Include): Change to <unistd.h>.
18740         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
18741         HAVE_GROUP_MEMBER.
18742         * NEWS: Mention the change.
18743         * lib/euidaccess.c: Don't include group-member.h.
18744
18745 2011-05-11  Bruno Haible  <bruno@clisp.org>
18746
18747         group-member: Document module.
18748         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
18749         module.
18750
18751 2011-05-11  Bruno Haible  <bruno@clisp.org>
18752
18753         fclose: Fix mistake earlier today.
18754         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
18755
18756 2011-05-11  Eric Blake  <eblake@redhat.com>
18757
18758         fclose: preserve fflush errors
18759         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
18760         Reported by Jim Meyering.
18761
18762         bootstrap: support a prereq of 'rpcgen -' on RHEL5
18763         * build-aux/bootstrap (check_versions): When no specific version
18764         is required, merely check that the app produces an exit status
18765         that indicates its existence.
18766
18767         maint.mk: drop redundant check
18768         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
18769         the same but better.
18770
18771 2011-05-11  Bruno Haible  <bruno@clisp.org>
18772
18773         fclose: Fix possible link error.
18774         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
18775         unregister_shadow_fd. Improve comments.
18776         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
18777         Eric Blake.
18778
18779 2011-05-11  Jim Meyering  <meyering@redhat.com>
18780
18781         maint.mk: improve "can not" detection and generalize rule name
18782         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
18783         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
18784         Use the same technique as in sc_prohibit_doubled_word, so that
18785         we recognize "can not" also when the words are separated by a newline.
18786         Suggested by Eric Blake.
18787         (perl_filename_lineno_text_): Define.  Factored out of...
18788         (prohibit_doubled_word_): ...here.  Use the new definition.
18789         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
18790         (prohibit_undesirable_word_seq_RE_): New overridable variable.
18791         (ignore_undesirable_word_sequence_RE_): New overridable variable.
18792
18793 2011-05-10  Eric Blake  <eblake@redhat.com>
18794
18795         fclose: avoid double close race when possible
18796         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
18797         all but WINDOWS_SOCKETS.
18798
18799 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
18800
18801         openat: correct new comment
18802         * lib/openat-proc.c (openat_proc_name): Correct the comment.
18803
18804 2011-05-10  Jim Meyering  <meyering@redhat.com>
18805
18806         openat: add comments
18807         * lib/openat-proc.c (openat_proc_name): Add comments,
18808         mostly from Eric Blake.
18809
18810 2011-05-09  Eric Blake  <eblake@redhat.com>
18811
18812         openat: reduce syscalls in first probe of /proc
18813         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
18814         be a directory.  Simplify the probe for .. bugs.
18815         * modules/openat (Depends-on): Drop same-inode.
18816         Reported by Bastien ROUCARIES.
18817
18818 2011-05-09  Jim Meyering  <meyering@redhat.com>
18819
18820         maint.mk: change semantics/name of tight_scope variables
18821         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
18822         Rename variables to align with semantics that make them more useful.
18823
18824         maint.mk: tweak new rule's name not to impinge
18825         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
18826         (sc_tight_scope): Use new rule name rather than $@-0.
18827
18828         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
18829         * top/maint.mk (sc_tight_scope): New rule.
18830         (sc_tight_scope-0): New rule, ifdef'd out.
18831         (_gl_TS_dir): Default.
18832         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
18833         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
18834
18835 2011-05-09  Simon Josefsson  <simon@josefsson.org>
18836
18837         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
18838         Haible <bruno@clisp.org>.
18839
18840 2011-05-08  Bruno Haible  <bruno@clisp.org>
18841
18842         Comments.
18843         * m4/isnanf.m4: Add comment.
18844         * m4/isnanl.m4: Likewise.
18845
18846 2011-05-08  Bruno Haible  <bruno@clisp.org>
18847
18848         glob: Remove obsolete macro.
18849         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
18850
18851 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18852
18853         intprops: Sun C 5.11 supports __typeof__
18854         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
18855         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
18856         which is new.
18857         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
18858
18859         intprops: switch to usual gnulib indenting and naming
18860         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
18861         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
18862
18863         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
18864
18865 2011-05-08  Jim Meyering  <meyering@redhat.com>
18866
18867         maint.mk: suppress "Entering/Leaving directory" diag in announcement
18868         * top/maint.mk (release-prep): Use make's --no-print-directory
18869         option when generating the announcement.  This eliminates the
18870         pesky "make[2]: Entering/Leaving directory" diagnostics in the
18871         generated announcement template.
18872
18873 2011-05-08  Bruno Haible  <bruno@clisp.org>
18874
18875         tzset: Fix gettimeofday wrapper on Solaris 2.6.
18876         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
18877         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
18878
18879 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18880
18881         ignore-value, verify: Omit include files from lib_SOURCES.
18882         * modules/ignore-value, modules/verify (Makefile.am):
18883         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
18884         that leads Automake to duplicate use of am__objects_... variables
18885         in Makefile.in.  See
18886         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
18887
18888 2011-05-07  Bruno Haible  <bruno@clisp.org>
18889
18890         fclose: Simplify autoconf macro.
18891         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
18892         defined.
18893
18894 2011-05-07  Bruno Haible  <bruno@clisp.org>
18895
18896         canonicalize-lgpl: Fix autoconf macro ordering bug.
18897         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
18898         gl_STDLIB_H_DEFAULTS.
18899
18900 2011-05-06  Eric Blake  <eblake@redhat.com>
18901
18902         maintainer-makefile: make sc_po_check easier to tune
18903         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
18904         to probe for strings, such as an alternate location for gnulib.
18905
18906         fclose: guarantee behavior on seekable stdin
18907         * modules/fclose (Depends-on): Add fflush.
18908         * doc/posix-functions/fclose.texi (fclose): Document this.
18909         * tests/test-fclose.c (main): Make test for this unconditional.
18910
18911 2011-05-06  Bruno Haible  <bruno@clisp.org>
18912
18913         fflush, fpurge: Relicense under LGPLv2+.
18914         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
18915         * modules/fpurge (License): Likewise.
18916         With permission from Eric Blake and Jim Meyering.
18917         Suggested by Eric Blake.
18918
18919 2011-05-06  Karl Berry  <karl@gnu.org>
18920
18921         * MODULES.html.sh (func_all_modules): remove exit.
18922
18923 2011-05-06  Jim Meyering  <meyering@redhat.com>
18924
18925         maint.mk: use info-gnu@ as the default only for a stable release
18926         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
18927         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
18928         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
18929         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
18930
18931 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18932
18933         assert-h: new module, which supports C1X-style static_assert
18934         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
18935         * lib/verify.h: Revamp so that this can be copied into assert.h,
18936         while retaining the ability to use it standalone as before.
18937         Rename private identifiers so as not to encroach on the
18938         standard C namespace, since this is now used by assert.h.
18939         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
18940         the old verify_true.
18941         (_GL_VERIFY_TRUE): New macro, with much of the contents of
18942         the old verify_true.  Use _GL_VERIFY_TYPE.
18943         (_GL_VERIFY): New macro, with much of the contents of the old verify.
18944         (static_assert): New macro, if _GL_STATIC_ASSERT_H
18945         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
18946         defined when this file is copied into the replacement assert.h.
18947         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
18948         and _Static_assert is not built in.
18949         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
18950         defined, and use the new macros mentioned above.
18951         * doc/posix-headers/assert.texi: Document this.
18952
18953 2011-05-05  Bruno Haible  <bruno@clisp.org>
18954
18955         fclose, fflush: Respect rules for use of AC_LIBOBJ.
18956         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
18957         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
18958         gl_REPLACE_FCLOSE here.
18959         * modules/fflush (Depends-on): Remove fclose.
18960         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
18961         combination with module 'fclose'.
18962
18963 2011-05-05  Bruno Haible  <bruno@clisp.org>
18964
18965         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
18966         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
18967         gl_FUNC_FFLUSH.
18968         (gl_FUNC_FFLUSH): Use it.
18969         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
18970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
18971         gl_REPLACE_FSEEKO here.
18972
18973 2011-05-05  Bruno Haible  <bruno@clisp.org>
18974
18975         tzset: Relicense under LGPL.
18976         * modules/tzset (License): Change to LGPL.
18977         No agreement needed; it's a no-op.
18978
18979         strtoimax, strtoumax: Relicense under LGPL.
18980         * modules/strtoimax (License): Change to LGPL.
18981         * modules/strtoumax (License): Likewise.
18982         With permission from Jim Meyering, Paul Eggert:
18983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
18984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
18985
18986         getgroups: Relicense under LGPL.
18987         * modules/getgroups (License): Change to LGPL.
18988         With permission from Jim Meyering, Paul Eggert, Eric Blake:
18989         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18992
18993         nanosleep: Relicense under LGPL.
18994         * modules/nanosleep (License): Change to LGPL.
18995         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
18996         Haible:
18997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19001
19002         futimens: Relicense under LGPL.
19003         * modules/futimens (License): Change to LGPL.
19004         With permission from Eric Blake:
19005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19006
19007         fflush: Relicense under LGPL.
19008         * modules/fflush (License): Change to LGPL.
19009         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19012         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19013
19014         tmpfile: Relicense under LGPL.
19015         * modules/tmpfile (License): Change to LGPL.
19016         With permission from Ben Pfaff:
19017         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19018
19019         isfinite: Relicense under LGPL.
19020         * modules/isfinite (License): Change to LGPL.
19021         With permission from Ben Pfaff, Bruno Haible:
19022         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19024
19025         acosl..tanl: Relicense under LGPL.
19026         * modules/acosl (License): Change to LGPL.
19027         * modules/asinl (License): Likewise.
19028         * modules/atanl (License): Likewise.
19029         * modules/cosl (License): Likewise.
19030         * modules/expl (License): Likewise.
19031         * modules/logl (License): Likewise.
19032         * modules/sinl (License): Likewise.
19033         * modules/sqrtl (License): Likewise.
19034         * modules/tanl (License): Likewise.
19035         Source code originally from glibc and Paolo Bonzini. Agreements:
19036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19038
19039 2011-05-05  Bruno Haible  <bruno@clisp.org>
19040
19041         signal: Define sighandler_t.
19042         * lib/signal.in.h (sighandler_t): New type.
19043         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19044         whether sighandler_t is defined.
19045         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19046         * modules/signal (Depends-on): Add extensions.
19047         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19048         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19049         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19050
19051 2011-05-05  Eric Blake  <eblake@redhat.com>
19052
19053         maint: remove useless REPLACE_*_H macros
19054         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19055         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19056         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19057         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19058         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19059         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19060         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19061         * m4/btowc.m4: Update callers.
19062         * m4/dirfd.m4: Likewise.
19063         * m4/duplocale.m4: Likewise.
19064         * m4/fchdir.m4: Likewise.
19065         * m4/fdopendir.m4: Likewise.
19066         * m4/inet_ntop.m4: Likewise.
19067         * m4/inet_pton.m4: Likewise.
19068         * m4/ioctl.m4: Likewise.
19069         * m4/mbrlen.m4: Likewise.
19070         * m4/mbrtowc.m4: Likewise.
19071         * m4/mbsinit.m4: Likewise.
19072         * m4/mbsnrtowcs.m4: Likewise.
19073         * m4/mbsrtowcs.m4: Likewise.
19074         * m4/poll.m4: Likewise.
19075         * m4/setlocale.m4: Likewise.
19076         * m4/wcrtomb.m4: Likewise.
19077         * m4/wcsnrtombs.m4: Likewise.
19078         * m4/wcsrtombs.m4: Likewise.
19079         * m4/wctob.m4: Likewise.
19080         * m4/wcwidth.m4: Likewise.
19081         * modules/posix_spawn: Likewise.
19082         * modules/posix_spawn_file_actions_addclose: Likewise.
19083         * modules/posix_spawn_file_actions_adddup2: Likewise.
19084         * modules/posix_spawn_file_actions_addopen: Likewise.
19085         * modules/posix_spawn_file_actions_destroy: Likewise.
19086         * modules/posix_spawn_file_actions_init: Likewise.
19087         * modules/posix_spawnattr_destroy: Likewise.
19088         * modules/posix_spawnattr_getflags: Likewise.
19089         * modules/posix_spawnattr_getpgroup: Likewise.
19090         * modules/posix_spawnattr_getschedparam: Likewise.
19091         * modules/posix_spawnattr_getschedpolicy: Likewise.
19092         * modules/posix_spawnattr_getsigdefault: Likewise.
19093         * modules/posix_spawnattr_getsigmask: Likewise.
19094         * modules/posix_spawnattr_init: Likewise.
19095         * modules/posix_spawnattr_setflags: Likewise.
19096         * modules/posix_spawnattr_setpgroup: Likewise.
19097         * modules/posix_spawnattr_setschedparam: Likewise.
19098         * modules/posix_spawnattr_setschedpolicy: Likewise.
19099         * modules/posix_spawnattr_setsigdefault: Likewise.
19100         * modules/posix_spawnattr_setsigmask: Likewise.
19101         * modules/posix_spawnp: Likewise.
19102
19103 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19104
19105         Add option to do-release-commit-and-tag to specify branch.
19106         * build-aux/do-release-commit-and-tag: Add --branch.
19107
19108 2011-05-03  Bruno Haible  <bruno@clisp.org>
19109
19110         Avoid unnecessary compilation units, through conditional dependencies.
19111         * modules/accept (Depends-on): Add conditions to the dependencies.
19112         * modules/acosl (Depends-on): Likewise.
19113         * modules/argz (Depends-on): Likewise.
19114         * modules/asinl (Depends-on): Likewise.
19115         * modules/atanl (Depends-on): Likewise.
19116         * modules/atoll (Depends-on): Likewise.
19117         * modules/bind (Depends-on): Likewise.
19118         * modules/btowc (Depends-on): Likewise.
19119         * modules/canonicalize-lgpl (Depends-on): Likewise.
19120         * modules/ceil (Depends-on): Likewise.
19121         * modules/ceilf (Depends-on): Likewise.
19122         * modules/ceill (Depends-on): Likewise.
19123         * modules/chdir-long (Depends-on): Likewise.
19124         * modules/chown (Depends-on): Likewise.
19125         * modules/close (Depends-on): Likewise.
19126         * modules/connect (Depends-on): Likewise.
19127         * modules/cosl (Depends-on): Likewise.
19128         * modules/dirfd (Depends-on): Likewise.
19129         * modules/dprintf (Depends-on): Likewise.
19130         * modules/dprintf-posix (Depends-on): Likewise.
19131         * modules/error (Depends-on): Likewise.
19132         * modules/euidaccess (Depends-on): Likewise.
19133         * modules/expl (Depends-on): Likewise.
19134         * modules/faccessat (Depends-on): Likewise.
19135         * modules/fchdir (Depends-on): Likewise.
19136         * modules/fclose (Depends-on): Likewise.
19137         * modules/fcntl (Depends-on): Likewise.
19138         * modules/fdopendir (Depends-on): Likewise.
19139         * modules/fflush (Depends-on): Likewise.
19140         * modules/floor (Depends-on): Likewise.
19141         * modules/floorf (Depends-on): Likewise.
19142         * modules/floorl (Depends-on): Likewise.
19143         * modules/fnmatch (Depends-on): Likewise.
19144         * modules/fopen (Depends-on): Likewise.
19145         * modules/fprintf-posix (Depends-on): Likewise.
19146         * modules/frexp (Depends-on): Likewise.
19147         * modules/frexp-nolibm (Depends-on): Likewise.
19148         * modules/frexpl (Depends-on): Likewise.
19149         * modules/frexpl-nolibm (Depends-on): Likewise.
19150         * modules/fseek (Depends-on): Likewise.
19151         * modules/fsusage (Depends-on): Likewise.
19152         * modules/ftell (Depends-on): Likewise.
19153         * modules/ftello (Depends-on): Likewise.
19154         * modules/futimens (Depends-on): Likewise.
19155         * modules/getcwd (Depends-on): Likewise.
19156         * modules/getcwd-lgpl (Depends-on): Likewise.
19157         * modules/getdelim (Depends-on): Likewise.
19158         * modules/getdomainname (Depends-on): Likewise.
19159         * modules/getgroups (Depends-on): Likewise.
19160         * modules/gethostname (Depends-on): Likewise.
19161         * modules/getline (Depends-on): Likewise.
19162         * modules/getlogin_r (Depends-on): Likewise.
19163         * modules/getopt-posix (Depends-on): Likewise.
19164         * modules/getpeername (Depends-on): Likewise.
19165         * modules/getsockname (Depends-on): Likewise.
19166         * modules/getsockopt (Depends-on): Likewise.
19167         * modules/getsubopt (Depends-on): Likewise.
19168         * modules/getusershell (Depends-on): Likewise.
19169         * modules/glob (Depends-on): Likewise.
19170         * modules/grantpt (Depends-on): Likewise.
19171         * modules/iconv_open (Depends-on): Likewise.
19172         * modules/iconv_open-utf (Depends-on): Likewise.
19173         * modules/inet_ntop (Depends-on): Likewise.
19174         * modules/inet_pton (Depends-on): Likewise.
19175         * modules/ioctl (Depends-on): Likewise.
19176         * modules/isapipe (Depends-on): Likewise.
19177         * modules/isfinite (Depends-on): Likewise.
19178         * modules/isinf (Depends-on): Likewise.
19179         * modules/lchown (Depends-on): Likewise.
19180         * modules/ldexpl (Depends-on): Likewise.
19181         * modules/link (Depends-on): Likewise.
19182         * modules/linkat (Depends-on): Likewise.
19183         * modules/listen (Depends-on): Likewise.
19184         * modules/logl (Depends-on): Likewise.
19185         * modules/lstat (Depends-on): Likewise.
19186         * modules/mbrlen (Depends-on): Likewise.
19187         * modules/mbrtowc (Depends-on): Likewise.
19188         * modules/mbsinit (Depends-on): Likewise.
19189         * modules/mbsnrtowcs (Depends-on): Likewise.
19190         * modules/mbsrtowcs (Depends-on): Likewise.
19191         * modules/mbtowc (Depends-on): Likewise.
19192         * modules/memcmp (Depends-on): Likewise.
19193         * modules/mkdir (Depends-on): Likewise.
19194         * modules/mkdtemp (Depends-on): Likewise.
19195         * modules/mkfifo (Depends-on): Likewise.
19196         * modules/mkfifoat (Depends-on): Likewise.
19197         * modules/mknod (Depends-on): Likewise.
19198         * modules/mkostemp (Depends-on): Likewise.
19199         * modules/mkostemps (Depends-on): Likewise.
19200         * modules/mkstemp (Depends-on): Likewise.
19201         * modules/mkstemps (Depends-on): Likewise.
19202         * modules/mktime (Depends-on): Likewise.
19203         * modules/nanosleep (Depends-on): Likewise.
19204         * modules/open (Depends-on): Likewise.
19205         * modules/openat (Depends-on): Likewise.
19206         * modules/perror (Depends-on): Likewise.
19207         * modules/poll (Depends-on): Likewise.
19208         * modules/popen (Depends-on): Likewise.
19209         * modules/posix_spawn (Depends-on): Likewise.
19210         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19211         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19212         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19213         * modules/posix_spawnp (Depends-on): Likewise.
19214         * modules/pread (Depends-on): Likewise.
19215         * modules/printf-posix (Depends-on): Likewise.
19216         * modules/ptsname (Depends-on): Likewise.
19217         * modules/putenv (Depends-on): Likewise.
19218         * modules/pwrite (Depends-on): Likewise.
19219         * modules/readline (Depends-on): Likewise.
19220         * modules/readlink (Depends-on): Likewise.
19221         * modules/readlinkat (Depends-on): Likewise.
19222         * modules/recv (Depends-on): Likewise.
19223         * modules/recvfrom (Depends-on): Likewise.
19224         * modules/regex (Depends-on): Likewise.
19225         * modules/remove (Depends-on): Likewise.
19226         * modules/rename (Depends-on): Likewise.
19227         * modules/renameat (Depends-on): Likewise.
19228         * modules/rmdir (Depends-on): Likewise.
19229         * modules/round (Depends-on): Likewise.
19230         * modules/roundf (Depends-on): Likewise.
19231         * modules/roundl (Depends-on): Likewise.
19232         * modules/rpmatch (Depends-on): Likewise.
19233         * modules/select (Depends-on): Likewise.
19234         * modules/send (Depends-on): Likewise.
19235         * modules/sendto (Depends-on): Likewise.
19236         * modules/setenv (Depends-on): Likewise.
19237         * modules/setlocale (Depends-on): Likewise.
19238         * modules/setsockopt (Depends-on): Likewise.
19239         * modules/shutdown (Depends-on): Likewise.
19240         * modules/sigaction (Depends-on): Likewise.
19241         * modules/signbit (Depends-on): Likewise.
19242         * modules/sigprocmask (Depends-on): Likewise.
19243         * modules/sinl (Depends-on): Likewise.
19244         * modules/sleep (Depends-on): Likewise.
19245         * modules/snprintf (Depends-on): Likewise.
19246         * modules/snprintf-posix (Depends-on): Likewise.
19247         * modules/socket (Depends-on): Likewise.
19248         * modules/sprintf-posix (Depends-on): Likewise.
19249         * modules/sqrtl (Depends-on): Likewise.
19250         * modules/stat (Depends-on): Likewise.
19251         * modules/strchrnul (Depends-on): Likewise.
19252         * modules/strdup-posix (Depends-on): Likewise.
19253         * modules/strerror (Depends-on): Likewise.
19254         * modules/strerror_r-posix (Depends-on): Likewise.
19255         * modules/strndup (Depends-on): Likewise.
19256         * modules/strnlen (Depends-on): Likewise.
19257         * modules/strptime (Depends-on): Likewise.
19258         * modules/strsep (Depends-on): Likewise.
19259         * modules/strsignal (Depends-on): Likewise.
19260         * modules/strstr-simple (Depends-on): Likewise.
19261         * modules/strtod (Depends-on): Likewise.
19262         * modules/strtoimax (Depends-on): Likewise.
19263         * modules/strtok_r (Depends-on): Likewise.
19264         * modules/strtoumax (Depends-on): Likewise.
19265         * modules/symlink (Depends-on): Likewise.
19266         * modules/symlinkat (Depends-on): Likewise.
19267         * modules/tanl (Depends-on): Likewise.
19268         * modules/tcgetsid (Depends-on): Likewise.
19269         * modules/tmpfile (Depends-on): Likewise.
19270         * modules/trunc (Depends-on): Likewise.
19271         * modules/truncf (Depends-on): Likewise.
19272         * modules/truncl (Depends-on): Likewise.
19273         * modules/uname (Depends-on): Likewise.
19274         * modules/unlink (Depends-on): Likewise.
19275         * modules/unlockpt (Depends-on): Likewise.
19276         * modules/unsetenv (Depends-on): Likewise.
19277         * modules/usleep (Depends-on): Likewise.
19278         * modules/utimensat (Depends-on): Likewise.
19279         * modules/vasprintf (Depends-on): Likewise.
19280         * modules/vdprintf (Depends-on): Likewise.
19281         * modules/vdprintf-posix (Depends-on): Likewise.
19282         * modules/vfprintf-posix (Depends-on): Likewise.
19283         * modules/vprintf-posix (Depends-on): Likewise.
19284         * modules/vsnprintf (Depends-on): Likewise.
19285         * modules/vsnprintf-posix (Depends-on): Likewise.
19286         * modules/vsprintf-posix (Depends-on): Likewise.
19287         * modules/wcrtomb (Depends-on): Likewise.
19288         * modules/wcscasecmp (Depends-on): Likewise.
19289         * modules/wcscspn (Depends-on): Likewise.
19290         * modules/wcsdup (Depends-on): Likewise.
19291         * modules/wcsncasecmp (Depends-on): Likewise.
19292         * modules/wcsnrtombs (Depends-on): Likewise.
19293         * modules/wcspbrk (Depends-on): Likewise.
19294         * modules/wcsrtombs (Depends-on): Likewise.
19295         * modules/wcsspn (Depends-on): Likewise.
19296         * modules/wcsstr (Depends-on): Likewise.
19297         * modules/wcstok (Depends-on): Likewise.
19298         * modules/wcswidth (Depends-on): Likewise.
19299         * modules/wctob (Depends-on): Likewise.
19300         * modules/wctomb (Depends-on): Likewise.
19301         * modules/wctype (Depends-on): Likewise.
19302         * modules/wcwidth (Depends-on): Likewise.
19303         * modules/write (Depends-on): Likewise.
19304
19305 2011-05-03  Bruno Haible  <bruno@clisp.org>
19306
19307         Support for conditional dependencies.
19308         * doc/gnulib.texi (Module description): Document the syntax of
19309         conditional dependencies.
19310         * gnulib-tool: New option --conditional-dependencies.
19311         (func_usage): Document it.
19312         (cond_dependencies): New variable.
19313         (func_get_automake_snippet_conditional,
19314         func_get_automake_snippet_unconditional): New functions, extracted from
19315         func_get_automake_snippet.
19316         (func_get_automake_snippet): Use them.
19317         (sed_first_32_chars): New variable.
19318         (func_module_shellfunc_name): New function.
19319         (func_module_shellvar_name): New function.
19320         (func_module_conditional_name): New function.
19321         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19322         func_cond_module_condition): New functions.
19323         (func_modules_transitive_closure): Add support for conditional
19324         dependencies.
19325         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19326         conditional automake snippet in an automake conditional.
19327         (func_emit_autoconf_snippets): Emit shell functions that contain the
19328         code for conditional modules.
19329         (func_import, func_create_testdir): Update specification.
19330
19331 2011-05-03  Eric Blake  <eblake@redhat.com>
19332
19333         test-getaddrinfo: report error information
19334         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19335
19336 2011-05-03  Jim Meyering  <meyering@redhat.com>
19337
19338         bootstrap: avoid build failure when $GZIP is set
19339         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19340         program name.  If defined at all, it is supposed to list gzip options.
19341         Reported by Alan Curry in http://debbugs.gnu.org/8609
19342
19343 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19344
19345         readme-release: new module with release instructions
19346         * modules/readme-release: New module.
19347         * top/README-release: New file, from coreutils, grep, diffutils.
19348         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19349
19350 2011-05-02  Eric Blake  <eblake@redhat.com>
19351
19352         fflush: also replace fclose when fixing fflush
19353         * modules/fflush (Depends-on): Add fclose.
19354         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19355         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19356         memstreams with no backing fd.
19357         * doc/posix-functions/fclose.texi (fclose): Document the use of
19358         fflush module to fix the bug.
19359         * tests/test-fclose.c (main): Relax test when fclose is used in
19360         isolation.
19361
19362         fclose: add some tests
19363         * modules/fclose-tests: New test module.
19364         * tests/test-fclose.c: New file.
19365         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19366
19367         fclose: reduced dependencies
19368         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19369         simpler lseek.
19370         * lib/fclose.c (rpl_fclose): Likewise.
19371         Reported by Simon Josefsson.
19372
19373         exit: drop remaining clients
19374         * modules/argmatch (Depends-on): Replace exit with stdlib.
19375         * modules/copy-file (Depends-on): Likewise.
19376         * modules/execute (Depends-on): Likewise.
19377         * modules/exitfail (Depends-on): Likewise.
19378         * modules/obstack (Depends-on): Likewise.
19379         * modules/pagealign_alloc (Depends-on): Likewise.
19380         * modules/pipe-filter-gi (Depends-on): Likewise.
19381         * modules/pipe-filter-ii (Depends-on): Likewise.
19382         * modules/savewd (Depends-on): Likewise.
19383         * modules/spawn-pipe (Depends-on): Likewise.
19384         * modules/wait-process (Depends-on): Likewise.
19385         * modules/xsetenv (Depends-on): Likewise.
19386         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19387         * modules/git-merge-changelog (Depends-on): Likewise.
19388         * modules/long-options (Depends-on): Likewise.
19389         * modules/pt_chown (Depends-on): Likewise.
19390         * modules/sysexits (Depends-on): Likewise.
19391
19392         freading: relax license from LGPLv3+ to LGPLv2+
19393         * modules/freading (License): Relax LGPL version.
19394
19395 2011-05-02  Bruno Haible  <bruno@clisp.org>
19396
19397         fchdir: Remove unused dependencies.
19398         * modules/fchdir (Depends-on): Remove include_next.
19399
19400 2011-05-02  Bruno Haible  <bruno@clisp.org>
19401
19402         gnulib-tool: Refactor.
19403         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19404         from func_emit_autoconf_snippets.
19405         (func_emit_autoconf_snippets): Use it.
19406
19407 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19408
19409         * NEWS: Document removal of 'exit'.
19410         * modules/exit: Remove file.
19411
19412 2011-05-01  Bruno Haible  <bruno@clisp.org>
19413
19414         Update DEPENDENCIES.
19415         * DEPENDENCIES (gettext): Recommend the newest release.
19416         Reported by Simon Josefsson.
19417
19418 2011-05-01  Bruno Haible  <bruno@clisp.org>
19419
19420         gnulib-tool: Reduce code duplication.
19421         * gnulib-tool (func_emit_autoconf_snippets): New function.
19422         (func_import, func_create_testdir): Use it.
19423
19424 2011-04-30  Eric Blake  <eblake@redhat.com>
19425
19426         fclose: don't fail on non-seekable input stream
19427         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19428         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19429         since fflush is allowed to fail in that case.
19430
19431 2011-04-30  Bruno Haible  <bruno@clisp.org>
19432
19433         dup3: cleanup
19434         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19435
19436 2011-04-30  Bruno Haible  <bruno@clisp.org>
19437
19438         netdb: Make it work in C++ mode.
19439         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19440         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19441         module.
19442         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19443         gl_MODULE_INDICATOR_FOR_TESTS.
19444         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19445         * modules/netdb-c++-tests: New file.
19446         * tests/test-netdb-c++.cc: New file.
19447
19448 2011-04-30  Bruno Haible  <bruno@clisp.org>
19449
19450         New modules 'vfscanf', 'vscanf'.
19451         * modules/vfscanf: New file.
19452         * modules/vscanf: New file.
19453         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19454         here.
19455         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19456         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19457
19458 2011-04-30  Bruno Haible  <bruno@clisp.org>
19459
19460         passfd: Add comments.
19461         * lib/passfd.c: Add comments about platforms.
19462
19463 2011-04-30  Bruno Haible  <bruno@clisp.org>
19464
19465         sys_uio: Make <sys/uio.h> self-contained.
19466         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19467         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19468
19469 2011-04-30  Bruno Haible  <bruno@clisp.org>
19470
19471         sys_socket: Ensure 'struct iovec' definition.
19472         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19473         <sys/socket.h>.
19474         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19475
19476 2011-04-30  Bruno Haible  <bruno@clisp.org>
19477
19478         sys_uio: Protect definition of 'struct iovec'.
19479         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19480         it as a C struct.
19481
19482 2011-04-30  Bruno Haible  <bruno@clisp.org>
19483
19484         manywarnings: fix indentation
19485         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19486
19487 2011-04-30  Pádraig Brady <P@draigBrady.com>
19488
19489         manywarnings: add -Wno-missing-field-initializers if needed.
19490         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19491         option if it's needed to allow initialization with { 0, }
19492
19493 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19494
19495         announce-gen: cosmetic improvement
19496         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19497
19498 2011-04-29  Jim Meyering  <meyering@redhat.com>
19499
19500         vc-list-files: indent with spaces, not TABs
19501         * build-aux/vc-list-files: Convert leading TABs to spaces,
19502         to match the style of most other files in gnulib.
19503
19504         announce-gen: indent with spaces, not TABs
19505         * build-aux/announce-gen: Convert all TABs to spaces, to match
19506         the style of most other files in gnulib.
19507
19508 2011-04-29  Eric Blake  <eblake@redhat.com>
19509
19510         quotearg: avoid uninitialized variable use
19511         * lib/quotearg.c (quoting_options_from_style): Initialize
19512         remaining fields, and ensure that custom styles are only used via
19513         quoting_options rather than quoting_style.
19514
19515 2011-04-29  Jim Meyering  <meyering@redhat.com>
19516
19517         maint.mk: remove unused VC-tag variable
19518         * top/maint.mk (VC-tag): Remove unused variable.
19519
19520 2011-04-29  Bruno Haible  <bruno@clisp.org>
19521
19522         netdb: fix gai_strerror replacements
19523         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19524         * modules/netdb: Substitute it.
19525
19526 2011-04-29  Jim Meyering  <meyering@redhat.com>
19527
19528         test-getcwd.c: avoid new set-but-not-used warning
19529         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
19530         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
19531         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
19532         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
19533
19534         test-hash.c: avoid a new shadowing warning
19535         * tests/test-hash.c (main): Don't shadow "dup".
19536
19537 2011-04-28  Eric Blake  <eblake@redhat.com>
19538
19539         getaddrinfo: fix gai_strerror signature
19540         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
19541         and work around mingw with UNICODE defined.
19542         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
19543         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
19544         * modules/netdb (Makefile.am): Substitute it.
19545         * lib/netdb.in.h (gai_strerror): Declare replacement.
19546         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
19547         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
19548         the fix.
19549
19550         getsockopt: avoid compiler warning
19551         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
19552         Reported by Matthias Bolte.
19553
19554         tests: drop unused link dependency
19555         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
19556         * modules/dirent-safer-tests (Makefile.am): Likewise.
19557         * modules/fdopendir-tests (Makefile.am): Likewise.
19558         * modules/mkfifoat-tests (Makefile.am): Likewise.
19559         * modules/openat-safer-tests (Makefile.am): Likewise.
19560         * modules/openat-tests (Makefile.am): Likewise.
19561         * modules/readlinkat-tests (Makefile.am): Likewise.
19562         * modules/symlinkat-tests (Makefile.am): Likewise.
19563         * modules/linkat-tests (Makefile.am): Likewise.
19564         (Depends-on): Switch to filenamecat-lgpl.
19565         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
19566         LIBINTL.
19567         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
19568         * tests/test-linkat.c (main): Don't require xalloc.
19569
19570         hash, mgetgroups: drop xalloc dependency
19571         * lib/hash.c (includes): Adjust includes.
19572         * lib/mgetgroups.c (includes): Likewise.
19573         (xgetgroups): Move...
19574         * lib/xgetgroups.c: ...to new file.
19575         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
19576         * modules/xgetgroups: New file, split from...
19577         * modules/mgetgroups: ...here.
19578         (Depends-on): Add xalloc-oversized.
19579         * modules/hash (Depends-on): Likewise.
19580         * modules/hash-tests (Depends-on): Drop xalloc.
19581         (test_hash_LDADD): Drop unused library.
19582         * tests/test-hash.c (main): Break xalloc dependency.
19583         (includes): Drop unused include.
19584
19585         xalloc-oversized: new module
19586         * modules/xalloc-oversized: New module.
19587         * modules/xalloc (Depends-on): Add it.
19588         * lib/xalloc.h (xalloc_oversized): Move...
19589         * lib/xalloc-oversized.h: ...into new file.
19590
19591         utimecmp: drop dependency on xmalloc
19592         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
19593         due to memory pressure.
19594         * modules/utimecmp (Depends-on): Drop xalloc.
19595
19596 2011-04-27  Eric Blake  <eblake@redhat.com>
19597
19598         getcwd: fix mingw bugs
19599         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
19600         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
19601         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
19602
19603 2011-04-27  Bruno Haible  <bruno@clisp.org>
19604
19605         mkstemps: Ensure declaration on MacOS X 10.5.
19606         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
19607         * doc/glibc-functions/mkstemps.texi: Document header file problem on
19608         MacOS X.
19609
19610 2011-04-27  Bruno Haible  <bruno@clisp.org>
19611
19612         mkstemp: More documentation.
19613         * doc/posix-functions/mkstemp.texi: Document header file problem on
19614         MacOS X.
19615
19616 2011-04-27  Bruno Haible  <bruno@clisp.org>
19617
19618         mkstemp: Tweak configure message when cross-compiling.
19619         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
19620         result as a guess.
19621
19622 2011-04-27  Bruno Haible  <bruno@clisp.org>
19623
19624         clean-temp: Clarify what it does.
19625         * lib/clean-temp.h: Add more comments.
19626         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
19627         module.
19628         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
19629         * doc/glibc-functions/mkstemps.texi: Likewise.
19630         * doc/glibc-functions/mkostemps.texi: Likewise.
19631
19632 2011-04-27  Eric Blake  <eblake@redhat.com>
19633
19634         fchdir: avoid extra chdir and fix test
19635         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
19636         getcwd-lgpl.
19637         * lib/fchdir.c (get_name): Any absolute name will do; it does not
19638         have to be canonical.
19639         (canonicalize_file_name): Drop unused macro.
19640         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
19641
19642         filenamecat-lgpl: fix licence
19643         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
19644         when it was first created.
19645
19646         linkat, renameat: add missing dependency
19647         * modules/linkat (Depends-on): Require getcwd-lgpl.
19648         * modules/renameat (Depends-on): Likewise.
19649
19650         tests: reduce dependencies
19651         * tests/test-linkat.c (main): Use lighter-weight getcwd.
19652         * tests/test-renameat.c (main): Likewise.
19653         * modules/linkat-tests (Depends-on): Relax dependency.
19654         * modules/renameat-tests (Depends-on): Likewise.
19655         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
19656         dependency explicit.
19657
19658         save-cwd: reduce default dependency
19659         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
19660         * lib/save-cwd.c: Update comments.
19661         * NEWS: Document the semantic change.
19662
19663         getcwd: enhance tests
19664         * tests/test-getcwd-lgpl.c: New file, taken from...
19665         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
19666         repeat long path stress tests from m4 probe.
19667         * modules/getcwd-lgpl-tests: New module.
19668         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
19669         * m4/getcwd-abort-bug.m4: Update comment.
19670         * m4/getcwd-path-max.m4: Likewise.
19671
19672         getcwd-lgpl: new module
19673         * modules/getcwd-lgpl: New module.
19674         * lib/getcwd-lgpl.c: New file.
19675         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19676         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19677         * modules/getcwd (configure.ac): Set C witness.
19678         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
19679
19680         getcwd: tweak comments
19681         * m4/getcwd-abort-bug.m4: Fix comments.
19682         * m4/getcwd-path-max.m4: Likewise.
19683         * m4/getcwd.m4: Likewise.
19684
19685 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19686         and Eric Blake  <eblake@redhat.com>
19687
19688         mkstemp: replace if system version uses wrong permissions
19689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
19690         read/write mode bits set in file created by mkstemp.
19691         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
19692
19693 2011-04-27  Eric Blake  <eblake@redhat.com>
19694
19695         passfd: avoid compiler warning
19696         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
19697         Reported by Laine Stump.
19698
19699 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
19700
19701         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
19702         required by the NetBSD (and perhaps other 4.4BSD derived) join.
19703
19704 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19705         and Eric Blake  <eblake@redhat.com>
19706
19707         mkstemp: mention clean-temp module
19708         * lib/mkstemp.c: Add comment.
19709         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
19710
19711 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19712
19713         inttypes: also provide default values for 32-bit tests
19714         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
19715         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
19716
19717 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19718
19719         strtoumax: remove dependency on strtoimax
19720         This is like the strtoull change of yesterday.
19721         * modules/strtoumax (Files): Add lib/strtoimax.c.
19722         (Depends-on): Remove strtoimax and add verify.
19723
19724         inttypes-incomplete: new module
19725         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
19726         all but the PRI* and SCN* parts of gl_INTTYPES_H.
19727         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
19728         of gl_INTTYPES_H.
19729         (gl_INTTYPES_H): Rewrite in terms of these new macros.
19730         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
19731         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
19732         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
19733         * modules/strtoumax, modules/xstrtol (Depends-on):
19734         Depend on inttypes-incomplete, not inttypes.
19735         * modules/inttypes-incomplete: New module, containing the contents
19736         of the old modules/inttypes module, except that the Files: section
19737         omits m4/inttypes-pri.m4, and the configure.ac section invokes
19738         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
19739         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
19740         (Depends-on): Depend only on inttypes-incomplete.
19741         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
19742
19743         inttypes: omit now-redundant strtoimax and strtoumax work
19744         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
19745         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
19746
19747         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
19748         This supports apps that need pointers to strtoimax and strtoumax,
19749         and ports to HP-UX 11.00 64.bit, which has macros that expand to
19750         nonexistent functions.  See
19751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
19752         et seq.
19753         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
19754         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
19755         a macro.
19756         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19757
19758 2011-04-25  Simon Josefsson  <simon@josefsson.org>
19759
19760         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
19761
19762 2011-04-25  Bruno Haible  <bruno@clisp.org>
19763
19764         strtol, strtoul: Mark modules as obsolete.
19765         * modules/strtol (Status, Notice): New sections.
19766         * modules/strtoul (Status, Notice): New sections.
19767
19768 2011-04-25  Bruno Haible  <bruno@clisp.org>
19769
19770         strtod: Remove check for strtod, unless supporting old platforms.
19771         * modules/strtod-obsolete: New file.
19772         * m4/strtod-obsolete.m4: New file.
19773         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
19774         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
19775         * modules/strtod (Depends-on): Add strtod-obsolete.
19776         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
19777
19778 2011-04-25  Bruno Haible  <bruno@clisp.org>
19779
19780         strcase: Make module obsolete.
19781         * modules/strcase (Status, Notice): New sections.
19782
19783 2011-04-25  Bruno Haible  <bruno@clisp.org>
19784
19785         dup2: Remove check for dup2, unless supporting old obsolete platforms.
19786         * modules/dup2-obsolete: New file.
19787         * m4/dup2-obsolete.m4: New file.
19788         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
19789         gl_FUNC_DUP2_OBSOLETE is not also defined.
19790         * modules/dup2 (Depends-on): Add dup2-obsolete.
19791         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
19792
19793 2011-04-25  Bruno Haible  <bruno@clisp.org>
19794
19795         strnlen: Avoid memchr related link error on old obsolete platforms.
19796         * modules/memchr-obsolete: New file.
19797         * m4/memchr-obsolete.m4: New file.
19798         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
19799         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
19800         * modules/memchr (Depends-on): Add memchr-obsolete.
19801         * modules/strnlen (Depends-on): Likewise.
19802         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
19803
19804 2011-04-25  Jim Meyering  <meyering@redhat.com>
19805
19806         maint.mk: makefile_at_at_check extend and clean up
19807         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
19808         in addition to */Makefile.am.
19809         Exempt legitimate uses of @VAR@ notation, e.g.,
19810         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
19811         Remove obsolete coreutils-specific comment.
19812         Prompted by discussion here:
19813         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
19814
19815 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19816
19817         strtoul: remove dependency on strtol
19818         This is so that 'configure' need not check for strtol merely because
19819         the application needs strtoul.
19820         * modules/strtoul (Files): Add lib/strtol.c.
19821         (Depends-on): Remove strtol.
19822
19823         strtoull: remove dependency on strtoul
19824         This is like the strtoll change.
19825         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
19826         (Depends-on): Remove strtoul.
19827
19828         strtoll: remove dependency on strtol
19829         This is so that 'configure' need not check for strtol merely because
19830         the application needs strtoll.
19831         * modules/strtoll (Files): Add lib/strtol.c.
19832         (Depends-on): Remove strtol.
19833
19834 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19835
19836         inttypes: Move some configure check to module 'imaxdiv'.
19837         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
19838         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
19839         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
19840
19841 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19842
19843         inttypes: Move some configure check to module 'imaxabs'.
19844         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
19845         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
19846         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
19847
19848 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19849
19850         inttypes: Remove configure tests that are not needed since 2009-12-31.
19851         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
19852         gl_cv_header_working_inttypes_h.
19853
19854 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19855
19856         * modules/strnlen (Depends-on): Remove memchr.
19857         The strnlen implementation doesn't need the memchr module's fixes; see
19858         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
19859
19860         strtol: remove dependency on wchar
19861         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
19862         * modules/strtol (Depends-on): Remove wchar.
19863
19864 2011-04-21  Eric Blake  <eblake@redhat.com>
19865
19866         passfd: fix test regression on Linux
19867         * modules/passfd-tests (configure.ac): Correct socketpair check.
19868
19869         passfd: speed up configure and drop unused code
19870         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
19871         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
19872         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
19873         Instead of probing at configure for unix_scm_rights_bsd44_way,
19874         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
19875         check to a struct member probe.
19876         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
19877         (sendfd, recvfd): Update preprocessor checks.
19878         * modules/passfd (Files): Reflect rename, and drop unused file.
19879         (Depends-on): Drop unused dependency.
19880
19881         passfd: allow compilation on mingw
19882         * modules/sys_socket (Depends-on): Add sys_uio.
19883         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
19884         iovec and a minimal struct msghdr.
19885         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
19886         * tests/test-sys_socket.c (main): Enhance test.
19887         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
19888         guaranteed to provide what we need.
19889         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
19890         * modules/passfd-tests (Depends-on): Add sys_wait.
19891         * tests/test-passfd.c (main): Skip test on mingw, for now.
19892         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
19893         partial 'struct msghdr' implementation.
19894
19895         sys_uio: new module
19896         * modules/sys_uio: New module.
19897         * modules/sys_uio-tests: Likewise.
19898         * lib/sys_uio.in.h: New file.
19899         * m4/sys_uio_h.m4: Likewise.
19900         * tests/test-sys_uio.c: Likewise.
19901         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
19902         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
19903
19904 2011-04-20  Jim Meyering  <meyering@redhat.com>
19905
19906         useless-if-before-free: avoid false-positive
19907         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
19908         disjunct so that it too requires a terminating ";".  Without that,
19909         this script would identify as useless one statement from gcc that
19910         was not:
19911           if (aligned_ptr)
19912             free (((void **) aligned_ptr) [-1]);
19913
19914 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
19915
19916         doc: update users.txt.
19917         * users.txt: Add barcode.
19918
19919 2011-04-19  Bruno Haible  <bruno@clisp.org>
19920
19921         ioctl: Remove link dependency on native Windows.
19922         * lib/fd-hook.h: Renamed from lib/close-hook.h.
19923         (gl_close_fn, gl_ioctl_fn): New types.
19924         (struct fd_hook): Renamed from struct close_hook. Change type of
19925         private_close_fn field. Add private_ioctl_fn field.
19926         (close_hook_fn): Add parameter for primary close method.
19927         (execute_close_hooks, execute_all_close_hooks): Likewise.
19928         (ioctl_hook_fn): New type.
19929         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
19930         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19931         argument.
19932         (unregister_fd_hook): Renamed from unregister_close_hook.
19933         * lib/fd-hook.c: Renamed from lib/close-hook.c.
19934         Don't include <unistd.h>.
19935         (close): Remove undef.
19936         (anchor): Update.
19937         (execute_close_hooks): Add argument for primary close method.
19938         (execute_all_close_hooks): Likewise.
19939         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
19940         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19941         argument. Allow each argument to be NULL.
19942         (unregister_fd_hook): Renamed from unregister_close_hook.
19943         * lib/close.c (rpl_close): Pass 'close' function pointer to
19944         execute_all_close_hooks.
19945         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
19946         (primary_ioctl): New function.
19947         (ioctl): Don't call ioctlsocket here. Instead, call
19948         execute_all_ioctl_hooks.
19949         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
19950         close method.
19951         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
19952         (fd_sockets_hook): Renamed from close_sockets_hook.
19953         (gl_sockets_startup, gl_sockets_cleanup): Update.
19954         * modules/fd-hook: Renamed from modules/close-hook. Update.
19955         * modules/close (Depends-on): Add fd-hook, remove close-hook.
19956         * modules/sockets (Depends-on): Likewise.
19957         * modules/ioctl (Depends-on): Add fd-hook.
19958         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
19959         GNULIB_SOCKET.
19960
19961 2011-04-19  Bruno Haible  <bruno@clisp.org>
19962
19963         Move the support of O_NONBLOCK in open() to the 'open' module.
19964         * modules/nonblocking (Depends-on): Remove 'open'.
19965         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
19966         gl_cv_have_open_O_NONBLOCK.
19967         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
19968         O_NONBLOCK support.
19969         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
19970
19971 2011-04-17  Bruno Haible  <bruno@clisp.org>
19972
19973         pipe2: Simplify code.
19974         * lib/pipe2.c (pipe2): Reduce code duplication.
19975
19976 2011-04-17  Bruno Haible  <bruno@clisp.org>
19977
19978         nonblocking: Add comment.
19979         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
19980
19981 2011-04-17  Bruno Haible  <bruno@clisp.org>
19982
19983         nonblocking: Add tests for sockets.
19984         * tests/test-nonblocking-socket.sh: New file.
19985         * tests/test-nonblocking-socket-main.c: New file.
19986         * tests/test-nonblocking-socket-child.c: New file.
19987         * tests/test-nonblocking-socket.h: New file.
19988         * tests/socket-server.h: New file.
19989         * tests/socket-client.h: New file.
19990         * modules/nonblocking-socket-tests: New file.
19991         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
19992
19993 2011-04-17  Bruno Haible  <bruno@clisp.org>
19994
19995         nonblocking: Add tests for pipes.
19996         * tests/test-nonblocking-pipe.sh: New file.
19997         * tests/test-nonblocking-pipe-main.c: New file.
19998         * tests/test-nonblocking-pipe-child.c: New file.
19999         * tests/test-nonblocking-pipe.h: New file.
20000         * tests/test-nonblocking-writer.h: New file.
20001         * tests/test-nonblocking-reader.h: New file.
20002         * tests/test-nonblocking-misc.h: New file.
20003         * modules/nonblocking-pipe-tests: New file.
20004         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20005
20006 2011-04-16  Bruno Haible  <bruno@clisp.org>
20007
20008         gettext: Clarify the needed programmer actions.
20009         * modules/gettext (Notice): New field.
20010         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20011
20012 2011-04-16  Bruno Haible  <bruno@clisp.org>
20013
20014         strchrnul: Tweak last commit.
20015         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20016         bug.
20017         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20018         as in _GL_FUNCDECL_SYS.
20019         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20020         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20021
20022 2011-04-15  Eric Blake  <eblake@redhat.com>
20023
20024         strchrnul: work around cygwin bug
20025         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20026         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20028         * modules/string (Makefile.am): Substitute it.
20029         * lib/string.in.h (strchrnul): Use it.
20030
20031 2011-04-15  Bruno Haible  <bruno@clisp.org>
20032
20033         Don't require lib/stdio-write.c when only module 'stdio' is used.
20034         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20035         invocation.
20036         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20037
20038 2011-04-14  Bruno Haible  <bruno@clisp.org>
20039
20040         Support non-blocking pipe I/O in read() on native Windows.
20041         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20042         (read): New declaration.
20043         * lib/read.c: New file.
20044         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20045         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20046         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20047         vscanf): New declarations.
20048         * lib/stdio-read.c: New file.
20049         * m4/read.m4: New file.
20050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20051         REPLACE_READ.
20052         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20053         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20054         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20055         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20056         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20057         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20058         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20059         * modules/read: New file.
20060         * modules/nonblocking (Files): Add lib/stdio-read.c.
20061         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20062         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20063         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20064         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20065         * modules/pread (Depends-on): Add read.
20066         * modules/safe-read (Depends-on): Likewise.
20067         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20068         gets, scanf, vfscanf, vscanf): Verify signatures.
20069         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20070         problem with non-blocking pipes.
20071         * doc/posix-functions/fgetc.texi: Likewise.
20072         * doc/posix-functions/fgets.texi: Likewise.
20073         * doc/posix-functions/fread.texi: Likewise.
20074         * doc/posix-functions/fscanf.texi: Likewise.
20075         * doc/posix-functions/getc.texi: Likewise.
20076         * doc/posix-functions/getchar.texi: Likewise.
20077         * doc/posix-functions/gets.texi: Likewise.
20078         * doc/posix-functions/scanf.texi: Likewise.
20079         * doc/posix-functions/vfscanf.texi: Likewise.
20080         * doc/posix-functions/vscanf.texi: Likewise.
20081
20082 2011-04-14  Bruno Haible  <bruno@clisp.org>
20083
20084         Support non-blocking pipe I/O in write() on native Windows.
20085         * lib/write.c (rpl_write): Split a write request that failed merely
20086         because the byte count was larger than the pipe buffer's size.
20087         * doc/posix-functions/write.texi: Mention the problem with large byte
20088         counts.
20089
20090 2011-04-14  Bruno Haible  <bruno@clisp.org>
20091
20092         wchar: Ensure that wchar_t gets defined on uClibc.
20093         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20094         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20095
20096 2011-04-13  Bruno Haible  <bruno@clisp.org>
20097
20098         safe-write, full-read: Avoid unnecessary compilation units.
20099         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20100         (Depends-on): Remove safe-read. Add ssize_t.
20101         * modules/full-read (Files): Add lib/full-write.c.
20102         (Depends-on): Add full-write.
20103
20104 2011-04-13  Bruno Haible  <bruno@clisp.org>
20105
20106         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20107         * modules/pwrite (Depends-on): Add 'write'.
20108
20109 2011-04-13  Bruno Haible  <bruno@clisp.org>
20110
20111         Support non-blocking pipe I/O in write() on native Windows.
20112         * lib/unistd.in.h (write): Enable replacement also if
20113         GNULIB_UNISTD_H_NONBLOCKING is 1.
20114         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20115         (rpl_write): When failing to write on a non-blocking pipe, change
20116         errno from ENOSPC to EAGAIN.
20117         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20118         putchar, puts, vfprintf, vprintf): Enable replacement also if
20119         GNULIB_STDIO_H_NONBLOCKING is 1.
20120         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20121         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20122         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20123         CALL_WITH_SIGPIPE_EMULATION.
20124         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20125         * m4/nonblocking.m4: New file.
20126         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20127         for non-blocking I/O support.
20128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20129         GNULIB_UNISTD_H_NONBLOCKING.
20130         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20131         required for non-blocking I/O support.
20132         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20133         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20134         lib/stdio-write.c, m4/asm-underscore.m4.
20135         (Depends-on): Add stdio, unistd.
20136         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20137         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20138         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20139         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20140         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20141         problem with non-blocking pipes.
20142         * doc/posix-functions/fputc.texi: Likewise.
20143         * doc/posix-functions/fputs.texi: Likewise.
20144         * doc/posix-functions/fwrite.texi: Likewise.
20145         * doc/posix-functions/printf.texi: Likewise.
20146         * doc/posix-functions/putc.texi: Likewise.
20147         * doc/posix-functions/putchar.texi: Likewise.
20148         * doc/posix-functions/puts.texi: Likewise.
20149         * doc/posix-functions/vfprintf.texi: Likewise.
20150         * doc/posix-functions/vprintf.texi: Likewise.
20151         * doc/posix-functions/write.texi: Likewise.
20152
20153 2011-04-10  Jim Meyering  <meyering@redhat.com>
20154
20155         maint.mk: prohibit doubled words
20156         Detect them also when they're separated by a newline.
20157         There are 3 ways to customize it:
20158           - disable the test on a per file basis, as usual with rules using
20159             $(VC_LIST_EXCEPT)
20160           - replace the default doubled-word-selecting regexp (affects all files)
20161           - ignore a particular file-vs-doubled-word match
20162         I nearly used that last one to ignore the "is is" match in
20163         coreutils' NEWS file, since the text was "ls -is is ..."
20164         To do that, I would have added this line to cfg.mk:
20165           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20166         but it would have ignored any "is is" match in NEWS.
20167         Low probability, but still...
20168         Instead, I changed the text, slightly:
20169           -  ls -is is now consistent with ls -lis in ignoring values returned
20170           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20171         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20172         (prohibit_doubled_word_): Define.
20173         (sc_prohibit_doubled_word): New rule.
20174         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20175
20176 2011-04-10  Jim Meyering  <meyering@redhat.com>
20177
20178         maint: fix doubled-word typo in comment
20179         * m4/gethostname.m4: s/is is/it is/
20180         * m4/getdomainname.m4: Likewise.
20181
20182 2011-04-10  Jim Meyering  <meyering@redhat.com>
20183
20184         maint: remove doubled word: s/it it/it/
20185         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20186
20187 2011-04-10  Jim Meyering  <meyering@redhat.com>
20188
20189         maint.mk: remove useless semicolon and backslash
20190         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20191         semicolon and backslash.
20192
20193 2011-04-10  Bruno Haible  <bruno@clisp.org>
20194
20195         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20196         * modules/stdint-tests (Depends-on): Add wchar.
20197
20198 2011-04-10  Jim Meyering  <meyering@redhat.com>
20199
20200         maint: remove doubled words in comments, e.g., s/a a/a/
20201         * lib/strptime.c (day_of_the_week): s/the the/the/
20202         * tests/test-chown.h (test_chown): s/a a/a/
20203
20204         test-chown.h: correct a cast
20205         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20206         when the destination is a stat.st_gid.
20207
20208 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20209
20210         getaddrinfo: Fix test for sa_len member.
20211         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20212         include <sys/types.h> before <sys/socket.h>.
20213
20214 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20215
20216         maint: change "can not" to "cannot"
20217         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20218         boundaries.
20219
20220 2011-04-09  Jim Meyering  <meyering@redhat.com>
20221
20222         maint: change "a a" to "a"
20223         * tests/test-lchown.h (test_lchown): s/a a/a/
20224
20225         maint.mk: prohibit \<the the\>
20226         * top/maint.mk (sc_prohibit_the_the): New rule.
20227
20228         maint: fix "the the" in comment
20229         * lib/count-one-bits.h: s/the the/the/
20230
20231         maint: change "can not" to "cannot"
20232         But do not change the occurrences in maintain.texi or in
20233         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20234         * doc/gnulib-tool.texi: s/can not/cannot/
20235         * doc/posix-functions/accept.texi (accept): Likewise.
20236         * doc/posix-functions/socket.texi (socket): Likewise.
20237         * lib/mbrtowc.c: Likewise.
20238
20239         maint.mk: prohibit use of "can not"
20240         * top/maint.mk (sc_prohibit_can_not): New rule.
20241         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20242
20243 2011-04-09  Bruno Haible  <bruno@clisp.org>
20244
20245         careadlinkat: Guard against misuse of careadlinkatcwd.
20246         * lib/careadlinkat.c: Include <stdlib.h>.
20247         (careadlinkatcwd): Check that the fd argument is as expected.
20248
20249 2011-04-09  Bruno Haible  <bruno@clisp.org>
20250
20251         careadlinkat: Use common coding style.
20252         * lib/careadlinkat.c: Move gnulib includes after system includes.
20253
20254 2011-04-09  Bruno Haible  <bruno@clisp.org>
20255
20256         careadlinkat: Clarify specification.
20257         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20258         (careadlinkatcwd): Add comment.
20259         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20260
20261 2011-04-09  Bruno Haible  <bruno@clisp.org>
20262
20263         areadlinkat: Avoid link error on many platforms.
20264         * modules/areadlinkat (Depends-on): Add areadlink.
20265
20266 2011-04-09  Bruno Haible  <bruno@clisp.org>
20267
20268         allocator, careadlinkat: Fix double-inclusion guard.
20269         * lib/allocator.h: Fix double-inclusion guard.
20270         * lib/careadlinkat.h: Likewise.
20271
20272 2011-04-09  Bruno Haible  <bruno@clisp.org>
20273
20274         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20275         * lib/relocwrapper.c: Update dependencies hierarchy.
20276         * build-aux/install-reloc: Update list of files to be compiled.
20277         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20278         lib/allocator.[hc].
20279
20280 2011-04-08  Eric Blake  <eblake@redhat.com>
20281
20282         strftime: silence gnulib-tool warning
20283         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20284
20285 2011-04-08  Bruno Haible  <bruno@clisp.org>
20286
20287         verify: Fix syntax error with GCC 4.6 in C++ mode.
20288         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20289         (HAVE_STATIC_ASSERT): New macro.
20290         (verify_true, verify): Use 'static_assert' if it is supported and
20291         '_Static_assert' is not supported.
20292
20293 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20294
20295         allocator: New module.
20296         * modules/allocator, lib/allocator.c: New files.
20297         * lib/allocator.h (stdlib_allocator): New decl.
20298         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20299         Remove.  Do not include <stdlib.h>.
20300         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20301         * modules/careadlinkat (Files): Remove lib/allocator.h.
20302         (Depends-on): Add allocator.
20303
20304         stdlib: let modules use system malloc, realloc
20305         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20306         if !_GL_USE_STDLIB_ALLOC.
20307         (malloc, realloc): Limit this change to a smaller scope.
20308
20309         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20310         (malloc, realloc): Don't #undef; no longer needed.
20311         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20312         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20313         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20314         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20315         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20316         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20317         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20318         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20319
20320         careadlinkat: rename members to avoid problem
20321         * lib/allocator.h (struct allocator): Rename members from
20322         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20323         and realloc are #define'd.  Reported by Eric Blake in
20324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20325         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20326
20327 2011-04-08  Eric Blake  <eblake@redhat.com>
20328
20329         nonblocking: reduce dependency
20330         * tests/test-nonblocking.c: Only test sockets when in use.
20331         * modules/nonblocking-tests (Depends-on): Drop socket.
20332         (Makefile.am): Link even if sockets are not present.
20333         * modules/pipe2-tests (Makefile.am): Likewise.
20334         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20335
20336         pipe2: fix O_NONBLOCK support on mingw
20337         * modules/pipe2 (Depends-on): Add nonblocking.
20338         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20339         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20340         * tests/test-nonblocking.c (main): Likewise.
20341         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20342
20343         fcntl-h: fix O_ACCMODE on cygwin
20344         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20345         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20346
20347         pipe-filter: drop O_NONBLOCK workarounds
20348         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20349         * modules/pipe-filter-ii (Depends-on): Likewise.
20350         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20351
20352         nonblocking: provide O_NONBLOCK for mingw
20353         * modules/nonblocking (Depends-on): Add open.
20354         (configure.ac): Set new witness macro.
20355         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20356         * modules/fcntl-h (Makefile.am): Substitute it.
20357         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20358         nonblocking module is in use.
20359         * lib/nonblocking.c: Adjust portability test.
20360         * lib/open.c (open): Don't let native open see gnulib flag.
20361         * tests/test-fcntl-h.c (main): Enhance test.
20362         * tests/test-open.h (test_open): Likewise.
20363         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20364
20365         careadlinkat: fix compilation error on mingw
20366         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20367         within struct allocator.
20368
20369 2011-04-06  Eric Blake  <eblake@redhat.com>
20370
20371         binary-io: relicense under LGPLv2+
20372         * modules/binary-io (License): Relax to LGPLv2+.
20373         Requested for libvirt, and required by pipe2.
20374
20375 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20376
20377         verify: use _Static_assert if available
20378         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20379         (verify_true, verify): Use it if available.  This generates better
20380         diagnostics with GCC 4.6.0 and later.
20381
20382 2011-04-05  Bruno Haible  <bruno@clisp.org>
20383
20384         Remove leftover generated .h files after config.status changed.
20385
20386         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20387         GL_GENERATE_ALLOCA_H.
20388         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20389         GL_GENERATE_ALLOCA_H evaluates to false.
20390
20391         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20392         GL_GENERATE_ARGZ_H.
20393         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20394         evaluates to false.
20395
20396         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20397         GL_GENERATE_BYTESWAP_H.
20398         * modules/byteswap (Makefile.am): Remove byteswap.h if
20399         GL_GENERATE_BYTESWAP_H evaluates to false.
20400
20401         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20402         GL_GENERATE_ERRNO_H.
20403         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20404         evaluates to false.
20405
20406         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20407         GL_GENERATE_FLOAT_H.
20408         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20409         evaluates to false.
20410
20411         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20412         GL_GENERATE_FNMATCH_H.
20413         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20414         GL_GENERATE_FNMATCH_H evaluates to false.
20415
20416         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20417         GL_GENERATE_GLOB_H.
20418         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20419         evaluates to false.
20420
20421         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20422         automake conditional GL_GENERATE_ICONV_H.
20423         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20424         evaluates to false.
20425
20426         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20427         GL_GENERATE_NETINET_IN_H.
20428         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20429         GL_GENERATE_NETINET_IN_H evaluates to false.
20430
20431         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20432         conditional GL_GENERATE_PTHREAD_H.
20433         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20434         * modules/pthread (Makefile.am): Remove pthread.h if
20435         GL_GENERATE_PTHREAD_H evaluates to false.
20436
20437         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20438         GL_GENERATE_SCHED_H.
20439         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20440         evaluates to false.
20441
20442         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20443         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20444         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20445         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20446
20447         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20448         GL_GENERATE_STDARG_H.
20449         * modules/stdarg (Makefile.am): Remove stdarg.h if
20450         GL_GENERATE_STDARG_H evaluates to false.
20451
20452         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20453         GL_GENERATE_STDBOOL_H.
20454         * modules/stdbool (Makefile.am): Remove stdbool.h if
20455         GL_GENERATE_STDBOOL_H evaluates to false.
20456
20457         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20458         conditional GL_GENERATE_STDDEF_H.
20459         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20460         * modules/stddef (Makefile.am): Remove stddef.h if
20461         GL_GENERATE_STDDEF_H evaluates to false.
20462
20463         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20464         GL_GENERATE_STDINT_H.
20465         * modules/stdint (Makefile.am): Remove stdint.h if
20466         GL_GENERATE_STDINT_H evaluates to false.
20467
20468         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20469         GL_GENERATE_SYSEXITS_H.
20470         * modules/sysexits (Makefile.am): Remove sysexits.h if
20471         GL_GENERATE_SYSEXITS_H evaluates to false.
20472
20473         Reported by Karl Berry and Ralf Wildenhues.
20474
20475 2011-04-05  Bruno Haible  <bruno@clisp.org>
20476
20477         Ensure to rebuild generated .h files when config.status has changed.
20478         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20479         config.status.
20480         * modules/ctype (Makefile.am): Likewise.
20481         * modules/dirent (Makefile.am): Likewise.
20482         * modules/errno (Makefile.am): Likewise.
20483         * modules/fcntl-h (Makefile.am): Likewise.
20484         * modules/float (Makefile.am): Likewise.
20485         * modules/getopt-posix (Makefile.am): Likewise.
20486         * modules/glob (Makefile.am): Likewise.
20487         * modules/iconv-h (Makefile.am): Likewise.
20488         * modules/inttypes (Makefile.am): Likewise.
20489         * modules/langinfo (Makefile.am): Likewise.
20490         * modules/locale (Makefile.am): Likewise.
20491         * modules/math (Makefile.am): Likewise.
20492         * modules/netdb (Makefile.am): Likewise.
20493         * modules/netinet_in (Makefile.am): Likewise.
20494         * modules/poll-h (Makefile.am): Likewise.
20495         * modules/pthread (Makefile.am): Likewise.
20496         * modules/pty (Makefile.am): Likewise.
20497         * modules/sched (Makefile.am): Likewise.
20498         * modules/search (Makefile.am): Likewise.
20499         * modules/selinux-h (Makefile.am): Likewise.
20500         * modules/signal (Makefile.am): Likewise.
20501         * modules/spawn (Makefile.am): Likewise.
20502         * modules/stdarg (Makefile.am): Likewise.
20503         * modules/stdbool (Makefile.am): Likewise.
20504         * modules/stddef (Makefile.am): Likewise.
20505         * modules/stdint (Makefile.am): Likewise.
20506         * modules/stdio (Makefile.am): Likewise.
20507         * modules/stdlib (Makefile.am): Likewise.
20508         * modules/string (Makefile.am): Likewise.
20509         * modules/strings (Makefile.am): Likewise.
20510         * modules/sys_file (Makefile.am): Likewise.
20511         * modules/sys_ioctl (Makefile.am): Likewise.
20512         * modules/sys_select (Makefile.am): Likewise.
20513         * modules/sys_socket (Makefile.am): Likewise.
20514         * modules/sys_stat (Makefile.am): Likewise.
20515         * modules/sys_time (Makefile.am): Likewise.
20516         * modules/sys_times (Makefile.am): Likewise.
20517         * modules/sys_utsname (Makefile.am): Likewise.
20518         * modules/sys_wait (Makefile.am): Likewise.
20519         * modules/sysexits (Makefile.am): Likewise.
20520         * modules/termios (Makefile.am): Likewise.
20521         * modules/time (Makefile.am): Likewise.
20522         * modules/unistd (Makefile.am): Likewise.
20523         * modules/wchar (Makefile.am): Likewise.
20524         * modules/wctype-h (Makefile.am): Likewise.
20525         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
20526
20527 2011-04-05  Bruno Haible  <bruno@clisp.org>
20528
20529         pipe2: Relicense under LGPLv2+.
20530         * modules/pipe2 (License): Change to LGPLv2+.
20531         Requested by Eric Blake, for libvirt.
20532
20533 2011-04-05  Bruce Korb  <bkorb@gnu.org>
20534
20535         bootstrap: compute gnulib_extra_files after updating build_aux
20536         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
20537         change build_aux or also supply gnulib_extra_files.  Handle correctly.
20538
20539 2011-04-05  Eric Blake  <eblake@redhat.com>
20540
20541         bootstrap: preserve git whitelist item sorting
20542         * build-aux/bootstrap (sort_patterns): New function.
20543         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
20544
20545 2011-04-05  Simon Josefsson  <simon@josefsson.org>
20546
20547         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
20548         sc_space_tab check.
20549
20550 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20551
20552         areadlink, areadlinkat: rewrite in terms of careadlinkat
20553         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
20554         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
20555         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
20556         (malloc, realloc): Remove #undefs.
20557         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
20558         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
20559         readlink, ssize_t, stdint, unistd.
20560         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
20561         areadlink, stdint.
20562
20563         careadlinkat: new module
20564         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
20565         * modules/careadlinkat: New files, written by me with
20566         a review and feedback from Ben Pfaff in
20567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
20568
20569 2011-04-01  Bruno Haible  <bruno@clisp.org>
20570
20571         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
20572         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
20573         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
20574         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
20575         Reported by Bruce Korb <bruce.korb@gmail.com>.
20576
20577 2011-04-01  Bruno Haible  <bruno@clisp.org>
20578
20579         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
20580         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
20581         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
20582         * modules/wcpcpy (Depends-on): Add extensions.
20583         * modules/wcpncpy (Depends-on): Likewise.
20584         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
20585         systems.
20586         * doc/posix-functions/wcpncpy.texi: Likewise.
20587         * doc/posix-functions/wcwidth.texi: Likewise.
20588
20589 2011-03-31  Eric Blake  <eblake@redhat.com>
20590
20591         nonblocking: fix mingw test failures
20592         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
20593         non-blocking flag on regular file.
20594         (get_nonblocking_flag): Set errno on invalid fd.
20595         * tests/test-nonblocking.c (main): Avoid test failure on
20596         directories if fchdir is not active.
20597         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
20598
20599 2011-03-31  Bruno Haible  <bruno@clisp.org>
20600
20601         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
20602         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
20603         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
20604         Reported by Simon Josefsson <simon@josefsson.org>.
20605
20606 2011-03-31  Bruno Haible  <bruno@clisp.org>
20607         and Eric Blake  <eblake@redhat.com>
20608
20609         nonblocking: new module
20610         * modules/nonblocking: New module.
20611         * modules/nonblocking-tests: Likewise.
20612         * lib/nonblocking.h: New file.
20613         * lib/nonblocking.c: Likewise.
20614         * tests/test-nonblocking.c: New test.
20615         * lib/ioctl.c (ioctl) [mingw]: Update comment.
20616
20617 2011-03-30  Bruno Haible  <bruno@clisp.org>
20618
20619         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
20620         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
20621         instead of 'printf' format for GCC >= 4.4.
20622         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
20623         (fprintf, printf, vfprintf, vprintf): Declare with
20624         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
20625         the system's vfprintf() function.
20626         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
20627
20628 2011-03-30  Eric Blake  <eblake@redhat.com>
20629
20630         passfd: fix scoping bug
20631         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
20632         before sendmsg/recvmsg.
20633
20634         passfd: standardize coding conventions
20635         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
20636         can be learned at compile time.
20637         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
20638         ifdefs.
20639         (sendfd, recvfd): Follow gnulib code conventions.
20640
20641         passfd: fix incorrect sendmsg arguments
20642         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
20643         incorrect msg_controllen value.
20644         * modules/passfd-tests (Depends-on): Check for alarm.
20645         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
20646         Reported by Bastien ROUCARIES.
20647
20648 2011-03-30  Bruno Haible  <bruno@clisp.org>
20649
20650         c-strcasestr: Relicense under LGPLv2+.
20651         * modules/c-strcasestr (License): Change to LGPLv2+.
20652         Requested by Eric Blake, for libvirt.
20653
20654 2011-03-30  Simon Josefsson  <simon@josefsson.org>
20655
20656         * users.txt: Add libidn2.  Fix libtasn1 link.
20657
20658 2011-03-30  Jim Meyering  <meyering@redhat.com>
20659
20660         tests: readlink* ("",... fails with EINVAL on newer kernels
20661         readlink and readlinkat have typically failed with ENOENT for
20662         the invalid, empty file name,  "".  However, with the advent
20663         of linux-2.6.39, they fail with EINVAL.
20664         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
20665         when operating on the empty file name.
20666         * tests/test-readlink.h (test_readlink): Likewise.
20667
20668 2011-03-29  Bruno Haible  <bruno@clisp.org>
20669
20670         Relicense some modules under LGPLv2+, for libidn2.
20671         * modules/array-mergesort (License): Change to LGPLv2+.
20672         * modules/c-strcaseeq (License): Likewise.
20673         * modules/striconveh (License): Likewise.
20674         * modules/striconveha (License): Likewise.
20675         * modules/uniconv/base (License): Likewise.
20676         * modules/uniconv/u8-conv-from-enc (License): Likewise.
20677         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
20678         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
20679         * modules/unictype/base (License): Likewise.
20680         * modules/unictype/bidiclass-of (License): Likewise.
20681         * modules/unictype/category-M (License): Likewise.
20682         * modules/unictype/category-none (License): Likewise.
20683         * modules/unictype/category-of (License): Likewise.
20684         * modules/unictype/category-test (License): Likewise.
20685         * modules/unictype/category-test-withtable (License): Likewise.
20686         * modules/unictype/combining-class (License): Likewise.
20687         * modules/unictype/joiningtype-of (License): Likewise.
20688         * modules/unictype/scripts (License): Likewise.
20689         * modules/uninorm/base (License): Likewise.
20690         * modules/uninorm/canonical-decomposition (License): Likewise.
20691         * modules/uninorm/composition (License): Likewise.
20692         * modules/uninorm/decompose-internal (License): Likewise.
20693         * modules/uninorm/decomposition-table (License): Likewise.
20694         * modules/uninorm/nfc (License): Likewise.
20695         * modules/uninorm/nfd (License): Likewise.
20696         * modules/uninorm/u32-normalize (License): Likewise.
20697         * modules/unistr/base (License): Likewise.
20698         * modules/unistr/u32-cpy (License): Likewise.
20699         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
20700         * modules/unistr/u32-to-u8 (License): Likewise.
20701         * modules/unistr/u32-uctomb (License): Likewise.
20702         * modules/unistr/u8-check (License): Likewise.
20703         * modules/unistr/u8-mblen (License): Likewise.
20704         * modules/unistr/u8-mbtouc (License): Likewise.
20705         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
20706         * modules/unistr/u8-mbtoucr (License): Likewise.
20707         * modules/unistr/u8-prev (License): Likewise.
20708         * modules/unistr/u8-strlen (License): Likewise.
20709         * modules/unistr/u8-to-u32 (License): Likewise.
20710         * modules/unistr/u8-uctomb (License): Likewise.
20711         * modules/unitypes (License): Likewise.
20712         Requested by Simon Josefsson.
20713
20714 2011-03-29  Simon Josefsson  <simon@josefsson.org>
20715
20716         lib-symbol-visibility: Add a notice.
20717         * modules/lib-symbol-visibility (Notice): New field.
20718
20719 2011-03-29  Bruno Haible  <bruno@clisp.org>
20720
20721         getaddrinfo: Doc fix.
20722         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
20723         section "fixed in Gnulib".
20724
20725 2011-03-28  Simon Josefsson  <simon@josefsson.org>
20726
20727         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
20728         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
20729
20730 2011-03-26  Bruno Haible  <bruno@clisp.org>
20731
20732         unictype/property-byname: Reduce the number of load-time relocations.
20733         * lib/unictype/pr_byname.c: Include <stdlib.h>.
20734         (UC_PROPERTY_INDEX_*): New enumeration values.
20735         (uc_property_byname): Convert an index from the lookup table to an
20736         uc_property_t.
20737         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
20738         values.
20739
20740 2011-03-26  Bruno Haible  <bruno@clisp.org>
20741
20742         unictype/property-byname: Allow omitted word separators and aliases.
20743         * lib/unictype/pr_byname.gperf: Add property names without word
20744         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
20745         for 'space'.
20746
20747 2011-03-26  Bruno Haible  <bruno@clisp.org>
20748
20749         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
20750         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
20751         also hyphens to space.
20752         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
20753         without spaces.
20754         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
20755
20756 2011-03-26  Bruno Haible  <bruno@clisp.org>
20757
20758         unictype/joiningtype-byname: Recognize long names as well.
20759         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
20760         a long name.
20761         * lib/unictype/joiningtype_byname.c: Include <string.h>,
20762         unictype/joiningtype_byname.h.
20763         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
20764         * lib/unictype/joiningtype_byname.gperf: New file.
20765         * modules/unictype/joiningtype-byname (Files): Add
20766         lib/unictype/joiningtype_byname.gperf.
20767         (Depends-on): Add gperf.
20768         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
20769         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
20770         long names.
20771
20772         Tests for module 'unictype/joiningtype-longname'.
20773         * modules/unictype/joiningtype-longname-tests: New file.
20774         * tests/unictype/test-joiningtype_longname.c: New file.
20775
20776         New module 'unictype/joiningtype-longname'.
20777         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
20778         * lib/unictype/joiningtype_longname.c: New file.
20779         * modules/unictype/joiningtype-longname: New file.
20780         * modules/unictype/joiningtype-all (Depends-on): Add
20781         unictype/joiningtype-longname.
20782
20783 2011-03-26  Bruno Haible  <bruno@clisp.org>
20784
20785         unictype/bidiclass-byname: Recognize long names as well.
20786         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
20787         name.
20788         * lib/unictype/bidi_byname.c: Include <string.h>,
20789         unictype/bidi_byname.h.
20790         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
20791         * lib/unictype/bidi_byname.gperf: New file.
20792         * modules/unictype/bidiclass-byname (Files): Add
20793         lib/unictype/bidi_byname.gperf.
20794         (Depends-on): Add gperf.
20795         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
20796         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
20797         long names.
20798
20799         Tests for module 'unictype/bidiclass-longname'.
20800         * modules/unictype/bidiclass-longname-tests: New file.
20801         * tests/unictype/test-bidi_longname.c: New file.
20802
20803         New module 'unictype/bidiclass-longname'.
20804         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
20805         * lib/unictype/bidi_longname.c: New file.
20806         * modules/unictype/bidiclass-longname: New file.
20807         * modules/unictype/bidiclass-all (Depends-on): Add
20808         unictype/bidiclass-longname.
20809
20810 2011-03-26  Bruno Haible  <bruno@clisp.org>
20811
20812         unictype/bidi*: Rename modules.
20813         * modules/unictype/bidiclass-all: Renamed from
20814         modules/unictype/bidicategory-all.
20815         * modules/unictype/bidiclass-name: Renamed from
20816         modules/unictype/bidiclass-name.
20817         (Description): Update.
20818         * modules/unictype/bidiclass-name-tests: Renamed from
20819         modules/unictype/bidicategory-name-tests.
20820         * modules/unictype/bidiclass-byname: Renamed from
20821         modules/unictype/bidicategory-byname.
20822         (Description): Update.
20823         * modules/unictype/bidiclass-byname-tests: Renamed from
20824         modules/unictype/bidicategory-byname-tests.
20825         * modules/unictype/bidiclass-of: Renamed from
20826         modules/unictype/bidicategory-of.
20827         (Description): Update.
20828         * modules/unictype/bidiclass-of-tests: Renamed from
20829         modules/unictype/bidicategory-of-tests.
20830         * modules/unictype/bidiclass-test: Renamed from
20831         modules/unictype/bidicategory-test.
20832         (Description): Update.
20833         * modules/unictype/bidiclass-test-tests: Renamed from
20834         modules/unictype/bidicategory-test-tests.
20835         * modules/unictype/bidicategory-all: New file, a simple redirection.
20836         * modules/unictype/bidicategory-name: Likewise.
20837         * modules/unictype/bidicategory-byname: Likewise.
20838         * modules/unictype/bidicategory-of: Likewise.
20839         * modules/unictype/bidicategory-test: Likewise.
20840         * modules/unictype/property-bidi-* (Dependencies): Update.
20841         * lib/unictype/bidi_*.c: Update comment.
20842
20843 2011-03-26  Bruno Haible  <bruno@clisp.org>
20844
20845         unictype/bidi*: Rename functions, part 2.
20846         * modules/unictype/bidicategory-name (configure.ac): Update required
20847         libunistring version.
20848         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
20849
20850 2011-03-25  Bruno Haible  <bruno@clisp.org>
20851
20852         New module 'unictype/combining-class-all'.
20853         * modules/unictype/combining-class-all: New file.
20854
20855         Tests for module 'unictype/combining-class-byname'.
20856         * modules/unictype/combining-class-byname-tests: New file.
20857         * tests/unictype/test-combiningclass_byname.c: New file.
20858
20859         New module 'unictype/combining-class-byname'.
20860         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
20861         * lib/unictype/combiningclass_byname.c: New file.
20862         * lib/unictype/combiningclass_byname.gperf: New file.
20863         * modules/unictype/combining-class-byname: New file.
20864
20865         Tests for module 'unictype/combining-class-longname'.
20866         * modules/unictype/combining-class-longname-tests: New file.
20867         * tests/unictype/test-combiningclass_longname.c: New file.
20868
20869         New module 'unictype/combining-class-longname'.
20870         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
20871         * lib/unictype/combiningclass_longname.c: New file.
20872         * modules/unictype/combining-class-longname: New file.
20873
20874         Tests for module 'unictype/combining-class-name'.
20875         * modules/unictype/combining-class-name-tests: New file.
20876         * tests/unictype/test-combiningclass_name.c: New file.
20877
20878         New module 'unictype/combining-class-name'.
20879         * lib/unictype.in.h (uc_combining_class_name): New declaration.
20880         * lib/unictype/combiningclass_name.c: New file.
20881         * modules/unictype/combining-class-name: New file.
20882
20883 2011-03-25  Bruno Haible  <bruno@clisp.org>
20884
20885         unictype/combining-class: Rename source files.
20886         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
20887         of unictype/combining.h.
20888         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
20889         Update.
20890         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
20891         * modules/unictype/combining-class (Description): Fix.
20892         (Files, Makefile.am): Update.
20893         * tests/unictype/test-combiningclass.c: Renamed from
20894         tests/unictype/test-combining.c.
20895         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
20896
20897 2011-03-25  Bruno Haible  <bruno@clisp.org>
20898
20899         unictype: Update list of canonical combining classes.
20900         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
20901
20902 2011-03-25  Bruno Haible  <bruno@clisp.org>
20903
20904         unictype/category-byname: Recognize long names as well.
20905         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
20906         a long name.
20907         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
20908         unictype/categ_byname.h.
20909         (UC_CATEGORY_INDEX_*): New enumeration values.
20910         (uc_general_category_byname): Use uc_general_category_lookup and
20911         convert from index to value.
20912         * lib/unictype/categ_byname.gperf: New file.
20913         * modules/unictype/category-byname (Files): Add
20914         lib/unictype/categ_byname.gperf.
20915         (Depends-on): Add gperf.
20916         (Makefile.am): Add rule for generating unictype/categ_byname.h.
20917         * tests/unictype/test-categ_byname.c (main): Test the recognition of
20918         long names.
20919
20920         Tests for module 'unictype/category-longname'.
20921         * modules/unictype/category-longname-tests: New file.
20922         * tests/unictype/test-categ_longname.c: New file.
20923
20924         New module 'unictype/category-longname'.
20925         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
20926         * lib/unictype/categ_longname.c: New file.
20927         * modules/unictype/category-longname: New file.
20928         * modules/unictype/category-all (Depends-on): Add it.
20929
20930 2011-03-25  Bruno Haible  <bruno@clisp.org>
20931
20932         Tests for module 'unictype/category-LC'.
20933         * modules/unictype/category-LC-tests: New file.
20934         * tests/unictype/test-categ_LC.c: New file, automatically generated.
20935
20936         New module 'unictype/category-LC'.
20937         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
20938         (UC_CATEGORY_LC): New declaration.
20939         (UC_CASED_LETTER): New macro.
20940         * lib/gen-uni-tables.c (is_category_LC): New function.
20941         (output_categories): Also handle category LC.
20942         (UC_CATEGORY_MASK_LC): New enumeration value.
20943         (general_category_byname): Also handle category LC.
20944         * lib/unictype/categ_LC.c: New file.
20945         * lib/unictype/categ_LC.h: New file, automatically generated.
20946         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
20947         category LC.
20948         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
20949         * modules/unictype/category-LC: New file.
20950         * modules/unictype/category-byname (Depends-on): Add
20951         unictype/category-LC.
20952         * modules/unictype/category-all (Depends-on): Likewise.
20953
20954 2011-03-25  Eric Blake  <eblake@redhat.com>
20955
20956         xmalloc: revert yesterday's regression
20957         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
20958         realloc's underlying behavior (allowing allocation of zero-size
20959         objects, especially if malloc-gnu is also in use).
20960
20961 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
20962
20963         maint.mk: add missing version to VC-tag
20964         * top/maint.mk: git tag was missing actual tag name; add it.
20965
20966         valgrind: do leak checking, and exit with code 1 on error (not 0)
20967         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
20968         to VALGRIND.
20969
20970 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
20971
20972         posix-modules: say what it does.
20973         * posix-modules: Add a line to the --help output saying what it does.
20974
20975 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20976
20977         xmalloc: Do not leak if underlying realloc is C99 compatible.
20978         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
20979         This avoids a leak on C99-based systems.  See
20980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
20981
20982 2011-03-24  Eric Blake  <eblake@redhat.com>
20983
20984         realloc: document portability problem
20985         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
20986         passing 0 size to realloc.
20987
20988 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
20989
20990         doc: update users.txt
20991         * users.txt: Add cvsps, tmpwatch
20992
20993 2011-03-23  Matt Rice  <ratmice@gmail.com>
20994
20995         doc: update users.txt
20996         * users.txt: Add gdb.
20997
20998 2011-03-23  Jim Meyering  <meyering@redhat.com>
20999
21000         doc: update users.txt
21001         Looking through matches up to the following URL (there are still
21002         several more pages), I found several projects that use gnulib:
21003         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21004         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21005         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21006
21007 2011-03-22  Bruno Haible  <bruno@clisp.org>
21008
21009         unictype/bidi*: Rename functions.
21010         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21011         uc_bidi_class, uc_is_bidi_class): New declarations.
21012         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21013         uc_bidi_category_byname.
21014         (uc_bidi_category_byname): New function.
21015         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21016         u_bidi_category_name.
21017         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21018         (uc_bidi_category_name): New function.
21019         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21020         uc_bidi_category.
21021         (uc_bidi_category): New function.
21022         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21023         uc_is_bidi_category. Invoke uc_bidi_class.
21024         (uc_is_bidi_category): New function.
21025         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21026         instead of uc_bidi_category_byname.
21027         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21028         instead of uc_bidi_category_name.
21029         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21030         uc_bidi_category.
21031         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21032         instead of uc_is_bidi_category.
21033
21034 2011-03-21  Bruno Haible  <bruno@clisp.org>
21035
21036         New module 'unictype/joininggroup-all'.
21037         * modules/unictype/joininggroup-all: New file.
21038
21039         Tests for module 'unictype/joininggroup-of'.
21040         * modules/unictype/joininggroup-of-tests: New file.
21041         * tests/unictype/test-joininggroup_of.c: New file.
21042         * tests/unictype/test-joininggroup_of.h: New file, automatically
21043         generated by gen-uni-tables.
21044
21045         New module 'unictype/joininggroup-of'.
21046         * modules/unictype/joininggroup-of: New file.
21047         * lib/unictype/joininggroup_of.c: New file.
21048         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21049         gen-uni-tables.
21050
21051         Tests for module 'unictype/joininggroup-byname'.
21052         * modules/unictype/joininggroup-byname-tests: New file.
21053         * tests/unictype/test-joininggroup_byname.c: New file.
21054
21055         New module 'unictype/joininggroup-byname'.
21056         * modules/unictype/joininggroup-byname: New file.
21057         * lib/unictype/joininggroup_byname.c: New file.
21058         * lib/unictype/joininggroup_byname.gperf: New file.
21059
21060         Tests for module 'unictype/joininggroup-name'.
21061         * modules/unictype/joininggroup-name-tests: New file.
21062         * tests/unictype/test-joininggroup_name.c: New file.
21063
21064         New module 'unictype/joininggroup-name'.
21065         * modules/unictype/joininggroup-name: New file.
21066         * lib/unictype/joininggroup_name.c: New file.
21067         * lib/unictype/joininggroup_name.h: New file.
21068
21069         New module 'unictype/joiningtype-all'.
21070         * modules/unictype/joiningtype-all: New file.
21071
21072         Tests for module 'unictype/joiningtype-of'.
21073         * modules/unictype/joiningtype-of-tests: New file.
21074         * tests/unictype/test-joiningtype_of.c: New file.
21075         * tests/unictype/test-joiningtype_of.h: New file, automatically
21076         generated by gen-uni-tables.
21077
21078         New module 'unictype/joiningtype-of'.
21079         * modules/unictype/joiningtype-of: New file.
21080         * lib/unictype/joiningtype_of.c: New file.
21081         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21082         gen-uni-tables.
21083
21084         Tests for module 'unictype/joiningtype-byname'.
21085         * modules/unictype/joiningtype-byname-tests: New file.
21086         * tests/unictype/test-joiningtype_byname.c: New file.
21087
21088         New module 'unictype/joiningtype-byname'.
21089         * modules/unictype/joiningtype-byname: New file.
21090         * lib/unictype/joiningtype_byname.c: New file.
21091
21092         Tests for module 'unictype/joiningtype-name'.
21093         * modules/unictype/joiningtype-name-tests: New file.
21094         * tests/unictype/test-joiningtype_name.c: New file.
21095
21096         New module 'unictype/joiningtype-name'.
21097         * modules/unictype/joiningtype-name: New file.
21098         * lib/unictype/joiningtype_name.c: New file.
21099
21100         unictype: Add support for Arabic shaping properties.
21101         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21102         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21103         declarations.
21104         (UC_JOINING_GROUP_*): New enumeration values.
21105         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21106         declarations.
21107         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21108         (unicode_joining_type): New variable.
21109         (UC_JOINING_GROUP_*): New enumeration values.
21110         (unicode_joining_group): New variable.
21111         (fill_arabicshaping, joining_type_as_c_identifier,
21112         output_joining_type_test, output_joining_type,
21113         joining_group_as_c_identifier, output_joining_group_test,
21114         output_joining_group): New functions.
21115         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21116         fill_arabicshaping and output_joining_type_test, output_joining_type,
21117         output_joining_group_test, output_joining_group.
21118         Reported by Simon Josefsson.
21119
21120 2011-03-21  Jim Meyering  <meyering@redhat.com>
21121
21122         strftime: fix a bug in yesterday's change
21123         * lib/strftime.c (add): Accommodate width's initial value of -1.
21124         Otherwise, nstrftime would copy uninitialized data into
21125         the result buffer.
21126
21127 2011-03-21  Jim Meyering  <meyering@redhat.com>
21128
21129         tests: add strftime-tests module
21130         * tests/test-strftime.c: New file.
21131         * modules/strftime-tests: New module.
21132
21133 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21134
21135         strftime: don't assume a byte count fits in 'int'
21136         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21137         found this problem by static analysis, using gcc -Wstrict-overflow
21138         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21139         on an integer overflow having undefined behavior, but it turns out
21140         that the argument is a size, which might not fit in 'int' anyway,
21141
21142 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21143
21144         stdio: don't require ignore_value around fwrite
21145
21146         This patch works around libc bug 11959
21147         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21148         Without this patch, applications must often write
21149         ignore_value (fwrite (...)) even though the ignore_value is
21150         not helpful here.  It's common to write many objects, using
21151         fwrite/printf/etc., and then use ferror to detect output error.
21152
21153         I considered making this patch optional, but decided against it,
21154         because libc is obviously being inconsistent here: there is no
21155         reason libc should insist that user code must inspect fwrite
21156         return's value without also insisting that it inspect printf's,
21157         putchar's, etc.  If user code wants to have a strict style where
21158         all these functions' values are checked (so that ferror need not
21159         be checked), we could add support for that style in a new gnulib
21160         module, but in the meantime it's better to be consistent and to
21161         support common usage.
21162
21163         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21164         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21165         that we are compiling in checking mode, and if not C++, and
21166         if not already wrapping fwrite for some other reason.
21167         (fwrite): #define to rpl_fwrite if the latter is defined.
21168
21169 2011-03-20  Bruno Haible  <bruno@clisp.org>
21170
21171         verror: Fix compilation error introduced on 2011-02-13.
21172         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21173         instead of __attribute__.
21174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21175
21176 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21177             Bruno Haible  <bruno@clisp.org>
21178
21179         socklen: do not depend on sys_socket
21180         While trying to modify Emacs to use gnulib's socklen module,
21181         I discovered a circular dependency: socklen depends on sys_socket
21182         and vice versa.  Emacs can use socklen, but it does not need
21183         sys_socket because it has its own substitute for sys/socket.h.
21184         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21185         gl_TYPE_SOCKLEN_T.
21186         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21187         gl_PREREQ_SYS_H_SOCKET.
21188         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21189         gl_PREREQ_SYS_H_SOCKET.
21190         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21191         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21192         * modules/socklen (Depends-on): Do not depend on sys_socket.
21193         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21194
21195 2011-03-20  Jim Meyering  <meyering@redhat.com>
21196
21197         maint.mk: sort file names *after* new transformation
21198         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21199         prefix would have led to an unwarranted failure in GNU parted.
21200         Sort after that transformation.
21201
21202 2011-03-19  Jim Meyering  <meyering@redhat.com>
21203
21204         maint.mk: fix po-file syntax-check rule
21205         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21206         Patch by Bruno Haible.
21207
21208 2011-03-19  Bruno Haible  <bruno@clisp.org>
21209
21210         socklen: Update comment.
21211         * m4/socklen.m4: Update comment about platforms.
21212
21213 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21214             Bruno Haible  <bruno@clisp.org>
21215
21216         inet_ntop, inet_pton: Simplify.
21217         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21218         documented to provide socklen_t and we already depend on sys_socket.
21219         * modules/inet_pton (Depends-on): Likewise.
21220         * lib/arpa_inet.in.h: Adjust comment.
21221
21222 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21223             Bruno Haible  <bruno@clisp.org>
21224
21225         netdb: Simplify.
21226         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21227         documented to provide socklen_t and we already depend on sys_socket.
21228         * lib/netdb.in.h: Adjust comment.
21229
21230 2011-03-19  Bruno Haible  <bruno@clisp.org>
21231
21232         sys_socket, netdb: Document problem with socklen_t.
21233         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21234         platforms.
21235         * doc/posix-headers/netdb.texi: Likewise.
21236
21237 2011-03-18  Eric Blake  <eblake@redhat.com>
21238
21239         maint.mk: let po check work in VPATH build
21240         * top/maint.mk (po_file): Allow cfg.mk override.
21241         (sc_po_check): Allow VPATH use.
21242         Reported by Jiri Denemark.
21243
21244 2011-03-16  Jim Meyering  <meyering@redhat.com>
21245
21246         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21247         Before, you would have had to create one .x-sc_ file per rule in order
21248         to exempt offending files.  Now, you may instead use a Make variable --
21249         usually defined in cfg.mk -- whose name identifies the affected rule.
21250         * top/maint.mk (_sc_excl): Define.
21251         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21252         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21253
21254 2011-03-13  Bruno Haible  <bruno@clisp.org>
21255
21256         ignore-value tests: Avoid warnings.
21257         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21258         empty for gcc < 3.4.
21259
21260 2011-03-13  Bruno Haible  <bruno@clisp.org>
21261
21262         passfd: Fix link error on Solaris.
21263         * modules/passfd (Description): Correct.
21264         (Depends-on): Add socketlib.
21265         (Link): New section.
21266         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21267
21268 2011-03-13  Bruno Haible  <bruno@clisp.org>
21269
21270         passfd: Fix link error on AIX 5.2.
21271         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21272
21273 2011-03-13  Bruno Haible  <bruno@clisp.org>
21274
21275         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21276         * lib/sys_socket.in.h: Include <stddef.h>.
21277         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21278         CMSG_FIRSTHDR. Remove unused variable.
21279
21280 2011-03-13  Bruno Haible  <bruno@clisp.org>
21281
21282         passfd: Fix compilation error on OpenBSD.
21283         * lib/passfd.c: Include <sys/uio.h>.
21284
21285 2011-03-13  Bruno Haible  <bruno@clisp.org>
21286
21287         passfd test: Fix warnings.
21288         * tests/test-passfd.c: Include <sys/wait.h>.
21289         (main): Fix typo.
21290
21291 2011-03-13  Bruno Haible  <bruno@clisp.org>
21292
21293         passfd module, part 4, tweaks.
21294         * tests/test-passfd.c: Reorder includes.
21295         (main): Fix perror and printf calls.
21296
21297 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21298
21299         passfd module, part 4.
21300         * modules/passfd-tests: New file.
21301         * tests/test-passfd.c: New file.
21302
21303 2011-03-13  Jim Meyering  <meyering@redhat.com>
21304
21305         Makefile: rely on GNU make; derive syntax-check rule names
21306         Rather than requiring that each sc_ rule be listed as a dependent
21307         of "check", use features of GNU make to derive the list.
21308         * Makefile (syntax-check-rules): Define.
21309         (check): Depend on the new variable, not the hard-coded list.
21310
21311 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21312             Bruno Haible  <bruno@clisp.org>
21313
21314         passfd module, part 3.
21315         * lib/passfd.h (recvfd): Add a flags argument.
21316         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21317         (recvfd): Add a flags argument.
21318         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21319         exists.
21320         * modules/passfd (Depends-on): Add cloexec.
21321         Suggested by Eric Blake.
21322
21323 2011-03-13  Bruno Haible  <bruno@clisp.org>
21324
21325         passfd module, part 2, tweaks.
21326         * modules/passfd (Files): Reorder.
21327         (Depends-on): Remove errno.
21328         (Include): Remove <sys/socket.h>, <sys/un.h>.
21329         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21330         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21331         specification header. Include <sys/socket.h> always. Don't include
21332         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21333         (sendfd): Clarify that it sets errno when it fails.
21334         (recvfd): Fix specification.
21335
21336 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21337
21338         passfd module, part 2.
21339         * modules/passfd: New file.
21340         * lib/passfd.h: New file.
21341         * lib/passfd.c: New file.
21342
21343 2011-03-12  Bruno Haible  <bruno@clisp.org>
21344
21345         wcswidth, mbswidth: Avoid integer overflow.
21346         * lib/wcswidth.c: Include <limits.h>.
21347         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21348         * lib/mbswidth.c: Include <limits.h>.
21349         (mbsnwidth): Avoid 'int' overflow.
21350         Reported by Jim Meyering.
21351
21352 2011-03-12  Bruno Haible  <bruno@clisp.org>
21353
21354         futimens, utimensat: Avoid endless recursion on Solaris 10.
21355         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21356         Solaris.
21357         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21358         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21359
21360 2011-03-11  Jim Meyering  <meyering@redhat.com>
21361
21362         maint.mk: relax a regexp to accommodate other formatting styles
21363         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21364         between "ngettext" and the following "(".
21365
21366 2011-03-11  Pádraig Brady <P@draigBrady.com>
21367
21368         maint.mk: suppress a false positive warning
21369         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21370         diagnostics are marked with ngettext.
21371
21372 2011-03-10  Eric Blake  <eblake@redhat.com>
21373
21374         wchar: add explicit dependencies, for Tru64
21375         * modules/mbmemcasecoll (Depends-on): Add wchar.
21376         * modules/mbtowc (Depends-on): Likewise.
21377         * modules/vasnprintf (Depends-on): Likewise.
21378         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21379         * modules/wctomb (Depends-on): Likewise.
21380         Reported by Peter O'Gorman.
21381
21382 2011-03-08  Bruno Haible  <bruno@clisp.org>
21383
21384         passfd module, part 1, tweaks.
21385         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21386         Improve indentation. Improve AC_MSG_CHECKING messages.
21387         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21388         gl_SOCKET_FAMILIES.
21389
21390 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21391
21392         passfd module, part 1.
21393         * m4/afunix.m4: New file.
21394         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21395         sockets.
21396
21397 2011-03-08  Bruno Haible  <bruno@clisp.org>
21398
21399         regex-quote: New API.
21400         * lib/regex-quote.h: Include <stdbool.h>.
21401         (struct regex_quote_spec): New type.
21402         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21403         New declarations.
21404         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21405         'const struct regex_quote_spec *' argument.
21406         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21407         (pcre_special): New constant.
21408         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21409         New functions.
21410         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21411         'const struct regex_quote_spec *' argument.
21412         * modules/regex-quote (Depends-on): Add stdbool.
21413         * tests/test-regex-quote.c (check): Update for new API. Add test for
21414         anchored results.
21415         * NEWS: Mention the API change.
21416         Reported by Reuben Thomas and Eric Blake.
21417
21418 2011-03-06  Bruno Haible  <bruno@clisp.org>
21419
21420         regex-quote: Fix creation of POSIX extended regular expressions.
21421         * lib/regex-quote.c (ere_special): Add grouping and alternation
21422         operators.
21423
21424 2011-03-05  Bruno Haible  <bruno@clisp.org>
21425
21426         doc: Improve doc regarding autopoint vs. gnulib.
21427         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21428         disable autopoint while running autoreconf.
21429         Suggested by Ralf Wildenhues.
21430
21431 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21432
21433         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21434         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21435
21436 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21437
21438         parse-duration: remove xalloc.h dependency
21439         * lib/parse-duration.c (parse_period): handle NULL return from
21440         strdup instead of calling xstrdup().
21441         * modules/parse-duration: remove "xalloc" dependency
21442
21443 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21444
21445         bootstrap: honor m4_base when running aclocal
21446         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21447
21448 2011-03-02  Jim Meyering  <meyering@redhat.com>
21449
21450         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21451         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21452         on request from Matt Booth.
21453
21454 2011-03-01  Eric Blake  <eblake@redhat.com>
21455
21456         test-link: work on Hurd
21457         * tests/test-link.h (test_link): Hurd rejects linking directories
21458         with EISDIR instead of the POSIX-mandated EPERM.
21459
21460 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21461
21462         stdio: simplify by moving files to printf-posix, sigpipe
21463         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21464         since this symbol is needed only if printf is replaced.
21465         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21466         Require gl_ASM_SYMBOL_PREFIX.
21467         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21468         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21469         (Depends-on): Add 'raise'.
21470         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21471         * modules/stdio (Files): Remove lib/stdio-write.c,
21472         m4/asm-underscore.m4.
21473         (Depends-on): Remove 'raise'.
21474
21475         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21476         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21477         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21478         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21479
21480 2011-02-28  Bruno Haible  <bruno@clisp.org>
21481
21482         localcharset: Assume ANSI C behaviour of free().
21483         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21484         calling free().
21485         Suggested by Simon Josefsson <simon@josefsson.org>.
21486
21487 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21488             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21489             Bruno Haible  <bruno@clisp.org>  (tiny change)
21490
21491         On Cygwin, use /proc file system instead of win32 API.
21492         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21493         Win32 file names.
21494         (DllMain): Simplify by removing Cygwin specific code.
21495         (find_shared_library_fullname): Use Linux specific implementation also
21496         for Cygwin.
21497         (get_shared_library_fullname): Update accordingly.
21498         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21499         Win32 file names.
21500         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21501         Cygwin specific code.
21502
21503 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21504             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21505
21506         Fix OpenMP flag detection for various Fortran compilers.
21507         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21508         OpenMP-conditional compilation construct, to force compile
21509         failure with missing OpenMP flag.
21510         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21511
21512 2011-02-25  Eric Blake  <eblake@redhat.com>
21513
21514         strstr: expand test coverage
21515         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21516         compilation.
21517         * tests/test-memmem.c (main): Duplicate tests.
21518         * tests/test-strcasestr.c (main): Likewise.
21519         * tests/test-c-strcasestr.c (main): Likewise.
21520
21521 2011-02-25  Jim Meyering  <meyering@redhat.com>
21522
21523         maint.mk: detect missing-NL-at-EOF, too
21524         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21525         it also detects when a file lacks a newline at EOF.
21526         (require_exactly_one_NL_at_EOF_): Renamed from
21527         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
21528         since people may well have .x-sc_... file names tied to the
21529         existing name.  Suggested by Eric Blake.
21530
21531 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21532
21533         dirname: move m4/dos.m4 functionality into lib/dosname.h
21534
21535         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
21536         extracts symbols from it, puts them into config.h; but it's much
21537         easier to use the symbols directly.  filename.h already does this,
21538         but it disagrees with dos.m4 in some respects.  This patch
21539         introduces a different include file dosname.h that packages up
21540         dos.m4, and then later we can work on merging filename.h and
21541         dosname.h.  Applications that need only the easy-to-configure
21542         symbols should consider including dosname.h rather than dirname.h.
21543         * NEWS: Mention incompatible changes.
21544         * m4/dos.m4: Remove.
21545         * lib/dosname.h, modules/dosname: New files.
21546         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
21547         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
21548         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
21549         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
21550         Include dosname.h, not dirname.h.
21551         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
21552         Include dosname.h, for definitions of symbols like ISSLASH
21553         that used to be in config.h.
21554         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
21555         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21556         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21557         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21558         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
21559         * modules/rmdir (Files): Likewise.
21560         * modules/stat (Files): Likewise.
21561         * modules/unlink (Files): Likewise.
21562         * modules/dirname-lgpl (Depends-on): Add dosname.
21563         * modules/lstat (Depends-on): Likewise.
21564         * modules/openat (Depends-on): Likewise.
21565         * modules/rmdir (Depends-on): Likewise.
21566         * modules/savewd (Depends-on): Likewise.
21567         * modules/stat (Depends-on): Likewise.
21568         * modules/unlink (Depends-on): Likewise.
21569         * modules/openat (Depends-on): Remove dirname-lgpl.
21570         * modules/savewd (Depends-on): Likewise.
21571         * tests/test-dirname.c: Do not use removed symbols like
21572         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
21573         the remaining symbols, e.g., ISSLASH ('\\').
21574
21575 2011-02-25  Eric Blake  <eblake@redhat.com>
21576
21577         strstr: revert patches that introduced bug and pessimization
21578         * lib/str-two-way.h: Add another reference.
21579         (two_way_short_needle, two_way_long_needle): Revert changes from
21580         2011-02-24; they pessimize search speed.
21581         (critical_factorization): Partially revert changes from
21582         2010-06-22; they violate the requirement that the left half of the
21583         needle be smaller than the period of the needle.
21584
21585 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21586
21587         filenamecat: remove unnecessary dependency on dirname-lgpl
21588         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
21589         is no direct dependency, just an indirect one via filenamecat-lgpl.
21590
21591         remove: remove unnecessary use of m4/dos.m4
21592         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
21593         * modules/remove (FILES): Remove m4/dos.m4.
21594
21595         * lib/openat-proc.c: Don't include dirname.h; not needed.
21596
21597         backupfile: remove unnecessary use of m4/dos.m4
21598         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
21599         of its symbols are used by the backupfile code.  backupfile.c does
21600         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
21601         for the rare case of programs that want all their backup file
21602         names to live within 8+3 limits, and dos.m4 doesn't address that.
21603         * modules/backupfile (Files): Remove m4/dos.m4.
21604
21605 2011-02-24  Jim Meyering  <meyering@redhat.com>
21606
21607         strstr: fix a bug whereby strstr would mistakenly return NULL
21608         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
21609         in period calculation.
21610         (two_way_long_needle): Likewise.
21611         The original problem was reported by Mike Stump in
21612         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
21613         Ralf Wildenhues provided the short needle and haystack.
21614         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
21615         Add a more involved test to trigger the bug in two_way_long_needle.
21616
21617 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21618
21619         gnulib-tool: remove use of bold display in help screen
21620         * gnulib-tool (func_usage): Do not use bold display anymore in the
21621         help screen.  That was just meant to be a temporary emphasis for a
21622         backward-incompatible change.
21623
21624 2011-02-23  Bruno Haible  <bruno@clisp.org>
21625
21626         Fix misindentation of preprocessor directives.
21627         * lib/argp-namefrob.h: Reindent preprocessor directives.
21628         * lib/getopt_int.h (struct _getopt_data): Likewise.
21629         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
21630         * lib/vasnprintf.c (decode_long_double): Likewise.
21631         * tests/test-argmatch.c: Insert blank lines, for clarity.
21632         * tests/test-exclude.c: Likewise.
21633
21634 2011-02-22  Bruno Haible  <bruno@clisp.org>
21635
21636         ioctl: Fix for MacOS X in 64-bit mode.
21637         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
21638         value.
21639         Suggested by Eric Blake.
21640         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
21641
21642 2011-02-22  Jim Meyering  <meyering@redhat.com>
21643
21644         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
21645         * Makefile (sc_cpp_indent_check): Don't limit the check to files
21646         in lib/.
21647
21648 2011-02-22  Eric Blake  <eblake@redhat.com>
21649
21650         maint: avoid any CDPATH issue
21651         * Makefile (sc_cpp_indent_check): Anchor cd argument.
21652
21653         maint: adjust cpp indentation for my modules, as well
21654         * Makefile (sc_cpp_indent_check): Add my name.
21655         * lib/fbufmode.c: Filter through cppi.
21656         * lib/fpurge.c: Likewise.
21657         * lib/freadable.c: Likewise.
21658         * lib/freading.c: Likewise.
21659         * lib/fwritable.c: Likewise.
21660         * lib/fwriting.c: Likewise.
21661         * lib/sigaction.c: Likewise.
21662
21663 2011-02-22  Jim Meyering  <meyering@redhat.com>
21664
21665         maint: adjust cpp indentation to reflect nesting depth
21666         I.e., in a block of code that begins with an unnested "#if",
21667         put one space between the "#" in column 1 and following token.
21668         For example,
21669         -#include <sys/vfs.h>
21670         +# include <sys/vfs.h>
21671         Do this only in .c files that are part of a module I maintain.
21672         * lib/linkat.c: Filter through cppi.
21673         * lib/nanosleep.c: Likewise.
21674         * lib/openat.c: Likewise.
21675         * lib/openat-die.c: Likewise.
21676         * lib/dup3.c: Likewise.
21677         * lib/fchownat.c: Likewise.
21678         * lib/flock.c: Likewise.
21679         * lib/fsync.c: Likewise.
21680         * lib/fts.c: Likewise.
21681         * lib/getpass.c: Likewise.
21682         * lib/gettimeofday.c: Likewise.
21683         * lib/userspec.c: Likewise.
21684         * Makefile (sc_cpp_indent_check): New rule, to check this.
21685
21686 2011-02-22  Bruno Haible  <bruno@clisp.org>
21687
21688         New module 'wctomb'.
21689         * lib/stdlib.in.h (wctomb): New declaration.
21690         * lib/wctomb.c: New file.
21691         * lib/wctomb-impl.h: New file.
21692         * m4/wctomb.m4: New file.
21693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
21694         REPLACE_WCTOMB.
21695         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
21696         REPLACE_WCTOMB.
21697         * modules/wctomb: New file.
21698         * tests/test-stdlib-c++.cc: Test signature of wctomb.
21699         * doc/posix-functions/wctomb.texi: Mention the new module.
21700         * modules/wctob (Depends-on): Add wctomb.
21701
21702 2011-02-22  Bruno Haible  <bruno@clisp.org>
21703
21704         New module 'mbtowc'.
21705         * lib/stdlib.in.h (mbtowc): New declaration.
21706         * lib/mbtowc.c: New file.
21707         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
21708         * m4/mbtowc.m4: New file.
21709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
21710         REPLACE_MBTOWC.
21711         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
21712         REPLACE_MBTOWC.
21713         * modules/mbtowc: New file.
21714         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
21715         * doc/posix-functions/mbtowc.texi: Mention the new module.
21716         * modules/btowc (Depends-on): Add mbtowc.
21717
21718 2011-02-22  Bruno Haible  <bruno@clisp.org>
21719
21720         wcrtomb: Add more tests for native Windows platforms.
21721         * tests/test-wcrtomb-w32-1.sh: New file.
21722         * tests/test-wcrtomb-w32-2.sh: New file.
21723         * tests/test-wcrtomb-w32-3.sh: New file.
21724         * tests/test-wcrtomb-w32-4.sh: New file.
21725         * tests/test-wcrtomb-w32-5.sh: New file.
21726         * tests/test-wcrtomb-w32.c: New file.
21727         * modules/wcrtomb-tests (Files): Add them.
21728         (Makefile.am): Arrange to run these tests.
21729         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
21730         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
21731
21732 2011-02-20  Bruno Haible  <bruno@clisp.org>
21733
21734         wcrtomb: Enhance test.
21735         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
21736
21737 2011-02-20  Bruno Haible  <bruno@clisp.org>
21738
21739         mbrtowc: Tiny optimization.
21740         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
21741
21742 2011-02-20  Jim Meyering  <meyering@redhat.com>
21743
21744         test-exclude.c: remove unmatched #endif
21745         * tests/test-exclude.c: Remove stray #endif, left over from
21746         the change of a week ago.
21747
21748 2011-02-19  Jim Meyering  <meyering@redhat.com>
21749
21750         git-version-gen: skip "-dirty" check when appropriate
21751         * build-aux/git-version-gen: Don't run any git commands when the
21752         version string comes from .tarball-version.  Prior to this, we
21753         would run git update-index --refresh even from a just-unpacked
21754         tarball directory, and that could affect a .git/ directory in a
21755         parent of the build directory.  Reported by Mike Frysinger.
21756
21757 2011-02-19  Bruno Haible  <bruno@clisp.org>
21758
21759         unictype/property-byname: Reduce the size of the 'data' segment.
21760         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
21761
21762 2011-02-19  Bruno Haible  <bruno@clisp.org>
21763
21764         unictype/scripts: Reduce the size of the 'data' segment.
21765         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
21766         '%pic'.
21767         * lib/unictype/scripts_byname.gperf: Regenerated.
21768
21769 2011-02-19  Bruno Haible  <bruno@clisp.org>
21770
21771         stdint: Update documentation.
21772         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
21773
21774 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
21775
21776         stdint: omit redundant check for wchar.h
21777         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
21778         always tests whether wchar.h exists, so remove the now-redundant test.
21779
21780 2011-02-18  Bruno Haible  <bruno@clisp.org>
21781
21782         stdint: Cut dependency to module 'wchar'.
21783         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
21784         include the necessary prerequisites.
21785         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
21786         * modules/stdint (Depends-on): Remove wchar.
21787         (Makefile.am): Substitute HAVE_WCHAR_H.
21788         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
21789
21790 2011-02-18  Eric Blake  <eblake@redhat.com>
21791
21792         longlong: skip, rather than fail, on cross-compilation
21793         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
21794         when cross-compiling; regression from 2011-02-16.
21795
21796 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21797
21798         * NEWS: Mention 2011-02-08 change to stdlib.
21799
21800 2011-02-17  Bruno Haible  <bruno@clisp.org>
21801
21802         getloadavg: Add comments about platforms.
21803         * m4/getloadavg.m4: Add comment.
21804         * lib/getloadavg.c: Likewise.
21805
21806 2011-02-17  Bruno Haible  <bruno@clisp.org>
21807
21808         getloadavg: Fix link error on Solaris 2.6.
21809         * modules/getloadavg (Link): New section.
21810         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
21811         linking test-getloadavg.
21812         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
21813         getloadavg.
21814
21815 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21816
21817         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
21818         It was 'int', but this doesn't match the IRIX 6.5 manual.
21819         Suggested by Bruno Haible in
21820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
21821
21822 2011-02-17  Bruno Haible  <bruno@clisp.org>
21823
21824         havelib: Fix comments.
21825         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
21826         change.
21827
21828 2011-02-17  Bruno Haible  <bruno@clisp.org>
21829
21830         havelib: Update config.rpath.
21831         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
21832
21833 2011-02-17  Bruno Haible  <bruno@clisp.org>
21834
21835         getloadavg test: Add some plausibility checks.
21836         * tests/test-getloadavg.c (check_avg): Print a warning when the value
21837         is improbable.
21838
21839 2011-02-16  Eric Blake  <eblake@redhat.com>
21840
21841         maintainer-makefile: make syntax-check a no-op from tarballs
21842         * top/maint.mk (no-vc-detected): New rule.
21843         (local-checks-available): Use it to avoid hanging if someone tries
21844         'make syntax-check' from a tarball.  Also append to any non-syntax
21845         checks already defined in cfg.mk.
21846
21847 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21848
21849         longlong: tune, particularly for common case of c99
21850
21851         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
21852         or running anything if c99, or if unsigned long long int does not
21853         work.  In either case, we know the answer without further tests.
21854         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
21855         it at most once, and use its results for both long long int and
21856         unsigned long long int.  This is more likely to be efficient in
21857         the common case where the program wants to check for both long
21858         long int and unsigned long long int.
21859         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
21860         since the answer is already known.
21861
21862 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21863
21864         getloadavg: set errno
21865         * lib/getloadavg.c: Set errno when returning -1.  If no other
21866         error number looks appropriate, set it to ENOSYS if the getloadavg
21867         looks like it can't possibly ever work, ENOTSUP otherwise.
21868         Suggested by Bruno Haible in
21869         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
21870
21871         getloadavg: trim unused parts and speed up 'configure'
21872         * NEWS: Document this.
21873         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
21874         always compiled if getloadavg is absent.
21875         Move test code to ...
21876         * tests/test-getloadavg.c: New file, containing previous
21877         contents of test from lib/getloadavg.c.  It also contains
21878         suggestions by Bruno Haible in
21879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
21880         * modules/getloadavg-tests: New file.
21881         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
21882         Do tests in the same order as they're needed for getloadavg.c.
21883         Omit setgid-related tests that generate symbols KMEM_GROUP,
21884         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
21885         Do only the tests that are needed to see whether the system has
21886         getloadavg, moving the other tests into ...
21887         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
21888         NLIST_NAME_UNION; nobody should be using it.  Do not define
21889         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
21890         relevant, as the user of this module shouldn't care how getloadavg
21891         is implemented.
21892
21893         getloadavg: omit unused var
21894         * lib/getloadavg.c (getloadavg): Omit unused local variable.
21895
21896 2011-02-15  Jim Meyering  <meyering@redhat.com>
21897
21898         doc: update users.txt
21899         * users.txt: Update iwhd's URL.
21900
21901 2011-02-13  Bruno Haible  <bruno@clisp.org>
21902
21903         Consistent macro naming for macros that use GCC __attribute__.
21904         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
21905         _ATTRIBUTE_NONNULL_.
21906         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
21907         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
21908         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
21909         ATTRIBUTE_DEPRECATED.
21910         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
21911         ATTRIBUTE_NORETURN.
21912         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21913         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21914         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21915         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21916         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
21917         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
21918         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
21919         ATTRIBUTE_SENTINEL.
21920         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
21921         ATTRIBUTE_RETURN_CHECK.
21922         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
21923         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
21924         ATTRIBUTE_NORETURN.
21925         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
21926         Reported by Paul Eggert.
21927
21928 2011-02-13  Bruno Haible  <bruno@clisp.org>
21929
21930         Don't interfere with a program's definition of __attribute__.
21931         * lib/argp.h (__attribute__): Remove definition.
21932         (_GL_ATTRIBUTE_FORMAT): New macro.
21933         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
21934         * lib/argp-fmtstream.h (__attribute__): Remove definition.
21935         (_GL_ATTRIBUTE_FORMAT): New macro.
21936         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
21937         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
21938         GCC 3 or newer.
21939         * lib/error.h (__attribute__): Remove definition.
21940         (_GL_ATTRIBUTE_FORMAT): New macro.
21941         (error, error_at_line): Use it.
21942         * lib/hash.h (__attribute__): Remove definition.
21943         (ATTRIBUTE_WUR): Update definition. Define always.
21944         * lib/openat.h (__attribute__): Remove definition.
21945         (ATTRIBUTE_NORETURN): Update definition. Define always.
21946         * lib/sigpipe-die.h (__attribute__): Remove definition.
21947         (ATTRIBUTE_NORETURN): Update definition. Define always.
21948         * lib/vasnprintf.h (__attribute__): Remove definition.
21949         (_GL_ATTRIBUTE_FORMAT): New macro.
21950         (asnprintf, vasnprintf): Use it.
21951         * lib/xalloc.h (__attribute__): Remove definition.
21952         (ATTRIBUTE_NORETURN): Update definition. Define always.
21953         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
21954         * lib/xmemdup0.h (__attribute__): Remove definition.
21955         (ATTRIBUTE_NORETURN): Update definition. Define always.
21956         * lib/xprintf.h (__attribute__): Remove definition.
21957         (_GL_ATTRIBUTE_FORMAT): New macro.
21958         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
21959         * lib/xstrtol.h (__attribute__): Remove definition.
21960         (ATTRIBUTE_NORETURN): Update definition. Define always.
21961         * lib/xvasprintf.h (__attribute__): Remove definition.
21962         (_GL_ATTRIBUTE_FORMAT): New macro.
21963         (xasprintf, xvasprintf): Use it.
21964         * tests/test-argmatch.c (__attribute__): Remove definition.
21965         (ATTRIBUTE_NORETURN): Update definition. Define always.
21966         * tests/test-exclude.c (__attribute__): Remove definition.
21967         (ATTRIBUTE_NORETURN): Update definition. Define always.
21968         Reported by Paul Eggert.
21969
21970 2011-02-13  Bruno Haible  <bruno@clisp.org>
21971
21972         mbrtowc: Add more tests for native Windows platforms.
21973         * tests/test-mbrtowc-w32-1.sh: New file.
21974         * tests/test-mbrtowc-w32-2.sh: New file.
21975         * tests/test-mbrtowc-w32-3.sh: New file.
21976         * tests/test-mbrtowc-w32-4.sh: New file.
21977         * tests/test-mbrtowc-w32-5.sh: New file.
21978         * tests/test-mbrtowc-w32.c: New file.
21979         * modules/mbrtowc-tests (Files): Add them.
21980         (Makefile.am): Arrange to run these tests.
21981         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
21982         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
21983
21984 2011-02-13  Bruno Haible  <bruno@clisp.org>
21985
21986         mbrtowc: Work around native Windows bug.
21987         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
21988         guess when no suitable locale for testing was found.
21989         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
21990
21991 2011-02-13  Bruno Haible  <bruno@clisp.org>
21992
21993         mbsinit: Work around mingw bug.
21994         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
21995         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
21996         Windows.
21997         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
21998
21999 2011-02-13  Bruno Haible  <bruno@clisp.org>
22000
22001         mbsinit: Don't crash for a NULL argument.
22002         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22003         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22004
22005 2011-02-13  Bruno Haible  <bruno@clisp.org>
22006
22007         Don't interfere with a program's definition of __attribute__.
22008         * lib/stdio.in.h (__attribute__): Remove definition.
22009         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22010         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22011         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22012         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22013         * lib/string.in.h (__attribute__): Remove definition.
22014         Reported by Paul Eggert.
22015
22016 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22017
22018         stdlib: don't get in the way of non-GCC __attribute__
22019         See thread starting at
22020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22021         Revert previous stdlib change, installing the following instead:
22022         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22023         to get in the way of a non-GCC compiler that supports __attribute__.
22024         (_GL_ATTRIBUTE_RETURN): New macro.
22025         (_Exit): Use it instead of __attribute__.
22026
22027 2011-02-12  Bruno Haible  <bruno@clisp.org>
22028
22029         quotearg test: Avoid test failure on mingw.
22030         * tests/test-quotearg.sh: Convert the locale identifier from native
22031         Windows syntax to Unix syntax.
22032
22033 2011-02-12  Bruno Haible  <bruno@clisp.org>
22034
22035         setlocale: Prefer gnulib's override over libintl's override.
22036         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22037         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22038         GNULIB_defined_setlocale is set.
22039
22040 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22041
22042         stdlib: support non-GCC __attribute__
22043
22044         Fix a serious and tricky problem encountered when attempting to
22045         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22046         5.5, but it crashed due to memory corruption on Solaris 10 with
22047         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22048         bits that are otherwise zero.  This tagging is optional inside
22049         Emacs but is preferred and is used when __attribute__ ((__aligned
22050         (8))) works, as it does with both recent-enough GCC and with Sun C
22051         5.11.  However, Sun C 5.11 is not GCC and does not #define
22052         __GNUC__ and __GNUC_MINOR__.
22053
22054         When I added the getloadavg module to Emacs, it brought in
22055         stdlib.in.h, which contained this fragment:
22056
22057            #ifndef __attribute__
22058            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22059            #  define __attribute__(Spec)   /* empty */
22060            # endif
22061            #endif
22062
22063         When files that include <stdlib.h> were compiled with Sun C 5.11,
22064         the above code disabled __attribute__ ((__aligned (8))), which
22065         caused variables to not be properly aligned, which eventually led
22066         to the pointer corruption mentioned above.  (This was a bit hard
22067         to diagnose, unfortunately.)
22068
22069         Several "#define __attribute__(X) /* empty */" code snippets need
22070         to be eradicated from Gnulib to work with non-GCC compilers that
22071         support __attribute__.  The Autoconf way to do this is to test for
22072         each kind of attribute that we want support for, and selectively
22073         enable that in source code.
22074
22075         Fix this problem just for stdlib.h, by adding a test for the
22076         __noreturn__ attribute, and change stdlib.in.h to use that test
22077         when needed.  This technique can be easily generalized to the
22078         other *.in.h files and attributes, and a similar technique can be
22079         used for *.h and *.c files.  This patch is enough to solve the
22080         problem for Emacs + getloadavg, and I thought I'd publish it for
22081         feedback before undertaking further, similar fixes in other
22082         modules.
22083
22084         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22085         because it's not needed for stdlib.h.  It merely substitutes the
22086         value directly into stdlib.h.  We may well need to #define it, or
22087         similar symbols, for other modules, but it's nice to also have an
22088         option to not #define it for applications like Emacs that do not
22089         need it.
22090
22091         * lib/stdlib.in.h (__attribute__): Do not #define.
22092         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22093         be defined only if the _Exit module is also used.
22094         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22096         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22097         platforms.
22098         * modules/_Exit (Files): Add m4/attribute.m4.
22099         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22100         * m4/attribute.m4: New file.
22101
22102 2011-02-12  Bruno Haible  <bruno@clisp.org>
22103
22104         wcsrtombs: Work around bug on native Windows.
22105         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22106         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22107         instead of len.
22108         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22109
22110 2011-02-12  Bruno Haible  <bruno@clisp.org>
22111
22112         mbsrtowcs: Work around bug on native Windows.
22113         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22114         against mingw bug.
22115         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22116
22117 2011-02-12  Bruno Haible  <bruno@clisp.org>
22118
22119         Avoid setlocale bugs in tests.
22120         * modules/btowc (Dependencies): Add setlocale.
22121         * modules/c-strcase (Dependencies): Likewise.
22122         * modules/mbmemcasecmp (Dependencies): Likewise.
22123         * modules/mbmemcasecoll (Dependencies): Likewise.
22124         * modules/mbrtowc (Dependencies): Likewise.
22125         * modules/mbscasecmp (Dependencies): Likewise.
22126         * modules/mbscasestr (Dependencies): Likewise.
22127         * modules/mbschr (Dependencies): Likewise.
22128         * modules/mbscspn (Dependencies): Likewise.
22129         * modules/mbsinit (Dependencies): Likewise.
22130         * modules/mbsncasecmp (Dependencies): Likewise.
22131         * modules/mbsnrtowcs (Dependencies): Likewise.
22132         * modules/mbspbrk (Dependencies): Likewise.
22133         * modules/mbspcasecmp (Dependencies): Likewise.
22134         * modules/mbsrchr (Dependencies): Likewise.
22135         * modules/mbsrtowcs (Dependencies): Likewise.
22136         * modules/mbsspn (Dependencies): Likewise.
22137         * modules/mbsstr (Dependencies): Likewise.
22138         * modules/nl_langinfo (Dependencies): Likewise.
22139         * modules/quotearg (Dependencies): Likewise.
22140         * modules/unicase/locale-language (Dependencies): Likewise.
22141         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22142         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22143         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22144         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22145         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22146         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22147         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22148         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22149         * modules/vasnprintf-posix (Dependencies): Likewise.
22150         * modules/wcrtomb (Dependencies): Likewise.
22151         * modules/wcsnrtombs (Dependencies): Likewise.
22152         * modules/wcsrtombs (Dependencies): Likewise.
22153
22154 2011-02-12  Bruno Haible  <bruno@clisp.org>
22155
22156         setlocale: Workaround native Windows bug.
22157         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22158         succeeds but sets LC_CTYPE to "C", report a failure.
22159         * tests/test-setlocale2.sh: New file.
22160         * tests/test-setlocale2.c: New file.
22161         * modules/setlocale-tests (Files): Add the new files.
22162         (Makefile.am): Enable test-setlocale2.sh test.
22163         * doc/posix-functions/setlocale.texi: Mention workaround.
22164
22165 2011-02-11  Bruno Haible  <bruno@clisp.org>
22166
22167         Tests for module 'setlocale'.
22168         * modules/setlocale-tests: New file.
22169         * tests/test-setlocale1.sh: New file.
22170         * tests/test-setlocale1.c: New file.
22171
22172         New module 'setlocale'.
22173         * lib/locale.in.h (setlocale): New declaration.
22174         * lib/setlocale.c: New file, based on
22175         gettext/gettext-runtime/intl/setlocale.c.
22176         * m4/setlocale.m4: New file.
22177         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22178         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22179         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22180         REPLACE_SETLOCALE.
22181         * modules/setlocale: New file.
22182         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22183         * doc/posix-functions/setlocale.texi: Mention the new module.
22184
22185 2011-02-11  Bruno Haible  <bruno@clisp.org>
22186
22187         Prepare for locale dependent tests on mingw.
22188         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22189         because it has the wrong locale encoding.
22190         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22191         French_France.1252 instead of "fr".
22192         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22193         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22194         because it has the wrong locale encoding.
22195         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22196         native Windows, try Turkish_Turkey.65001.
22197         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22198         Chinese_China.54936.
22199
22200         Prepare for locale dependent tests on mingw.
22201         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22202         differently.
22203         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22204         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22205         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22206         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22207
22208 2011-02-11  Eric Blake  <eblake@redhat.com>
22209
22210         strptime: avoid compiler warnings
22211         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22212         compiler warnings about dead code.
22213         Reported by Daniel P. Berrange.
22214
22215 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22216
22217         doc: update users.txt
22218         * users.txt: Add rcs.
22219
22220 2011-02-10  John W. Eaton  <jwe@gnu.org>
22221
22222         doc: update users.txt
22223         * users.txt: Add octave.
22224
22225 2011-02-10  Jim Meyering  <meyering@redhat.com>
22226
22227         doc: update users.txt
22228         * users.txt: Add iwhd.
22229
22230 2011-02-09  Bruno Haible  <bruno@clisp.org>
22231
22232         gnulib-tool: Make copyright notice adjustment more robust.
22233         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22234         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22235         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22236         License".
22237         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22238
22239 2011-02-06  Bruno Haible  <bruno@clisp.org>
22240
22241         New module 'towctrans'.
22242         * modules/towctrans: New file.
22243         * lib/wctype.in.h (towctrans): New declaration.
22244         * lib/towctrans.c: New file.
22245         * lib/towctrans-impl.h: New file.
22246         * m4/towctrans.m4: New file.
22247         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22248         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22249         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22250         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22251         * doc/posix-functions/towctrans.texi: Mention the new module.
22252
22253 2011-02-06  Bruno Haible  <bruno@clisp.org>
22254
22255         New module 'wctrans'.
22256         * modules/wctrans: New file.
22257         * lib/wctype.in.h (wctrans): New declaration.
22258         * lib/wctrans.c: New file.
22259         * lib/wctrans-impl.h: New file.
22260         * m4/wctrans.m4: New file.
22261         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22262         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22263         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22264         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22265         * doc/posix-functions/wctrans.texi: Mention the new module.
22266
22267 2011-02-06  Bruno Haible  <bruno@clisp.org>
22268
22269         New module 'iswctype'.
22270         * modules/iswctype: New file.
22271         * lib/wctype.in.h (iswctype): New declaration.
22272         * lib/iswctype.c: New file.
22273         * lib/iswctype-impl.h: New file.
22274         * m4/iswctype.m4: New file.
22275         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22276         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22277         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22278         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22279         * doc/posix-functions/iswctype.texi: Mention the new module and the
22280         HP-UX 11.00 problem.
22281
22282 2011-02-06  Bruno Haible  <bruno@clisp.org>
22283
22284         New module 'wctype'.
22285         * modules/wctype: Change to represent the wctype() substitute.
22286         * lib/wctype.in.h (wctype): New declaration.
22287         * lib/wctype.c: New file.
22288         * lib/wctype-impl.h: New file.
22289         * m4/wctype.m4: New file.
22290         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22291         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22292         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22293         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22294         * doc/posix-functions/wctype.texi: Mention the new module and the
22295         HP-UX 11.00 problem.
22296
22297 2011-02-06  Bruno Haible  <bruno@clisp.org>
22298
22299         wctype-h: Ensure wctype_t and wctrans_t are defined.
22300         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22301         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22302         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22303         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22304         HAVE_WCTRANS_T.
22305         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22306
22307 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22308
22309         flock: fix license typo
22310
22311         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22312         omitted.
22313
22314 2011-02-08  Bruno Haible  <bruno@clisp.org>
22315
22316         Split large sed scripts, for HP-UX sed.
22317         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22318         to avoid HP-UX limit of 99 commands, in the near future.
22319         * modules/stdlib (Makefile.am): Likewise.
22320         * modules/unistd (Makefile.am): Likewise.
22321         * modules/wchar (Makefile.am): Likewise.
22322         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22323         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22324         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22325
22326 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22327             Bruno Haible  <bruno@clisp.org>
22328
22329         stdlib: improve random_r modularization
22330         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22331         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22332         you also need the random_r module to get this material right.
22333         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22334         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22335         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22336
22337 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22338
22339         stdlib: don't depend on stdint
22340         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22341         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22342         be independent of whether stdint.h is needed.
22343         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22344         here, instead of ...
22345         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22346         struct random_data should be using the random_r module, not just
22347         the stdlib module (which wouldn't make sense: what package needs
22348         just struct random_data without also needing random_r?).
22349         * modules/stdlib (Depends-on): Remove stdint.
22350
22351         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22352         See the thread rooted at
22353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22354         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22355         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22356         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22357         __VMS)); previously it was always included (via fcntl--.h).
22358         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22359         hand; this is good enough for load averages.  Also, do not use
22360         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22361         flags directly if available and don't bother otherwise.  (Packages
22362         that need the extra reliability should use the modules that define
22363         these flags on older platforms that lack them.)
22364         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22365         fcntl-safer.
22366
22367 2011-02-08  Jim Meyering  <meyering@redhat.com>
22368
22369         di-set.h, ino-map.h: add multiple-inclusion guard
22370         Technically, the guard is required only for ino-map.h, due to its
22371         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22372         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22373         * lib/ino-map.h: Likewise.
22374
22375 2011-02-06  Bruno Haible  <bruno@clisp.org>
22376
22377         iswblank: Ensure declaration on glibc systems.
22378         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22379         * modules/iswblank (Dependencies): Add 'extensions'.
22380         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22381
22382 2011-02-06  Bruno Haible  <bruno@clisp.org>
22383
22384         New module 'iswblank'.
22385         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22386         * modules/iswblank: New file.
22387         * modules/wctype-h (Files): Remove lib/iswblank.c.
22388         (Makefile.am): Substitute GNULIB_ISWBLANK.
22389         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22390         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22391         (gl_WCTYPE_H_DEFAULTS): New macro.
22392         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22393         * modules/iswblank-tests: New file.
22394         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22395         * tests/test-wctype-h.c (main): Remove iswblank tests.
22396         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22397         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22398         of 'wctype-h'.
22399         * NEWS: Mention the change.
22400         * modules/mbchar (Depends-on): Add iswblank.
22401
22402 2011-02-08  Bruno Haible  <bruno@clisp.org>
22403
22404         di-set tests: Refactor.
22405         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22406         unnecessary includes.
22407         (ASSERT): Remove macro.
22408         (main): Make C90 compliant by avoiding variable declaration after
22409         statement.
22410         * modules/di-set-tests (Files): Add tests/macros.h.
22411
22412 2011-02-08  Bruno Haible  <bruno@clisp.org>
22413
22414         ino-map tests: Refactor.
22415         * tests/test-ino-map.c: Include ino-map.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/ino-map-tests (Files): Add tests/macros.h.
22421
22422 2011-02-08  Jim Meyering  <meyering@redhat.com>
22423
22424         di-set: add "const" to a cast
22425         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22426         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22427
22428 2011-02-06  Bruno Haible  <bruno@clisp.org>
22429
22430         Rename module 'wctype' to 'wctype-h'.
22431         * modules/wctype-h: Renamed from modules/wctype.
22432         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22433         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22434         (Files, Depends-on, Makefile.am): Update.
22435         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22436         (Files, Makefile.am): Update.
22437         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22438         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22439         * doc/posix-headers/wctype.texi: Update.
22440         * doc/posix-functions/iswalnum.texi: Update.
22441         * doc/posix-functions/iswalpha.texi: Update.
22442         * doc/posix-functions/iswblank.texi: Update.
22443         * doc/posix-functions/iswcntrl.texi: Update.
22444         * doc/posix-functions/iswdigit.texi: Update.
22445         * doc/posix-functions/iswgraph.texi: Update.
22446         * doc/posix-functions/iswlower.texi: Update.
22447         * doc/posix-functions/iswprint.texi: Update.
22448         * doc/posix-functions/iswpunct.texi: Update.
22449         * doc/posix-functions/iswspace.texi: Update.
22450         * doc/posix-functions/iswupper.texi: Update.
22451         * doc/posix-functions/iswxdigit.texi: Update.
22452         * doc/posix-functions/towlower.texi: Update.
22453         * doc/posix-functions/towupper.texi: Update.
22454         * NEWS: Mention the change.
22455         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22456         * modules/mbchar (Dependencies): Likewise.
22457         * modules/mbswidth (Dependencies): Likewise.
22458         * modules/quotearg (Dependencies): Likewise.
22459         * modules/regex (Dependencies): Likewise.
22460         * modules/wcscasecmp (Dependencies): Likewise.
22461         * modules/wcsncasecmp (Dependencies): Likewise.
22462         * modules/wcwidth (Dependencies): Likewise.
22463
22464 2011-02-06  Bruno Haible  <bruno@clisp.org>
22465
22466         New module 'wcswidth'.
22467         * modules/wcswidth: New file.
22468         * lib/wchar.in.h (wcswidth): New declaration.
22469         * lib/wcswidth.c: New file.
22470         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22471         * m4/wcswidth.m4: New file.
22472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22474         REPLACE_WCSWIDTH.
22475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22476         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22477         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22478         * doc/posix-functions/wcswidth.texi: Mention the new module.
22479
22480 2011-02-06  Bruno Haible  <bruno@clisp.org>
22481
22482         New module 'wcstok'.
22483         * modules/wcstok: New file.
22484         * lib/wchar.in.h (wcstok): New declaration.
22485         * lib/wcstok.c: New file.
22486         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22487         * m4/wcstok.m4: New file.
22488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22490         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22491         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22492         * doc/posix-functions/wcstok.texi: Mention the new module.
22493
22494 2011-02-06  Bruno Haible  <bruno@clisp.org>
22495
22496         New module 'wcsstr'.
22497         * modules/wcsstr: New file.
22498         * lib/wchar.in.h (wcsstr): New declaration.
22499         * lib/wcsstr.c: New file.
22500         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22501         * m4/wcsstr.m4: New file.
22502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22505         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22506         * doc/posix-functions/wcsstr.texi: Mention the new module.
22507
22508 2011-02-06  Bruno Haible  <bruno@clisp.org>
22509
22510         New module 'wcspbrk'.
22511         * modules/wcspbrk: New file.
22512         * lib/wchar.in.h (wcspbrk): New declaration.
22513         * lib/wcspbrk.c: New file.
22514         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22515         * m4/wcspbrk.m4: New file.
22516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22519         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22520         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22521
22522 2011-02-06  Bruno Haible  <bruno@clisp.org>
22523
22524         New module 'wcsspn'.
22525         * modules/wcsspn: New file.
22526         * lib/wchar.in.h (wcsspn): New declaration.
22527         * lib/wcsspn.c: New file.
22528         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
22529         * m4/wcsspn.m4: New file.
22530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
22531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
22532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
22533         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
22534         * doc/posix-functions/wcsspn.texi: Mention the new module.
22535
22536 2011-02-06  Bruno Haible  <bruno@clisp.org>
22537
22538         New module 'wcscspn'.
22539         * modules/wcscspn: New file.
22540         * lib/wchar.in.h (wcscspn): New declaration.
22541         * lib/wcscspn.c: New file.
22542         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
22543         * m4/wcscspn.m4: New file.
22544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
22545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
22546         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
22547         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
22548         * doc/posix-functions/wcscspn.texi: Mention the new module.
22549
22550 2011-02-06  Bruno Haible  <bruno@clisp.org>
22551
22552         New module 'wcsrchr'.
22553         * modules/wcsrchr: New file.
22554         * lib/wchar.in.h (wcsrchr): New declaration.
22555         * lib/wcsrchr.c: New file.
22556         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
22557         * m4/wcsrchr.m4: New file.
22558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
22559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
22560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
22561         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
22562         * doc/posix-functions/wcsrchr.texi: Mention the new module.
22563
22564 2011-02-06  Bruno Haible  <bruno@clisp.org>
22565
22566         New module 'wcschr'.
22567         * modules/wcschr: New file.
22568         * lib/wchar.in.h (wcschr): New declaration.
22569         * lib/wcschr.c: New file.
22570         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
22571         * m4/wcschr.m4: New file.
22572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
22573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
22574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
22575         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
22576         * doc/posix-functions/wcschr.texi: Mention the new module.
22577
22578 2011-02-06  Bruno Haible  <bruno@clisp.org>
22579
22580         New module 'wcsdup'.
22581         * modules/wcsdup: New file.
22582         * lib/wchar.in.h (wcsdup): New declaration.
22583         * lib/wcsdup.c: New file.
22584         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
22585         * m4/wcsdup.m4: New file.
22586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
22587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
22588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
22589         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
22590         * doc/posix-functions/wcsdup.texi: Mention the new module.
22591
22592 2011-02-06  Bruno Haible  <bruno@clisp.org>
22593
22594         New module 'wcsxfrm'.
22595         * modules/wcsxfrm: New file.
22596         * lib/wchar.in.h (wcsxfrm): New declaration.
22597         * lib/wcsxfrm.c: New file.
22598         * lib/wcsxfrm-impl.h: New file.
22599         * m4/wcsxfrm.m4: New file.
22600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
22601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
22602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
22603         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
22604         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
22605
22606 2011-02-06  Bruno Haible  <bruno@clisp.org>
22607
22608         New module 'wcscoll'.
22609         * modules/wcscoll: New file.
22610         * lib/wchar.in.h (wcscoll): New declaration.
22611         * lib/wcscoll.c: New file.
22612         * lib/wcscoll-impl.h: New file.
22613         * m4/wcscoll.m4: New file.
22614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
22615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
22616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
22617         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
22618         * doc/posix-functions/wcscoll.texi: Mention the new module.
22619
22620 2011-02-06  Bruno Haible  <bruno@clisp.org>
22621
22622         New module 'wcsncasecmp'.
22623         * modules/wcsncasecmp: New file.
22624         * lib/wchar.in.h (wcsncasecmp): New declaration.
22625         * lib/wcsncasecmp.c: New file.
22626         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
22627         * m4/wcsncasecmp.m4: New file.
22628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
22629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
22630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
22631         HAVE_WCSNCASECMP.
22632         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
22633         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
22634
22635 2011-02-06  Bruno Haible  <bruno@clisp.org>
22636
22637         New module 'wcscasecmp'.
22638         * modules/wcscasecmp: New file.
22639         * lib/wchar.in.h (wcscasecmp): New declaration.
22640         * lib/wcscasecmp.c: New file.
22641         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
22642         * m4/wcscasecmp.m4: New file.
22643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
22644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
22645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
22646         HAVE_WCSCASECMP.
22647         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
22648         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
22649
22650 2011-02-05  Bruno Haible  <bruno@clisp.org>
22651
22652         New module 'wcsncmp'.
22653         * modules/wcsncmp: New file.
22654         * lib/wchar.in.h (wcsncmp): New declaration.
22655         * lib/wcsncmp.c: New file.
22656         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
22657         * m4/wcsncmp.m4: New file.
22658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
22659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
22660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
22661         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
22662         * doc/posix-functions/wcsncmp.texi: Mention the new module.
22663
22664 2011-02-05  Bruno Haible  <bruno@clisp.org>
22665
22666         New module 'wcscmp'.
22667         * modules/wcscmp: New file.
22668         * lib/wchar.in.h (wcscmp): New declaration.
22669         * lib/wcscmp.c: New file.
22670         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
22671         * m4/wcscmp.m4: New file.
22672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
22673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
22674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
22675         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
22676         * doc/posix-functions/wcscmp.texi: Mention the new module.
22677
22678 2011-02-05  Bruno Haible  <bruno@clisp.org>
22679
22680         New module 'wcsncat'.
22681         * modules/wcsncat: New file.
22682         * lib/wchar.in.h (wcsncat): New declaration.
22683         * lib/wcsncat.c: New file.
22684         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
22685         * m4/wcsncat.m4: New file.
22686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
22687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
22688         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
22689         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
22690         * doc/posix-functions/wcsncat.texi: Mention the new module.
22691
22692 2011-02-05  Bruno Haible  <bruno@clisp.org>
22693
22694         New module 'wcscat'.
22695         * modules/wcscat: New file.
22696         * lib/wchar.in.h (wcscat): New declaration.
22697         * lib/wcscat.c: New file.
22698         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
22699         * m4/wcscat.m4: New file.
22700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
22701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
22702         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
22703         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
22704         * doc/posix-functions/wcscat.texi: Mention the new module.
22705
22706 2011-02-05  Bruno Haible  <bruno@clisp.org>
22707
22708         New module 'wcpncpy'.
22709         * modules/wcpncpy: New file.
22710         * lib/wchar.in.h (wcpncpy): New declaration.
22711         * lib/wcpncpy.c: New file.
22712         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
22713         * m4/wcpncpy.m4: New file.
22714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
22715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
22716         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
22717         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
22718         * doc/posix-functions/wcpncpy.texi: Mention the new module.
22719
22720 2011-02-05  Bruno Haible  <bruno@clisp.org>
22721
22722         New module 'wcsncpy'.
22723         * modules/wcsncpy: New file.
22724         * lib/wchar.in.h (wcsncpy): New declaration.
22725         * lib/wcsncpy.c: New file.
22726         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
22727         * m4/wcsncpy.m4: New file.
22728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
22729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
22730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
22731         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
22732         * doc/posix-functions/wcsncpy.texi: Mention the new module.
22733
22734 2011-02-05  Bruno Haible  <bruno@clisp.org>
22735
22736         New module 'wcpcpy'.
22737         * modules/wcpcpy: New file.
22738         * lib/wchar.in.h (wcpcpy): New declaration.
22739         * lib/wcpcpy.c: New file.
22740         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
22741         * m4/wcpcpy.m4: New file.
22742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
22743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
22744         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
22745         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
22746         * doc/posix-functions/wcpcpy.texi: Mention the new module.
22747
22748 2011-02-05  Bruno Haible  <bruno@clisp.org>
22749
22750         New module 'wcscpy'.
22751         * modules/wcscpy: New file.
22752         * lib/wchar.in.h (wcscpy): New declaration.
22753         * lib/wcscpy.c: New file.
22754         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
22755         * m4/wcscpy.m4: New file.
22756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
22757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
22758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
22759         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
22760         * doc/posix-functions/wcscpy.texi: Mention the new module.
22761
22762 2011-02-05  Bruno Haible  <bruno@clisp.org>
22763
22764         New module 'wcsnlen'.
22765         * modules/wcsnlen: New file.
22766         * lib/wchar.in.h (wcsnlen): New declaration.
22767         * lib/wcsnlen.c: New file.
22768         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
22769         * m4/wcsnlen.m4: New file.
22770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
22771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
22772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
22773         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
22774         * doc/posix-functions/wcsnlen.texi: Mention the new module.
22775
22776 2011-02-05  Bruno Haible  <bruno@clisp.org>
22777
22778         New module 'wcslen'.
22779         * modules/wcslen: New file.
22780         * lib/wchar.in.h (wcslen): New declaration.
22781         * lib/wcslen.c: New file.
22782         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
22783         * m4/wcslen.m4: New file.
22784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
22785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
22786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
22787         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
22788         * doc/posix-functions/wcslen.texi: Mention the new module.
22789
22790 2011-02-05  Bruno Haible  <bruno@clisp.org>
22791
22792         New module 'wmemset'.
22793         * modules/wmemset: New file.
22794         * lib/wchar.in.h (wmemset): New declaration.
22795         * lib/wmemset.c: New file.
22796         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
22797         * m4/wmemset.m4: New file.
22798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
22799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
22800         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
22801         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
22802         * doc/posix-functions/wmemset.texi: Mention the new module.
22803
22804 2011-02-05  Bruno Haible  <bruno@clisp.org>
22805
22806         New module 'wmemmove'.
22807         * modules/wmemmove: New file.
22808         * lib/wchar.in.h (wmemmove): New declaration.
22809         * lib/wmemmove.c: New file.
22810         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
22811         * m4/wmemmove.m4: New file.
22812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
22813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
22814         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
22815         HAVE_WMEMMOVE.
22816         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
22817         * doc/posix-functions/wmemmove.texi: Mention the new module.
22818
22819 2011-02-05  Bruno Haible  <bruno@clisp.org>
22820
22821         New module 'wmemcpy'.
22822         * modules/wmemcpy: New file.
22823         * lib/wchar.in.h (wmemcpy): New declaration.
22824         * lib/wmemcpy.c: New file.
22825         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
22826         * m4/wmemcpy.m4: New file.
22827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
22828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
22829         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
22830         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
22831         * doc/posix-functions/wmemcpy.texi: Mention the new module.
22832
22833 2011-02-05  Bruno Haible  <bruno@clisp.org>
22834
22835         New module 'wmemcmp'.
22836         * modules/wmemcmp: New file.
22837         * lib/wchar.in.h (wmemcmp): New declaration.
22838         * lib/wmemcmp.c: New file.
22839         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
22840         * m4/wmemcmp.m4: New file.
22841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
22842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
22843         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
22844         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
22845         * doc/posix-functions/wmemcmp.texi: Mention the new module.
22846
22847 2011-02-07  Jim Meyering  <meyering@redhat.com>
22848
22849         di-set, ino-map: new modules, from coreutils
22850         * lib/di-set.c: New file.
22851         * lib/di-set.h: Likewise.
22852         * lib/ino-map.c: Likewise.
22853         * lib/ino-map.h: Likewise.
22854         * modules/di-set: Likewise.
22855         * modules/di-set-tests: Likewise.
22856         * modules/ino-map: Likewise.
22857         * modules/ino-map-tests: Likewise.
22858         * tests/test-di-set.c: Likewise.
22859         * tests/test-ino-map.c: Likewise.
22860
22861 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22862
22863         getloadavg: merge minor changes from Emacs
22864
22865         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
22866         (getloadavg): Use memset, not bzero.
22867
22868         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
22869         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
22870         clash (bug#86).
22871
22872 2010-11-14  Bruno Haible  <bruno@clisp.org>
22873
22874         Allow multiple gnulib generated replacements to coexist.
22875         * lib/getopt.in.h (struct option): Avoid identical redefinition.
22876         * lib/inttypes.in.h (imaxdiv_t): Likewise.
22877         * lib/langinfo.in.h (nl_item): Likewise.
22878         * lib/math.in.h (_NaN, NAN): Likewise.
22879         * lib/netdb.in.h (struct addrinfo): Likewise.
22880         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
22881         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
22882         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
22883         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
22884         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
22885         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
22886         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
22887         pthread_mutexattr_init, pthread_mutexattr_settype,
22888         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
22889         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
22890         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
22891         pthread_spin_trylock, pthread_spin_unlock): Likewise.
22892         * lib/sched.in.h (struct sched_param): Likewise.
22893         * lib/se-selinux.in.h (security_class_t, security_context_t,
22894         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
22895         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
22896         lsetfilecon, fsetfilecon, security_check_context,
22897         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
22898         Likewise.
22899         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
22900         Likewise.
22901         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
22902         _gl_function_taking_int_returning_void_t, union sigval,
22903         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
22904         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
22905         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22906         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
22907         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
22908         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
22909         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
22910         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
22911         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
22912         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
22913         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
22914         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
22915         socklen_t, rpl_fd_isset): Likewise.
22916         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
22917         * lib/sys_time.in.h (struct timeval): Likewise.
22918         * lib/sys_times.in.h (struct tms): Likewise.
22919         * lib/sys_utsname.in.h (struct utsname):
22920         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
22921         * lib/unistd.in.h (getpagesize): Likewise.
22922         * lib/wchar.in.h (mbstate_t): Likewise.
22923         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22924         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
22925         towlower, towupper): Likewise.
22926         Reported by Sam Steingold <sds@gnu.org>.
22927
22928 2011-02-05  Eric Blake  <eblake@redhat.com>
22929
22930         unsetenv: work around Haiku issues
22931         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
22932         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
22933
22934 2010-12-30  Bruce Korb  <bkorb@gnu.org>
22935
22936         libposix: avoid calling error() within libposix
22937         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
22938         is defined.
22939
22940 2011-02-05  Eric Blake  <eblake@redhat.com>
22941
22942         strerror_r-posix: port to cygwin
22943         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
22944         implementation.
22945         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
22946         * tests/test-strerror_r.c (main): Fix test.
22947         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
22948         issue.
22949
22950 2011-02-05  Bruno Haible  <bruno@clisp.org>
22951
22952         New module 'wmemchr'.
22953         * modules/wmemchr: New file.
22954         * lib/wchar.in.h (wmemchr): New declaration.
22955         * lib/wmemchr.c: New file.
22956         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
22957         * m4/wmemchr.m4: New file.
22958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
22959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
22960         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
22961         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
22962         * doc/posix-functions/wmemchr.texi: Mention the new module.
22963
22964 2011-02-04  Eric Blake  <eblake@redhat.com>
22965
22966         fdopendir: detect FreeBSD bug
22967         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
22968         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
22969
22970 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22971
22972         stdbool: do not define HAVE_STDBOOL_H
22973         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
22974         AC_HEADER_STDBOOL.  All uses changed.  Do not define
22975         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
22976         imported from the latest Autoconf git.  It was motivated by Emacs,
22977         which uses gnulib but does not need HAVE_STDBOOL_H.
22978
22979 2011-02-04  Bruno Haible  <bruno@clisp.org>
22980
22981         wcsnrtombs: Prepare for new module wwcsnrtombs.
22982         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
22983         * lib/wcsnrtombs.c: Include it.
22984         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
22985
22986         wcsrtombs: Prepare for new module wwcsrtombs.
22987         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
22988         * lib/wcsrtombs.c: Include it.
22989         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
22990
22991         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
22992         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
22993         * lib/mbsnrtowcs.c: Include it.
22994         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
22995
22996         mbsrtowcs: Prepare for new module mbsrtowwcs.
22997         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
22998         * lib/mbsrtowcs.c: Include it.
22999         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23000
23001 2011-02-04  Bruno Haible  <bruno@clisp.org>
23002
23003         vasnprintf: Reduce use of malloc for small format strings.
23004         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23005         (arguments): Add room for the first 7 arguments.
23006         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23007         (char_directives, u8_directives, u16_directives, u32_directives): Add
23008         room for the first 7 directives.
23009         * lib/printf-parse.c: Include <string.h>.
23010         (PRINTF_PARSE): Change memory handling code so that it uses the first
23011         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23012         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23013         Reported by Pádraig Brady <P@draigbrady.com>.
23014
23015 2011-01-31  Eric Blake  <eblake@redhat.com>
23016
23017         dup2: work around Haiku bug
23018         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23019         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23020         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23021         * tests/test-dup2.c (main): Enhance test.
23022
23023 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23024
23025         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23026         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23027         declared by eglibc 2.11.2.
23028         * lib/stdio.in.h: Likewise.
23029
23030 2011-01-31  Eric Blake  <eblake@redhat.com>
23031
23032         ignore-value: add missing test dependency
23033         * tests/test-ignore-value.c: Revert previous change; stdio.h
23034         provides off_t.
23035         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23036
23037 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23038
23039         mktime: clarify long_int width checking
23040         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23041         the top level, to make it clearer that the assumption about
23042         long_int width is being checked.  See
23043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23044
23045 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23046
23047         ignore-value: Fix self-test.
23048         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23049
23050 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23051
23052         TYPE_MAXIMUM: avoid theoretically undefined behavior
23053         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23054         negative number, which the C Standard says has undefined behavior.
23055         In practice this is not a problem, but might as well do it by the book.
23056         Reported by Rich Felker and Eric Blake; see
23057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23058         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23059         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23061         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23062         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23063         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23064
23065         mktime: #undef mktime before #defining it
23066         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23067
23068         mktime: systematically normalize tm_isdst comparisons
23069         * lib/mktime.c (isdst_differ): New function.
23070         (__mktime_internal): Use it systematically for all isdst comparisons.
23071         This completes the fix for libc BZ #6723, and removes the need for
23072         normalizing tm_isdst.  See
23073         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23074         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23075
23076         mktime: fix some integer overflow issues and sidestep the rest
23077
23078         This was prompted by a bug report by Benjamin Lindner for MinGW
23079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23080         His bug is due to signed integer overflow (0 - INT_MIN), and I
23081         I scanned through mktime.c looking for other integer overflow
23082         problems, fixing all the bugs I found.
23083
23084         Although the C Standard says the resulting code is still not safe
23085         in the presence of integer overflow, in practice it should be good
23086         enough for all real-world two's-complement implementations, except
23087         for debugging environments that deliberately trap on integer
23088         overflow (e.g., gcc -ftrapv).
23089
23090         * lib/mktime.c (WRAPV): New macro.
23091         (SHR): Also check that long_int and time_t shift right in the
23092         usual way, before using the fast-but-unportable method.
23093         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23094         used.  The code already assumed two's complement, so there's
23095         no need to test for alternatives.  All uses removed.
23096         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23097         the C standard.  Problem reported by Rich Felker in
23098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23099         (twos_complement_arithmetic): Also check long_int and time_t.
23100         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23101         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23102         (__mktime_internal): Avoid integer overflow with unary subtraction
23103         in two instances where -1 - X is an adequate replacement for -X,
23104         since the calculations are approximate.
23105
23106 2011-01-29  Eric Blake  <eblake@redhat.com>
23107
23108         mktime: avoid infinite loop
23109         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23110         type; behavior is still undefined but portable to all known targets.
23111         Reported by Rich Felker.
23112
23113 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23114
23115         rename, unlink, same-inode: Relicense.
23116         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23117         * modules/unlink (License): Likewise.
23118         * modules/same-inode (License): Likewise.
23119
23120 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23121
23122         mktime: avoid problems on NetBSD 5 / i386
23123         * lib/mktime.c (long_int): New type.  This works around a problem
23124         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23125         but time_t is 64 bits, and where I expect the existing code is
23126         wrong in some cases.
23127         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23128         (ydhms_diff): Bring back the compile-time check for wide-enough
23129         year and yday.
23130
23131         mktime: fix misspelling in comment
23132         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23133         This merges all recent glibc changes of importance.
23134
23135 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23136
23137         move-if-change: cope with concurrent mv of identical file.
23138         * build-aux/move-if-change (CMPPROG): Accept environment
23139         variable as an override for `cmp'.
23140         (usage): Document CMPPROG.
23141         Adjust comparison to drop stdout.  Cope with failure of mv if
23142         the target file exists and is identical to the source, for
23143         parallel builds.
23144         Report from H.J. Lu against binutils in PR binutils/12283.
23145
23146 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23147
23148         * users.txt: Mention sharutils.
23149
23150 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23151
23152         * users.txt: Mention OATH Toolkit.
23153
23154 2011-01-27  Bruno Haible  <bruno@clisp.org>
23155
23156         Prepare for supporting FreeBSD 10.
23157         * build-aux/config.libpath: Remove handling of freebsd1*.
23158
23159 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23160
23161         Prepare for supporting FreeBSD 10.
23162         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23163         match FreeBSD 10.0.
23164
23165 2011-01-27  Bruno Haible  <bruno@clisp.org>
23166
23167         vma-iter, get-rusage-as: Add OpenBSD support.
23168         * modules/vma-iter (configure.ac): Test for mquery.
23169         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23170         * lib/vma-iter.c: Include <sys/mman.h>.
23171         (vma_iterate): Add an implementation based on mquery().
23172         * lib/resource-ext.h (get_rusage_as): Update comments.
23173         * lib/get-rusage-as.c: Likewise.
23174         * lib/get-rusage-data.c: Likewise.
23175
23176 2011-01-26  Karl Berry  <karl@gnu.org>
23177
23178         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23179         variables to make it easier to override the makeinfo program used.
23180
23181 2011-01-26  Eric Blake  <eblake@redhat.com>
23182
23183         fcntl: work around Haiku F_DUPFD bugs
23184         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23185         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23186         cloexec bit on duplication.
23187         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23188
23189 2011-01-26  Bruno Haible  <bruno@clisp.org>
23190
23191         Enable memory leak tests on AIX.
23192         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23193         * tests/test-fprintf-posix3.c (main): Likewise.
23194
23195 2011-01-26  Bruno Haible  <bruno@clisp.org>
23196
23197         Tests for module 'get-rusage-data'.
23198         * modules/get-rusage-data-tests: New file.
23199         * tests/test-get-rusage-data.c: New file.
23200
23201         New module 'get-rusage-data'.
23202         * lib/resource-ext.h (get_rusage_data): New declaration.
23203         * lib/get-rusage-data.c: New file.
23204         * modules/get-rusage-data: New file.
23205
23206 2011-01-25  Bruno Haible  <bruno@clisp.org>
23207
23208         get-rusage-as: Allow for easier testing.
23209         * lib/resource-ext.h (get_rusage_as): Add comment.
23210         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23211         (main): New function for interactive testing.
23212
23213 2011-01-25  Bruno Haible  <bruno@clisp.org>
23214
23215         vma-iter: Treat Haiku like BeOS.
23216         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23217         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23218
23219 2011-01-25  Eric Blake  <eblake@redhat.com>
23220
23221         c-stack: fix regression on cygwin when libsigsegv is present
23222         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23223
23224 2011-01-24  Bruno Haible  <bruno@clisp.org>
23225
23226         vma-iter: Avoid empty intervals.
23227         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23228         on an empty interval.
23229
23230 2011-01-24  Jim Meyering  <meyering@redhat.com>
23231
23232         u64: remove unnecessary #include
23233         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23234
23235 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23236
23237         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23238         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23239
23240 2011-01-23  Bruno Haible  <bruno@clisp.org>
23241
23242         New module 'vma-iter'.
23243         * lib/vma-iter.h: New file.
23244         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23245         * modules/vma-iter: New file.
23246         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23247         for get_rusage_as_via_iterator.
23248         (vma_iterate_callback): New function.
23249         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23250         * modules/get-rusage-as (Depends-on): Add vma-iter.
23251
23252 2011-01-23  Bruno Haible  <bruno@clisp.org>
23253
23254         uninorm: Tweak includes.
23255         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23256         Reported by Jim Meyering.
23257
23258 2011-01-23  Bruno Haible  <bruno@clisp.org>
23259
23260         get-rusage-as: Improve on NetBSD.
23261         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23262         /proc, like on FreeBSD.
23263
23264 2011-01-23  Jim Meyering  <meyering@redhat.com>
23265
23266         xreadlink.h: remove unnecessary #include
23267         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23268
23269         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23270         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23271
23272 2011-01-23  Bruno Haible  <bruno@clisp.org>
23273
23274         get-rusage-as: Fix bug.
23275         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23276         original limit when aborting the first loop.
23277
23278 2011-01-23  Bruno Haible  <bruno@clisp.org>
23279
23280         wctype: Ensure valid C syntax.
23281         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23282         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23283
23284 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23285
23286         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23288         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23289         as they are needed only for configure's test case.
23290         This removes two unnecessary symbols from config.h.
23291
23292         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23293         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23295         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23296         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23297         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23298         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23299         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23300         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23301         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23302         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23303         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23305         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23306         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23307         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23308         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23309         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23310
23311 2011-01-21  Eric Blake  <eblake@redhat.com>
23312
23313         maintainer-makefile: work with older git for submodule check
23314         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23315         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23316         Reported by Matthias Bolte.
23317
23318         bootstrap: minor portability fixes
23319         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23320         (usage): Omit leading capital and trailing . on help phrases, per
23321         GNU Coding Standards.
23322         (check_versions, top level): Prefix messages with script name.
23323
23324 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23325
23326         bootstrap: support --no-git option
23327         * build-aux/bootstrap: Add --no-git option, to be used when
23328         --gnulib-srcdir points to the exact desired checkout.
23329
23330 2011-01-21  Eric Blake  <eblake@redhat.com>
23331
23332         strerror_r-posix: work with glibc 2.13
23333         * lib/strerror_r.c (strerror_r): Fix return type.
23334
23335 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23336             Bruno Haible  <bruno@clisp.org>
23337
23338         uN_strstr: New unit tests.
23339         * modules/unistr/u8-strstr-tests: New file.
23340         * modules/unistr/u16-strstr-tests: New file.
23341         * modules/unistr/u32-strstr-tests: New file.
23342         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23343         * tests/unistr/test-u8-strstr.c: New file.
23344         * tests/unistr/test-u16-strstr.c: New file.
23345         * tests/unistr/test-u32-strstr.c: New file.
23346
23347 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23348             Bruno Haible  <bruno@clisp.org>
23349
23350         Make uN_strstr functions O(n) worst-case.
23351         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23352         16-bit and 32-bit unit cases, use the unibyte algorithm from
23353         lib/mbsstr.c.
23354         * lib/unistr/u8-strstr.c: Include <string.h>.
23355         (UNIT_IS_UINT8_T): New macro.
23356         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23357         (U_STRLEN, U_STRNLEN): New macros.
23358         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23359         (U_STRLEN, U_STRNLEN): New macros.
23360         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23361         (configure.ac): Update required libunistring version.
23362         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23363         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23364         malloca.
23365         (configure.ac): Update required libunistring version.
23366         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23367         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23368         malloca.
23369         (configure.ac): Update required libunistring version.
23370
23371 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23372             Bruno Haible  <bruno@clisp.org>
23373
23374         Prepare for faster uN_strstr functions.
23375         * lib/str-kmp.h: Support definable UNITs.
23376         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23377         needle_len argument.
23378         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23379         * lib/mbscasestr.c (mbscasestr): Likewise.
23380
23381 2011-01-21  Pádraig Brady <P@draigBrady.com>
23382
23383         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23384         * tests/test-malloca.c (main): Unset the environment variable
23385         to greatly speed up the test.
23386         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23387         * modules/malloca-tests: Depend on unsetenv.
23388
23389 2011-01-21  Pádraig Brady <P@draigBrady.com>
23390
23391         ignore-value: remove stdint dependency
23392         * lib/ignore-value.h: Remove <stdint.h>
23393         * modules/ignore-value: Remove stdint dependency.
23394
23395 2011-01-21  Jim Meyering  <meyering@redhat.com>
23396
23397         maint.mk: adjust variable name to be consistent with other gl_ vars
23398         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23399         to be lower case.
23400
23401 2011-01-20  Jim Meyering  <meyering@redhat.com>
23402
23403         maint.mk: make "check" depend on public-submodule-commit by default
23404         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23405
23406 2011-01-20  Bruno Haible  <bruno@clisp.org>
23407
23408         mbfile, mbiter: Complete change from 2008-12-21.
23409         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23410         * m4/mbiter.m4 (gl_MBITER): Likewise.
23411
23412 2011-01-20  Jim Meyering  <meyering@redhat.com>
23413
23414         init.sh: insert space between each function name and "()"
23415         * tests/init.sh: Make it a little easier to see that a function's
23416         name is "warn_", and not "warn" when looking at the first part of
23417         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23418
23419 2011-01-20  Jim Meyering  <meyering@redhat.com>
23420
23421         mountlist: clean up code formatting
23422         * lib/mountlist.c (read_file_system_list): Split a long line,
23423         correct bracing style, use NULL in place of "(struct statfs *)0",
23424         don't parenthesize return value, add spaces around "=" and after
23425         ";-in-for-stmt".
23426
23427 2011-01-14  Markus Duft <mduft@gentoo.org>
23428
23429         mountlist: add support for Interix
23430         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23431         Apply statvfs to all entries of /dev/fs.
23432         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23433         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23434
23435 2011-01-20  Jim Meyering  <meyering@redhat.com>
23436
23437         maint.mk: improve the public-submodule-commit rule
23438         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23439         to suppress printing of its commands... unless V=1.
23440         Add git submodule's --quiet option to suppress printing of e.g.,
23441         "Entering gnulib" output.
23442         "cd" into $(srcdir) before running git submodule.
23443
23444 2011-01-20  Bruno Haible  <bruno@clisp.org>
23445
23446         include_next: Fix bug introduced on 2011-01-18.
23447         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23448         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23449         ac_cv_header_... variable if the second argument is not 'check'.
23450         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23451         gl_NEXT_HEADERS_INTERNAL.
23452
23453 2011-01-20  Bruno Haible  <bruno@clisp.org>
23454
23455         Allow the user to avoid the GNULIB_TEST_* macros.
23456         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23457         Suggested by Paul Eggert.
23458
23459 2011-01-14  Jim Meyering  <meyering@redhat.com>
23460
23461         bootstrap: avoid failure when there is no .gitmodules file
23462         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23463         has been assigned to, even when its value is the empty string.
23464         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23465         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23466         Reported by John W. Eaton <jwe@gnu.org>.
23467
23468 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23469
23470         assume <ctype.h>, ..., <time.h> exist
23471         For years gnulib has been assuming the existence of the headers
23472         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23473         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23474         them, since they don't appear to be needed.
23475         * README (Portability guidelines): Document this.
23476         * lib/flock.c: Assume <fcntl.h> exists.
23477         * lib/regex_internal.h: Assume <locale.h> exists.
23478         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23479         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23480         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23481         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23482         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23483         * m4/regex.m4 (gl_REGEX): Likewise.
23484         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23485         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23486         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23487         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23488         * tests/test-argp.c: Likewise.
23489         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23490
23491         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23492         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23493         AA_APPLE_UNIVERSAL_BUILD.  See
23494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23495         * NEWS: Document this.
23496
23497 2011-01-19  Eric Blake  <eblake@redhat.com>
23498
23499         c-stack: assume stack overflow if SA_SIGINFO unsupported
23500         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23501         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23502         sigaction will work.
23503         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23504         behavior match Linux.
23505         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23506
23507         stdbool-tests: accommodate Haiku
23508         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23509
23510         binary-io: fix O_TEXT on Haiku
23511         * modules/binary-io (Depends-on): Add fcntl-h.
23512         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23513         than blindly undefining O_TEXT.
23514         Reported by Scott McCreary.
23515
23516 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23517
23518         include_next: do not check for standard headers like stddef.h
23519
23520         I found this problem when modifying Emacs to use gnulib.
23521         I noticed that it added HAVE_STDDEF_H to config.h, even though
23522         gnulib always assumes <stddef.h> exists as per README and this
23523         symbol is unnecessary.
23524         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23525         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
23526         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23527         faster for headers like stddef.h that are known to exist.
23528         (gl_CHECK_NEXT_HEADERS): Use it.
23529         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
23530         rather than gl_CHECK_NEXT_HEADERS.
23531         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
23532         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
23533
23534 2011-01-18  Eric Blake  <eblake@redhat.com>
23535
23536         ansi-c++-opt: skip C++ dependency style if C++ is unused
23537         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23538         tests when we know C++ compilation is not desired.
23539         Reported by Scott McCreary.
23540
23541 2011-01-18  Bruno Haible  <bruno@clisp.org>
23542
23543         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
23544         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
23545         (main): Perform test also when getrlimit and setrlimit don't exist or
23546         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
23547         limiting the address space size using setrlimit, compare the address
23548         space size before and after the the test.
23549         * tests/test-dprintf-posix2.c: Likewise.
23550         * tests/test-fprintf-posix3.sh: Update skip messages.
23551         * tests/test-dprintf-posix2.sh: Likewise.
23552         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
23553         * modules/dprintf-posix-tests (Depends-on): Likewise.
23554         Reported by Bruce Korb <bkorb@gnu.org> and
23555         Gary V. Vaughan <gary@gnu.org>.
23556
23557 2011-01-18  Bruno Haible  <bruno@clisp.org>
23558
23559         get-rusage-as: Improvement for Cygwin.
23560         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
23561         areas that are merely reserved.
23562
23563 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23564
23565         strftime: remove dependencies on multibyte modules
23566
23567         strftime depended on mbrlen, mbsinit, and wchar, but these modules
23568         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
23569         only if __osf__ is defined, and I suspect OSF doesn't need these
23570         other modules.  If my guess is wrong, we'll need to come up with a
23571         variant of strftime that doesn't need the multibyte modules.
23572
23573         I discovered this problem when attempting modify Emacs to use the
23574         strftime module.  With the previous gnulib, this caused Emacs to
23575         need 31 new files, ranging from lib/config.charset to
23576         m4/wint_t.m4.  This was overkill and I expect would be offputting
23577         to the Emacs maintainers.  After this change, only 6 new files are
23578         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
23579         stdbool.m4, and tm_gmtoff.m4.
23580
23581         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
23582         Suggested by Bruno Haible in
23583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
23584         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
23585         and do not check for wchar.h.
23586         * modules/strftime (Files): Remove m4/mbstate_t.m4.
23587         (Depends-on): Remove mbrlen, mbsinit, wchar.
23588
23589 2011-01-18  Bruno Haible  <bruno@clisp.org>
23590
23591         Tests for module 'get-rusage-as'.
23592         * modules/get-rusage-as-tests: New file.
23593         * tests/test-get-rusage-as.c: New file.
23594
23595         New module 'get-rusage-as'.
23596         * modules/get-rusage-as: New file.
23597         * lib/resource-ext.h: New file.
23598         * lib/get-rusage-as.c: New file.
23599
23600 2011-01-17  Eric Blake  <eblake@redhat.com>
23601
23602         sigaction: relax license from LGPLv3+ to LGPLv2+
23603         * modules/sigaction (License): Relax to LGPLv2+.
23604
23605 2011-01-14  Bruno Haible  <bruno@clisp.org>
23606
23607         filemode: Make function declarations usable in C++ mode.
23608         * lib/filemode.h: Enclose function declarations in extern "C" block.
23609         Reported by John W. Eaton <jwe@gnu.org>.
23610
23611 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
23612
23613         save-cwd: no longer include "xgetcwd.h"
23614         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
23615         This avoids a compilation failure in projects that use save-cwd
23616         without also using the xgetcwd module.
23617
23618 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23619
23620         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
23621         This is so that a program like Emacs, which needs only dtoastr,
23622         does not have to bother with distributing and compiling ftoastr
23623         and ldtoastr.
23624         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
23625         * modules/dtoastr, modules/ldtoastr: New files.
23626         * modules/ftoastr: Now works just for 'float'.
23627         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
23628         (Makefile.am): Remove ftoastr.h (not needed and no effect),
23629         dtoastr.c, ldtoastr.c.
23630
23631 2011-01-11  Jim Meyering  <meyering@redhat.com>
23632
23633         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
23634         There is no need to work around the lack of the fchdir function,
23635         since gnulib can now provide a replacement when required.
23636         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
23637         * modules/save-cwd (Depends-on): Add fchdir.
23638
23639 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23640
23641         openat, save-cwd: avoid xmalloc
23642
23643         This removes a direct (but undocumented) dependency of openat on
23644         xalloc, along with an indirect dependency via save-cwd.  It also
23645         removes a dependency of save-cwd on xgetcwd, and thereby
23646         indirectly on xalloc.  This change causes the openat substitute
23647         to fall back on save_cwd when memory is tight, and for save_cwd to
23648         fail instead of dying when memory is tight, but that's good enough.
23649         Problem and initial idea for fix reported by Bastien Roucaries in
23650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
23651
23652         * lib/openat-proc.c: Include stdlib.h (for malloc), not
23653         xalloc.h (for xmalloc).
23654         (openat_proc_name): Use malloc, not xmalloc.
23655         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
23656         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
23657
23658         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
23659         This avoids heap allocation for file names whose lengths are in
23660         the range 512..1023, with the upper bound increasing to at most
23661         4031 depending on the platform's PATH_MAX.  (We do not want
23662         pathmax.h here as it might supply a non-constant PATH_MAX.)
23663         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
23664         Perhaps they should be moved to malloca.h?
23665         (OPENAT_BUFFER_SIZE): Use them.
23666
23667 2011-01-10  Bruno Haible  <bruno@clisp.org>
23668
23669         doc: Update users.txt.
23670         * users.txt: Add recutils.
23671
23672 2011-01-09  Karl Berry  <karl@gnu.org>
23673
23674         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
23675
23676         * doc/configmake.texi: New file.
23677         * doc/gnulib.texi: Include it.
23678         * modules/configmake: Move documentation from here.
23679
23680 2011-01-09  Bruno Haible  <bruno@clisp.org>
23681
23682         Update to Unicode 6.0.0.
23683         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
23684         (get_lbp): Update for Unicode 6.0.0.
23685         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
23686         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
23687         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
23688         U+11001, U+11038..U+11046. Remove U+06DE.
23689         (uc_width): Fix bounds of planes.
23690         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23691         lib/uniwidth/width.c.
23692         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
23693         trailing whitespace removed.
23694         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
23695         without comments, but with the original copyright notice.
23696         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
23697         * lib/unicase/ignorable.h: Likewise.
23698         * lib/unicase/tocasefold.h: Likewise.
23699         * lib/unicase/tolower.h: Likewise.
23700         * lib/unicase/totitle.h: Likewise.
23701         * lib/unicase/toupper.h: Likewise.
23702         * lib/unictype/bidi_of.h: Likewise.
23703         * lib/unictype/blocks.h: Likewise.
23704         * lib/unictype/categ_C.h: Likewise.
23705         * lib/unictype/categ_Cn.h: Likewise.
23706         * lib/unictype/categ_L.h: Likewise.
23707         * lib/unictype/categ_Ll.h: Likewise.
23708         * lib/unictype/categ_Lm.h: Likewise.
23709         * lib/unictype/categ_Lo.h: Likewise.
23710         * lib/unictype/categ_Lu.h: Likewise.
23711         * lib/unictype/categ_M.h: Likewise.
23712         * lib/unictype/categ_Mc.h: Likewise.
23713         * lib/unictype/categ_Me.h: Likewise.
23714         * lib/unictype/categ_Mn.h: Likewise.
23715         * lib/unictype/categ_N.h: Likewise.
23716         * lib/unictype/categ_Nd.h: Likewise.
23717         * lib/unictype/categ_No.h: Likewise.
23718         * lib/unictype/categ_P.h: Likewise.
23719         * lib/unictype/categ_Po.h: Likewise.
23720         * lib/unictype/categ_S.h: Likewise.
23721         * lib/unictype/categ_Sc.h: Likewise.
23722         * lib/unictype/categ_Sk.h: Likewise.
23723         * lib/unictype/categ_Sm.h: Likewise.
23724         * lib/unictype/categ_So.h: Likewise.
23725         * lib/unictype/categ_of.h: Likewise.
23726         * lib/unictype/combining.h: Likewise.
23727         * lib/unictype/ctype_alnum.h: Likewise.
23728         * lib/unictype/ctype_alpha.h: Likewise.
23729         * lib/unictype/ctype_graph.h: Likewise.
23730         * lib/unictype/ctype_lower.h: Likewise.
23731         * lib/unictype/ctype_print.h: Likewise.
23732         * lib/unictype/ctype_punct.h: Likewise.
23733         * lib/unictype/ctype_upper.h: Likewise.
23734         * lib/unictype/decdigit.h: Likewise.
23735         * lib/unictype/digit.h: Likewise.
23736         * lib/unictype/numeric.h: Likewise.
23737         * lib/unictype/pr_alphabetic.h: Likewise.
23738         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23739         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23740         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23741         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23742         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23743         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23744         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23745         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23746         * lib/unictype/pr_case_ignorable.h: Likewise.
23747         * lib/unictype/pr_cased.h: Likewise.
23748         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
23749         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
23750         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
23751         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
23752         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
23753         * lib/unictype/pr_combining.h: Likewise.
23754         * lib/unictype/pr_composite.h: Likewise.
23755         * lib/unictype/pr_currency_symbol.h: Likewise.
23756         * lib/unictype/pr_decimal_digit.h: Likewise.
23757         * lib/unictype/pr_deprecated.h: Likewise.
23758         * lib/unictype/pr_format_control.h: Likewise.
23759         * lib/unictype/pr_grapheme_base.h: Likewise.
23760         * lib/unictype/pr_grapheme_extend.h: Likewise.
23761         * lib/unictype/pr_grapheme_link.h: Likewise.
23762         * lib/unictype/pr_id_continue.h: Likewise.
23763         * lib/unictype/pr_id_start.h: Likewise.
23764         * lib/unictype/pr_ideographic.h: Likewise.
23765         * lib/unictype/pr_lowercase.h: Likewise.
23766         * lib/unictype/pr_math.h: Likewise.
23767         * lib/unictype/pr_numeric.h: Likewise.
23768         * lib/unictype/pr_other_alphabetic.h: Likewise.
23769         * lib/unictype/pr_other_id_continue.h: Likewise.
23770         * lib/unictype/pr_other_math.h: Likewise.
23771         * lib/unictype/pr_punctuation.h: Likewise.
23772         * lib/unictype/pr_sentence_terminal.h: Likewise.
23773         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23774         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23775         * lib/unictype/pr_unified_ideograph.h: Likewise.
23776         * lib/unictype/pr_uppercase.h: Likewise.
23777         * lib/unictype/pr_xid_continue.h: Likewise.
23778         * lib/unictype/pr_xid_start.h: Likewise.
23779         * lib/unictype/scripts.h: Likewise.
23780         * lib/unictype/scripts_byname.gperf: Likewise.
23781         * lib/unictype/sy_java_ident.h: Likewise.
23782         * lib/unigbrk/gbrkprop.h: Likewise.
23783         * lib/unilbrk/lbrkprop1.h: Likewise.
23784         * lib/unilbrk/lbrkprop2.h: Likewise.
23785         * lib/uninorm/decomposition-table2.h: Likewise.
23786         * lib/uniwbrk/wbrkprop.h: Likewise.
23787         * tests/unicase/test-cased.c: Likewise.
23788         * tests/unicase/test-ignorable.c: Likewise.
23789         * tests/unicase/test-uc_tolower.c: Likewise.
23790         * tests/unicase/test-uc_totitle.c: Likewise.
23791         * tests/unicase/test-uc_toupper.c: Likewise.
23792         * tests/unictype/test-categ_C.c: Likewise.
23793         * tests/unictype/test-categ_Cn.c: Likewise.
23794         * tests/unictype/test-categ_L.c: Likewise.
23795         * tests/unictype/test-categ_Ll.c: Likewise.
23796         * tests/unictype/test-categ_Lm.c: Likewise.
23797         * tests/unictype/test-categ_Lo.c: Likewise.
23798         * tests/unictype/test-categ_Lu.c: Likewise.
23799         * tests/unictype/test-categ_M.c: Likewise.
23800         * tests/unictype/test-categ_Mc.c: Likewise.
23801         * tests/unictype/test-categ_Me.c: Likewise.
23802         * tests/unictype/test-categ_Mn.c: Likewise.
23803         * tests/unictype/test-categ_N.c: Likewise.
23804         * tests/unictype/test-categ_Nd.c: Likewise.
23805         * tests/unictype/test-categ_No.c: Likewise.
23806         * tests/unictype/test-categ_P.c: Likewise.
23807         * tests/unictype/test-categ_Po.c: Likewise.
23808         * tests/unictype/test-categ_S.c: Likewise.
23809         * tests/unictype/test-categ_Sc.c: Likewise.
23810         * tests/unictype/test-categ_Sk.c: Likewise.
23811         * tests/unictype/test-categ_Sm.c: Likewise.
23812         * tests/unictype/test-categ_So.c: Likewise.
23813         * tests/unictype/test-ctype_alnum.c: Likewise.
23814         * tests/unictype/test-ctype_alpha.c: Likewise.
23815         * tests/unictype/test-ctype_graph.c: Likewise.
23816         * tests/unictype/test-ctype_lower.c: Likewise.
23817         * tests/unictype/test-ctype_print.c: Likewise.
23818         * tests/unictype/test-ctype_punct.c: Likewise.
23819         * tests/unictype/test-ctype_upper.c: Likewise.
23820         * tests/unictype/test-decdigit.h: Likewise.
23821         * tests/unictype/test-digit.h: Likewise.
23822         * tests/unictype/test-numeric.h: Likewise.
23823         * tests/unictype/test-pr_alphabetic.c: Likewise.
23824         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23825         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
23826         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
23827         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23828         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23829         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23830         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23831         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23832         * tests/unictype/test-pr_case_ignorable.c: Likewise.
23833         * tests/unictype/test-pr_cased.c: Likewise.
23834         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
23835         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
23836         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
23837         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
23838         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
23839         * tests/unictype/test-pr_combining.c: Likewise.
23840         * tests/unictype/test-pr_composite.c: Likewise.
23841         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23842         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23843         * tests/unictype/test-pr_deprecated.c: Likewise.
23844         * tests/unictype/test-pr_format_control.c: Likewise.
23845         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23846         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23847         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23848         * tests/unictype/test-pr_id_continue.c: Likewise.
23849         * tests/unictype/test-pr_id_start.c: Likewise.
23850         * tests/unictype/test-pr_ideographic.c: Likewise.
23851         * tests/unictype/test-pr_lowercase.c: Likewise.
23852         * tests/unictype/test-pr_math.c: Likewise.
23853         * tests/unictype/test-pr_numeric.c: Likewise.
23854         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23855         * tests/unictype/test-pr_other_id_continue.c: Likewise.
23856         * tests/unictype/test-pr_other_math.c: Likewise.
23857         * tests/unictype/test-pr_punctuation.c: Likewise.
23858         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23859         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23860         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23861         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23862         * tests/unictype/test-pr_uppercase.c: Likewise.
23863         * tests/unictype/test-pr_xid_continue.c: Likewise.
23864         * tests/unictype/test-pr_xid_start.c: Likewise.
23865         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23866         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23867         changes.
23868         * lib/unictype/categ_Cc.h: Likewise.
23869         * lib/unictype/categ_Cf.h: Likewise.
23870         * lib/unictype/categ_Co.h: Likewise.
23871         * lib/unictype/categ_Cs.h: Likewise.
23872         * lib/unictype/categ_Lt.h: Likewise.
23873         * lib/unictype/categ_Nl.h: Likewise.
23874         * lib/unictype/categ_Pc.h: Likewise.
23875         * lib/unictype/categ_Pd.h: Likewise.
23876         * lib/unictype/categ_Pe.h: Likewise.
23877         * lib/unictype/categ_Pf.h: Likewise.
23878         * lib/unictype/categ_Pi.h: Likewise.
23879         * lib/unictype/categ_Ps.h: Likewise.
23880         * lib/unictype/categ_Z.h: Likewise.
23881         * lib/unictype/categ_Zl.h: Likewise.
23882         * lib/unictype/categ_Zp.h: Likewise.
23883         * lib/unictype/categ_Zs.h: Likewise.
23884         * lib/unictype/ctype_blank.h: Likewise.
23885         * lib/unictype/ctype_cntrl.h: Likewise.
23886         * lib/unictype/ctype_digit.h: Likewise.
23887         * lib/unictype/ctype_space.h: Likewise.
23888         * lib/unictype/ctype_xdigit.h: Likewise.
23889         * lib/unictype/mirror.h: Likewise.
23890         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23891         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23892         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23893         * lib/unictype/pr_bidi_control.h: Likewise.
23894         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23895         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23896         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23897         * lib/unictype/pr_bidi_pdf.h: Likewise.
23898         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23899         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23900         * lib/unictype/pr_dash.h: Likewise.
23901         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23902         * lib/unictype/pr_diacritic.h: Likewise.
23903         * lib/unictype/pr_extender.h: Likewise.
23904         * lib/unictype/pr_hex_digit.h: Likewise.
23905         * lib/unictype/pr_hyphen.h: Likewise.
23906         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23907         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23908         * lib/unictype/pr_ignorable_control.h: Likewise.
23909         * lib/unictype/pr_iso_control.h: Likewise.
23910         * lib/unictype/pr_join_control.h: Likewise.
23911         * lib/unictype/pr_left_of_pair.h: Likewise.
23912         * lib/unictype/pr_line_separator.h: Likewise.
23913         * lib/unictype/pr_logical_order_exception.h: Likewise.
23914         * lib/unictype/pr_non_break.h: Likewise.
23915         * lib/unictype/pr_not_a_character.h: Likewise.
23916         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23917         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23918         * lib/unictype/pr_other_id_start.h: Likewise.
23919         * lib/unictype/pr_other_lowercase.h: Likewise.
23920         * lib/unictype/pr_other_uppercase.h: Likewise.
23921         * lib/unictype/pr_paired_punctuation.h: Likewise.
23922         * lib/unictype/pr_paragraph_separator.h: Likewise.
23923         * lib/unictype/pr_pattern_syntax.h: Likewise.
23924         * lib/unictype/pr_pattern_white_space.h: Likewise.
23925         * lib/unictype/pr_private_use.h: Likewise.
23926         * lib/unictype/pr_quotation_mark.h: Likewise.
23927         * lib/unictype/pr_radical.h: Likewise.
23928         * lib/unictype/pr_soft_dotted.h: Likewise.
23929         * lib/unictype/pr_space.h: Likewise.
23930         * lib/unictype/pr_titlecase.h: Likewise.
23931         * lib/unictype/pr_variation_selector.h: Likewise.
23932         * lib/unictype/pr_white_space.h: Likewise.
23933         * lib/unictype/pr_zero_width.h: Likewise.
23934         * lib/unictype/sy_c_ident.h: Likewise.
23935         * lib/unictype/sy_c_whitespace.h: Likewise.
23936         * lib/unictype/sy_java_whitespace.h: Likewise.
23937         * lib/uninorm/composition-table.gperf: Likewise.
23938         * lib/uninorm/decomposition-table1.h: Likewise.
23939         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
23940         LB8.
23941         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23942         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23943         * modules/unictype/*: Bump version number of expected libunistring
23944         version.
23945
23946 2011-01-09  Bruno Haible  <bruno@clisp.org>
23947
23948         Update to Unicode 5.2.0.
23949         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
23950         trailing whitespace removed.
23951
23952 2011-01-09  Bruno Haible  <bruno@clisp.org>
23953
23954         New Unicode character properties, from Unicode 5.2.0.
23955         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
23956         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
23957         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
23958         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
23959         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
23960         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
23961         uc_is_property_cased, uc_is_property_case_ignorable,
23962         uc_is_property_changes_when_lowercased,
23963         uc_is_property_changes_when_uppercased,
23964         uc_is_property_changes_when_titlecased,
23965         uc_is_property_changes_when_casefolded,
23966         uc_is_property_changes_when_casemapped): New declarations.
23967         * lib/unictype/pr_byname.gperf: Add the new properties.
23968         * modules/unictype/property-byname (Depends-on): Depend on the new
23969         properties modules.
23970         * modules/unictype/property-all (Depends-on): Likewise.
23971         * MODULES.html.sh (Unicode string functions): Add
23972         unictype/property-case-ignorable, unictype/property-cased,
23973         unictype/property-changes-when-casefolded,
23974         unictype/property-changes-when-casemapped,
23975         unictype/property-changes-when-lowercased,
23976         unictype/property-changes-when-titlecased,
23977         unictype/property-changes-when-uppercased.
23978
23979         New module 'unictype/property-changes-when-casemapped'.
23980         * modules/unictype/property-changes-when-casemapped: New file.
23981         * lib/unictype/pr_changes_when_casemapped.c: New file.
23982         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
23983         generated by gen-uni-tables.
23984         * modules/unictype/property-changes-when-casemapped-tests: New file.
23985         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
23986         automatically generated by gen-uni-tables.
23987
23988         New module 'unictype/property-changes-when-casefolded'.
23989         * modules/unictype/property-changes-when-casefolded: New file.
23990         * lib/unictype/pr_changes_when_casefolded.c: New file.
23991         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
23992         generated by gen-uni-tables.
23993         * modules/unictype/property-changes-when-casefolded-tests: New file.
23994         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
23995         automatically generated by gen-uni-tables.
23996
23997         New module 'unictype/property-changes-when-titlecased'.
23998         * modules/unictype/property-changes-when-titlecased: New file.
23999         * lib/unictype/pr_changes_when_titlecased.c: New file.
24000         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24001         generated by gen-uni-tables.
24002         * modules/unictype/property-changes-when-titlecased-tests: New file.
24003         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24004         automatically generated by gen-uni-tables.
24005
24006         New module 'unictype/property-changes-when-uppercased'.
24007         * modules/unictype/property-changes-when-uppercased: New file.
24008         * lib/unictype/pr_changes_when_uppercased.c: New file.
24009         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24010         generated by gen-uni-tables.
24011         * modules/unictype/property-changes-when-uppercased-tests: New file.
24012         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24013         automatically generated by gen-uni-tables.
24014
24015         New module 'unictype/property-changes-when-lowercased'.
24016         * modules/unictype/property-changes-when-lowercased: New file.
24017         * lib/unictype/pr_changes_when_lowercased.c: New file.
24018         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24019         generated by gen-uni-tables.
24020         * modules/unictype/property-changes-when-lowercased-tests: New file.
24021         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24022         automatically generated by gen-uni-tables.
24023
24024         New module 'unictype/property-case-ignorable'.
24025         * modules/unictype/property-case-ignorable: New file.
24026         * lib/unictype/pr_case_ignorable.c: New file.
24027         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24028         by gen-uni-tables.
24029         * modules/unictype/property-case-ignorable-tests: New file.
24030         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24031         generated by gen-uni-tables.
24032
24033         New module 'unictype/property-cased'.
24034         * modules/unictype/property-cased: New file.
24035         * lib/unictype/pr_cased.c: New file.
24036         * lib/unictype/pr_cased.h: New file, automatically generated by
24037         gen-uni-tables.
24038         * modules/unictype/property-cased-tests: New file.
24039         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24040         gen-uni-tables.
24041
24042 2011-01-09  Bruno Haible  <bruno@clisp.org>
24043
24044         Update to Unicode 5.2.0.
24045         * lib/gen-uni-tables.c (output_predicate, output_category,
24046         output_combclass, output_bidi_category, output_decimal_digit_test,
24047         output_decimal_digit, output_digit_test, output_digit,
24048         output_numeric_test, output_numeric, output_mirror, output_scripts,
24049         output_scripts_byname, output_blocks, output_ident_category): Fix
24050         comment header.
24051         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24052         get_wbp.
24053         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24054         items.
24055         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24056         Changes_When_Lowercased, Changes_When_Uppercased,
24057         Changes_When_Titlecased, Changes_When_Casefolded,
24058         Changes_When_Casemapped.
24059         (is_property_alphabetic, is_property_default_ignorable_code_point):
24060         Update for Unicode 5.2.0.
24061         (is_property_cased, is_property_case_ignorable,
24062         is_property_changes_when_lowercased,
24063         is_property_changes_when_uppercased,
24064         is_property_changes_when_titlecased,
24065         is_property_changes_when_casefolded,
24066         is_property_changes_when_casemapped): New functions.
24067         (output_properties): Output also the properties cased, case_ignorable,
24068         changes_when_lowercased, changes_when_uppercased,
24069         changes_when_titlecased, changes_when_casefolded,
24070         changes_when_casemapped.
24071         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24072         Unicode TR#11 revision 17 -> 19.
24073         (LBP_CP): New enumeration value.
24074         (LBP_*): Adjust values accordingly.
24075         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24076         TR#14 revision 22 -> 24.
24077         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24078         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24079         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24080         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24081         is_WBP_MIDLETTER.
24082         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24083         the code1 and code2 of each composition rule.
24084         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24085         * lib/unicase/ignorable.h: Likewise.
24086         * lib/unicase/tocasefold.h: Likewise.
24087         * lib/unicase/tolower.h: Likewise.
24088         * lib/unicase/totitle.h: Likewise.
24089         * lib/unicase/toupper.h: Likewise.
24090         * lib/unictype/bidi_of.h: Likewise.
24091         * lib/unictype/blocks.h: Likewise.
24092         * lib/unictype/categ_C.h: Likewise.
24093         * lib/unictype/categ_Cf.h: Likewise.
24094         * lib/unictype/categ_Cn.h: Likewise.
24095         * lib/unictype/categ_L.h: Likewise.
24096         * lib/unictype/categ_Ll.h: Likewise.
24097         * lib/unictype/categ_Lm.h: Likewise.
24098         * lib/unictype/categ_Lo.h: Likewise.
24099         * lib/unictype/categ_Lu.h: Likewise.
24100         * lib/unictype/categ_M.h: Likewise.
24101         * lib/unictype/categ_Mc.h: Likewise.
24102         * lib/unictype/categ_Mn.h: Likewise.
24103         * lib/unictype/categ_N.h: Likewise.
24104         * lib/unictype/categ_Nd.h: Likewise.
24105         * lib/unictype/categ_Nl.h: Likewise.
24106         * lib/unictype/categ_No.h: Likewise.
24107         * lib/unictype/categ_P.h: Likewise.
24108         * lib/unictype/categ_Pd.h: Likewise.
24109         * lib/unictype/categ_Po.h: Likewise.
24110         * lib/unictype/categ_S.h: Likewise.
24111         * lib/unictype/categ_Sc.h: Likewise.
24112         * lib/unictype/categ_So.h: Likewise.
24113         * lib/unictype/categ_of.h: Likewise.
24114         * lib/unictype/combining.h: Likewise.
24115         * lib/unictype/ctype_alnum.h: Likewise.
24116         * lib/unictype/ctype_alpha.h: Likewise.
24117         * lib/unictype/ctype_graph.h: Likewise.
24118         * lib/unictype/ctype_lower.h: Likewise.
24119         * lib/unictype/ctype_print.h: Likewise.
24120         * lib/unictype/ctype_punct.h: Likewise.
24121         * lib/unictype/ctype_upper.h: Likewise.
24122         * lib/unictype/decdigit.h: Likewise.
24123         * lib/unictype/digit.h: Likewise.
24124         * lib/unictype/numeric.h: Likewise.
24125         * lib/unictype/pr_alphabetic.h: Likewise.
24126         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24127         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24128         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24129         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24130         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24131         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24132         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24133         * lib/unictype/pr_combining.h: Likewise.
24134         * lib/unictype/pr_composite.h: Likewise.
24135         * lib/unictype/pr_currency_symbol.h: Likewise.
24136         * lib/unictype/pr_dash.h: Likewise.
24137         * lib/unictype/pr_decimal_digit.h: Likewise.
24138         * lib/unictype/pr_deprecated.h: Likewise.
24139         * lib/unictype/pr_diacritic.h: Likewise.
24140         * lib/unictype/pr_extender.h: Likewise.
24141         * lib/unictype/pr_grapheme_base.h: Likewise.
24142         * lib/unictype/pr_grapheme_extend.h: Likewise.
24143         * lib/unictype/pr_grapheme_link.h: Likewise.
24144         * lib/unictype/pr_id_continue.h: Likewise.
24145         * lib/unictype/pr_id_start.h: Likewise.
24146         * lib/unictype/pr_ideographic.h: Likewise.
24147         * lib/unictype/pr_ignorable_control.h: Likewise.
24148         * lib/unictype/pr_logical_order_exception.h: Likewise.
24149         * lib/unictype/pr_lowercase.h: Likewise.
24150         * lib/unictype/pr_numeric.h: Likewise.
24151         * lib/unictype/pr_other_alphabetic.h: Likewise.
24152         * lib/unictype/pr_punctuation.h: Likewise.
24153         * lib/unictype/pr_sentence_terminal.h: Likewise.
24154         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24155         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24156         * lib/unictype/pr_unified_ideograph.h: Likewise.
24157         * lib/unictype/pr_uppercase.h: Likewise.
24158         * lib/unictype/pr_xid_continue.h: Likewise.
24159         * lib/unictype/pr_xid_start.h: Likewise.
24160         * lib/unictype/pr_zero_width.h: Likewise.
24161         * lib/unictype/scripts.h: Likewise.
24162         * lib/unictype/scripts_byname.gperf: Likewise.
24163         * lib/unictype/sy_java_ident.h: Likewise.
24164         * lib/unigbrk/gbrkprop.h: Likewise.
24165         * lib/unilbrk/lbrkprop1.h: Likewise.
24166         * lib/unilbrk/lbrkprop2.h: Likewise.
24167         * lib/unilbrk/lbrktables.h: Likewise.
24168         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24169         LBP_CP. Implement rule LB30.
24170         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24171         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24172         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24173         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24174         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24175         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24176         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24177         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24178         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24179         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24180         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24181         bits instead of 16 bits in the code1 and code2 of each composition
24182         rule.
24183         (uc_composition): Update for Unicode 5.2.0.
24184         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24185         * lib/uninorm/decomposition-table2.h: Likewise.
24186         * lib/uniwbrk/wbrkprop.h: Likewise.
24187         * tests/unicase/test-cased.c: Likewise.
24188         * tests/unicase/test-ignorable.c: Likewise.
24189         * tests/unicase/test-uc_tolower.c: Likewise.
24190         * tests/unicase/test-uc_totitle.c: Likewise.
24191         * tests/unicase/test-uc_toupper.c: Likewise.
24192         * tests/unictype/test-categ_C.c: Likewise.
24193         * tests/unictype/test-categ_Cf.c: Likewise.
24194         * tests/unictype/test-categ_Cn.c: Likewise.
24195         * tests/unictype/test-categ_L.c: Likewise.
24196         * tests/unictype/test-categ_Ll.c: Likewise.
24197         * tests/unictype/test-categ_Lm.c: Likewise.
24198         * tests/unictype/test-categ_Lo.c: Likewise.
24199         * tests/unictype/test-categ_Lu.c: Likewise.
24200         * tests/unictype/test-categ_M.c: Likewise.
24201         * tests/unictype/test-categ_Mc.c: Likewise.
24202         * tests/unictype/test-categ_Mn.c: Likewise.
24203         * tests/unictype/test-categ_N.c: Likewise.
24204         * tests/unictype/test-categ_Nd.c: Likewise.
24205         * tests/unictype/test-categ_Nl.c: Likewise.
24206         * tests/unictype/test-categ_No.c: Likewise.
24207         * tests/unictype/test-categ_P.c: Likewise.
24208         * tests/unictype/test-categ_Pd.c: Likewise.
24209         * tests/unictype/test-categ_Po.c: Likewise.
24210         * tests/unictype/test-categ_S.c: Likewise.
24211         * tests/unictype/test-categ_Sc.c: Likewise.
24212         * tests/unictype/test-categ_So.c: Likewise.
24213         * tests/unictype/test-ctype_alnum.c: Likewise.
24214         * tests/unictype/test-ctype_alpha.c: Likewise.
24215         * tests/unictype/test-ctype_graph.c: Likewise.
24216         * tests/unictype/test-ctype_lower.c: Likewise.
24217         * tests/unictype/test-ctype_print.c: Likewise.
24218         * tests/unictype/test-ctype_punct.c: Likewise.
24219         * tests/unictype/test-ctype_upper.c: Likewise.
24220         * tests/unictype/test-decdigit.h: Likewise.
24221         * tests/unictype/test-digit.h: Likewise.
24222         * tests/unictype/test-numeric.h: Likewise.
24223         * tests/unictype/test-pr_alphabetic.c: Likewise.
24224         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24225         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24226         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24227         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24228         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24229         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24230         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24231         * tests/unictype/test-pr_combining.c: Likewise.
24232         * tests/unictype/test-pr_composite.c: Likewise.
24233         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24234         * tests/unictype/test-pr_dash.c: Likewise.
24235         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24236         * tests/unictype/test-pr_deprecated.c: Likewise.
24237         * tests/unictype/test-pr_diacritic.c: Likewise.
24238         * tests/unictype/test-pr_extender.c: Likewise.
24239         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24240         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24241         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24242         * tests/unictype/test-pr_id_continue.c: Likewise.
24243         * tests/unictype/test-pr_id_start.c: Likewise.
24244         * tests/unictype/test-pr_ideographic.c: Likewise.
24245         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24246         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24247         * tests/unictype/test-pr_lowercase.c: Likewise.
24248         * tests/unictype/test-pr_numeric.c: Likewise.
24249         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24250         * tests/unictype/test-pr_punctuation.c: Likewise.
24251         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24252         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24253         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24254         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24255         * tests/unictype/test-pr_uppercase.c: Likewise.
24256         * tests/unictype/test-pr_xid_continue.c: Likewise.
24257         * tests/unictype/test-pr_xid_start.c: Likewise.
24258         * tests/unictype/test-pr_zero_width.c: Likewise.
24259         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24260         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24261         changed behaviour: line breaking is now disallowed between a letter
24262         or '=' and '('.
24263         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24264         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24265         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24266         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24267         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24268         lib/uniwidth/width.c.
24269         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24270         without comments, but with the original copyright notice.
24271         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24272         changes.
24273         * lib/unictype/categ_Cc.h: Likewise.
24274         * lib/unictype/categ_Co.h: Likewise.
24275         * lib/unictype/categ_Cs.h: Likewise.
24276         * lib/unictype/categ_Lt.h: Likewise.
24277         * lib/unictype/categ_Me.h: Likewise.
24278         * lib/unictype/categ_Pc.h: Likewise.
24279         * lib/unictype/categ_Pe.h: Likewise.
24280         * lib/unictype/categ_Pf.h: Likewise.
24281         * lib/unictype/categ_Pi.h: Likewise.
24282         * lib/unictype/categ_Ps.h: Likewise.
24283         * lib/unictype/categ_Sk.h: Likewise.
24284         * lib/unictype/categ_Sm.h: Likewise.
24285         * lib/unictype/categ_Z.h: Likewise.
24286         * lib/unictype/categ_Zl.h: Likewise.
24287         * lib/unictype/categ_Zp.h: Likewise.
24288         * lib/unictype/categ_Zs.h: Likewise.
24289         * lib/unictype/ctype_blank.h: Likewise.
24290         * lib/unictype/ctype_cntrl.h: Likewise.
24291         * lib/unictype/ctype_digit.h: Likewise.
24292         * lib/unictype/ctype_space.h: Likewise.
24293         * lib/unictype/ctype_xdigit.h: Likewise.
24294         * lib/unictype/mirror.h: Likewise.
24295         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24296         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24297         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24298         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24299         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24300         * lib/unictype/pr_bidi_control.h: Likewise.
24301         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24302         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24303         * lib/unictype/pr_bidi_pdf.h: Likewise.
24304         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24305         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24306         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24307         * lib/unictype/pr_format_control.h: Likewise.
24308         * lib/unictype/pr_hex_digit.h: Likewise.
24309         * lib/unictype/pr_hyphen.h: Likewise.
24310         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24311         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24312         * lib/unictype/pr_iso_control.h: Likewise.
24313         * lib/unictype/pr_join_control.h: Likewise.
24314         * lib/unictype/pr_left_of_pair.h: Likewise.
24315         * lib/unictype/pr_line_separator.h: Likewise.
24316         * lib/unictype/pr_math.h: Likewise.
24317         * lib/unictype/pr_non_break.h: Likewise.
24318         * lib/unictype/pr_not_a_character.h: Likewise.
24319         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24320         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24321         * lib/unictype/pr_other_id_continue.h: Likewise.
24322         * lib/unictype/pr_other_id_start.h: Likewise.
24323         * lib/unictype/pr_other_lowercase.h: Likewise.
24324         * lib/unictype/pr_other_math.h: Likewise.
24325         * lib/unictype/pr_other_uppercase.h: Likewise.
24326         * lib/unictype/pr_paired_punctuation.h: Likewise.
24327         * lib/unictype/pr_paragraph_separator.h: Likewise.
24328         * lib/unictype/pr_pattern_syntax.h: Likewise.
24329         * lib/unictype/pr_pattern_white_space.h: Likewise.
24330         * lib/unictype/pr_private_use.h: Likewise.
24331         * lib/unictype/pr_quotation_mark.h: Likewise.
24332         * lib/unictype/pr_radical.h: Likewise.
24333         * lib/unictype/pr_soft_dotted.h: Likewise.
24334         * lib/unictype/pr_space.h: Likewise.
24335         * lib/unictype/pr_titlecase.h: Likewise.
24336         * lib/unictype/pr_variation_selector.h: Likewise.
24337         * lib/unictype/pr_white_space.h: Likewise.
24338         * lib/unictype/sy_c_ident.h: Likewise.
24339         * lib/unictype/sy_c_whitespace.h: Likewise.
24340         * lib/unictype/sy_java_whitespace.h: Likewise.
24341         * modules/uni*/*: Bump version number of expected libunistring version.
24342         Reported by Simon Josefsson.
24343
24344 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24345
24346         useless-if-before-free: fix typo in --help and make the internal,
24347         automatic version date update process work once again.
24348         --help output contained a NUL character instead of the
24349         backslash-zero that was intended.  Also, the "must lie within
24350         the first 8 lines" line is on line 9, and hence not getting
24351         automatically updated.
24352         * build-aux/useless-if-before-free: Fix the former by adding a
24353         backslash, and the latter by condensing the three lines of what-it-does
24354         to a single line, leaving one line of slack for the future.
24355
24356 2011-01-09  Bruno Haible  <bruno@clisp.org>
24357
24358         uniwidth/width: Fix width of U+1D173..U+1D17A.
24359         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24360         symbolic_width, output_width_property_test): New functions.
24361         (main): Invoke output_nonspacing_property, output_width_property_test.
24362         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24363         U+1D173..U+1D17A.
24364         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24365         1.
24366         * modules/uniwidth/*: Bump version number of expected libunistring
24367         version.
24368         * modules/unilbrk/*: Likewise.
24369
24370 2011-01-08  Bruno Haible  <bruno@clisp.org>
24371
24372         uninorm tests: Preserve copyright of Unicode data file.
24373         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24374         Mention modifications.
24375
24376 2011-01-08  Bruno Haible  <bruno@clisp.org>
24377
24378         gen-uni-tables: Prepare for Unicode 5.2.0.
24379         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24380         (debug_output_lbp, output_lbp): Update.
24381
24382 2011-01-08  Bruno Haible  <bruno@clisp.org>
24383
24384         unilbrk: Clarify gen-uni-tables.c code.
24385         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24386         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24387         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24388
24389 2011-01-07  Bruno Haible  <bruno@clisp.org>
24390
24391         strtod: Restore errno when successfully parsing Infinity or NaN.
24392         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24393         restore the original errno.
24394
24395 2011-01-07  Bruno Haible  <bruno@clisp.org>
24396
24397         remove test: Avoid failure on HP-UX 11.
24398         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24399
24400 2011-01-07  Bruno Haible  <bruno@clisp.org>
24401
24402         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24403         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24404         error code.
24405
24406 2011-01-07  Pádraig Brady <P@draigBrady.com>
24407
24408         ignore-value: fixup comments, and add Eric Blake
24409         as an author since he rewrote the macros.
24410         * lib/ignore-value.h (ignore_value):  State that
24411         we now support aggregates.  Also specify exactly
24412         when the GCC warn_unused_result feature was added.
24413
24414 2011-01-06  Eric Blake  <eblake@redhat.com>
24415
24416         ignore-value: support aggregate types
24417         * lib/ignore-value.h (ignore_value): Provide separate gcc
24418         definition.
24419         * modules/ignore-value-tests: New test module.
24420         * tests/test-ignore-value.c: New test.
24421
24422         maint.mk: improve sc_prohibit_strcmp regex
24423         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24424         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24425         definition of STRNEQ.
24426
24427         signal: work around Haiku issue with SIGBUS
24428         * lib/siglist.h: Add comment.
24429         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24430         strsignal's favoring of SIGSEGV.
24431         * tests/test-signal.c (main): Avoid test failure.
24432         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24433         Reported by Scott McCreary.
24434
24435         maint.mk: add pre-release check to ensure submodule commits are public
24436         * top/maint.mk (public-submodule-commit): New rule.
24437         (submodule-checks): New variable.
24438         (alpha beta stable): Depend on the variable.
24439
24440 2011-01-05  Pádraig Brady <P@draigBrady.com>
24441         and Jim Meyering  <meyering@redhat.com>
24442
24443         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24444         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24445         (ATTRIBUTE_DEPRECATED): Define.
24446         (_ignore_case): New function.
24447         (ignore_value): New macro, to replace the old function.
24448         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24449         * modules/ignore-value (Depends-on): Add stdint.
24450
24451 2011-01-04  Eric Blake  <eblake@redhat.com>
24452
24453         doc: regenerate INSTALL
24454         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24455         @firstparagraphindent support, now that autoconf dropped it.
24456         (INSTALL_PRELUDE): Reinstate old macro.
24457         * doc/install.texi: Resync from autoconf.
24458         * doc/INSTALL: Reflect recent autoconf update.
24459         * doc/INSTALL.ISO: Likewise.
24460         * doc/INSTALL.UTF-8: Likewise.
24461         Reported by Karl Berry.
24462
24463 2011-01-04  Bruce Korb  <address@hidden>
24464
24465         git-version-gen: avoid a sub-shell
24466         * build-aux/git-version-gen: Redirect stderr in `...` via
24467         "exec 2>...", rather than via an added sub-shell.
24468
24469 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24470
24471         git-version-gen: use (...) rather than sh -c '...'
24472         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24473         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24474
24475 2011-01-03  Jim Meyering  <meyering@redhat.com>
24476
24477         git-version-gen: convert leading TABs to spaces
24478         * build-aux/git-version-gen: Expand leading TABs.
24479
24480         git-version-gen: handle failed "git rev-list"
24481         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24482         from git and proceeding as if it had succeeded but printed no SHA1
24483         checksums, suppress the diagnostic and handle the failure.
24484         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24485
24486         git-version-gen: include command name in one more diagnostic
24487         * build-aux/git-version-gen: When the required .tarball-version file
24488         was missing or unreadable, you might see the diagnostic from "cat",
24489         but no trace of the name of the invoking script.  Now, you still see
24490         the diagnostic from cat, but also get one from "git-version-gen: ".
24491         Inspired by a patch from Bruce Korb.
24492
24493         update-copyright: adjust test to match changed code
24494         * tests/test-update-copyright.sh: Change test's expected output
24495         to match new actual output.
24496
24497 2011-01-02  Bruno Haible  <bruno@clisp.org>
24498
24499         getlogin_r: Avoid test failure on HP-UX 11.
24500         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24501         ERANGE when the second argument is zero.
24502         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24503         portability problem.
24504
24505 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24506
24507         * build-aux/update-copyright: doc Simon's changes
24508
24509 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24510
24511         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24512         environment variable.
24513
24514 2011-01-02  Bruno Haible  <bruno@clisp.org>
24515
24516         unigbrk: Avoid gcc warnings.
24517         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24518         unused variable.
24519         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24520         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24521         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24522         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24523         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24524         Change type of first argument to 'const char *'.
24525         (main): Remove unused variable.
24526         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
24527         type of first argument to 'const char *'.
24528         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
24529         Likewise.
24530         (main): Change type of variable 's'.
24531         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
24532         to 'int'.
24533
24534 2011-01-02  Bruno Haible  <bruno@clisp.org>
24535
24536         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
24537         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
24538         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
24539         bug.
24540         * lib/pwrite.c: Undo 2010-12-31 patch.
24541         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
24542
24543 2011-01-02  Bruno Haible  <bruno@clisp.org>
24544
24545         pread: Fix test whether it works.
24546         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
24547
24548 2011-01-02  Bruno Haible  <bruno@clisp.org>
24549
24550         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
24551         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
24552         ends in "6". Don't require a specific month name. Try also the locale
24553         names found on HP-UX 11 and Solaris 7.
24554
24555 2011-01-02  Bruno Haible  <bruno@clisp.org>
24556
24557         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
24558         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
24559         C linkage.
24560         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
24561
24562 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24563
24564         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
24565         for consistency, since the "cluster" term is not used elsewhere.
24566         * lib/unigbrk.in.h: Update name.
24567         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
24568         * lib/unigbrk/u16-grapheme-next.c: Update name.
24569         * lib/unigbrk/u16-grapheme-prev.c: Update name.
24570         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
24571         * lib/unigbrk/u32-grapheme-next.c: Update name.
24572         * lib/unigbrk/u32-grapheme-prev.c: Update name.
24573         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
24574         * lib/unigbrk/u8-grapheme-next.c: Update name.
24575         * lib/unigbrk/u8-grapheme-prev.c: Update name.
24576         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
24577         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
24578         Suggested by Bruno Haible.
24579
24580 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24581
24582         Remove module 'u8-grapheme-len' as too redundant with
24583         'u8-grapheme-next'.
24584         * modules/unigbrk/u8-grapheme-len: Delete file.
24585         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
24586         * lib/unigbrk.in.h: Remove prototype for deleted function.
24587         * lib/unigbrk/u8-grapheme-len.c: Delete file.
24588         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
24589
24590         Remove module 'u16-grapheme-len' as too redundant with
24591         'u16-grapheme-next'.
24592         * modules/unigbrk/u16-grapheme-len: Delete file.
24593         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
24594         * lib/unigbrk.in.h: Remove prototype for deleted function.
24595         * lib/unigbrk/u16-grapheme-len.c: Delete file.
24596         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
24597
24598         Remove module 'u32-grapheme-len' as too redundant with
24599         'u32-grapheme-next'.
24600         * modules/unigbrk/u32-grapheme-len: Delete file.
24601         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
24602         * lib/unigbrk.in.h: Remove prototype for deleted function.
24603         * lib/unigbrk/u32-grapheme-len.c: Delete file.
24604         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
24605
24606         Suggested by Bruno Haible.
24607
24608 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24609
24610         * unigbrk.in.h: Fix typo: "ben" => "been".
24611         Reported by Bruno Haible.
24612
24613 2011-01-01  Jim Meyering  <meyering@redhat.com>
24614
24615         maint: update almost all copyright ranges to include 2011
24616         Run the new "make update-copyright" rule.
24617
24618 2011-01-01  Jim Meyering  <meyering@redhat.com>
24619
24620         maint: update-copyright: exempt doc/INSTALL*
24621         * Makefile (update-copyright): Also exclude doc/INSTALL*,
24622         since they are generated.  Suggested by Bruno Haible.
24623
24624 2011-01-01  Jim Meyering  <meyering@redhat.com>
24625
24626         maint: refine the update-copyright rule
24627         * Makefile (update-copyright): Also exclude any file that includes
24628         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
24629         code that merely generates the comment.
24630
24631 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24632
24633         New module 'u8-grapheme-len'.
24634         * modules/unigbrk/u8-grapheme-len: New file.
24635         * modules/unigbrk/u8-grapheme-len-tests: New file.
24636         * lib/unigbrk.in.h: Add prototype for new function.
24637         * lib/unigbrk/u8-grapheme-len.c: New file.
24638         * tests/unigbrk/test-u8-grapheme-len.c: New file.
24639
24640         New module 'u16-grapheme-len'.
24641         * modules/unigbrk/u16-grapheme-len: New file.
24642         * modules/unigbrk/u16-grapheme-len-tests: New file.
24643         * lib/unigbrk.in.h: Add prototype for new function.
24644         * lib/unigbrk/u16-grapheme-len.c: New file.
24645         * tests/unigbrk/test-u16-grapheme-len.c: New file.
24646
24647         New module 'u32-grapheme-len'.
24648         * modules/unigbrk/u32-grapheme-len: New file.
24649         * modules/unigbrk/u32-grapheme-len-tests: New file.
24650         * lib/unigbrk.in.h: Add prototype for new function.
24651         * lib/unigbrk/u32-grapheme-len.c: New file.
24652         * tests/unigbrk/test-u32-grapheme-len.c: New file.
24653
24654         New module 'u8-grapheme-next'.
24655         * modules/unigbrk/u8-grapheme-next: New file.
24656         * modules/unigbrk/u8-grapheme-next-tests: New file.
24657         * lib/unigbrk.in.h: Add prototype for new function.
24658         * lib/unigbrk/u8-grapheme-next.c: New file.
24659         * tests/unigbrk/test-u8-grapheme-next.c: New file.
24660
24661         New module 'u16-grapheme-next'.
24662         * modules/unigbrk/u16-grapheme-next: New file.
24663         * modules/unigbrk/u16-grapheme-next-tests: New file.
24664         * lib/unigbrk.in.h: Add prototype for new function.
24665         * lib/unigbrk/u16-grapheme-next.c: New file.
24666         * tests/unigbrk/test-u16-grapheme-next.c: New file.
24667
24668         New module 'u32-grapheme-next'.
24669         * modules/unigbrk/u32-grapheme-next: New file.
24670         * modules/unigbrk/u32-grapheme-next-tests: New file.
24671         * lib/unigbrk.in.h: Add prototype for new function.
24672         * lib/unigbrk/u32-grapheme-next.c: New file.
24673         * tests/unigbrk/test-u32-grapheme-next.c: New file.
24674
24675         New module 'u8-grapheme-prev'.
24676         * modules/unigbrk/u8-grapheme-prev: New file.
24677         * modules/unigbrk/u8-grapheme-prev-tests: New file.
24678         * lib/unigbrk.in.h: Add prototype for new function.
24679         * lib/unigbrk/u8-grapheme-prev.c: New file.
24680         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
24681
24682         New module 'u16-grapheme-prev'.
24683         * modules/unigbrk/u16-grapheme-prev: New file.
24684         * modules/unigbrk/u16-grapheme-prev-tests: New file.
24685         * lib/unigbrk.in.h: Add prototype for new function.
24686         * lib/unigbrk/u16-grapheme-prev.c: New file.
24687         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
24688
24689         New module 'u32-grapheme-prev'.
24690         * modules/unigbrk/u32-grapheme-prev: New file.
24691         * modules/unigbrk/u32-grapheme-prev-tests: New file.
24692         * lib/unigbrk.in.h: Add prototype for new function.
24693         * lib/unigbrk/u32-grapheme-prev.c: New file.
24694         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
24695
24696         New module 'u8-grapheme-breaks'.
24697         * modules/unigbrk/u8-grapheme-breaks: New file.
24698         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
24699         * lib/unigbrk.in.h: Add prototype for new function.
24700         * lib/unigbrk/u8-grapheme-breaks.c: New file.
24701         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
24702
24703         New module 'u16-grapheme-breaks'.
24704         * modules/unigbrk/u16-grapheme-breaks: New file.
24705         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
24706         * lib/unigbrk.in.h: Add prototype for new function.
24707         * lib/unigbrk/u16-grapheme-breaks.c: New file.
24708         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
24709
24710         New module 'u32-grapheme-breaks'.
24711         * modules/unigbrk/u32-grapheme-breaks: New file.
24712         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
24713         * lib/unigbrk.in.h: Add prototype for new function.
24714         * lib/unigbrk/u32-grapheme-breaks.c: New file.
24715         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
24716
24717         New module 'ulc-grapheme-breaks'.
24718         * modules/unigbrk/ulc-grapheme-breaks: New file.
24719         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
24720         * m4/locale-ar.m4: New file.
24721         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
24722         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
24723         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
24724
24725 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24726
24727         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
24728         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
24729         modified how this file was generated before I initially submitted
24730         the module, but failed to regenerate it.  This meant that several
24731         of the level2 entries were wrong.
24732         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
24733         Remove the division-by-2 that is folded into the table now that
24734         gbrkprop.h has been regenerated properly.  Now -1 entries are
24735         handled correctly.
24736
24737         New module 'unigbrk/uc-gbrk-prop-tests'.
24738         * modules/unigbrk/uc-gbrk-prop-tests: New file.
24739         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
24740         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
24741         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
24742
24743 2011-01-01  Bruno Haible  <bruno@clisp.org>
24744
24745         Avoid use of hexadecimal escapes.
24746         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
24747         instead of hexadecimal escapes.
24748
24749 2011-01-01  Jim Meyering  <meyering@redhat.com>
24750
24751         maint: new rule to update copyright year ranges
24752         * Makefile (update-copyright): New rule.
24753
24754         maint: indent with TABs in Makefile
24755         * Makefile: Expand leading sequences of spaces to TABs
24756
24757         version-etc: update the copyright year it reports
24758         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
24759
24760 2010-12-31  Bruno Haible  <bruno@clisp.org>
24761
24762         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
24763         * lib/isfinite.c (zerof, zerod, zerol): New variables.
24764         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
24765         zero.
24766
24767 2010-12-31  Bruno Haible  <bruno@clisp.org>
24768
24769         pwrite: Work around HP-UX 11.11 bug.
24770         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
24771         works and set REPLACE_PWRITE if not.
24772         * lib/pwrite.c (pwrite): Add an implementation that uses the system
24773         function.
24774         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
24775
24776 2010-12-31  Bruno Haible  <bruno@clisp.org>
24777
24778         pread: Work around HP-UX 11 bugs.
24779         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
24780         and set REPLACE_PREAD if not.
24781         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
24782
24783 2010-12-31  Eric Blake  <eblake@redhat.com>
24784
24785         nl_langinfo: fix YESEXPR on Irix 6.5
24786         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
24787         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
24788         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
24789         it.
24790
24791 2010-12-31  Bruno Haible  <bruno@clisp.org>
24792
24793         iconv: Document HP-UX 11 bug.
24794         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
24795
24796 2010-12-31  Bruno Haible  <bruno@clisp.org>
24797
24798         ldexpl: Fix link error on HP-UX 11.
24799         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
24800         LDEXPL_LIBM, using $ISNANL_LIBM.
24801
24802 2010-12-31  Eric Blake  <eblake@redhat.com>
24803
24804         ftello: avoid compilation failure with SunStudio c89
24805         * lib/ftello.c (ftello): Use lseek, not llseek.
24806
24807         tests: avoid failing coreutils tests on cygwin
24808         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
24809         (create_exe_shims_): Return 0 when skipping.
24810
24811 2010-12-31  Bruno Haible  <bruno@clisp.org>
24812
24813         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
24814         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
24815
24816 2010-12-31  Bruno Haible  <bruno@clisp.org>
24817
24818         waitpid: Fix link error in C++ mode.
24819         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
24820
24821 2010-12-31  Bruno Haible  <bruno@clisp.org>
24822
24823         isnan: Use GCC built-ins when possible.
24824         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
24825         __builtin_isnan.
24826         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
24827         (isnan): Define using GCC built-ins for GCC >= 4.0.
24828
24829 2010-12-31  Bruno Haible  <bruno@clisp.org>
24830
24831         isnand: Fix mistake.
24832         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
24833         __builtin_isnand.
24834
24835 2010-12-31  Bruno Haible  <bruno@clisp.org>
24836
24837         open: Avoid C++ error on HP-UX 11.
24838         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
24839
24840 2010-12-31  Bruno Haible  <bruno@clisp.org>
24841
24842         time_r: Add missing declarations on HP-UX 11.
24843         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
24844         instead of HAVE_LOCALTIME_R.
24845         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
24846         HAVE_LOCALTIME_R always.
24847         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
24848         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
24849         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
24850         HAVE_LOCALTIME_R.
24851         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
24852         * doc/posix-functions/localtime_r.texi: Likewise.
24853
24854 2010-12-29  Eric Blake  <eblake@redhat.com>
24855
24856         mountlist: tweak previous commit
24857         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
24858         Reported by Paul Eggert.
24859
24860         mountlist: fix local drive detection on cygwin
24861         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
24862         that works for cygwin.
24863
24864 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24865
24866         ftoastr, snprintf: ftoastr + snprintf module
24867         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
24868         since the snprintf module now should be good enough here.
24869         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
24870         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
24871         and gl_MODULE_INDICATOR([snprintf]), but the former enables
24872         GNULIB_SNPRINTF only for the test directory, and the latter
24873         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
24874         seems to suffice by itself.
24875
24876 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24877
24878         alloca: one step towards thread-safety
24879         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
24880         need for a static variable.  All callers changed.  This does not
24881         make the alloca replacement thread-safe, but it's one step.
24882
24883         tests: minor indenting change
24884         * tests/init.sh: Sync from coreutils housekeeping patch
24885         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
24886         to keep lines within 80 columns.
24887
24888 2010-12-28  Jim Meyering  <meyering@redhat.com>
24889
24890         regex: don't infloop on persistent failing calloc
24891         * lib/regexec.c (build_trtable): Return failure indication upon
24892         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24893         In glibc, this was fixed for version 2.13:
24894         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
24895
24896 2010-12-28  Bruno Haible  <bruno@clisp.org>
24897             Paul Eggert <eggert@cs.ucla.edu>
24898
24899         linkat: Make implementation robust against system behaviour variations.
24900         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
24901         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
24902         way, and to -2 if it needs a generic runtime test.
24903         * lib/linkat.c (solaris_optimized_link_immediate,
24904         solaris_optimized_link_follow): New functions.
24905         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
24906         (check_same_link): Use it.
24907
24908 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
24909
24910         New module 'unigbrk/base'.
24911         * modules/unigbrk/base: New file.
24912         * lib/unigbrk.in.h: New file.
24913
24914         New module 'unigbrk/uc-gbrk-prop'.
24915         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
24916         * modules/unigbrk/uc-gbrk-prop: New file.
24917         * lib/unigbrk/gbrkprop.h: New file.
24918         * lib/unigbrk/uc-gbrk-prop.c: New file.
24919
24920         New module 'unigbrk/uc-is-grapheme-break'.
24921         * modules/unigbrk/uc-is-grapheme-break: New file.
24922         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
24923         * lib/unigbrk/uc-is-grapheme-break.c: New file.
24924         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
24925         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
24926         * tests/unigbrk/GraphemeBreakTest.txt: New file.
24927
24928         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
24929
24930 2010-12-27  Bruno Haible  <bruno@clisp.org>
24931
24932         linkat test: Avoid failure on Solaris 11 2010-11.
24933         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
24934
24935 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24936
24937         utimens: work around glibc rounding bug on more platforms
24938         * lib/utimens.c (fdutimens): Work around rounding bug even if
24939         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
24940         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
24941
24942 2010-12-27  Bruno Haible  <bruno@clisp.org>
24943
24944         select tests: Improve comments.
24945         * tests/test-select.c (do_select): Add comments.
24946
24947 2010-12-27  Bruno Haible  <bruno@clisp.org>
24948
24949         select tests: Safer way of handling timeout.
24950         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
24951         at every invocation.
24952
24953 2010-12-27  Bruno Haible  <bruno@clisp.org>
24954
24955         select tests: Use 'bool' where appropriate.
24956         * tests/test-select.c (connect_to_socket): Change argument type to
24957         'bool'.
24958
24959 2010-12-27  Bruno Haible  <bruno@clisp.org>
24960
24961         select tests: Use existing modules.
24962         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
24963         (configure.ac): Don't test for unistd.h.
24964         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
24965         declared in <unistd.h>.
24966
24967 2010-12-27  Bruno Haible  <bruno@clisp.org>
24968
24969         mbrtowc: Work around a Solaris 7 bug.
24970         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
24971         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
24972         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
24973         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
24974         MBRTOWC_NULL_ARG1_BUG.
24975         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
24976         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
24977         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
24978         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
24979
24980 2010-12-27  Jim Meyering  <meyering@redhat.com>
24981
24982         read-file.c: tweak syntax
24983         * lib/read-file.c (fread_file): Remove space after "*" in function
24984         definitions.
24985
24986 2010-12-27  Bruno Haible  <bruno@clisp.org>
24987
24988         times test: Avoid gcc warnings on OSF/1.
24989         * tests/test-times.c (main): Cast printf arguments from clock_t to
24990         'long int'.
24991
24992 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24993
24994         utimens: work around glibc rounding bug on older Linux kernels
24995         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
24996         on Linux with a glibc whose utimes might not work, then work
24997         around a longstanding glibc bug involving rounding rather than
24998         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
24999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25000
25001 2010-12-26  Bruno Haible  <bruno@clisp.org>
25002
25003         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25004         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25005         _GL_CXXALIAS_SYS.
25006         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25007
25008 2010-12-26  Bruno Haible  <bruno@clisp.org>
25009
25010         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25011         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25012         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25013         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25014         looking for the declaration.
25015         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25016         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25017         problem.
25018         * doc/posix-functions/inet_pton.texi: Likewise.
25019
25020 2010-12-26  Bruno Haible  <bruno@clisp.org>
25021
25022         arpa_inet: Use the common idioms with C++ support.
25023         * lib/arpa_inet.in.h: Include c++defs.h.
25024         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25025         support.
25026         * modules/arpa_inet (Depends-on): Add c++defs.
25027         (Makefile.am): Substitute the contents of c++defs.h.
25028         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25029         * modules/arpa_inet-c++-tests: New file.
25030         * tests/test-arpa_inet-c++.cc: New file.
25031
25032 2010-12-25  Bruno Haible  <bruno@clisp.org>
25033
25034         Fix more C++ link errors on Solaris 8.
25035         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25036         $(LIB_EACCESS).
25037         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25038         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25039         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25040         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25041         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25042
25043 2010-12-25  Bruno Haible  <bruno@clisp.org>
25044
25045         printf-posix: Fix link error when a non-GCC compiler is used.
25046         * lib/stdio.in.h (printf): When not using GCC, override printf
25047         correctly.
25048         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25049
25050 2010-12-25  Bruno Haible  <bruno@clisp.org>
25051
25052         strerror_r-posix: Update doc.
25053         * doc/posix-functions/strerror_r.texi: Update doc about the return
25054         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25055
25056 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25057
25058         utimens: simplify the logic of the previous change
25059         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25060         This should not affect whether the test succeeds or fails.
25061
25062         utimens: configure better on hosts with NFS clock skew
25063         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25064         uses the clock of the local host.  It might use the clock of the
25065         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25066         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25067
25068 2010-12-25  Bruno Haible  <bruno@clisp.org>
25069
25070         ptsname test: Avoid failure on Solaris.
25071         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25072         open a pseudo-terminal; don't use BSD-style ptys.
25073         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25074
25075 2010-12-25  Bruno Haible  <bruno@clisp.org>
25076
25077         ptsname: Avoid ERANGE failure on some systems.
25078         * lib/ptsname.c (buffer): Increase size.
25079
25080 2010-12-25  Bruno Haible  <bruno@clisp.org>
25081
25082         rename, renameat: Avoid test failures at NFS mounted locations.
25083         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25084         so that subsequent mkdir calls succeed.
25085
25086 2010-12-25  Bruno Haible  <bruno@clisp.org>
25087
25088         iswblank: Fix C++ link error on Solaris 8.
25089         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25090         _GL_FUNCDECL_SYS.
25091
25092 2010-12-25  Bruno Haible  <bruno@clisp.org>
25093
25094         unistd: Fix C++ link error on Solaris 8.
25095         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25096
25097 2010-12-25  Bruno Haible  <bruno@clisp.org>
25098
25099         readlink doc: Mention an old glibc bug.
25100         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25101
25102 2010-12-25  Bruno Haible  <bruno@clisp.org>
25103
25104         fcntl-h: Fix for use of C++ on glibc systems.
25105         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25106         also on glibc systems in C++ mode.
25107         Reported by Gary V. Vaughan <gary@gnu.org>.
25108
25109 2010-12-25  Bruno Haible  <bruno@clisp.org>
25110
25111         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25112         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25113
25114 2010-12-25  Bruno Haible  <bruno@clisp.org>
25115
25116         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25117         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25118         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25119         test whether truncl works according to ISO C 99 with IEC 60559.
25120         * m4/truncl-ieee.m4: New file.
25121         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25122         m4/signbit.m4.
25123         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25124
25125 2010-12-25  Bruno Haible  <bruno@clisp.org>
25126
25127         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25128         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25129         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25130         test whether ceill works according to ISO C 99 with IEC 60559.
25131         * m4/ceill-ieee.m4: New file.
25132         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25133         m4/signbit.m4.
25134         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25135
25136 2010-12-25  Bruno Haible  <bruno@clisp.org>
25137
25138         Ensure all prerequisites of <wchar.h> are included.
25139         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25140         before <wchar.h>.
25141         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25142         gl_MBRLEN_NUL_RETVAL): Likewise.
25143         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25144         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25145         AC_FUNC_MBRTOWC): Likewise.
25146         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25147         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25148         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25149         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25150         Likewise.
25151         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25152         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25153         (gl_WCHAR_H): Improve comments.
25154         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25155
25156 2010-12-25  Bruno Haible  <bruno@clisp.org>
25157
25158         strtok_r: Fix C syntax error in autoconf macro.
25159         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25160         characters in test program.
25161
25162 2010-12-24  Bruno Haible  <bruno@clisp.org>
25163
25164         ceil, trunc, round: Fix gcc warnings.
25165         * lib/ceil.c (MIN): Undefine before redefining.
25166         * lib/trunc.c (MIN): Likewise.
25167         * lib/round.c (MIN): Likewise.
25168         Include <math.h> first.
25169
25170 2010-12-24  Bruno Haible  <bruno@clisp.org>
25171
25172         select tests: Avoid failures on OSF/1 5.1.
25173         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25174         failure of closing the last socket; it may fail with ECONNRESET.
25175
25176 2010-12-24  Eric Blake  <eblake@redhat.com>
25177
25178         stdint: avoid HP-UX 10.20 preprocessor bug
25179         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25180         than #if.
25181         * tests/test-floor2.c (main): Likewise.
25182         Reported by Peter O'Gorman.
25183
25184         pipe: make obsoletion transition easier
25185         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25186         * modules/pipe (Files): Include revived file.
25187         (Include): Drop reference, to mirror getdate's behavior.
25188
25189 2010-12-24  Bruno Haible  <bruno@clisp.org>
25190
25191         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25192         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25193         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25194         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25195
25196 2010-12-24  Bruno Haible  <bruno@clisp.org>
25197
25198         gethostname: Ensure declaration on NonStop Kernel.
25199         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25200         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25201
25202 2010-12-24  Bruno Haible  <bruno@clisp.org>
25203
25204         sys_select: Ensure all necessary types on NonStop Kernel.
25205         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25206         include <sys/time.h>.
25207         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25208         NonStop Kernel.
25209         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25210
25211 2010-12-24  Bruno Haible  <bruno@clisp.org>
25212
25213         sys_select: Remove unneeded include.
25214         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25215         have <sys/select.h>.
25216
25217 2010-12-24  Bruno Haible  <bruno@clisp.org>
25218
25219         gethostname: Provide a fallback for HOST_NAME_MAX.
25220         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25221         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25222         instead.
25223         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25224
25225 2010-12-24  Bruno Haible  <bruno@clisp.org>
25226
25227         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25228         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25229         (SA_RESTART): Likewise.
25230         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25231
25232 2010-12-24  Bruno Haible  <bruno@clisp.org>
25233
25234         signal: Define NSIG.
25235         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25236         * tests/test-signal.c (nsig): New variable.
25237         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25238
25239 2010-12-24  Bruno Haible  <bruno@clisp.org>
25240
25241         rename, renameat: Avoid test failures on OSF/1 5.1.
25242         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25243         alternative error codes.
25244         * tests/test-renameat.c (main): Likewise.
25245
25246 2010-12-24  Bruno Haible  <bruno@clisp.org>
25247
25248         *printf: Detect large precisions bug on Solaris 10/SPARC.
25249         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25250         by Paul Eggert.
25251         * tests/test-snprintf-posix.h (test_function): Add this test code here
25252         too.
25253         * tests/test-sprintf-posix.h (test_function): Likewise.
25254         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25255         * tests/test-vasprintf-posix.c (test_function): Likewise.
25256         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25257         around by gnulib.
25258         * doc/posix-functions/printf.texi: Likewise.
25259         * doc/posix-functions/snprintf.texi: Likewise.
25260         * doc/posix-functions/sprintf.texi: Likewise.
25261         * doc/posix-functions/vfprintf.texi: Likewise.
25262         * doc/posix-functions/vprintf.texi: Likewise.
25263         * doc/posix-functions/vsnprintf.texi: Likewise.
25264         * doc/posix-functions/vsprintf.texi: Likewise.
25265         * doc/posix-functions/dprintf.texi: Undo last commit.
25266         * doc/posix-functions/vdprintf.texi: Likewise.
25267
25268 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25269
25270         tests: port test-fdutimensat.c to Solaris 8
25271         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25272         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25273         On Solaris 8, it fails with errno == ENOSYS, because there is no
25274         futimens (so it can't use the fd), and there is no lutimens (so it
25275         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25276
25277         vsnprintf: make more consistent with snprintf; doc fixes
25278
25279         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25280         the byte count return problem was promoted from the snprintf-posix
25281         to the snprintf module.
25282         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25283         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25284         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25285         * tests/test-snprintf.c (main): Check the byte count returned.
25286         * tests/test-vsnprintf.c (main): Likewise.
25287
25288 2010-12-23  Eric Blake  <eblake@redhat.com>
25289
25290         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25291         * modules/sigpipe (License): Relax license.
25292
25293 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25294
25295         doc: document Solaris printf bug with large float precisions
25296         * doc/posix-functions/dprintf.texi (dprintf):
25297         * doc/posix-functions/fprintf.texi (fprintf):
25298         * doc/posix-functions/printf.texi (printf):
25299         * doc/posix-functions/snprintf.texi (snprintf):
25300         * doc/posix-functions/sprintf.texi (sprintf):
25301         * doc/posix-functions/vdprintf.texi (vdprintf):
25302         * doc/posix-functions/vfprintf.texi (vfprintf):
25303         * doc/posix-functions/vprintf.texi (vprintf):
25304         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25305         * doc/posix-functions/vsprintf.texi (vsprintf):
25306         Mention that these functions mishandle large floating point
25307         precisions on Solaris 10.  The same bug is also present in Solaris
25308         8, and I assume earlier.  This causes "cd gnulib-tests; make
25309         check" to fail on Solaris 8 (and I assume, later) when building
25310         the latest coreutils, in test-vasprintf-posix's call to
25311         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25312         the wide flavors (e.g., wprintf) so this patch just updates the
25313         documentation for the narrow ones.
25314
25315         test-posixtm.c: add two tests
25316         * tests/test-posixtm.c: Add two tests, to highlight the
25317         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25318         around this bug; this is merely to document it.
25319
25320 2010-12-22  Bruno Haible  <bruno@clisp.org>
25321
25322         getlogin_r: Work around portability problem on OSF/1.
25323         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25324         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25325         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25326         test for a truncated result.
25327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25328         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25329         * modules/getlogin_r (Depends-on): Add memchr.
25330         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25331
25332 2010-12-22  Bruno Haible  <bruno@clisp.org>
25333
25334         ptsname: Avoid test failure on OSF/1 5.1.
25335         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25336         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25337         (same_slave): New function.
25338         (main): Use it to compare ptsname's result with the expected file name.
25339
25340 2010-12-22  Bruno Haible  <bruno@clisp.org>
25341
25342         Port extended stdio modules to HP NonStop Kernel.
25343         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25344         macros.
25345         * lib/fbufmode.c: Update comments.
25346         * lib/fflush.c: Likewise.
25347         * lib/fpurge.c: Likewise.
25348         * lib/freadable.c: Likewise.
25349         * lib/freadahead.c: Likewise.
25350         * lib/freading.c: Likewise.
25351         * lib/freadptr.c: Likewise.
25352         * lib/freadseek.c: Likewise.
25353         * lib/fseeko.c: Likewise.
25354         * lib/fseterr.c: Likewise.
25355         * lib/fwritable.c: Likewise.
25356         * lib/fwriting.c: Likewise.
25357         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25358
25359 2010-12-22  Bruno Haible  <bruno@clisp.org>
25360
25361         ttyname_r: Work around bug on OSF/1 5.1.
25362         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25363         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25364         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25365         present.
25366         * lib/ttyname_r.c (ttyname_r): Update comments.
25367
25368 2010-12-22  Bruno Haible  <bruno@clisp.org>
25369
25370         round: Implement result sign according to IEEE 754.
25371         * lib/round.c (MIN, MINUS_ZERO): New macros.
25372         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25373         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25374         * tests/test-round-ieee.c (main): Likewise.
25375         * tests/test-roundl-ieee.c (main): Likewise.
25376
25377         trunc: Implement result sign according to IEEE 754.
25378         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25379         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25380         * tests/test-trunc2.c: Include minus-zero.h.
25381         (MINUS_ZERO): New macro.
25382         (trunc_reference): Keep in sync with lib/trunc.c.
25383         * tests/test-truncf2.c: Include minus-zero.h.
25384         (MINUS_ZERO): New macro.
25385         (truncf_reference): Keep in sync with lib/trunc.c.
25386         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25387         * tests/test-trunc-ieee.c (main): Likewise.
25388         * tests/test-truncl-ieee.c (main): Likewise.
25389
25390         ceil: Implement result sign according to IEEE 754.
25391         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25392         (FUNC): Return -0.0 for -1 < x < 0.
25393         * tests/test-ceil2.c: Include minus-zero.h.
25394         (MINUS_ZERO): New macro.
25395         (ceil_reference): Keep in sync with lib/ceil.c.
25396         * tests/test-ceilf2.c: Include minus-zero.h.
25397         (MINUS_ZERO): New macro.
25398         (ceilf_reference): Keep in sync with lib/ceil.c.
25399         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25400         * tests/test-ceil-ieee.c (main): Likewise.
25401         * tests/test-ceill-ieee.c (main): Likewise.
25402
25403         floor: Implement result sign according to IEEE 754.
25404         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25405         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25406         * tests/test-floorf2.c (floorf_reference): Likewise.
25407         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25408         * tests/test-floor-ieee.c (main): Likewise.
25409         * tests/test-floorl-ieee.c (main): Likewise.
25410
25411 2010-12-22  Bruno Haible  <bruno@clisp.org>
25412
25413         getaddrinfo: Update doc.
25414         * doc/posix-functions/gai_strerror.texi: Return type is also different
25415         on AIX and HP-UX.
25416
25417 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25418
25419         getaddrinfo, inet_ntop: Update doc for Solaris.
25420         * doc/posix-functions/gai_strerror.texi: Return type is also an
25421         issue on Solaris 9 and earlier.
25422         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25423         on Solaris 10 and earlier.
25424
25425 2010-12-21  Bruno Haible  <bruno@clisp.org>
25426
25427         New module 'roundl-ieee'.
25428         * modules/roundl-ieee: New file.
25429         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25430         test whether roundl works according to ISO C 99 with IEC 60559.
25431         * m4/roundl-ieee.m4: New file.
25432         * modules/roundl-ieee-tests: New file.
25433         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25434         * tests/test-roundl.c (main): Remove signbit tests.
25435         * modules/roundl-tests (Depends-on): Remove signbit.
25436         * doc/posix-functions/roundl.texi: Mention the new module.
25437
25438 2010-12-21  Bruno Haible  <bruno@clisp.org>
25439
25440         New module 'truncl-ieee'.
25441         * modules/truncl-ieee: New file.
25442         * modules/truncl-ieee-tests: New file.
25443         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25444         * tests/test-truncl.c (main): Remove signbit tests.
25445         * modules/truncl-tests (Depends-on): Remove signbit.
25446         * doc/posix-functions/truncl.texi: Mention the new module.
25447
25448 2010-12-21  Bruno Haible  <bruno@clisp.org>
25449
25450         New module 'ceill-ieee'.
25451         * modules/ceill-ieee: New file.
25452         * modules/ceill-ieee-tests: New file.
25453         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25454         * tests/test-ceill.c (main): Remove signbit tests.
25455         * modules/ceill-tests (Depends-on): Remove signbit.
25456         * doc/posix-functions/ceill.texi: Mention the new module.
25457
25458 2010-12-21  Bruno Haible  <bruno@clisp.org>
25459
25460         New module 'floorl-ieee'.
25461         * modules/floorl-ieee: New file.
25462         * modules/floorl-ieee-tests: New file.
25463         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25464         * tests/test-floorl.c (main): Remove signbit tests.
25465         * modules/floorl-tests (Depends-on): Remove signbit.
25466         * doc/posix-functions/floorl.texi: Mention the new module.
25467
25468 2010-12-21  Bruno Haible  <bruno@clisp.org>
25469
25470         New module 'round-ieee'.
25471         * modules/round-ieee: New file.
25472         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25473         whether round works according to ISO C 99 with IEC 60559.
25474         * m4/round-ieee.m4: New file.
25475         * modules/round-ieee-tests: New file.
25476         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25477         * tests/test-round1.c (main): Remove signbit tests.
25478         * modules/round-tests (Depends-on): Remove 'signbit'.
25479         * doc/posix-functions/round.texi: Mention the new module.
25480
25481 2010-12-21  Bruno Haible  <bruno@clisp.org>
25482
25483         New module 'trunc-ieee'.
25484         * modules/trunc-ieee: New file.
25485         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25486         whether trunc works according to ISO C 99 with IEC 60559.
25487         * m4/trunc-ieee.m4: New file.
25488         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25490         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25491         * modules/trunc-ieee-tests: New file.
25492         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25493         * tests/test-trunc1.c (main): Remove signbit tests.
25494         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25495         * doc/posix-functions/trunc.texi: Mention the new module.
25496
25497 2010-12-21  Bruno Haible  <bruno@clisp.org>
25498
25499         New module 'ceil-ieee'.
25500         * modules/ceil-ieee: New file.
25501         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25502         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25503         ISO C 99 with IEC 60559.
25504         * m4/ceil-ieee.m4: New file.
25505         * modules/ceil (Files): Add lib/ceil.c.
25506         (Depends-on): Add 'float'.
25507         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25508         * lib/math.in.h (ceil): New declaration.
25509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25510         REPLACE_CEIL.
25511         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25512         * modules/ceil-ieee-tests: New file.
25513         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25514         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25515         * doc/posix-functions/ceil.texi: Mention the new module.
25516
25517 2010-12-21  Bruno Haible  <bruno@clisp.org>
25518
25519         New module 'floor-ieee'.
25520         * modules/floor-ieee: New file.
25521         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25522         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25523         ISO C 99 with IEC 60559.
25524         * m4/floor-ieee.m4: New file.
25525         * modules/floor (Files): Add lib/floor.c.
25526         (Depends-on): Add 'float'.
25527         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25528         * lib/math.in.h (floor): New declaration.
25529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
25530         REPLACE_FLOOR.
25531         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
25532         * modules/floor-ieee-tests: New file.
25533         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
25534         * tests/test-math-c++.cc: Check the signature of 'floor'.
25535         * doc/posix-functions/floor.texi: Mention the new module.
25536
25537 2010-12-21  Bruno Haible  <bruno@clisp.org>
25538
25539         New module 'roundf-ieee'.
25540         * modules/roundf-ieee: New file.
25541         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
25542         test whether roundf works according to ISO C 99 with IEC 60559.
25543         * m4/roundf-ieee.m4: New file.
25544         * modules/roundf-ieee-tests: New file.
25545         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
25546         * tests/test-roundf1.c (main): Remove signbit tests.
25547         * modules/roundf-tests (Depends-on): Remove 'signbit'.
25548         * doc/posix-functions/roundf.texi: Mention the new module.
25549
25550 2010-12-21  Bruno Haible  <bruno@clisp.org>
25551
25552         New module 'truncf-ieee'.
25553         * modules/truncf-ieee: New file.
25554         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
25555         test whether truncf works according to ISO C 99 with IEC 60559.
25556         * m4/truncf-ieee.m4: New file.
25557         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
25558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
25559         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
25560         * modules/truncf-ieee-tests: New file.
25561         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
25562         * tests/test-truncf1.c (main): Remove signbit tests.
25563         * modules/truncf-tests (Depends-on): Remove 'signbit'.
25564         * doc/posix-functions/truncf.texi: Mention the new module.
25565
25566 2010-12-21  Bruno Haible  <bruno@clisp.org>
25567
25568         New module 'ceilf-ieee'.
25569         * modules/ceilf-ieee: New file.
25570         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
25571         test whether ceilf works according to ISO C 99 with IEC 60559.
25572         * m4/ceilf-ieee.m4: New file.
25573         * modules/ceilf-ieee-tests: New file.
25574         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
25575         * tests/test-ceilf1.c (main): Remove signbit tests.
25576         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
25577         * doc/posix-functions/ceilf.texi: Mention the new module.
25578
25579 2010-12-21  Bruno Haible  <bruno@clisp.org>
25580
25581         New module 'floorf-ieee'.
25582         * modules/floorf-ieee: New file.
25583         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
25584         test whether floorf works according to ISO C 99 with IEC 60559.
25585         * m4/floorf-ieee.m4: New file.
25586         * modules/floorf-ieee-tests: New file.
25587         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
25588         * tests/test-floorf1.c (main): Remove signbit tests.
25589         * modules/floorf-tests (Depends-on): Remove 'signbit'.
25590         * doc/posix-functions/floorf.texi: Mention the new module.
25591
25592 2010-12-21  Bruno Haible  <bruno@clisp.org>
25593
25594         Support for minus zero in autoconf macros.
25595         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
25596         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
25597         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
25598         * tests/minus-zero.h: Update comments.
25599
25600 2010-12-21  Bruno Haible  <bruno@clisp.org>
25601
25602         Tests for module 'ceil'.
25603         * modules/ceil-tests: New file.
25604         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
25605         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
25606
25607 2010-12-21  Bruno Haible  <bruno@clisp.org>
25608
25609         Tests for module 'floor'.
25610         * modules/floor-tests: New file.
25611         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
25612         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
25613
25614 2010-12-21  Bruno Haible  <bruno@clisp.org>
25615
25616         math: Fix indentation.
25617         * lib/math.in.h (floorf): Fix indentation.
25618
25619 2010-12-21  Bruno Haible  <bruno@clisp.org>
25620
25621         Fix cross-compilation guesses on Solaris.
25622         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
25623         not match "solaris2.10".
25624         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25625         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
25626         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
25627
25628 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25629
25630         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
25631         This fixes a problem observed with the latest coreutils snapshot
25632         that caused a test to fail on Solaris 8.  src/csplit.c's call
25633         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
25634         earlier, instead of returning the number of bytes that would have
25635         been generated; this causes csplit to incorrectly report memory
25636         exhaustion.
25637         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
25638         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
25639         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
25640         comments to match.
25641         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
25642         Fix typo in matching older versions of Solaris: "solaris2.10"
25643         is matched by the shell pattern "solaris2.[0-9]*".  This matters
25644         only for guessing while cross-compiling.
25645         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
25646
25647 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
25648
25649         ftoastr: fix comment again
25650         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25651         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
25652         Also, simplify example a bit by using flags = 0.
25653
25654 2010-12-20  Bruno Haible  <bruno@clisp.org>
25655
25656         round*, trunc*: Update documentation regarding glibc.
25657         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
25658         * doc/posix-functions/round.texi: Likewise.
25659         * doc/posix-functions/roundl.texi: Likewise.
25660         * doc/posix-functions/truncf.texi: Likewise.
25661         * doc/posix-functions/trunc.texi: Likewise.
25662         * doc/posix-functions/truncl.texi: Likewise.
25663
25664 2010-12-20  Bruno Haible  <bruno@clisp.org>
25665
25666         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
25667         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
25668         * doc/posix-functions/round.texi: Likewise.
25669         * doc/posix-functions/roundl.texi: Likewise.
25670
25671 2010-12-20  Bruno Haible  <bruno@clisp.org>
25672
25673         ttyname_r: Add missing declaration on HP-UX 11.
25674         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
25675         HAVE_TTYNAME_R.
25676         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
25677         declared. Set HAVE_TTYNAME_R always.
25678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25679         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
25680         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
25681         HAVE_TTYNAME_R.
25682         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
25683
25684 2010-12-20  Bruno Haible  <bruno@clisp.org>
25685
25686         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
25687         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
25688         * doc/posix-functions/getlogin_r.texi: Likewise.
25689         * tests/test-getlogin.c: Include <errno.h>.
25690         (main): Avoid test failure on HP-UX 11.11.
25691         * tests/test-getlogin_r.c (main): Likewise.
25692
25693 2010-12-20  Bruno Haible  <bruno@clisp.org>
25694
25695         getlogin_r: Add missing declaration on HP-UX 11.
25696         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
25697         declared also when it exists as a function.
25698         * doc/posix-functions/getlogin_r.texi: Document this workaround.
25699
25700 2010-12-20  Bruno Haible  <bruno@clisp.org>
25701
25702         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
25703         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
25704         through wcrtomb.
25705
25706 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25707
25708         ftoastr: fix comment
25709         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25710         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
25711
25712 2010-12-19  Bruno Haible  <bruno@clisp.org>
25713
25714         isnan: Ensure it is a macro.
25715         * lib/math.in.h (isnan): Define as a macro if not already a macro.
25716         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
25717         Solaris.
25718
25719 2010-12-19  Bruno Haible  <bruno@clisp.org>
25720
25721         ldexpl test: Fix link error on OSF/1 5.1.
25722         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
25723
25724 2010-12-19  Bruno Haible  <bruno@clisp.org>
25725
25726         wctype: Make it work in C++ mode on OSF/1 5.1.
25727         * lib/wctype.in.h (iswblank): Declare but not define here.
25728         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
25729         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
25730         * modules/wctype (Files): Add lib/iswblank.c.
25731
25732 2010-12-19  Bruno Haible  <bruno@clisp.org>
25733
25734         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
25735         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
25736         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
25737
25738 2010-12-19  Bruno Haible  <bruno@clisp.org>
25739
25740         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
25741         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
25742         _POSIX_PII_SOCKET.
25743         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
25744         * doc/posix-functions/recvfrom.texi: Likewise.
25745         * doc/posix-functions/send.texi: Likewise.
25746         * doc/posix-functions/sendto.texi: Likewise.
25747
25748 2010-12-19  Bruno Haible  <bruno@clisp.org>
25749
25750         tcgetsid: Add missing declaration on OSF/1 5.1.
25751         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
25752         HAVE_TCGETSID.
25753         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
25754         Don't set HAVE_TCGETSID.
25755         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
25756         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
25757         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
25758         HAVE_TCGETSID.
25759         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
25760
25761 2010-12-19  Bruno Haible  <bruno@clisp.org>
25762
25763         stdio: Fix problem with popen() declaration on OSF/1 5.1.
25764         * lib/stdio.in.h: During the include_next statement, let recursive
25765         includes of this file include only the system header file.
25766
25767 2010-12-19  Bruno Haible  <bruno@clisp.org>
25768
25769         iconv_open: Fix regression from 2010-12-04.
25770         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
25771         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
25772
25773 2010-12-19  Bruno Haible  <bruno@clisp.org>
25774
25775         stdbool test: Avoid a gcc warning.
25776         * tests/test-stdbool.c (main): Fail if e1 is false.
25777         Reported by Jim Meyering.
25778
25779 2010-12-19  Jim Meyering  <meyering@redhat.com>
25780
25781         setenv: restore to working order
25782         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
25783         mistakenly removed.
25784         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
25785         HAVE_SETENV.
25786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
25787         HAVE_SETENV.
25788
25789 2010-12-19  Bruno Haible  <bruno@clisp.org>
25790
25791         Document some different function declarations on OSF/1 5.1.
25792         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
25793         * doc/posix-functions/inet_ntop.texi: Likewise.
25794         * doc/posix-functions/gethostname.texi: Likewise.
25795         * lib/unistd.in.h (gethostname): Update comment.
25796
25797 2010-12-19  Bruno Haible  <bruno@clisp.org>
25798
25799         doc: Mention vasprintf-posix module.
25800         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
25801         the 'vasprintf-posix' module.
25802         * doc/glibc-functions/vasprintf.texi: Likewise.
25803
25804 2010-12-19  Bruno Haible  <bruno@clisp.org>
25805
25806         unsetenv: Add missing declaration on OSF/1 5.1.
25807         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
25808         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
25809         Don't set HAVE_UNSETENV. In the test program, set _BSD.
25810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
25811         not HAVE_UNSETENV.
25812         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
25813         HAVE_UNSETENV.
25814         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
25815
25816 2010-12-19  Bruno Haible  <bruno@clisp.org>
25817
25818         setenv: Add missing declaration on OSF/1 5.1.
25819         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
25820         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
25821         declared. Don't set HAVE_SETENV.
25822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
25823         not HAVE_SETENV.
25824         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
25825         HAVE_SETENV.
25826         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
25827
25828 2010-12-19  Bruno Haible  <bruno@clisp.org>
25829
25830         nl_langinfo tests: Avoid gcc warning.
25831         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
25832
25833 2010-12-19  Bruno Haible  <bruno@clisp.org>
25834
25835         mknod: Avoid error in C++ mode on OSF/1 with GCC.
25836         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
25837         _GL_CXXALIAS_SYS.
25838
25839 2010-12-19  Bruno Haible  <bruno@clisp.org>
25840
25841         stdbool: Relax test.
25842         * tests/test-stdbool.c (e): Don't require that casts from a variable's
25843         address to 'bool' work in static initializer, for compilers other than
25844         GCC.
25845
25846 2010-12-19  Bruno Haible  <bruno@clisp.org>
25847
25848         ftello: Add missing declaration on OSF/1 5.1.
25849         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
25850         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
25851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
25852         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
25853         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
25854
25855 2010-12-19  Bruno Haible  <bruno@clisp.org>
25856
25857         fseeko: Add missing declaration on OSF/1 5.1.
25858         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
25859         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
25860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
25861         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
25862         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
25863
25864 2010-12-19  Bruno Haible  <bruno@clisp.org>
25865
25866         fchdir: Add missing declaration on OSF/1 5.1.
25867         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
25868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
25869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
25870         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
25871         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
25872
25873 2010-12-19  Bruno Haible  <bruno@clisp.org>
25874
25875         relocatable-prog-wrapper: Separate from relocatable-prog.
25876         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
25877         uninstall-relocwrapper rule here.
25878         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
25879         Reported by Ian Beckwith <ianb@erislabs.net>.
25880
25881 2010-12-19  Bruno Haible  <bruno@clisp.org>
25882
25883         unistr/u8-mbsnlen: Add missing dependency.
25884         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
25885         Reported by Ian Beckwith <ianb@erislabs.net>.
25886
25887 2010-12-19  Bruno Haible  <bruno@clisp.org>
25888
25889         iconv: Make it possible again to use this module without 'iconv-h'.
25890         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
25891         if it is not defined.
25892         Reported by Ian Beckwith <ianb@erislabs.net>.
25893
25894 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25895
25896         acl: port to Solaris 8 when copying from tmpfs to ufs
25897         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
25898         error number.  Problem observed on Solaris 8 with latest
25899         coreutils, with "mv A B", where A is on a tmpfs file system and B
25900         is on a ufs file system.  This caused coreutils' mv/part-symlink
25901         test to fail.
25902
25903         tests: set fail=0 at start
25904         * tests/init.sh (setup_): Move fail=0 initialization here ...
25905         (mktempd_): ... from here, so that tests can rely on fail being
25906         set to 0 initially.  This fixes a problem in coreutils; see:
25907         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
25908
25909 2010-12-18  Bruno Haible  <bruno@clisp.org>
25910
25911         memmem-simple: Stylistic changes.
25912         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
25913         Fix preprocessor directive indentation.
25914
25915 2010-12-15  Pádraig Brady <P@draigBrady.com>
25916
25917         memmem, memmem-simple: reorganize and expand empty needle check
25918         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
25919         functional checks to memmem-simple so that one has a fully functional
25920         memmem by using just this module.
25921         Restrict the performance only check to the memmem module.
25922         Also expand the empty needle check to ensure the correct
25923         pointer is returned, not just a non NULL pointer.
25924         * doc/glibc-functions/memmem.texi: Rearrange the portability
25925         documentation to correlate with the rearranged checks.
25926         Clarify exactly how the memmem and memmem-simple modules
25927         relate to each other.
25928
25929 2010-12-15  Pádraig Brady <P@draigBrady.com>
25930             Bruno Haible  <bruno@clisp.org>
25931
25932         Improve cross-compilation guesses for uClibc.
25933         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
25934         that uClibc does not have the glibc bug.
25935         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
25936         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
25937
25938 2010-12-14  Eric Blake  <eblake@redhat.com>
25939
25940         configmake: provide fallbacks for oldest supported autotools
25941         * m4/configmake.m4: New file.
25942         * modules/configmake (Files): Ship it.
25943         (configure.ac): Use it to guarantee fallbacks.
25944
25945 2010-12-13  Pádraig Brady <P@draigBrady.com>
25946
25947         read-file: Improve handling of large files
25948         * lib/read-file.c (fread_file): Minimize realloc()s
25949         for regular files, and better manage sizes around SIZE_MAX.
25950
25951 2010-12-13  Eric Blake  <eblake@redhat.com>
25952
25953         cloexec, fcntl: relax license
25954         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
25955         consent from all contributors.
25956         * modules/fcntl (License): Likewise.
25957
25958 2010-12-10  Bruno Haible  <bruno@clisp.org>
25959
25960         Tests for module 'pipe-posix'.
25961         * modules/pipe-posix-tests: New file.
25962         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
25963
25964 2010-12-10  Bruno Haible  <bruno@clisp.org>
25965
25966         pipe-posix: Make it work in C++ mode.
25967         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
25968         (pipe): Use common idiom, not a macro definition.
25969         * lib/pipe.c: New file.
25970         * m4/pipe.m4: New file.
25971         * modules/pipe-posix (Description): Enhance.
25972         (Files): Add lib/pipe.c, m4/pipe.m4.
25973         (configure.ac): Invoke gl_FUNC_PIPE.
25974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
25975         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
25976         * tests/test-unistd-c++.cc: Check the signature of pipe.
25977
25978 2010-12-10  Bruno Haible  <bruno@clisp.org>
25979
25980         Rename module 'pipe' to 'spawn-pipe'.
25981         * modules/spawn-pipe: New file, renamed from modules/pipe.
25982         (Files, configure.ac, Makefile.am): Update.
25983         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
25984         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
25985         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
25986         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
25987         "spawn-pipe.h" instead of "pipe.h".
25988         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
25989         to gl_SPAWN_PIPE.
25990         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
25991         (Files, Makefile.am): Update.
25992         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
25993         Update.
25994         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
25995         Include "spawn-pipe.h" instead of "pipe.h".
25996         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
25997         * lib/javacomp.c: Likewise.
25998         * lib/javaversion.c: Likewise.
25999         * lib/pipe-filter-gi.c: Likewise.
26000         * lib/pipe-filter-ii.c: Likewise.
26001         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26002         * modules/javacomp (Depends-on): Likewise.
26003         * modules/javaversion (Depends-on): Likewise.
26004         * modules/pipe-filter-gi (Depends-on): Likewise.
26005         * modules/pipe-filter-ii (Depends-on): Likewise.
26006         * MODULES.html.sh (Executing programs): Update.
26007         * NEWS: Mention the change.
26008
26009 2010-12-10  Eric Blake  <eblake@redhat.com>
26010
26011         pipe-posix: new module
26012         * modules/pipe-posix: New file.
26013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26014         (gl_UNISTD_H): Check for declaration.
26015         * modules/unistd (Makefile.am): Substitute it.
26016         * lib/unistd.in.h (pipe): Provide it for mingw.
26017         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26018         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26019
26020 2010-12-07  Bruno Haible  <bruno@clisp.org>
26021
26022         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26023         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26024         u8_strcmp_gnu.
26025         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26026
26027 2010-12-06  Bruno Haible  <bruno@clisp.org>
26028
26029         Update internal documentation.
26030         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26031
26032 2010-12-04  Bruno Haible  <bruno@clisp.org>
26033
26034         Put more information about failed tests into the test return codes.
26035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26036         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26037         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26038         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26039         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26040         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26041         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26042         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26043         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26045         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26046         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26047         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26048         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26049         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26050         returns a bit mask.
26051         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26052         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26053         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26054         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26055         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26056         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26057         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26058         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26059         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26060         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26061         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26062         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26063         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26064         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26065         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26066         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26067         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26068         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26069         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26070         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26071         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26072         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26073         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26074         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26075         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26076         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26077         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26078         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26079         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26080         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26081         gl_PRINTF_PRECISION): Likewise.
26082         * m4/regex.m4 (gl_REGEX): Likewise.
26083         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26084         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26085         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26086         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26087         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26089         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26090         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26091         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26092         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26093         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26094         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26095         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26096         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26097         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26098         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26099         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26100         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26102         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26103         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26104         enumerated value.
26105         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26106
26107 2010-12-04  Bruno Haible  <bruno@clisp.org>
26108
26109         Update for Solaris 11 2010-11.
26110         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26111         Express, released in November 2010.
26112
26113 2010-12-04  Bruno Haible  <bruno@clisp.org>
26114
26115         nproc: Relax license.
26116         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26117         and Paul Eggert.
26118         Requested by Ludovic Courtès <ludo@gnu.org>.
26119
26120 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26121
26122         utimecmp: fine-grained src to nearby coarse-grained dest
26123
26124         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26125         and the source is on a file system with higher-resolution time
26126         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26127         not work, and the time stamps are close together, the algorithm to
26128         determine the exact resolution from the read-back mtime was buggy:
26129         it had a "!=" where it should have had an "==".  This bug has been
26130         in the code ever since it was introduced to gnulib.
26131         Problem reported by Dan Jacobson in
26132         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26133
26134 2010-11-30  Bruno Haible  <bruno@clisp.org>
26135
26136         strerror_r-posix: Fix autoconf test.
26137         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26138
26139 2010-11-28  Bruno Haible  <bruno@clisp.org>
26140             Paul Eggert  <eggert@cs.ucla.edu>
26141
26142         Tests for module 'getdomainname'.
26143         * modules/getdomainname-tests: New file.
26144         * tests/test-getdomainname.c: New file, based on
26145         tests/test-gethostname.c.
26146
26147 2010-11-28  Bruno Haible  <bruno@clisp.org>
26148             Paul Eggert  <eggert@cs.ucla.edu>
26149
26150         getdomainname: Use the system function when possible.
26151         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26152         (getdomainname): Replace if needed. Provide the declaration if it is
26153         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26154         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26155         (getdomainname): When the system has getdomainname, call the system
26156         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26157         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26158         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26159         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26160         the function if its second argument is of type 'int' or if it is found
26161         in libnsl.
26162         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26163         <sys/systeminfo.h> and sysinfo().
26164         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26166         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26167         HAVE_GETDOMAINNAME.
26168         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26169         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26170         * doc/glibc-functions/getdomainname.texi: Document the problems with
26171         the getdomainname declaration.
26172
26173 2010-11-28  Bruno Haible  <bruno@clisp.org>
26174
26175         sys_socket: Ensure ss_family field on AIX.
26176         * lib/sys_socket.in.h (ss_family): New macro definition.
26177         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26178         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26179         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26180         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26181         * modules/sys_socket (Makefile.am): Substitute
26182         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26183         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26184
26185 2010-11-27  Bruno Haible  <bruno@clisp.org>
26186
26187         readline: Improve configure output.
26188         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26189         "checking for readline..." result understandable.
26190
26191 2010-11-27  Bruno Haible  <bruno@clisp.org>
26192
26193         *printf-posix: Detect a bug on Solaris 10/x86.
26194         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26195         for floating-point output.
26196         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26197         directive.
26198         * tests/test-snprintf-posix.h (test_function): Likewise.
26199         * tests/test-sprintf-posix.h (test_function): Likewise.
26200         * tests/test-vasprintf-posix.c (test_function): Likewise.
26201         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26202         * doc/posix-functions/printf.texi: Likewise.
26203         * doc/posix-functions/snprintf.texi: Likewise.
26204         * doc/posix-functions/sprintf.texi: Likewise.
26205         * doc/posix-functions/vfprintf.texi: Likewise.
26206         * doc/posix-functions/vprintf.texi: Likewise.
26207         * doc/posix-functions/vsnprintf.texi: Likewise.
26208         * doc/posix-functions/vsprintf.texi: Likewise.
26209         * doc/glibc-functions/obstack_printf.texi: Likewise.
26210         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26211
26212 2010-11-27  Bruno Haible  <bruno@clisp.org>
26213
26214         Fix link error when module libunistring-optional is in use.
26215         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26216         * modules/striconveha-tests (Makefile.am): Likewise.
26217
26218 2010-11-27  Bruno Haible  <bruno@clisp.org>
26219
26220         regex: Mention link dependencies.
26221         * modules/regex (Link): New section.
26222         * modules/rpmatch (Link): Likewise.
26223         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26224
26225 2010-11-27  Bruno Haible  <bruno@clisp.org>
26226
26227         ftoastr: Fix compilation error on Solaris.
26228         * lib/ftoastr.c: Include <config.h>.
26229
26230 2010-11-27  Bruno Haible  <bruno@clisp.org>
26231
26232         getloadavg: Update documentation.
26233         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26234
26235 2010-11-27  Bruno Haible  <bruno@clisp.org>
26236
26237         sys_socket: Fix test whether the functions are declared.
26238         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26239         not <sys/select.h>.
26240
26241 2010-11-27  Bruno Haible  <bruno@clisp.org>
26242
26243         getpass: Make sure to get system declaration on some platforms.
26244         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26245         gl_USE_SYSTEM_EXTENSIONS.
26246         * modules/getpass (Depends-on): Add extensions.
26247
26248 2010-11-26  Bruno Haible  <bruno@clisp.org>
26249
26250         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26251         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26252         'iconv' module is present.
26253         (ICONV_CONST): New macro.
26254         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26255         ICONV_CONST.
26256         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26257         set ICONV_CONST.
26258         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26259         here.
26260         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26261         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26262         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26263         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26264         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26265         present.
26266
26267 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26268
26269         ftoastr: comment fix
26270         * lib/ftoastr.c: "little" -> "little or no" in comment
26271
26272 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26273
26274         stdint: port to GCC 4.3 + OSX + Octave
26275         On this platform, stdint.h is buggy and defines int64_t to long
26276         long int.  The replacement defined it to long int, causing
26277         problems with C++ style name mangling.  Instead, trust the system
26278         definition if INT64_MAX is defined, and likewise for the unsigned
26279         variant.   Problem reported by Jarno Rajahalme in
26280         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26281         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26282         and don't mess with int64_t and INT64_MAX in this case.
26283         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26284
26285 2010-11-24  Bruno Haible  <bruno@clisp.org>
26286
26287         doc: Corrections regarding MacOS X 10.4 and 10.5.
26288         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26289         MacOS X.
26290         Reported by Simon Josefsson.
26291
26292 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26293
26294         Uninstall ".bin" files installed by relocwrapper.
26295         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26296         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26297         unless it is already there.
26298
26299 2010-11-21  Bruno Haible  <bruno@clisp.org>
26300
26301         Update for NetBSD 5.0.
26302         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26303         NetBSD; the test fails on NetBSD 5.0.
26304         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26305         about NetBSD.
26306
26307 2010-11-21  Bruno Haible  <bruno@clisp.org>
26308
26309         Update for HP-UX 11.23 and HP-UX 11.31.
26310         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26311         HP-UX.
26312
26313 2010-11-21  Bruno Haible  <bruno@clisp.org>
26314
26315         Update for MacOS X 10.5.
26316         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26317         MacOS X; the test fails on MacOS X 10.5.8.
26318         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26319         about MacOS X.
26320
26321 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26322
26323         bootstrap: add bootstrap_sync option.
26324         See discussion at
26325         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26326         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26327         * build-aux/bootstrap: Accept --bootstrap-sync to update
26328         bootstrap if it is not identical to the local gnulib's
26329         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26330         enable this by default.  Accept --no-bootstrap-sync to disable
26331         it.
26332
26333 2010-11-20  Bruno Haible  <bruno@clisp.org>
26334
26335         Ensure that <features.h> is included before __GLIBC__ is tested.
26336         * lib/printf-parse.h: Include <features.h>.
26337         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26338         Reported by Mike Frysinger <vapier@gentoo.org>.
26339
26340         Ensure that <features.h> is included before __GLIBC__ is tested.
26341         * lib/wchar.in.h: Include <features.h>.
26342         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26343         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26344         Reported by Mike Frysinger <vapier@gentoo.org>.
26345
26346         Ensure that <features.h> is included before __GLIBC__ is tested.
26347         * lib/arpa_inet.in.h: Include <features.h>.
26348         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26349         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26350         Reported by Mike Frysinger <vapier@gentoo.org>.
26351
26352         Ensure that <features.h> is included before __GLIBC__ is tested.
26353         * build-aux/link-warning.h: Include <features.h>.
26354         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26355         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26356         Reported by Mike Frysinger <vapier@gentoo.org>.
26357
26358         Ensure that <features.h> is included before __GLIBC__ is tested.
26359         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26360         Reported by Mike Frysinger <vapier@gentoo.org>.
26361
26362 2010-11-20  Bruno Haible  <bruno@clisp.org>
26363
26364         memmem: Fix autoconf test.
26365         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26366
26367 2010-11-20  Bruno Haible  <bruno@clisp.org>
26368
26369         Port to uClibc.
26370         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26371         * lib/fcntl.in.h: Likewise.
26372         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26373         * lib/mbrtowc.c (mbrtowc): Likewise.
26374         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26375         * lib/strerror_r.c: Likewise.
26376         * lib/unistr/u8-strnlen.c: Likewise.
26377         * lib/vasnprintf.c (decimal_point_char): Likewise.
26378         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26379         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26380         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26381         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26382         * tests/test-sigaction.c (handler, main): Likewise.
26383         * lib/freading.h: Treat uClibc like a non-glibc platform.
26384         * lib/freading.c: Likewise.
26385         * lib/gettext.h: Likewise.
26386         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26387         Likewise.
26388         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26389         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26390         * lib/propername.c (proper_name_utf8): Likewise.
26391         * lib/spawn.in.h: Likewise.
26392         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26393         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26394         mem_cd_iconveh_internal): Likewise.
26395         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26396         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26397         strstr, strcasestr): Likewise.
26398         * lib/unicodeio.c (unicode_to_mb): Likewise.
26399         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26400         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26401         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26402         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26403         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26404         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26405         * lib/unistr/u8-stpncpy.c: Likewise.
26406         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26407         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26408         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26409         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26410         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26411         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26412         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26413         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26415         Likewise.
26416         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26417         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26418         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26419         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26420         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26421         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26422         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26423         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26424         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26425         * tests/test-striconveha.c (main): Likewise.
26426         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26427         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26428         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26429         * doc/posix-functions/getline.texi: Likewise.
26430         Reported by Mike Frysinger <vapier@gentoo.org>.
26431
26432 2010-11-20  Bruno Haible  <bruno@clisp.org>
26433
26434         nproc: Fix condition.
26435         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26436         HAVE_PTHREAD_AFFINITY_NP.
26437
26438 2010-11-20  Bruno Haible  <bruno@clisp.org>
26439
26440         Fix a comment.
26441         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26442
26443 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26444
26445         ftoastr: don't assume snprintf
26446         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26447         Implement a subset of snprintf here, by using sprintf safely.
26448         * modules/ftoastr (Depends-on): Remove snprintf.
26449
26450 2010-11-19  Jim Meyering  <meyering@redhat.com>
26451
26452         test-rename.h: fix compilation failure
26453         * tests/test-rename.h (test_rename): Add omitted "}".
26454
26455 2010-11-17  Jim Meyering  <meyering@redhat.com>
26456
26457         maint.mk: add a URL discussing the no-@acronym policy
26458         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26459
26460 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26461
26462         ftoastr: depend on snprintf, improve comments
26463         * lib/ftoastr.c: Also mention Loitsch's draft.
26464         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26465         needed in the current implementation, but it might simplify
26466         speeding up the code later.
26467         * modules/ftoastr: Depend on snprintf; this improves portability.
26468         Suggested by Bruno Haible in the same email.
26469
26470         ftoastr: port to hosts lacking strtof and strtold
26471         Problem reported by Bruno Haible in
26472         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26473         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26474         environment and strtold (and presumably strtof) are not available.
26475         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26476         (configure.ac): Require gl_C99_STRTOLD.
26477
26478 2010-11-18  Bruno Haible  <bruno@clisp.org>
26479
26480         c-strtold: Avoid link error on AIX 7.
26481         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26482         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26483         (gl_C_STRTOLD): Test whether strtold_l exists.
26484         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26485
26486 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26487
26488         intprops: new macro INT_BITS_STRLEN_BOUND
26489         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26490         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26491         not exposed.  Also, it uses a slightly tighter bound than before;
26492         though this makes no practical difference, we might as well be as
26493         tight as we easily can.
26494
26495         ftoastr: new module, for lossless conversion of floats to short strings
26496         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26497         * modules/ftoastr: New files.
26498
26499 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26500
26501         bootstrap: port to Solaris sed
26502         * build-aux/bootstrap (get_version): Port to Solaris sed.
26503         See Ralf Wildenhues's note in
26504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26505
26506 2010-11-14  Jim Meyering  <meyering@redhat.com>
26507
26508         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26509         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26510         and move definition closer to sole use.
26511
26512 2010-11-13  Jim Meyering  <meyering@redhat.com>
26513
26514         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26515         Now we require at least autoconf-2.59, which means the work-around
26516         is no longer needed.
26517         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26518         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26519         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26520         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26521         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26522
26523 2010-11-13  Bruno Haible  <bruno@clisp.org>
26524
26525         rename, renameat: Avoid test failures at NFS mounted locations.
26526         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
26527         functions.
26528         (test_rename): Use assert_nonexistent.
26529         * tests/test-rename.c: Include <dirent.h>.
26530         * tests/test-renameat.c: Likewise.
26531         Reported by Gary V. Vaughan <gary@gnu.org>.
26532
26533         rename, renameat: Document Linux bug with NFS
26534         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
26535         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
26536         * doc/posix-functions/renameat.texi: Likewise.
26537         Suggested by Eric Blake.
26538
26539 2010-11-13  Bruno Haible  <bruno@clisp.org>
26540
26541         rename test: Add comments.
26542         * tests/test-rename.h (test_rename): Add structure and comments.
26543
26544 2010-11-13  Eric Blake  <eblake@redhat.com>
26545
26546         maintainer-makefile: cover a few more files
26547         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
26548         scripts generated within C files, for libvirt.
26549
26550 2010-11-13  Bruno Haible  <bruno@clisp.org>
26551
26552         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
26553         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
26554         character, return the number of bytes that belong together, not always
26555         1.
26556         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26557         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26558         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26559         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
26560         number of bytes of an invalid character.
26561         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
26562         (main): Invoke it.
26563         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
26564         results.
26565         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
26566         malformed byte sequences.
26567         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
26568         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
26569         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
26570         Reported by Ben Pfaff and Paolo Bonzini.
26571
26572 2010-11-13  Bruno Haible  <bruno@clisp.org>
26573
26574         openat: Work around glibc bug with fchownat() and empty file names.
26575         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
26576         (gl_FUNC_FCHOWNAT): Invoke it.
26577         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
26578         * doc/posix-functions/fchownat.texi: Document the glibc bug.
26579         Reported by Gary V. Vaughan <gary@gnu.org>.
26580
26581 2010-11-13  Bruno Haible  <bruno@clisp.org>
26582
26583         openat: Ensure autoconf macro ordering.
26584         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
26585         gl_USE_SYSTEM_EXTENSIONS.
26586         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
26587
26588 2010-11-13  Bruno Haible  <bruno@clisp.org>
26589
26590         Update comments.
26591         * lib/unistr/u8-check.c: Update file name in comments.
26592         * lib/unistr/u8-mblen.c: Likewise.
26593         * lib/unistr/u8-prev.c: Likewise.
26594         * lib/unistr/u8-strmblen.c: Likewise.
26595         * lib/unistr/u8-strmbtouc.c: Likewise.
26596
26597 2010-11-13  Jim Meyering  <meyering@redhat.com>
26598
26599         tests: avoid test failure on Solaris 10 due to lack of PATH export
26600         * tests/test-update-copyright.sh: Don't forget to export PATH.
26601
26602         init.sh: ensure that IFS is defined, just in case...
26603         * tests/init.sh (setup_): Ensure that IFS is defined,
26604         so that saving and restoring it works as expected.  This
26605         appears to be useful at least for an old version of dash
26606         from a long time ago (RH 6).  See here for details:
26607         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
26608
26609         maint.mk: tighten "test a == b" check
26610         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
26611         test to files that contain something like #!/bin/sh.
26612         Without this, coreutils would get two false positives in
26613         the comments of C source files.
26614
26615 2010-11-12  Eric Blake  <eblake@redhat.com>
26616
26617         bootstrap: fix typo in previous attempt
26618         * build-aux/bootstrap (buildreq): Correct the grouping.
26619         Reported by Paul Eggert.
26620
26621         maintainer-makefile: prohibit test x == x
26622         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
26623         Based on a report by Matthias Bolte.
26624
26625         bootstrap: allow FreeBSD gzip
26626         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
26627         which has no '.' and goes to stderr.
26628         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
26629         Reported by Matthias Bolte.
26630
26631         maintainer-makefile: check for i18n setup
26632         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
26633         will likely work.
26634
26635 2010-11-12  Bruno Haible  <bruno@clisp.org>
26636
26637         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
26638         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
26639         * lib/nanosleep.c (nanosleep): Likewise.
26640
26641 2010-11-11  Bruno Haible  <bruno@clisp.org>
26642
26643         fcntl-h: Fix for use of C++ on glibc systems.
26644         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26645         also on glibc systems in C++ mode.
26646         Reported by Gary V. Vaughan <gary@gnu.org>.
26647
26648 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26649
26650         mknod: avoid false failure with dash
26651         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
26652
26653 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26654
26655         unlink: Fix "is it should" typo in diagnostic.
26656         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
26657         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
26658
26659 2010-11-11  Bruno Haible  <bruno@clisp.org>
26660
26661         Tests for module 'strerror_r-posix'.
26662         * modules/strerror_r-posix-tests: New file.
26663         * tests/test-strerror_r.c: New file.
26664         * tests/test-string-c++.cc: Check the signature of strerror_r.
26665
26666         New module 'strerror_r-posix'.
26667         * lib/string.in.h (strerror_r): New declaration.
26668         * lib/strerror_r.c: New file.
26669         * m4/strerror_r.m4: New file.
26670         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
26671         of strerror_r.
26672         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
26673         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26674         * modules/strerror_r-posix: New file.
26675         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
26676         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26677         * doc/posix-functions/strerror_r.texi: Mention the new module and the
26678         portability problems.
26679
26680 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
26681
26682         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
26683         line is also considered for output. Quoted function name in shell
26684         command, so temporary files for functions like MyClass::operator()
26685         are removed correctly without errors.
26686
26687 2010-11-09  Bruno Haible  <bruno@clisp.org>
26688
26689         * doc/posix-functions/strerror.texi: List more failing platforms.
26690
26691         * doc/posix-functions/strerror.texi: Add a comment.
26692
26693 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26694
26695         fdopendir: fix bug on MacOS X when low on file descriptors
26696
26697         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
26698         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
26699         All callers changed.
26700         (fdopendir): Invoke save_cwd at the top level, not after using
26701         multiple dup() calls to use up file descriptors.  Then retry
26702         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
26703         less than the maximum number of open file descriptors, because
26704         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
26705         on Mac OS X 10.6.4 for tar 1.24
26706         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
26707         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
26708         and for tar 1.25
26709         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
26710
26711 2010-11-07  Bruno Haible  <bruno@clisp.org>
26712
26713         vasnprintf: Support I flag on glibc systems.
26714         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
26715         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
26716         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
26717         snprintf function.
26718         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
26719         glibc systems.
26720         * tests/test-vasnprintf-posix3.c: New file.
26721         * modules/vasnprintf-posix-tests (Files): Add it.
26722         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
26723
26724 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26725
26726         [html] Fix copy/paste bug: Use unique name for compiler warnings.
26727         * MODULES.html.sh: For compiler warnings, use name
26728         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
26729
26730 2010-11-05  Eric Blake  <eblake@redhat.com>
26731
26732         ceil, floor: avoid spurious failure with icc
26733         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
26734         [denormals-as-zero] when optimizing without -mieee-fp option.
26735         * tests/test-floorf2.c (floorf_reference): Likewise.
26736         * tests/test-ceilf1.c (dummy): New function.
26737         (main): Use it to outsmart icc's optimization.
26738         * tests/test-floorf1.c (dummy, main): Likewise.
26739
26740         tests: require working signbit
26741         * modules/ceilf-tests (Depends-on): Add signbit.
26742         * modules/ceill-tests (Depends-on): Likewise.
26743         * modules/floorf-tests (Depends-on): Likewise.
26744         * modules/floorl-tests (Depends-on): Likewise.
26745         * modules/round-tests (Depends-on): Likewise.
26746         * modules/roundf-tests (Depends-on): Likewise.
26747         * modules/roundl-tests (Depends-on): Likewise.
26748         * modules/trunc-tests (Depends-on): Likewise.
26749         * modules/truncf-tests (Depends-on): Likewise.
26750         * modules/truncl-tests (Depends-on): Likewise.
26751
26752         strtod: work around icc bug
26753         * lib/strtod.c (minus_zero): Define to working value.
26754         (strtod): Use it to avoid icc bug.
26755
26756         copysign: enhance tests
26757         * modules/copysign-tests (Files): Add minus-zero.h.
26758         * tests/test-copysign.c (main): Also test zeros.
26759
26760 2010-11-04  Eric Blake  <eblake@redhat.com>
26761
26762         ceil, floor, round, trunc: enhance tests of -0
26763         * tests/test-ceilf1.c (main): Ensure correct sign of result.
26764         * tests/test-ceill.c (main): Likewise.
26765         * tests/test-floorf1.c (main): Likewise.
26766         * tests/test-floorl.c (main): Likewise.
26767         * tests/test-round1.c (main): Likewise.
26768         * tests/test-roundf1.c (main): Likewise.
26769         * tests/test-roundl.c (main): Likewise.
26770         * tests/test-trunc1.c (main): Likewise.
26771         * tests/test-truncf1.c (main): Likewise.
26772         * tests/test-truncl.c (main): Likewise.
26773
26774 2010-11-04  Eric Blake  <eblake@redhat.com>
26775
26776         frexp, tests: work around ICC bug with -zero
26777         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
26778         works with more compilers.
26779         * tests/minus-zero.h: New file.
26780         * modules/ceilf-tests (Files): Include it.
26781         * modules/ceill-tests (Files): Likewise.
26782         * modules/floorf-tests (Files): Likewise.
26783         * modules/floorl-tests (Files): Likewise.
26784         * modules/frexp-nolibm-tests (Files): Likewise.
26785         * modules/frexp-tests (Files): Likewise.
26786         * modules/frexpl-nolibm-tests (Files): Likewise.
26787         * modules/frexpl-tests (Files): Likewise.
26788         * modules/isnan-tests (Files): Likewise.
26789         * modules/isnand-nolibm-tests (Files): Likewise.
26790         * modules/isnand-tests (Files): Likewise.
26791         * modules/isnanf-nolibm-tests (Files): Likewise.
26792         * modules/isnanf-tests (Files): Likewise.
26793         * modules/isnanl-nolibm-tests (Files): Likewise.
26794         * modules/isnanl-tests (Files): Likewise.
26795         * modules/round-tests (Files): Likewise.
26796         * modules/roundf-tests (Files): Likewise.
26797         * modules/roundl-tests (Files): Likewise.
26798         * modules/ldexpl-tests (Files): Likewise.
26799         * modules/signbit-tests (Files): Likewise.
26800         * modules/snprintf-posix-tests (Files): Likewise.
26801         * modules/sprintf-posix-tests (Files): Likewise.
26802         * modules/strtod-tests (Files): Likewise.
26803         * modules/trunc-tests (Files): Likewise.
26804         * modules/truncf-tests (Files): Likewise.
26805         * modules/truncl-tests (Files): Likewise.
26806         * modules/vsnprintf-posix-tests (Files): Likewise.
26807         * modules/vsprintf-posix-tests (Files): Likewise.
26808         * modules/vasnprintf-posix-tests (Files): Likewise.
26809         * modules/vasprintf-posix-tests (Files): Likewise.
26810         * tests/test-ceilf1.c (main): Use it.
26811         * tests/test-ceill.c (main): Likewise.
26812         * tests/test-floorf1.c (main): Likewise.
26813         * tests/test-floorl.c (main): Likewise.
26814         * tests/test-frexp.c (main): Likewise.
26815         * tests/test-frexpl.c (main): Likewise.
26816         * tests/test-isnan.c (main): Likewise.
26817         * tests/test-isnand.h (main): Likewise.
26818         * tests/test-isnanf.h (main): Likewise.
26819         * tests/test-isnanl.h (main): Likewise.
26820         * tests/test-ldexpl.c (main): Likewise.
26821         * tests/test-round.c (main): Likewise.
26822         * tests/test-roundf.c (main): Likewise.
26823         * tests/test-roundl.c (main): Likewise.
26824         * tests/test-signbit.c (test_signbitf, test_signbitd)
26825         (test_signbitl): Likewise.
26826         * tests/test-snprintf-posix.h (test_function): Likewise.
26827         * tests/test-sprintf-posix.h (test_function): Likewise.
26828         * tests/test-strtod.c (main): Likewise.
26829         * tests/test-trunc1.c (main): Likewise.
26830         * tests/test-truncf1.c (main): Likewise.
26831         * tests/test-truncl.c (main): Likewise.
26832
26833         isnanl: work around icc bug
26834         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
26835
26836 2010-11-03  Eric Blake  <eblake@redhat.com>
26837
26838         tests: fix compiler warnings
26839         * tests/test-getopt.h (test_getopt): Fix condition.
26840         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26841         * tests/test-pipe2.c (main): Likewise.
26842         * tests/test-quotearg-simple.c (main): Avoid icc warning.
26843
26844         utimens: fix broken m4 test
26845         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
26846
26847 2010-10-28  Bruno Haible  <bruno@clisp.org>
26848
26849         posix_spawn*, getdtablesize: Relax license.
26850         * modules/posix_spawn (License): Change to LGPLv2+.
26851         * modules/posix_spawnp (License): Likewise.
26852         * modules/posix_spawn-internal (License): Likewise.
26853         * modules/posix_spawnattr_init (License): Likewise.
26854         * modules/posix_spawnattr_getflags (License): Likewise.
26855         * modules/posix_spawnattr_setflags (License): Likewise.
26856         * modules/posix_spawnattr_getpgroup (License): Likewise.
26857         * modules/posix_spawnattr_setpgroup (License): Likewise.
26858         * modules/posix_spawnattr_getschedparam (License): Likewise.
26859         * modules/posix_spawnattr_setschedparam (License): Likewise.
26860         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
26861         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
26862         * modules/posix_spawnattr_getsigdefault (License): Likewise.
26863         * modules/posix_spawnattr_setsigdefault (License): Likewise.
26864         * modules/posix_spawnattr_getsigmask (License): Likewise.
26865         * modules/posix_spawnattr_setsigmask (License): Likewise.
26866         * modules/posix_spawnattr_destroy (License): Likewise.
26867         * modules/posix_spawn_file_actions_init (License): Likewise.
26868         * modules/posix_spawn_file_actions_addclose (License): Likewise.
26869         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
26870         * modules/posix_spawn_file_actions_addopen (License): Likewise.
26871         * modules/posix_spawn_file_actions_destroy (License): Likewise.
26872         * modules/getdtablesize (License): Likewise.
26873         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
26874
26875 2010-10-26  Bruno Haible  <bruno@clisp.org>
26876
26877         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
26878         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
26879         Cygwin and mingw.
26880         Suggested by Eric Blake.
26881
26882 2010-10-26  Bruno Haible  <bruno@clisp.org>
26883
26884         stdio: Work around compilation error due to renameat() on Solaris 10.
26885         * lib/stdio.in.h: Include <unistd.h> on Solaris.
26886         * lib/renameat.c: Don't include <unistd.h> here.
26887         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
26888         Reported by Paul Eggert and Eric Blake.
26889
26890 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26891
26892         renameat: port to Solaris 10, which declares renameat in unistd.h
26893
26894         * lib/renameat.c: Include unistd.h before stdio.h, because
26895         Solaris 10 declares renameat in unistd.h.  Problem encountered
26896         when building GNU tar 1.24 on Solaris 10.
26897
26898 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26899
26900         fdopendir: fix C89 compilation
26901         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
26902         compilers.
26903
26904 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
26905
26906         inttostr: simplify by removing unnecessary redundancy
26907         * lib/anytostr.c: Don't include verify.h.
26908         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
26909         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
26910         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
26911         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
26912         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
26913         Likewise.
26914         * modules/inttostr (Depends-on): Remove 'verify'.
26915
26916 2010-10-23  Bruno Haible  <bruno@clisp.org>
26917
26918         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
26919         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
26920         Reported by Eric Blake.
26921
26922 2010-10-23  Bruno Haible  <bruno@clisp.org>
26923
26924         Tests: Fix LOCALE_JA on MirBSD 10.
26925         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
26926         to an UTF-8 locale.
26927         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
26928         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26929         Reported by Eric Blake.
26930
26931 2010-10-21  Bruno Haible  <bruno@clisp.org>
26932
26933         nl_langinfo test: Avoid test failure on NetBSD 5.
26934         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
26935         Reported by Eric Blake.
26936
26937 2010-10-21  Eric Blake  <eblake@redhat.com>
26938
26939         c-stack: work around libsigsegv 2.8 bug
26940         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
26941         overflow on at least PowerPC64.
26942
26943 2010-10-17  Bruno Haible  <bruno@clisp.org>
26944
26945         userspec: Drop redundant file.
26946         * modules/userspec (Files): Remove lib/inttostr.h.
26947
26948 2010-10-17  Bruno Haible  <bruno@clisp.org>
26949
26950         nl_langinfo tests: Silence some warnings.
26951         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
26952         Reported by Jim Meyering.
26953
26954 2010-10-17  Bruno Haible  <bruno@clisp.org>
26955
26956         Make use of GCC's attribute __alloc_size__.
26957         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
26958         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
26959         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
26960         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
26961         __alloc_size__.
26962         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
26963         Suggested by Jim Meyering.
26964
26965 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
26966
26967         bootstrap: anchor .gitignore entries.
26968         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
26969         with...
26970         (insert_vc_ignore): ... this new function, which prepends `/' to
26971         all .gitignore entries before passing them to
26972         insert_sorted_if_absent.
26973
26974 2010-10-16  Bruno Haible  <bruno@clisp.org>
26975
26976         nextafter: Fix configure check.
26977         * modules/nextafter (configure.ac): Correct expected prototype.
26978
26979 2010-10-16  Bruno Haible  <bruno@clisp.org>
26980
26981         termios: Update documentation.
26982         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
26983
26984 2010-10-16  Bruno Haible  <bruno@clisp.org>
26985
26986         tests: Make them compile with TinyCC.
26987         * tests/test-strstr.c (main): Remove parentheses around array
26988         initializer.
26989
26990 2010-10-15  Eric Blake  <eblake@redhat.com>
26991
26992         ignore-value: make header idempotent
26993         * lib/ignore-value.h: Add double-inclusion guards.
26994         Reported by Stefan Berger.
26995
26996 2010-10-15  Jim Meyering  <meyering@redhat.com>
26997
26998         GNUmakefile: handle "stable" target, not "major"
26999         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27000         lists in maint.mk and announce-gen.  Without this, "make stable"
27001         would fail to ensure that $(VERSION) is up to date.
27002
27003 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27004
27005         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27006         & co.
27007
27008 2010-10-14  Bruno Haible  <bruno@clisp.org>
27009
27010         vasnprintf: Don't set errno to 0.
27011         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27012         block that sets it to 0.
27013         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27014
27015 2010-10-14  Bruno Haible  <bruno@clisp.org>
27016
27017         socketlib: Fix.
27018         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27019         gl_PREREQ_SYS_H_WINSOCK2.
27020         Reported by Ian Beckwith <ianb@erislabs.net>.
27021
27022 2010-10-13  Jim Meyering  <meyering@redhat.com>
27023
27024         test-select-stdin.c: avoid warn_unused_result warnings
27025         * tests/test-select-stdin.c: Include "macros.h".
27026         ASSERT that read and fflush succeed.
27027
27028 2010-10-13  Jim Meyering  <meyering@redhat.com>
27029
27030         git-version-gen: do require git-VC'd files in cwd
27031         * build-aux/git-version-gen: Reject a git version string
27032         if there are no commits associated with the current directory.
27033         This avoids an unlikely false-positive (unrelated dir whose parent
27034         repository also contains a tag matching v*), as pointed out
27035         by Giuseppe Scrivano in
27036         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27037
27038 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27039
27040         argv-iter: omit nonconforming declaration
27041         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27042         enum arg_iter_err declaration, which doesn't conform to C99.
27043         Solaris 10 cc warns about this.
27044
27045 2010-10-13  Eric Blake  <eblake@redhat.com>
27046
27047         termios: fix compilation on mingw
27048         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27049         (gl_TERMIOS_H): Adjust it on mingw.
27050         * modules/termios (Makefile.am): Substitute new key.
27051         * lib/termios.in.h (includes): Make include_next conditional.
27052         * doc/posix-headers/termios.texi (termios.h): Update
27053         documentation.
27054         Reported by Daniel P. Berrange.
27055
27056 2010-10-13  Jim Meyering  <meyering@redhat.com>
27057
27058         git-version-gen: don't require that .git/ be in the current dir
27059         * build-aux/git-version-gen: Adjust this script so that it works
27060         when run from any working directory beneath the top-level .git/-
27061         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27062         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27063
27064         test-select: avoid warn_unused_result warnings
27065         * tests/test-select.c: Include "macros.h".
27066         ASSERT that each call to read, write, and pipe succeeds.
27067         While not technically required, also check each "close".
27068         * modules/select-tests (Files): Add tests/macros.h.
27069
27070         test-symlinkat: remove declaration of unused local
27071         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27072
27073         test-inttostr: avoid shadowing warnings
27074         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27075         and use malloc rather than the stack for the same reason as
27076         mentioned in the comment justifying the other allocation.
27077
27078 2010-10-11  Bruno Haible  <bruno@clisp.org>
27079
27080         stdlib: Allow multiple gnulib generated replacements to coexist.
27081         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27082         Reported by Sam Steingold <sds@gnu.org>.
27083
27084 2010-10-11  Jim Meyering  <meyering@redhat.com>
27085
27086         fix a documentation typo
27087         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27088
27089 2010-10-11  Eric Blake  <eblake@redhat.com>
27090
27091         futimens: work around Solaris 11 bug
27092         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27093         * tests/test-futimens.h (test_futimens): Enhance, rather than
27094         weaken test.
27095         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27096
27097 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27098
27099         Indentation.
27100         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27101         higher-level operators more to the left.
27102
27103 2010-10-11  Jim Meyering  <meyering@redhat.com>
27104
27105         test-futimens: avoid unwarranted test failure on Solaris 5.11
27106         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27107         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27108         because it tries to dereference the NULL name argument.
27109
27110 2010-10-11  Bruno Haible  <bruno@clisp.org>
27111
27112         Indentation.
27113         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27114         indentation.
27115
27116 2010-10-11  Jim Meyering  <meyering@redhat.com>
27117
27118         spawn.in.h: make indentation consistent with parentheses
27119         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27120         Make indentation consistent with parentheses.
27121
27122 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27123
27124         Fix mismatched parens in previous commit
27125         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27126         parens.
27127
27128 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27129
27130         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27131
27132         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27133         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27134         * lib/malloca.c: Include "verify.h".
27135         (verify1): Remove, replacing with a verify call.
27136         * lib/relocwrapper.c (verify1): Likewise.
27137         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27138         Likewise.
27139         * modules/malloca (Depends-on): Add 'verify'.
27140         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27141         * modules/vasnprintf (Depends-on): Add 'verify'.
27142         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27143         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27144         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27145         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27146         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27147         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27148         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27149
27150         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27151
27152         Formerly the style was sometimes 2*X - 1, because the C standard
27153         was wrongly thought to disallow ?: in integral constant expressions.
27154         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27155         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27156         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27157         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27158         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27159         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27160         verify that time_t cannot be floating.
27161
27162 2010-10-08  Eric Blake  <eblake@redhat.com>
27163
27164         time: enforce recent POSIX ruling that time_t is integral
27165         * lib/time.in.h (__time_t_must_be_integral): Detect any
27166         problematic systems, allowing the rest of gnulib to assume POSIX.
27167
27168 2010-10-08  Jim Meyering  <meyering@redhat.com>
27169
27170         fdopendir: fix a bug on systems lacking openat and /proc support
27171         OpenBSD 4.7 is one such system.  The most noticeable effect was
27172         failure of any application making nontrivial use of fts: rm, du,
27173         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27174           ./rm: traversal failed: `a': Bad file descriptor
27175         Debugging that, you see that even though FD 6 was closed just
27176         prior to the opendir call in fd_clone_opendir, its resulting
27177         dir->dd_fd was 8, rather than the expected value of 6:
27178
27179         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27180         93                close (fd);
27181         (gdb) n
27182         94                dir = fd_clone_opendir (dupfd);
27183         (gdb) n
27184         95                saved_errno = errno;
27185         (gdb) p dir->dd_fd
27186         $11 = 8
27187
27188         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27189         The problem is that on OpenBSD, fd_clone_opendir has to resort
27190         to using the old-style save/restore CWD mechanism, due to its
27191         lack of openat/proc support, and *that* would steal the FD (6)
27192         that opendir was supposed to use.
27193
27194         The fix is to squirrel away the desired FD so that save_cwd uses a
27195         different one, and then free the dest FD right before calling opendir.
27196         That guarantees opendir will use the required file descriptor.
27197
27198         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27199
27200 2010-10-08  Bruno Haible  <bruno@clisp.org>
27201
27202         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27203         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27204
27205 2010-10-08  Bruno Haible  <bruno@clisp.org>
27206
27207         nanosleep: Make replacement POSIX compliant.
27208         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27209         is out of range.
27210         Reported by Jim Meyering.
27211
27212 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27213
27214         bootstrap: add hook for altering gnulib.mk, for Bison
27215         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27216         the Bison bootstrapping process can rewrite file names and variables
27217         in this file before later parts of 'bootstrap' use the file.
27218         Bison wants to include lib/gnulib.mk from the top-level makefile,
27219         so it needs the file names in this file to be relative to the top
27220         level, not relative to lib; plus it needs variable names to be
27221         rewritten.
27222         (slurp): Use the new function.
27223
27224         bootstrap: reformat for readability
27225         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27226
27227 2010-10-08  Eric Blake  <eblake@redhat.com>
27228
27229         docs: update cygwin progress
27230         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27231         1.7.7.
27232         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27233         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27234         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27235         * doc/posix-functions/carg.texi (carg): Likewise.
27236         * doc/posix-functions/cargf.texi (cargf): Likewise.
27237         * doc/posix-functions/casin.texi (casin): Likewise.
27238         * doc/posix-functions/casinf.texi (casinf): Likewise.
27239         * doc/posix-functions/casinh.texi (casinh): Likewise.
27240         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27241         * doc/posix-functions/catan.texi (catan): Likewise.
27242         * doc/posix-functions/catanf.texi (catanf): Likewise.
27243         * doc/posix-functions/catanh.texi (catanh): Likewise.
27244         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27245         * doc/posix-functions/ccos.texi (ccos): Likewise.
27246         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27247         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27248         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27249         * doc/posix-functions/cexp.texi (cexp): Likewise.
27250         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27251         * doc/posix-functions/cimag.texi (cimag): Likewise.
27252         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27253         * doc/posix-functions/clog.texi (clog): Likewise.
27254         * doc/posix-functions/clogf.texi (clogf): Likewise.
27255         * doc/posix-functions/conj.texi (conj): Likewise.
27256         * doc/posix-functions/conjf.texi (conjf): Likewise.
27257         * doc/posix-functions/cpow.texi (cpow): Likewise.
27258         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27259         * doc/posix-functions/cproj.texi (cproj): Likewise.
27260         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27261         * doc/posix-functions/creal.texi (creal): Likewise.
27262         * doc/posix-functions/crealf.texi (crealf): Likewise.
27263         * doc/posix-functions/csin.texi (csin): Likewise.
27264         * doc/posix-functions/csinf.texi (csinf): Likewise.
27265         * doc/posix-functions/csinh.texi (csinh): Likewise.
27266         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27267         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27268         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27269         * doc/posix-functions/ctan.texi (ctan): Likewise.
27270         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27271         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27272         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27273         * doc/posix-headers/complex.texi (complex.h): Likewise.
27274
27275 2010-10-07  Jim Meyering  <meyering@redhat.com>
27276
27277         parse-datetime: avoid compilation failure on OpenBSD 4.7
27278         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27279         This works around a compilation failure on OpenBSD 4.7:
27280         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27281
27282 2010-10-07  Eric Blake  <eblake@redhat.com>
27283
27284         docs: update cygwin progress
27285         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27286         1.7.6.
27287         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27288         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27289         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27290         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27291         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27292         Likewise.
27293         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27294         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27295         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27296         Likewise.
27297         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27298         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27299         Likewise.
27300         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27301         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27302         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27303         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27304         Likewise.
27305         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27306         Likewise.
27307         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27308
27309         docs: update parse-datetime history
27310         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27311         documentation of this function's history and alternatives.
27312
27313         cygwin: use more robust version check
27314         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27315         exclude an eventual cygwin 1.9.1.
27316         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27318         (gl_FUNC_STRCASESTR): Likewise.
27319         Reported by Bruno Haible.
27320
27321 2010-10-06  Bruno Haible  <bruno@clisp.org>
27322
27323         string, sys_select: Avoid #including large headers unless necessary.
27324         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27325         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27326         OSF/1, BeOS, Haiku.
27327         Reported by Jim Meyering.
27328
27329 2010-10-05  Eric Blake  <eblake@redhat.com>
27330
27331         memmem, strstr, strcasestr: fix bug with long periodic needle
27332         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27333         periodic needle having false positive.
27334         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27335         and cygwin 1.7.7.
27336         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27337         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27338         (gl_FUNC_STRCASESTR): Likewise.
27339         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27340         * tests/test-memmem.c (main): Expose the bug.
27341         * tests/test-strcasestr.c (main): Likewise.
27342         * tests/test-strstr.c (main): Likewise.
27343         * tests/test-c-strcasestr.c (main): Likewise.
27344         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27345         * doc/posix-functions/strstr.texi (strstr): Likewise.
27346         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27347         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27348
27349 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27350
27351         parse-datetime: do some more renaming
27352         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27353         parse_datetime, not get_date.  Mention the renaming.
27354         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27355         in comments.
27356         * m4/bison.m4: Likewise.
27357
27358 2010-10-05  Eric Blake  <eblake@redhat.com>
27359
27360         parse-datetime: better name than get_date
27361         * NEWS: Reword the deprecation notice.
27362         * modules/get_date: Rename to modules/parse-datetime.
27363         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27364         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27365         * lib/get_date.y: Rename to lib/parse-datetime.y.
27366         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27367         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27368         * doc/getdate.texi: Provide fallback wrapper.
27369         * lib/getdate.h: Move guts, and wrap...
27370         * lib/parse-datetime.h: ...new file.
27371         * lib/parse-datetime.y (get_date): Rename...
27372         (parse_datetime): ...to this.
27373         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27374         (gl_PARSE_DATETIME): ...to this.
27375         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27376         documentation.
27377         * modules/getdate (Files): Provide fallback docs and header.
27378         (Notice, Depends-on): Update references.
27379         * tests/test-parse-datetime.c: Likewise.
27380         * DEPENDENCIES: Likewise.
27381         * MODULES.html.sh (Date and time <time.h>): Likewise.
27382         * doc/parse-datetime.texi (Date input formats)
27383         (Authors of parse_datetime): Likewise.
27384         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27385         (Include): Likewise.
27386         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27387         * gnulib-tool: Likewise.
27388         * m4/bison.m4 (gl_BISON): Likewise.
27389         Suggested by Bruno Haible.
27390
27391 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27392
27393         more ports to Solaris tr, which needs [] around ranges
27394         * gnulib-tool: Solaris tr needs [] around ranges.
27395         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27396         * tests/test-pipe-filter-gi1.c (main): Likewise.
27397         * tests/test-pipe-filter-ii1.c (main): Likewise.
27398
27399 2010-10-05  Eric Blake  <eblake@redhat.com>
27400
27401         bootstrap: fix Solaris regression
27402         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27403         around ranges.
27404         Reported by Pádraig Brady.
27405
27406         bootstrap: work with pkg-config
27407         * build-aux/bootstrap (check_versions): Also transliterate - in
27408         prerequisite name.
27409         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27410         prerequisites that were already found, to avoid confusion.
27411         Reported by Justin Clift.
27412
27413         faccessat: remove unused wrappers
27414         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27415         presence of these wrappers dragged in -lgen on Solaris.
27416         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27417
27418 2010-10-05  Jim Meyering  <meyering@redhat.com>
27419
27420         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27421         * Makefile (sc_pragma_columns): New syntax-check rule.
27422
27423 2010-10-04  Bruno Haible  <bruno@clisp.org>
27424
27425         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27426         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27427         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27428         Reported by Bruce Korb and Eric Blake.
27429
27430 2010-10-04  Bruno Haible  <bruno@clisp.org>
27431
27432         threadlib: Make option --with-libpth-prefix work.
27433         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27434         use $LIBPTH, not just -lpth.
27435
27436 2010-10-04  Bruno Haible  <bruno@clisp.org>
27437
27438         Avoid line length limitation from HP NonStop system header files.
27439         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27440         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27441         * lib/ctype.in.h: Likewise.
27442         * lib/dirent.in.h: Likewise.
27443         * lib/errno.in.h: Likewise.
27444         * lib/fcntl.in.h: Likewise.
27445         * lib/float.in.h: Likewise.
27446         * lib/getopt.in.h: Likewise.
27447         * lib/iconv.in.h: Likewise.
27448         * lib/inttypes.in.h: Likewise.
27449         * lib/langinfo.in.h: Likewise.
27450         * lib/locale.in.h: Likewise.
27451         * lib/math.in.h: Likewise.
27452         * lib/netdb.in.h: Likewise.
27453         * lib/netinet_in.in.h: Likewise.
27454         * lib/poll.in.h: Likewise.
27455         * lib/pthread.in.h: Likewise.
27456         * lib/pty.in.h: Likewise.
27457         * lib/sched.in.h: Likewise.
27458         * lib/se-selinux.in.h: Likewise.
27459         * lib/search.in.h: Likewise.
27460         * lib/signal.in.h: Likewise.
27461         * lib/spawn.in.h: Likewise.
27462         * lib/stdarg.in.h: Likewise.
27463         * lib/stddef.in.h: Likewise.
27464         * lib/stdint.in.h: Likewise.
27465         * lib/stdio.in.h: Likewise.
27466         * lib/stdlib.in.h: Likewise.
27467         * lib/string.in.h: Likewise.
27468         * lib/strings.in.h: Likewise.
27469         * lib/sys_file.in.h: Likewise.
27470         * lib/sys_ioctl.in.h: Likewise.
27471         * lib/sys_select.in.h: Likewise.
27472         * lib/sys_socket.in.h: Likewise.
27473         * lib/sys_stat.in.h: Likewise.
27474         * lib/sys_time.in.h: Likewise.
27475         * lib/sys_times.in.h: Likewise.
27476         * lib/sys_utsname.in.h: Likewise.
27477         * lib/sys_wait.in.h: Likewise.
27478         * lib/sysexits.in.h: Likewise.
27479         * lib/termios.in.h: Likewise.
27480         * lib/time.in.h: Likewise.
27481         * lib/unistd.in.h: Likewise.
27482         * lib/wchar.in.h: Likewise.
27483         * lib/wctype.in.h: Likewise.
27484         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27485         * modules/ctype (Makefile.am): Likewise.
27486         * modules/dirent (Makefile.am): Likewise.
27487         * modules/errno (Makefile.am): Likewise.
27488         * modules/fcntl-h (Makefile.am): Likewise.
27489         * modules/float (Makefile.am): Likewise.
27490         * modules/getopt-posix (Makefile.am): Likewise.
27491         * modules/iconv-h (Makefile.am): Likewise.
27492         * modules/inttypes (Makefile.am): Likewise.
27493         * modules/langinfo (Makefile.am): Likewise.
27494         * modules/locale (Makefile.am): Likewise.
27495         * modules/math (Makefile.am): Likewise.
27496         * modules/netdb (Makefile.am): Likewise.
27497         * modules/netinet_in (Makefile.am): Likewise.
27498         * modules/poll-h (Makefile.am): Likewise.
27499         * modules/pthread (Makefile.am): Likewise.
27500         * modules/pty (Makefile.am): Likewise.
27501         * modules/sched (Makefile.am): Likewise.
27502         * modules/search (Makefile.am): Likewise.
27503         * modules/selinux-h (Makefile.am): Likewise.
27504         * modules/signal (Makefile.am): Likewise.
27505         * modules/spawn (Makefile.am): Likewise.
27506         * modules/stdarg (Makefile.am): Likewise.
27507         * modules/stddef (Makefile.am): Likewise.
27508         * modules/stdint (Makefile.am): Likewise.
27509         * modules/stdio (Makefile.am): Likewise.
27510         * modules/stdlib (Makefile.am): Likewise.
27511         * modules/string (Makefile.am): Likewise.
27512         * modules/strings (Makefile.am): Likewise.
27513         * modules/sys_file (Makefile.am): Likewise.
27514         * modules/sys_ioctl (Makefile.am): Likewise.
27515         * modules/sys_select (Makefile.am): Likewise.
27516         * modules/sys_socket (Makefile.am): Likewise.
27517         * modules/sys_stat (Makefile.am): Likewise.
27518         * modules/sys_time (Makefile.am): Likewise.
27519         * modules/sys_times (Makefile.am): Likewise.
27520         * modules/sys_utsname (Makefile.am): Likewise.
27521         * modules/sys_wait (Makefile.am): Likewise.
27522         * modules/sysexits (Makefile.am): Likewise.
27523         * modules/termios (Makefile.am): Likewise.
27524         * modules/time (Makefile.am): Likewise.
27525         * modules/unistd (Makefile.am): Likewise.
27526         * modules/wchar (Makefile.am): Likewise.
27527         * modules/wctype (Makefile.am): Likewise.
27528
27529 2010-10-04  Bruno Haible  <bruno@clisp.org>
27530
27531         read-file tests: Avoid a test failure on NonStop Kernel.
27532         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
27533         a regular file.
27534         Reported by Joachim Schmitz <schmitz@hp.com>.
27535
27536 2010-10-03  Bruno Haible  <bruno@clisp.org>
27537
27538         gnulib-tool: Fixes for --create-testdir with --libtool.
27539         * gnulib-tool (func_get_automake_snippet): Don't augment
27540         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
27541         an executable.
27542         (func_create_testdir): Handle module 'alloca' like func_import.
27543         Reported by Bruce Korb <bruce.korb@gmail.com>.
27544
27545 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27546
27547         Avoid some lines longer than 80 characters.
27548         * lib/stdint.in.h: Break long comment lines.
27549         * lib/math.in.h: Likewise.
27550         (_GL_NUM_UINT_WORDS): New macro, for readability.
27551         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
27552         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
27553         * lib/stdlib.in.h: Likewise.
27554         * lib/spawn.in.h: Likewise.
27555         * lib/sys_socket.in.h: Update an URL.
27556         * lib/sys_stat.in.h: Break long line.
27557
27558 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
27559
27560         Improve pmccabe2html.
27561         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
27562         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
27563         when the sources change. Remove the line in the HTML about "Used
27564         ranges" (which implied that there might be other unused ranges),
27565         rename "Resume" to "Summary" (easier to understand for more users).
27566         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
27567         styles, and some unnecessary blank lines.
27568
27569 2010-10-03  Bruno Haible  <bruno@clisp.org>
27570             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27571
27572         acl: Add support for ACLs on NonStop Kernel.
27573         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
27574         Check whether the function aclsort() exists.
27575         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
27576         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
27577         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27578         (acl_nontrivial [HAVE_ACLSORT]: New function.
27579         (file_has_acl): Implement for NonStop Kernel.
27580         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27581         (qset_acl): Implement for NonStop Kernel.
27582         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
27583         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27584         (main): Implement for NonStop Kernel.
27585         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
27586         Kernel. Handle this flavor.
27587         * tests/test-set-mode-acl.sh: Likewise.
27588         * tests/test-copy-acl.sh: Likewise.
27589         * tests/test-copy-file.sh: Likewise.
27590
27591 2010-10-03  Bruno Haible  <bruno@clisp.org>
27592
27593         Info about ACLs on NonStop Kernel.
27594         * doc/acl-resources.txt: Add info about NonStop Kernel.
27595         References by Joachim Schmitz <schmitz@hp.com>.
27596
27597 2010-10-02  Bruno Haible  <bruno@clisp.org>
27598
27599         Define missing EDQUOT on NonStop Kernel.
27600         * lib/errno.in.h (EDQUOT): Assign a value if missing.
27601         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
27602         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
27603         missing.
27604         * doc/posix-headers/errno.texi: Mention the NSK bug.
27605         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
27606         Reported by Joachim Schmitz <schmitz@hp.com>.
27607
27608 2010-10-02  Bruno Haible  <bruno@clisp.org>
27609
27610         Update doc for POSIX:2008.
27611         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
27612         Update URL of POSIX specification.
27613
27614 2010-10-02  Bruno Haible  <bruno@clisp.org>
27615
27616         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
27617         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
27618         from gnulib, not from Automake.
27619
27620 2010-10-02  Bruno Haible  <bruno@clisp.org>
27621
27622         New module 'system-posix'.
27623         * modules/system-posix: New file.
27624         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
27625         module is present.
27626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27627         GNULIB_SYSTEM_POSIX.
27628         * modules/stdlib (Depends-on): Remove sys_wait.
27629         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
27630         * doc/posix-functions/system.texi: Mention the new module.
27631         * doc/posix-headers/stdlib.texi: Likewise.
27632         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
27633         define test_sys_wait_macros to a no-op.
27634         Reported by Sam Steingold <sds@gnu.org>.
27635
27636 2010-09-30  Bruno Haible  <bruno@clisp.org>
27637
27638         More renaming from 'getdate' to 'get_date'.
27639         * doc/get_date.texi: Renamed from doc/getdate.texi.
27640         * modules/get_date (Files): Update.
27641         * MODULES.html.sh (Date and time <time.h>): Update.
27642         * DEPENDENCIES: Update.
27643         * gnulib-tool: Update comment.
27644         * m4/bison.m4 (gl_BISON): Likewise.
27645         * m4/get_date.m4 (gl_GET_DATE): Likewise.
27646
27647 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
27648
27649         bootstrap: support ACLOCAL_FLAGS during aclocal
27650         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
27651         can add additional -I dir for third-party .m4 files.
27652
27653 2010-09-30  Eric Blake  <eblake@redhat.com>
27654
27655         bootstrap: use glibtoolize on MacOS
27656         * build-aux/bootstrap (check_versions): Convert libtool into
27657         libtoolize.
27658         (tool search): Move libtool check earlier, and look for
27659         glibtoolize for MacOS.
27660         (gnulib_tool_options): Auto-add --libtool when appropriate.
27661         Reported by Justin Clift.
27662
27663         poll: fix typo that broke test on MacOS
27664         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
27665         Reported by Justin Clift.
27666
27667         getdate: rename to get_date
27668         Note: getdate.h is not renamed, to minimize client impact.
27669         * modules/getdate: Mark obsolete.  Move old contents...
27670         * modules/get_date: ...to new module name.
27671         * modules/getdate-tests: Move...
27672         * modules/get_date-tests: ...here.
27673         * m4/getdate.m4: Move...
27674         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
27675         * lib/getdate.y: Move...
27676         * lib/get_date.y: ...here.
27677         * tests/test-getdate.c: Move...
27678         * tests/test-get_date.c: ...here.
27679         * doc/posix-functions/getdate.texi (getdate): Update name.
27680         * NEWS: Mention the change.
27681
27682 2010-09-29  Bruno Haible  <bruno@clisp.org>
27683
27684         Separate the module 'waitpid' from the module 'sys_wait'.
27685         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
27686         present.
27687         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
27688         gl_MODULE_INDICATOR_FOR_TESTS.
27689         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
27690         * modules/sys_wait (Depends-on): Remove waitpid.
27691         (Makefile.am): Substitute GNULIB_WAITPID.
27692         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
27693         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
27694         signature only if the 'waitpid' module is present.
27695         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
27696         * NEWS: Mention the change.
27697         * modules/grantpt (Depends-on): Add waitpid.
27698         * modules/wait-process (Depends-on): Likewise.
27699
27700 2010-09-29  Bruno Haible  <bruno@clisp.org>
27701
27702         More tests for module 'sys_wait'.
27703         * modules/sys_wait-c++-tests: New file.
27704         * tests/test-sys_wait-c++.cc: New file.
27705         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
27706         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27707
27708 2010-09-29  Bruno Haible  <bruno@clisp.org>
27709
27710         New module 'waitpid'.
27711         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
27712         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
27713         Don't include <process.h>.
27714         (waitpid): Declare only, using modern idiom.
27715         * m4/waitpid.m4: New file.
27716         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
27717         * modules/waitpid: New file.
27718         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
27719         (Makefile.am): Update.
27720         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27721
27722 2010-09-28  Bruno Haible  <bruno@clisp.org>
27723
27724         poll: Assume ANSI C.
27725         * lib/poll.c (poll): Use an ANSI C declaration.
27726
27727 2010-09-28  Bruno Haible  <bruno@clisp.org>
27728
27729         poll-h: Create poll.h on all platforms.
27730         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
27731         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
27732         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
27733         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
27734         (gl_REPLACE_POLL_H): Don't set POLL_H.
27735         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
27736         * modules/poll-h (Depends-on): Add include_next.
27737         (Makefile.am): Create poll.h unconditionally. Substitute also
27738         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
27739
27740 2010-09-28  Bruno Haible  <bruno@clisp.org>
27741
27742         Tests for module 'poll-h'.
27743         * modules/poll-h-c++-tests: New file.
27744         * tests/test-poll-h-c++.cc: New file.
27745
27746         Tests for module 'poll-h'.
27747         * modules/poll-h-tests: New file.
27748         * tests/test-poll-h.c: New file.
27749
27750 2010-09-28  Bruno Haible  <bruno@clisp.org>
27751
27752         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
27753         * modules/poll-h (Depends-on): Add 'extensions'.
27754
27755 2010-09-28  Bruno Haible  <bruno@clisp.org>
27756
27757         New module 'poll-h'.
27758         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
27759         (poll): Use modern idiom.
27760         * modules/poll-h: New file.
27761         * modules/poll (Files): Remove lib/poll.in.h.
27762         (Depends-on): Add poll-h.
27763         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
27764         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
27765         * m4/poll_h.m4: New file.
27766         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
27767         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
27768         and invoke gl_REPLACE_POLL_H.
27769         * lib/poll.c: Use common idiom.
27770         * tests/test-poll.c: Likewise.
27771         * doc/posix-headers/poll.texi: Mention the poll-h module.
27772         Suggested by Eric Blake.
27773
27774 2010-09-26  Bruno Haible  <bruno@clisp.org>
27775
27776         sys_wait: Implement WSTOPSIG.
27777         * lib/sys_wait.in.h (WSTOPSIG): New macro.
27778         Reported by Simon Josefsson.
27779
27780 2010-09-26  Simon Josefsson  <simon@josefsson.org>
27781
27782         stdlib, sys_wait: Avoid compilation error on mingw.
27783         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
27784
27785 2010-09-26  Bruno Haible  <bruno@clisp.org>
27786
27787         stdlib tests: Avoid code duplication.
27788         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
27789         * modules/sys_wait-tests (Files): Likewise.
27790         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
27791         * tests/test-stdlib.c: Include test-sys_wait.h.
27792         (main): Invoke test_sys_wait_macros.
27793         * tests/test-sys_wait.c: Include test-sys_wait.h.
27794         (main): Invoke test_sys_wait_macros.
27795
27796 2010-09-25  Simon Josefsson  <simon@josefsson.org>
27797
27798         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
27799         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
27800         sure Windows sockets are working before calling getaddrinfo.
27801         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
27802         * doc/gnulib.texi (Windows sockets): Fix typo.
27803
27804 2010-09-25  Bruno Haible  <bruno@clisp.org>
27805
27806         Tests for module 'regex-quote'.
27807         * modules/regex-quote-tests: New file.
27808         * tests/test-regex-quote.c: New file.
27809
27810         New module 'regex-quote'.
27811         * lib/regex-quote.h: New file.
27812         * lib/regex-quote.c: New file.
27813         * modules/regex-quote: New file.
27814         Suggested by Reuben Thomas <rrt@sc3d.org>.
27815
27816 2010-09-24  Bruno Haible  <bruno@clisp.org>
27817
27818         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
27819         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
27820
27821 2010-09-23  Bruno Haible  <bruno@clisp.org>
27822
27823         setenv: Relax license.
27824         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
27825         Blake.
27826         Requested by Eric Blake.
27827
27828 2010-09-22  Bruno Haible  <bruno@clisp.org>
27829
27830         termios: Relax license.
27831         * modules/termios (License): Change to LGPLv2+.
27832         Requested by Eric Blake.
27833
27834 2010-09-22  Bruno Haible  <bruno@clisp.org>
27835
27836         threadlib: Allow the package to change the default to 'no'.
27837         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
27838         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
27839         Reported by Paul Eggert.
27840
27841 2010-09-22  Pádraig Brady  <P@draigbrady.com>
27842             Bruno Haible  <bruno@clisp.org>
27843
27844         Fix endless loop in mbmemcasecoll.
27845         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
27846         byte.
27847         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
27848
27849 2010-09-22  Bruno Haible  <bruno@clisp.org>
27850
27851         Tests for module 'memcoll'.
27852         * modules/memcoll-tests: New file.
27853         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
27854
27855         memcoll, xmemcoll: Clarify size vs. length.
27856         * modules/memcoll.c (memcoll0): Clarify specification.
27857         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
27858         passed to collate_error.
27859
27860 2010-09-22  Bruno Haible  <bruno@clisp.org>
27861
27862         Tests for module 'memcasecmp'.
27863         * modules/memcasecmp-tests: New file.
27864         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
27865
27866 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27867
27868         * lib/pthread.in.h: Add split double-inclusion guard, and include
27869         system <pthread.h> if there is one.  Use @@-style as in other
27870         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
27871         pthread.h doesn't.
27872         (pthread_mutexattr_destroy, pthread_mutexattr_init):
27873         (pthread_mutexattr_settype, pthread_mutex_trylock):
27874         New static inline functions, if there's no system <pthread.h>.
27875         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
27876         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
27877         Approximate with mutexes if the system lacks spinlocks, as in
27878         MacOS.
27879         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
27880         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
27881         @@-style.  Check for spinlocks separately.
27882         (gl_PTHREAD_DEFAULTS): New macro.
27883         * modules/pthread: Redo to use a more typical style for in.h files.
27884
27885 2010-09-21  Eric Blake  <eblake@redhat.com>
27886
27887         net_if: enhance tests
27888         * tests/test-net_if.c (main): Move signature checks earlier.
27889         Print failures to stderr.
27890         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
27891         Document the bug that we do not yet fix.
27892
27893 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27894
27895         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
27896         about gnulib, not GSS.
27897
27898 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27899
27900         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
27901         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
27902         for Emacs.
27903         * build-aux/pmccabe2html: Make Makefile.am example code more
27904         cut-and-paste friendly.
27905
27906 2010-09-21  Simon Josefsson  <simon@josefsson.org>
27907
27908         * tests/test-net_if.c: New file.
27909         * modules/net_if-tests: New file.
27910
27911 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27912
27913         pthread: add pthread_spin_destroy
27914         * lib/pthread.in.h (pthread_spin_destroy): New function.
27915
27916 2010-09-19  Bruno Haible  <bruno@clisp.org>
27917
27918         gnulib-tool: Fix --help output.
27919         * gnulib-tool (func_usage): Fix help message.
27920         Reported by Reuben Thomas <rrt@sc3d.org>.
27921
27922 2010-09-18  Jim Meyering  <meyering@redhat.com>
27923
27924         maint.mk: avoid unexpanded \n in two diagnostics
27925         * top/maint.mk (sc_prohibit_always_true_header_tests):
27926         Don't use a literal \n in a halt=... assignment.  It would not be
27927         expanded, and the two \n bytes would appear in the diagnostic output
27928         rather than the desired newline.  Use halt=$$(printf ... instead.
27929         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27930
27931 2010-09-18  Bruno Haible  <bruno@clisp.org>
27932
27933         netinet_in: Doc tweak.
27934         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
27935         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27936
27937 2010-09-18  Jim Meyering  <meyering@redhat.com>
27938
27939         init.sh: correct an outdated comment
27940         * tests/init.sh (create_exe_shims_):  s/function/alias/
27941
27942         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
27943         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
27944         a file named "*.exe" is removed between the glob expansion and the
27945         processing of that oddly named file.
27946
27947 2010-09-17  Eric Blake  <eblake@redhat.com>
27948
27949         mirbsd: add some more support
27950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
27951         in BSD family.
27952         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
27953         devices as OpenBSD.
27954         * m4/host-os.m4 (mirbsd): Add MirBSD.
27955
27956         tests: fix unportable assumption on sys/wait.h
27957         * tests/test-sys_wait.c (main): Relax test.
27958         * tests/test-stdlib.c (main): Likewise.
27959
27960         init.sh: accommodate directory with no .exes
27961         * tests/init.sh: Accomodate directory containing only scripts.
27962
27963         tests: avoid compiler warning
27964         * tests/test-stdlib.c (main): Use the variable.
27965
27966         fdutimens, fdutimensat: update signature, again
27967         * lib/utimens.h (gl_futimens): Delete, and move signature...
27968         (fdutimens): ...here.
27969         (fdutimensat): Rearrange signature.
27970         (lutimensat): Rename variable for clarity.
27971         * lib/fdutimensat.c (fdutimensat): Update signature.
27972         * lib/utimens.c (fdutimens): Likewise.
27973         (gl_futimens): Delete.
27974         (utimens, lutimens): Update callers.
27975         * lib/futimens.c (futimens): Likewise.
27976         * tests/test-fdutimensat.c: Likewise.
27977         * tests/test-utimens.c: Likewise.
27978         * tests/test-futimens.h: Update comment.
27979         * NEWS: Mention this.
27980         Suggested by Paul Eggert.
27981
27982 2010-09-17  Bruno Haible  <bruno@clisp.org>
27983
27984         Take over the maintenance of some older macros from Autoconf.
27985         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
27986         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
27987         GNU Autoconf.
27988         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
27989         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
27990
27991 2010-09-17  Eric Blake  <eblake@redhat.com>
27992
27993         fdutimensat: drop atflag validation
27994         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
27995         with valid fd, to close a race scenario where futimens is
27996         unsupported and FILE was replaced by a symlink.
27997         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
27998         accordingly.
27999         Suggested by Paul Eggert.
28000
28001 2010-09-16  Bruno Haible  <bruno@clisp.org>
28002
28003         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28004         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28005
28006 2010-09-16  Bruno Haible  <bruno@clisp.org>
28007
28008         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28009         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28010         login_tty exists.
28011         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28012
28013 2010-09-16  Bruno Haible  <bruno@clisp.org>
28014
28015         login_tty: Make the replacement code work on BSD systems.
28016         * lib/login_tty.c: Include <sys/ioctl.h>.
28017         (login_tty): Use ioctl TIOCSCTTY when available.
28018         * modules/login_tty (Depends-on): Add sys_ioctl.
28019         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28020
28021 2010-09-16  Bruno Haible  <bruno@clisp.org>
28022
28023         login_tty: Stricter unit test.
28024         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28025         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28026         and tcgetsid() after login_tty.
28027         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28028
28029 2010-09-16  Bruno Haible  <bruno@clisp.org>
28030
28031         New module 'tcgetsid'.
28032         * lib/tcgetsid.c: New file.
28033         * m4/tcgetsid.m4: New file.
28034         * modules/tcgetsid: New file.
28035         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28036         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28037         GNULIB_TCGETSID, HAVE_TCGETSID.
28038         * lib/termios.in.h: Include <sys/types.h>.
28039         (tcgetsid): New declaration.
28040         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28041         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28042         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28043         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28044
28045 2010-09-16  Bruno Haible  <bruno@clisp.org>
28046
28047         Tests for module 'termios'.
28048         * modules/termios-c++-tests: New file.
28049         * modules/termios-tests: New file.
28050         * tests/test-termios-c++.cc: New file.
28051         * tests/test-termios.c: New file.
28052
28053         New module 'termios'.
28054         * modules/termios: New file.
28055         * lib/termios.in.h: New file.
28056         * m4/termios_h.m4: New file.
28057         * doc/posix-headers/termios.texi: Mention the new module.
28058
28059 2010-09-16  Eric Blake  <eblake@redhat.com>
28060
28061         fdutimensat: add an atflag parameter
28062         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28063         * lib/utimens.h (fdutimensat): Update prototype.
28064         * tests/test-fdutimensat.c: Adjust test to match.
28065         * NEWS: Document the change.
28066         Suggested by Paul Eggert.
28067
28068 2010-09-16  Bruno Haible  <bruno@clisp.org>
28069
28070         Fix typos in comments.
28071         * lib/striconveh.h: Fix typo in comment.
28072         * lib/login_tty.c (login_tty): Likewise.
28073
28074 2010-09-15  Bruno Haible  <bruno@clisp.org>
28075
28076         stdlib: clarify MirBSD WEXITSTATUS bug
28077         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28078         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28079
28080 2010-09-15  Eric Blake  <eblake@redhat.com>
28081
28082         stdlib: work around MirBSD WEXITSTATUS bug
28083         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28084         * modules/stdlib (Depends-on): Add sys_wait.
28085         * tests/test-sys_wait.c (main): Enhance test.
28086         * tests/test-stdlib.c (main): Likewise.
28087         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28088
28089         docs: mention MacOS issue with WEXITSTATUS(constant)
28090         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28091         issue.
28092         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28093
28094         strnlen: add tests
28095         * modules/strnlen-tests: New file.
28096         * tests/test-strnlen.c: Likewise.
28097
28098 2010-09-14  Bruno Haible  <bruno@clisp.org>
28099
28100         unistr/base: Avoid link errors when module 'libunistring' is also used.
28101         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28102         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28103         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28104         Declare also when HAVE_LIBUNISTRING is set.
28105         Reported by Pádraig Brady <P@draigbrady.com>.
28106
28107 2010-09-14  Eric Blake  <eblake@redhat.com>
28108
28109         test-rawmemchr: make more robust
28110         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28111         (Depends-on, configure.ac): Add needed prerequisites to use it.
28112         * modules/memchr-tests (Files, Depends-on, configure.ac):
28113         Likewise, to avoid implicit reliance on memchr module prereqs.
28114         * tests/test-memchr.c (main): Ensure proper masking.
28115         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28116         reads.
28117
28118         memchr: detect glibc Alpha bug
28119         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28120         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28121         Alpha.
28122         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28123         * tests/test-memchr.c (main): Enhance test.
28124         Reported by Nelson H. F. Beebe.
28125
28126 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28127
28128         fts, getcwd, glob: audit for dirfd returning -1
28129         * lib/fts.c (opendir): Remove #define; no longer used.
28130         (opendirat): New arg PDIR_FD.  All callers changed.
28131         (fts_build, _opendir2): Use new opendirat to avoid the need for
28132         dirfd, or for checking whether dirfd returns a negative value.
28133         Don't use opendir; always use openat followed by fdopendir.
28134         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28135         it.
28136         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28137         returns -1 here.
28138         * modules/fts (Depends-on): Remove dirfd.
28139         * modules/getcwd (Depends-on): Likewise.
28140
28141 2010-09-13  Eric Blake  <eblake@redhat.com>
28142
28143         float: fix broken MirBSD header
28144         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28145         * doc/posix-headers/float.texi (float.h): Document it.
28146
28147 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28148
28149         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28150         * lib/fts.c (opendirat): New arg extra_flags.
28151         (__opendir2): Use it to avoid following symlinks when opening
28152         a directory, if symlinks are not supposed to be followed.  See
28153         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28154
28155         fdopendir: preserve argument fd before returning
28156         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28157         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28158         (fdopendir): Use them, arranging for FD to be open to the same
28159         directory that it was when it started.  (It might be temporarily
28160         closed while fdopendir is running, so this not thread- or
28161         signal-safe.)  Be careful to do the right thing even when file
28162         descriptors are scarce and dup fails with errno == EMFILE.  See
28163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28164
28165 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28166
28167         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28168         * NEWS: Document change.
28169         * m4/regex.m4: Disable test for regoff_t size.
28170
28171 2010-09-13  Jim Meyering  <meyering@redhat.com>
28172
28173         fts: don't operate on an invalid file descriptor after failed dup
28174         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28175         negative file descriptor.
28176
28177 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28178
28179         savedir: add streamsavedir, deprecate fdsavedir
28180         * NEWS: Mention deprecation of fdsavedir.
28181         * lib/savedir.c (streamsavedir): New extern function, whose name
28182         ends in "savedir" to be consistent with the others.  This differs
28183         from savedirstream in that it doesn't close its argument.  The
28184         next version of GNU tar will use this instead of fdsavedir, to
28185         avoid some race conditions and conserve file descriptors.
28186         (savedirstream): Reimplement as a wrapper around streamsavedir.
28187         (fdsavedir): Add a comment deprecating this function.  As far as
28188         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28189         * lib/savedir.h (streamsavedir): New decl.
28190         (fdsavedir): Add a comment deprecating this.
28191
28192 2010-09-10  Bruno Haible  <bruno@clisp.org>
28193
28194         langinfo: Fix last commit.
28195         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28196         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28197         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28198
28199 2010-09-10  Bruno Haible  <bruno@clisp.org>
28200
28201         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28202         * lib/progreloc.c (O_EXEC): Define fallback.
28203
28204 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28205
28206         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28207         * NEWS: Document recent changes to fcntl-h.
28208         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28209         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28210         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28211         Similarly for O_SEARCH; this last was already true, but not documented.
28212         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28213         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28214         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28215         Likewise.
28216         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28217         is zero, not whether it is defined.
28218         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28219         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28220         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28221
28222 2010-09-10  Bruno Haible  <bruno@clisp.org>
28223
28224         langinfo, nl_langinfo: Fix for IRIX 5.3.
28225         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28226         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28227         HAVE_LANGINFO_YESEXPR.
28228         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28229         HAVE_LANGINFO_YESEXPR.
28230         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28231         HAVE_LANGINFO_T_FMT_AMPM is 0.
28232         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28233         HAVE_LANGINFO_YESEXPR is 0.
28234         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28235         NOEXPR.
28236         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28237         * doc/posix-functions/nl_langinfo.texi: Likewise.
28238         Reported by Eric Blake.
28239
28240 2010-09-10  Bruno Haible  <bruno@clisp.org>
28241
28242         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28243         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28244         on FreeBSD 8.0 and OpenBSD 4.6.
28245         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28246         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28247         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28248         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28249         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28250         ac_includes_default.
28251         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28252
28253 2010-09-09  Eric Blake  <eblake@redhat.com>
28254
28255         strsignal: work around NetBSD bug
28256         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28257         * lib/string.in.h (includes): Likewise.
28258         * doc/posix-functions/strsignal.texi (strsignal): Document the
28259         bug.
28260         Reported by Nelson H. F. Beebe.
28261
28262         gnulib-tool: work with NetBSD /bin/sh
28263         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28264         (func_get_description, func_get_comment, func_get_status)
28265         (func_get_notice, func_get_applicability, func_get_filelist)
28266         (func_get_dependencies, func_get_autoconf_early_snippet)
28267         (func_get_autoconf_snippet, func_get_automake_snippet)
28268         (func_get_include_directive, func_get_link_directive)
28269         (func_get_license, func_get_maintainer, func_import): Avoid
28270         shell syntax errors from parsing syntax extensions.
28271
28272 2010-09-09  Bruno Haible  <bruno@clisp.org>
28273
28274         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28275         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28276         a reliable way to determine whether the 'alias' command works.
28277
28278 2010-09-08  Jim Meyering  <meyering@redhat.com>
28279
28280         init.sh: penalize a set-x-impaired shell; don't disqualify it
28281         * tests/init.sh: Too many shells corrupt application stderr when
28282         you set -x, so we can't afford to disqualify them, since at least
28283         on Irix-6.5, that would disqualify all bourne shells.
28284         Instead, use a two-pass approach.
28285         On the first pass, try to find a shell that meets the stricter
28286         condition that set -x does not corrupt stderr.
28287         If no shell meets the stricter condition, retest each candidate
28288         shell, but without that extra condition.  Finally, when
28289         VERBOSE=yes is requested and set -x might cause trouble, simply
28290         issue a warning and refrain from enabling debug output.
28291
28292 2010-09-08  Eric Blake  <eblake@redhat.com>
28293
28294         unsetenv: fix OpenBSD bug
28295         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28296         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28297         documentation.
28298         Reported by Jim Meyering.
28299
28300         strtod: work around IRIX 6.5 bug
28301         * lib/strtod.c (strtod): Reparse number on shorter string if
28302         exponent parse was invalid.
28303         * tests/test-strtod.c (main): Add check for "0x1p 2".
28304         Reported by Tom G. Christensen.
28305
28306         getopt: optimize previous patch
28307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28308         empty variable.  Speed up awk script.
28309         Reported by Paolo Bonzini.
28310
28311 2010-09-08  Jim Meyering  <meyering@redhat.com>
28312
28313         test.sh: disqualify shells for which set -x corrupts stderr
28314         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28315         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28316         appear in stderr output.  For example, this command:
28317             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28318         prints "P=1" on those two systems:
28319
28320 2010-09-08  Bruno Haible  <bruno@clisp.org>
28321
28322         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28323         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28324         commands, because some shells ignore redirections when there is an
28325         error in the command lookup.
28326         Reported by Eric Blake.
28327
28328 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28329
28330         * lib/regex.h: Fix a mention of `regex_compile' (should be
28331         `re_compile_pattern').
28332         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28333         (re_set_registers): Correct name of parameter in comment.
28334
28335         * doc/regex.texi: Add documentation for missing syntax flags.
28336         Remove commented-out documentation of defunct syntax option
28337         RE_NO_EMPTY_ALTS.
28338         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28339         Add documentation of re_set_registers.
28340         Document trick to re-use a pattern buffer by setting fastmap manually.
28341         Update documentation of struct re_pattern_buffer per public members.
28342         Uncomment documentation of equivalence class operators and
28343         collating symbol operators, since they are now implemented,
28344         Explain leftmost-longest matching in relation to alternatives.
28345         Tidy documentation of substring matching.
28346         Remove POSIX documentation, which is done better in
28347         glibc, and refer the reader there. Keep BSD API documentation, as
28348         that is not readily available elsewhere.
28349
28350 2010-09-07  Eric Blake  <eblake@redhat.com>
28351
28352         getopt: handle POSIXLY_CORRECT set but not exported
28353         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28354         export state of POSIXLY_CORRECT, due to bash set -o posix.
28355         Reported by Dustin J. Mitchell.
28356
28357 2010-09-05  Bruno Haible  <bruno@clisp.org>
28358
28359         gnulib-tool: Highlight the changed options.
28360         * gnulib-tool (func_usage): Display the --import, --add-import,
28361         --remove-import explanations in bold font.
28362
28363 2010-09-06  Karl Berry  <karl@gnu.org>
28364
28365         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28366
28367 2010-09-05  Bruno Haible  <bruno@clisp.org>
28368
28369         uniwidth/width: Update comment.
28370         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28371         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28372
28373 2010-09-05  Bruno Haible  <bruno@clisp.org>
28374
28375         isinf, isnan: Relax license.
28376         * modules/isinf (License): Change from GPL to LGPL, with consent from
28377         Ben Pfaff.
28378         * modules/isnan (License): Likewise.
28379         Requested by Ludovic Courtès.
28380
28381 2010-09-04  Bruno Haible  <bruno@clisp.org>
28382
28383         gnulib-tool: Help migration from --import to --add-import or --update.
28384         * gnulib-tool: Emit a verbose error message when --import is used
28385         without any module name.
28386
28387 2010-09-04  Bruno Haible  <bruno@clisp.org>
28388
28389         Update doc about gnulib-tool.
28390         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28391         'gnulib-tool --update' in more detail.
28392         Reported by Eric Blake.
28393
28394 2010-09-04  Bruno Haible  <bruno@clisp.org>
28395
28396         gnulib-tool: Change --import. New options --add/remove-import.
28397         * gnulib-tool: New options --add-import, --remove-import.
28398         (func_usage): Document them.
28399         (have_associative): Define always.
28400         (func_import): In import mode, don't merge the specified settings with
28401         the cached settings. Implement remove-import mode.
28402         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28403         Explain when to use them versus --import.
28404         (Simple update): Use --add-import instead of --import.
28405         * NEWS: Mention the change.
28406
28407 2010-09-04  Bruno Haible  <bruno@clisp.org>
28408
28409         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28410         separate gnulib.mk.
28411
28412 2010-09-04  Bruno Haible  <bruno@clisp.org>
28413
28414         gnulib-tool: Don't talk about CVS any more.
28415         * gnulib-tool (func_usage, func_import): Write "version control"
28416         instead of CVS.
28417
28418 2010-09-04  Jim Meyering  <meyering@redhat.com>
28419
28420         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28421         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28422         false positives (whose names may be ill-chosen) when searching
28423         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28424         would cause a false-positive.
28425
28426         avoid coreutils "make distcheck" failure
28427         Coreutils tests with an absolute build directory name that contains
28428         a space.  Not quoting this directory name caused a failure.
28429         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28430         * tests/test-vc-list-files-cvs.sh: Likewise.
28431
28432 2010-09-04  Bruno Haible  <bruno@clisp.org>
28433
28434         gnulib-tool: Avoid error when run in a package without Makefile.am.
28435         * gnulib-tool: When collecting the m4dirs in a package that does not
28436         have a Makefile.am, eliminate those directories that contain no
28437         gnulib-cache.m4. Fix expression that counts these directories.
28438
28439 2010-09-04  Bruno Haible  <bruno@clisp.org>
28440
28441         update-copyright test: Improve output when perl is missing or too old.
28442         * tests/test-update-copyright.sh: Move test of Perl version down after
28443         the test whether Perl exists. Provide an explanation relating Perl's
28444         error message to Automake's SKIP: message.
28445
28446 2010-09-04  Bruno Haible  <bruno@clisp.org>
28447
28448         Don't augment PATH in TESTS_ENVIRONMENT.
28449         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28450         set abs_aux_dir instead of augmenting PATH.
28451         * modules/vc-list-files-tests (Makefile.am): Likewise.
28452         * tests/test-update-copyright.sh: Augment PATH here.
28453         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28454         path_prepend_.
28455         * tests/test-vc-list-files-git.sh: Likewise.
28456
28457 2010-09-04  Jim Meyering  <meyering@redhat.com>
28458
28459         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28460         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28461
28462 2010-09-04  Bruno Haible  <bruno@clisp.org>
28463
28464         strdup: Fix compilation error in C++ mode.
28465         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28466         the macro.
28467
28468 2010-09-04  Bruno Haible  <bruno@clisp.org>
28469
28470         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28471         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28472         macro into a function.
28473         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28474
28475 2010-09-04  Bruno Haible  <bruno@clisp.org>
28476
28477         Set PATH_SEPARATOR the same way autoconf does.
28478         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28479         the value of PATH_SEPARATOR the same way autoconf-generated configure
28480         scripts do.
28481         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28482         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28483
28484 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28485
28486         Set PATH_SEPARATOR the same way autoconf does.
28487         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28488         the same way autoconf-generated configure scripts do.
28489         * posix-modules: Likewise.
28490
28491 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28492
28493         hash: fix safe_hasher const typo
28494         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28495         const; otherwise, there is a type error later.
28496
28497 2010-09-02  Jim Meyering  <meyering@redhat.com>
28498
28499         test-update-copyright.sh: require perl 5.8.0
28500         * tests/test-update-copyright.sh: Require 5.8.0,
28501         which Tom G. Christensen has confirmed is adequate,
28502         while 5.6.1 is not.
28503
28504 2010-09-02  Eric Blake  <eblake@redhat.com>
28505
28506         tests: init.sh improvements for re-exec'ing with zsh
28507         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28508         -vx through shell re-exec.
28509         Reported by Tom G. Christensen.
28510
28511         wctype: fix typo in previous commit
28512         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28513         Reported by Ludovic Courtès.
28514
28515 2010-09-02  Jim Meyering  <meyering@redhat.com>
28516
28517         test-update-copyright.sh: skip test if Perl is too old
28518         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28519         Reported by Tom G. Christensen.
28520
28521 2010-09-02  Bruno Haible  <bruno@clisp.org>
28522
28523         wctype: Avoid compilation error on IRIX 6.5.30.
28524         * lib/wctype.in.h (iswblank): Declare with a replacement if
28525         REPLACE_ISWBLANK is set.
28526         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
28527         declared. Set REPLACE_ISWBLANK.
28528         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
28529         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
28530         * doc/posix-headers/wctype.texi: Likewise.
28531         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28532
28533 2010-09-01  Bruno Haible  <bruno@clisp.org>
28534
28535         New module 'socketlib'.
28536         * modules/socketlib: New file.
28537         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
28538         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
28539         * modules/sockets (Depends-on): Add socketlib.
28540         Suggested by Sam Steingold <sds@gnu.org>.
28541
28542 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28543
28544         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
28545
28546         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
28547         when one needs search access to a directory but not read access.
28548         On systems where it is available, it works in some cases where
28549         O_RDONLY does not, namely on directories that are searchable but
28550         not readable, and which need only to be searchable.  If O_SEARCH
28551         is not available, fall back to the traditional method of using
28552         O_RDONLY.
28553
28554         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
28555         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
28556         when opening a directory that needs only to be searchable.
28557         * lib/chdir-safer.c (chdir_no_follow): Likewise.
28558         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
28559         * lib/openat-proc.c (openat_proc_name): Likewise.
28560         * lib/openat.c (openat_needs_fchdir): Likewise.
28561         * lib/save-cwd.c (save_cwd): Likewise.
28562         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
28563
28564 2010-08-28  Bruno Haible  <bruno@clisp.org>
28565
28566         New module 'host-cpu-c-abi'.
28567         * modules/host-cpu-c-abi: New file.
28568         * m4/host-cpu-c-abi.m4: New file, based on part of
28569         clisp/src/m4/general.m4.
28570         Requested by Sam Steingold <sds@gnu.org>.
28571
28572 2010-08-31  Eric Blake  <eblake@redhat.com>
28573         and Jim Meyering  <meyering@redhat.com>
28574
28575         hash: factor, and guard against misbehaving hasher function
28576         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
28577         of table->hasher's return value.  Also protect against a hash value
28578         so large that adding it to table->bucket results in a NULL pointer.
28579         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
28580         Use it in place of open-coded check-and-abort.
28581
28582 2010-08-30  Bruno Haible  <bruno@clisp.org>
28583
28584         hash: silence spurious clang warning
28585         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
28586         Reported by Eric Blake.
28587
28588 2010-08-30  Eric Blake  <eblake@redhat.com>
28589
28590         strstr, memmem, strcasestr: avoid leaked shell message
28591         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
28592         FreeBSD.
28593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28595
28596         tests: silence clang warning
28597         * tests/test-malloca.c (do_allocation): Avoid dead store.
28598
28599 2010-08-29  Bruno Haible  <bruno@clisp.org>
28600
28601         gettext: Fix recent mistake.
28602         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
28603
28604 2010-08-29  Bruno Haible  <bruno@clisp.org>
28605
28606         selinux-h: Offer a --without-selinux option.
28607         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
28608         --without-selinux was specified, skip all tests and define
28609         HAVE_SELINUX_SELINUX_H to 0.
28610         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
28611         set LIB_SELINUX to empty.
28612         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
28613         gl_LIBSELINUX. If --without-selinux was specified, replace
28614         selinux/context.h.
28615         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
28616
28617 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28618             Bruno Haible  <bruno@clisp.org>
28619
28620         Make the module 'realloc-gnu' work again on AIX and OSF/1.
28621         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
28622         of HAVE_REALLOC.
28623         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
28624         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
28625         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
28626         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28627
28628 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28629             Bruno Haible  <bruno@clisp.org>
28630
28631         Make the module 'calloc-gnu' work again on AIX and OSF/1.
28632         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
28633         HAVE_CALLOC.
28634         * lib/xmalloc.c: Update accordingly.
28635         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
28636         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
28637         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
28638
28639 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28640             Bruno Haible  <bruno@clisp.org>
28641
28642         Make the module 'malloc-gnu' work again on AIX and OSF/1.
28643         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
28644         HAVE_MALLOC.
28645         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
28646         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
28647         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28648
28649 2010-08-29  Bruno Haible  <bruno@clisp.org>
28650
28651         Update modules list.
28652         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28653         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
28654         (String handling <string.h>): Add astrxfrm.
28655         (File system functions): Add readlinkat.
28656
28657 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28658
28659         Tests for module 'realloc-gnu'.
28660         * modules/realloc-gnu-tests: New file.
28661         * tests/test-realloc-gnu.c: New file.
28662
28663         Tests for module 'calloc-gnu'.
28664         * modules/calloc-gnu-tests: New file.
28665         * tests/test-calloc-gnu.c: New file.
28666
28667         Tests for module 'malloc-gnu'.
28668         * modules/malloc-gnu-tests: New file.
28669         * tests/test-malloc-gnu.c: New file.
28670
28671 2010-08-28  Bruno Haible  <bruno@clisp.org>
28672
28673         Rename module 'realloc' -> 'realloc-gnu'.
28674         * modules/realloc-gnu: New file, copied from modules/realloc.
28675         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
28676         obsolete.
28677         * modules/mgetgroups (Depends-on): Update.
28678         * doc/posix-functions/realloc.texi: Update.
28679         * NEWS: Mention the change.
28680
28681         Rename module 'calloc' -> 'calloc-gnu'.
28682         * modules/calloc-gnu: New file, copied from modules/calloc.
28683         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
28684         obsolete.
28685         * doc/posix-functions/calloc.texi: Update.
28686         * NEWS: Mention the change.
28687
28688         Rename module 'malloc' -> 'malloc-gnu'.
28689         * modules/malloc-gnu: New file, copied from modules/malloc.
28690         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
28691         obsolete.
28692         * modules/argp (Depends-on): Update.
28693         * modules/regex (Depends-on): Update.
28694         * doc/posix-functions/malloc.texi: Update.
28695         * NEWS: Mention the change.
28696
28697 2010-08-28  Eric Blake  <eblake@redhat.com>
28698
28699         pread, pwrite: add missing dependency
28700         * modules/pread (Depends-on): Add extensions.
28701         * modules/pwrite (Depends-on): Likewise.
28702
28703 2010-08-28  Bruno Haible  <bruno@clisp.org>
28704
28705         unistr/u*-strchr: Fix tests dependencies.
28706         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
28707         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
28708         Reported by Ian Beckwith <ianb@erislabs.net>.
28709
28710 2010-08-28  Bruno Haible  <bruno@clisp.org>
28711
28712         read-file: Don't occupy too much unused memory.
28713         * lib/read-file.c (fread_file): Shrink the buffer at the end.
28714
28715 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
28716             Eric Blake  <eblake@redhat.com>
28717             Bruno Haible  <bruno@clisp.org>
28718
28719         read-file: Avoid memory reallocations with regular files.
28720         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
28721         (fread_file): With regular files, use the remaining length as the
28722         initial buffer size.  Check against overflow.
28723         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
28724         sys_stat.
28725
28726 2010-08-28  Bruno Haible  <bruno@clisp.org>
28727
28728         ftello: Relax license.
28729         * modules/ftello (License): Relax to LGPLv2+.
28730         Reported by Eric Blake.
28731
28732 2010-08-28  Bruno Haible  <bruno@clisp.org>
28733
28734         Avoid relocwrapper link errors due to gnulib replacement functions.
28735         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
28736         function.
28737         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28738
28739 2010-08-28  Bruno Haible  <bruno@clisp.org>
28740
28741         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
28742         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
28743         defined.
28744         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
28745         Suggested by Eric Blake.
28746
28747 2010-08-28  Bruno Haible  <bruno@clisp.org>
28748
28749         sys_socket, netdb: Ensure socklen_t gets defined.
28750         * modules/sys_socket (Depends-on): Add socklen.
28751         * modules/netdb (Depends-on): Likewise.
28752         * modules/getaddrinfo (Depends-on): Remove socklen.
28753         * modules/getsockopt (Depends-on): Likewise.
28754         * modules/setsockopt (Depends-on): Likewise.
28755         * tests/test-sys_socket.c: Check that socklen_t is defined.
28756         * tests/test-netdb.c: Likewise.
28757         * m4/socklen.m4: Update comments.
28758         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28759
28760 2010-08-27  Eric Blake  <eblake@redhat.com>
28761
28762         login_tty: add missing dependency
28763         * modules/login_tty (Depends-on): Add pty.
28764
28765 2010-08-26  Eric Blake  <eblake@redhat.com>
28766
28767         lib-symbol-versions: fix m4 quoting
28768         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
28769         format for AC_LINK_IFELSE.
28770
28771         glob: fix compile test
28772         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
28773
28774         btowc: fix missing file
28775         * modules/btowc (Files): Also ship locale-fr.m4.
28776
28777         lseek: fix link test
28778         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
28779         AC_LINK_IFELSE.
28780
28781         include_next: silence autoconf 2.68 warning
28782         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
28783         AC_COMPILE_IFELSE as special.
28784         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
28785         autoconf < 2.68.
28786
28787         acl: fix compilation test
28788         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
28789         AC_COMPILE_IFELSE.
28790
28791 2010-08-26  Bruno Haible  <bruno@clisp.org>
28792
28793         Modernize AC_TRY_RUN invocations.
28794         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
28795         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28796         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
28797         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
28798         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
28799         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28800         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28801         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28802         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28803         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28804         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28805         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28806         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28807         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28808         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28809         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28810         gl_MBRLEN_NUL_RETVAL): Likewise.
28811         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28812         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28813         Likewise.
28814         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28815         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28816         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28817         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28818         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
28819         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
28820         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
28821         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28822         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
28823         Likewise.
28824         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28825         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
28826         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28827         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28828         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28829         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28830         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28831         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
28832         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28834
28835 2010-08-26  Bruno Haible  <bruno@clisp.org>
28836
28837         Modernize AC_TRY_LINK invocations.
28838         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
28839         AC_TRY_LINK.
28840         * m4/argp.m4 (gl_ARGP): Likewise.
28841         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28842         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28843         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28844         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28845         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28846         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
28847         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28848         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28849         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28850         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28851         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28852         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
28853         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
28854         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28855         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28856         * m4/hostent.m4 (gl_HOSTENT): Likewise.
28857         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28858         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
28859         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28860         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
28861         Likewise.
28862         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
28863         Likewise.
28864         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
28865         Likewise.
28866         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28867         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
28868         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
28869         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28870         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28871         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28872         * m4/servent.m4 (gl_SERVENT): Likewise.
28873         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28874         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28875         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28876         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28877         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28878         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28879         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28880         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28881         * modules/tsearch-tests (configure.ac): Likewise.
28882
28883 2010-08-26  Bruno Haible  <bruno@clisp.org>
28884
28885         Modernize AC_TRY_COMPILE invocations.
28886         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
28887         AC_TRY_COMPILE.
28888         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
28889         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
28890         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28891         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
28892         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28893         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28894         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28895         * m4/lock.m4 (gl_LOCK): Likewise.
28896         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
28897         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28898         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
28899         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28900         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28901         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
28902         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28903         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
28904         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28905         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28906         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28907         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28908         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
28909         extraneous semicolon.
28910
28911 2010-08-26  Jim Meyering  <meyering@redhat.com>
28912
28913         stat-time: relax license LGPL
28914         * modules/stat-time (License): Change from GPL to LGPL,
28915         with consent from all contributors, for use in libguile.
28916         Requested by Ludovic Courtès.
28917
28918 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
28919
28920         poll: return immediately on POLLHUP.
28921         * lib/poll.c (poll): Always set timeout before wait_timeout is
28922         computed.
28923
28924 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28925
28926         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
28927         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
28928         rmdir ("dir/.//"), unlinkat.
28929
28930 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28931
28932         stdbool: avoid spurious failure with modern xlc
28933         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28934
28935 2010-08-24  Bruno Haible  <bruno@clisp.org>
28936
28937         getloadavg: simplify code
28938         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
28939         gl_have_func. Update comments.
28940
28941 2010-08-24  Eric Blake  <eblake@redhat.com>
28942
28943         getloadavg: don't define SVR4 on cygwin
28944         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
28945         only define SVR4 when -lkvm is required.
28946         Reported by Yaakov Selkowitz.
28947
28948 2010-08-24  Bruno Haible  <bruno@clisp.org>
28949
28950         priv-set: fix comment
28951         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
28952
28953 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28954
28955         priv-set: fix comments
28956         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
28957         to match code, as suggested by David Bartley in:
28958         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
28959
28960 2010-08-23  Eric Blake  <eblake@redhat.com>
28961
28962         stdbool: avoid rejecting clang
28963         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28964         * tests/test-stdbool.c: Enable more tests if using the system
28965         <stdbool.h> instead of the gnulib replacement.
28966         (main): Move xlc bug test to a runtime test for all compilers.
28967         Reported by Anders Kaseorg.
28968
28969         argz: fix shell quoting issue
28970         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
28971         Reported by Charles Wilson.
28972
28973 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
28974             Erik Faye-Lund <kusmabite@gmail.com>
28975
28976         poll, select: handle ERROR_BROKEN_PIPE.
28977         * lib/poll.c (win32_compute_revents): Return POLLHUP when
28978         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28979         * lib/select.c (win32_compute_revents): Do not mark a pipe
28980         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28981
28982 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
28983
28984         fts: allow compilation with C++
28985         * lib/fts_.h: Specify extern "C" linkage with C++.
28986
28987 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28988
28989         Fix gnulib-tool sed script de-commentation for AIX sed.
28990         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
28991         sed.
28992
28993 2010-08-17  Eric Blake  <eblake@redhat.com>
28994
28995         test-stddef: test for (some) offsetof bugs
28996         * tests/test-stddef.c: Enhance test to ensure correct type of
28997         offsetof.
28998         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
28999         that we are not fixing at this time.
29000
29001 2010-08-15  Bruno Haible  <bruno@clisp.org>
29002
29003         stpncpy: Allow stpncpy to be defined as a macro.
29004         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29005         if it's already correctly declared.
29006         * lib/string.in.h (stpncpy): Undefine before redefining.
29007         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29008
29009 2010-08-14  Bruno Haible  <bruno@clisp.org>
29010
29011         Rename module 'memxfrm' to 'amemxfrm'.
29012         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29013         (amemxfrm): Renamed from memxfrm.
29014         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29015         (amemxfrm): Renamed from memxfrm.
29016         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29017         * NEWS: Mention the change.
29018         * MODULES.html.sh (String handling <string.h>): Update.
29019         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29020         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29021         * lib/unicase/u16-casexfrm.c: Likewise.
29022         * lib/unicase/u32-casexfrm.c: Likewise.
29023         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29024         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29025         * lib/uninorm/u16-normxfrm.c: Likewise.
29026         * lib/uninorm/u32-normxfrm.c: Likewise.
29027         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29028         memxfrm.
29029         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29030         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29031         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29032         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29033         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29034         Suggested by Paul Eggert.
29035
29036 2010-08-14  Bruno Haible  <bruno@clisp.org>
29037
29038         Tests for module 'astrxfrm'.
29039         * modules/astrxfrm-tests: New file.
29040         * tests/test-astrxfrm.c: New file.
29041
29042         New module 'astrxfrm'.
29043         * lib/astrxfrm.h: New file.
29044         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29045         * modules/astrxfrm: New file.
29046
29047 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29048
29049         regex: Tweak doc.
29050         * doc/regex.texi (Overview): Don't mention regex.c.
29051         (GNU Regular Expression Compiling): Likewise.
29052         (Match-end-of-line Operator): Mention 'not_eol'.
29053
29054 2010-08-14  Brian Gough  <bjg@gnu.org>
29055             Bruno Haible  <bruno@clisp.org>
29056
29057         git-merge-changelog: add doc relating to use with bzr and hg.
29058         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29059
29060 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29061
29062         pthread: fix pthread.h creation for srcdir != builddir
29063         * modules/pthread (Makefile.am): Fix the rule to work also in a
29064         non-srcdir build.
29065
29066 2010-08-13  Karl Berry  <karl@gnu.org>
29067
29068         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29069         * doc/posix-*/*: force line break before @url of POSIX
29070         specifications.
29071         Suggested by Werner Lemberg.
29072
29073 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29074
29075         strtod: fix const diagnostic
29076         * lib/strtod.c (strtod): Don't assign const char * to char *,
29077         as this elicits a warning from GCC when warnings are enabled.
29078
29079 2010-08-10  Pádraig Brady <P@draigbrady.com>
29080         and Eric Blake  <eblake@redhat.com>
29081
29082         copy-acl: ignore ENOTSUP on HP-UX
29083         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29084         so that it is available for HP-UX.
29085         * lib/copy-acl.c (qcopy_acl): Use it.
29086         Reported by Patrick M. Callahan.
29087
29088 2010-08-10  Eric Blake  <eblake@redhat.com>
29089
29090         open, chown: relax license
29091         * modules/open (License): Change to LGPLv2+, with consent by all
29092         authors, for use in augeas.
29093         * modules/chown (License): Likewise.
29094         * modules/lchown (Likewise): Likewise.
29095         Requested by Adam Stokes.
29096
29097 2010-08-09  Karl Berry  <karl@gnu.org>
29098
29099         * build-aux/ar-lib: new file, import from Automake.
29100         * config/srclist.txt: autocheck for updates.
29101
29102 2010-08-09  Eric Blake  <eblake@redhat.com>
29103
29104         readlinkat: adjust client modules
29105         * modules/areadlinkat (Depends-on): Use readlinkat, not
29106         symlinkat.
29107         * modules/areadlinkat-with-size (Depends-on): Likewise.
29108
29109         mknod: be more vocal about danger of running tests as root
29110         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29111         root, since that is just asking for problems.
29112         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29113
29114         readlinkat: split into its own module
29115         * modules/symlinkat: Split readlinkat...
29116         * modules/readlinkat: ...into separate module.
29117         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29118         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29119         * lib/symlinkat.c (readlinkat): Move...
29120         * lib/readlinkat.c: ...into new file.
29121         * modules/symlinkat-tests: Split readlinkat test...
29122         * modules/readlinkat-tests: ...into separate module.
29123         * tests/test-symlinkat.c: Split...
29124         * tests/test-readlinkat.c: ...into new file.
29125         * NEWS: Document the split.
29126         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29127         * lib/unistd.in.h (readlinkat): Likewise.
29128         Suggested by Bruno Haible.
29129
29130 2010-08-08  Bruno Haible  <bruno@clisp.org>
29131
29132         memxfrm: Speed up.
29133         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29134         that usually only one call to strxfrm is necessary for each string
29135         part.
29136         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29137
29138 2010-08-07  Karl Berry  <karl@gnu.org>
29139
29140         * doc/posix-headers/limits.texi,
29141         * doc/posix-functions/malloc.texi,
29142         * doc/posix-functions/strsignal.texi: missing @item.
29143         * doc/ld-version-script.texi: spurious leading i.
29144         * doc/regex.texi (Interval Operators): no commas inside @var.
29145
29146 2010-08-01  Bruno Haible  <bruno@clisp.org>
29147
29148         Integrate the regex documentation.
29149         * doc/gnulib.texi: Define 'cn' index.
29150         (Regular expressions): New a chapter that includes regex.texi and
29151         regexprops-generic.texi.
29152         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29153         syntax.
29154
29155         Whitespace cleanup.
29156         * doc/regex.texi: Remove trailing spaces.
29157
29158         Add regex documentation.
29159         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29160         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29161         Written by Kathy A. Hargreaves and Karl Berry.
29162
29163 2010-08-01  Bruno Haible  <bruno@clisp.org>
29164
29165         link: Update documentation.
29166         * doc/posix-functions/link.texi: Update regarding Solaris.
29167
29168 2010-07-31  Bruno Haible  <bruno@clisp.org>
29169
29170         Update modules list.
29171         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29172         (String handling <string.h>): Add memcmp2, memxfrm.
29173         (Container data structures): Add xlist, xsublist, xoset.
29174         (Core language properties): Add alignof, unused-parameter.
29175         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29176         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29177         (Unibyte characters <ctype.h>): New section.
29178         (String handling <string.h>): New section.
29179         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29180         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29181         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29182         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29183         tan, tanh, tanl, y0, y1, yn.
29184         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29185         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29186         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29187         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29188         unlockpt, vdprintf, vdprintf-posix.
29189         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29190         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29191         xconcat-filename.
29192         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29193         getdtablesize, pipe2, pipe2-safer.
29194         (Security): New section.
29195         (Networking functions): Add accept4.
29196         (Signal handling): Add sigpipe.
29197         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29198         mbmemcasecoll.
29199         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29200         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29201         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29202         pipe-filter-ii.
29203         (Misc): Add argp-version-etc, login_tty, parse-duration.
29204
29205 2010-07-31  Bruno Haible  <bruno@clisp.org>
29206
29207         Improve doc in MODULES.html.
29208         * modules/linkat (Description): Add the word "function".
29209         * modules/mkfifo (Description): Likewise.
29210         * modules/mknod (Description): Likewise.
29211         * modules/remove (Description): Likewise.
29212         * modules/renameat (Description): Likewise.
29213         * modules/stat (Description): Likewise.
29214         * modules/symlink (Description): Likewise.
29215         * modules/unlink (Description): Likewise.
29216
29217 2010-07-31  Bruno Haible  <bruno@clisp.org>
29218
29219         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29220         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29221         option --enable/disable-c++ instead of --enable/disable-cxx.
29222         * NEWS: Mention the change.
29223
29224 2010-07-31  Bruno Haible  <bruno@clisp.org>
29225
29226         readlink, areadlink: Relax test a bit.
29227         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29228         alternative to ENOTDIR.
29229         * tests/test-areadlink.h (test_areadlink): Likewise.
29230         Reported by Rainer Tammer.
29231
29232 2010-07-31  Bruno Haible  <bruno@clisp.org>
29233
29234         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29235         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29236         character, perform the search using U_STRCHR.
29237         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29238         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29239         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29240         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29241         Suggested by Paolo Bonzini.
29242
29243 2010-07-31  Bruno Haible  <bruno@clisp.org>
29244
29245         unistr/u*-strstr: Fix dependencies.
29246         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29247         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29248         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29249
29250 2010-07-31  Bruno Haible  <bruno@clisp.org>
29251
29252         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29253         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29254         the beginning of the loop.
29255         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29256         cases in 'switch' statement.
29257
29258         unistr/u8-strchr: Fix several bugs.
29259         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29260         the string. When not found, return NULL, not a pointer near the end.
29261
29262         More tests for unistr/u8-strchr.
29263         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29264         that the function does not read past the first occurrence of the byte
29265         being searched.
29266         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29267         * tests/unistr/test-u16-strchr.c (main): New function.
29268         * tests/unistr/test-u32-strchr.c (main): New function.
29269
29270 2010-07-31  Bruno Haible  <bruno@clisp.org>
29271
29272         posix-modules: Ignore backup files of documentation files.
29273         * posix-modules: grep only through files named *.texi.
29274
29275 2010-07-31  Bruno Haible  <bruno@clisp.org>
29276
29277         symlinkat: Fix documentation.
29278         * doc/posix-functions/readlinkat.texi: Fix module name.
29279
29280 2010-07-31  Bruno Haible  <bruno@clisp.org>
29281
29282         fchownat: Replace also when chown has the trailing slash bug.
29283         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29284         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29285         introduced on 2010-04-10.
29286         Reported by Rainer Tammer.
29287
29288 2010-07-31  Bruno Haible  <bruno@clisp.org>
29289
29290         linkat: Work around AIX 7.1 bug.
29291         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29292         whether linkat handles trailing slash correctly. If not, replace linkat
29293         and define LINKAT_TRAILING_SLASH_BUG.
29294         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29295         check whether (fd1,file1) points to a directory if file1 or file2 ends
29296         in a slash. Code taken from lib/link.c.
29297         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29298         Reported by Rainer Tammer.
29299
29300 2010-07-31  Bruno Haible  <bruno@clisp.org>
29301
29302         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29303         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29304         This disables an xlc optimization that was causing wrong test results.
29305         Reported by Rainer Tammer.
29306
29307 2010-07-31  Bruno Haible  <bruno@clisp.org>
29308
29309         iconv: Work around AIX 6.1..7.1 bug.
29310         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29311         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29312         cross-compiling, guess no on all versions of AIX.
29313         Reported by Rainer Tammer.
29314
29315 2010-07-31  Bruno Haible  <bruno@clisp.org>
29316
29317         readlink: Relax test a bit.
29318         * tests/test-readlink.h (test_readlink): Allow different errno value
29319         when readlink is called with a file name that ends in / and refers to
29320         a file.
29321         Suggested by Eric Blake.
29322         Reported by Rainer Tammer.
29323
29324 2010-07-31  Bruno Haible  <bruno@clisp.org>
29325
29326         copysign: Does not require -lm on glibc systems.
29327         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29328         gl_COMMON_DOUBLE_MATHFUNC.
29329         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29330
29331 2010-07-31  Bruno Haible  <bruno@clisp.org>
29332
29333         duplocale: Work around AIX 7.1 bug.
29334         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29335         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29336         * lib/duplocale.c (rpl_duplocale): Update comment.
29337         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29338         Reported by Rainer Tammer.
29339
29340 2010-07-30  Bruno Haible  <bruno@clisp.org>
29341
29342         dirfd: Avoid link error on AIX 7.1.
29343         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29344         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29345         exist, set REPLACE_DIRFD.
29346         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29347         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29348         * doc/posix-functions/dirfd.texi: Update.
29349         Reported by Rainer Tammer.
29350
29351 2010-07-30  Eric Blake  <eblake@redhat.com>
29352
29353         strtod: next round of AIX fixes
29354         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29355         exponent.
29356         * tests/test-strtod.c (main): Enhance tests.
29357         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29358         Reported by Rainer Tammer.
29359
29360         futimens: fix configure check
29361         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29362         Reported by Bruno Haible.
29363
29364 2010-07-30  Bruno Haible  <bruno@clisp.org>
29365
29366         getline: Update regarding AIX.
29367         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29368         Reported by Rainer Tammer.
29369
29370 2010-07-30  Bruno Haible  <bruno@clisp.org>
29371
29372         wcwidth: Drop replacement on AIX 7.
29373         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29374         AIX 7.
29375         Reported by Rainer Tammer.
29376
29377 2010-07-30  Bruno Haible  <bruno@clisp.org>
29378
29379         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29380         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29381         a 'char *'.
29382         Reported by Rainer Tammer.
29383
29384 2010-07-30  Bruno Haible  <bruno@clisp.org>
29385
29386         unlink: Update regarding AIX.
29387         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29388         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29389         Reported by Rainer Tammer.
29390
29391 2010-07-30  Bruno Haible  <bruno@clisp.org>
29392
29393         symlink: Update regarding AIX.
29394         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29395         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29396         Reported by Rainer Tammer.
29397
29398 2010-07-30  Bruno Haible  <bruno@clisp.org>
29399
29400         strndup: Update regarding AIX.
29401         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29402         AIX 7.
29403         Reported by Rainer Tammer.
29404
29405 2010-07-30  Bruno Haible  <bruno@clisp.org>
29406
29407         stat: Update regarding AIX.
29408         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29409         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29410         Reported by Rainer Tammer.
29411
29412 2010-07-30  Bruno Haible  <bruno@clisp.org>
29413
29414         truncl: Fix autoconf test.
29415         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29416         whether truncl works.
29417         Reported by Rainer Tammer.
29418
29419 2010-07-30  Bruno Haible  <bruno@clisp.org>
29420
29421         round: Update regarding AIX.
29422         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29423         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29424         Reported by Rainer Tammer.
29425
29426 2010-07-30  Bruno Haible  <bruno@clisp.org>
29427
29428         rename: Update regarding AIX.
29429         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29430         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29431         Reported by Rainer Tammer.
29432
29433 2010-07-30  Bruno Haible  <bruno@clisp.org>
29434
29435         printf.m4: Update regarding AIX.
29436         * m4/printf.m4: Update comments regarding AIX.
29437         Reported by Rainer Tammer.
29438
29439 2010-07-30  Bruno Haible  <bruno@clisp.org>
29440
29441         iconv: Update regarding AIX.
29442         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29443         AIX 7.
29444         Reported by Rainer Tammer.
29445
29446 2010-07-30  Bruno Haible  <bruno@clisp.org>
29447
29448         getopt: Update regarding AIX.
29449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29450         no on AIX.
29451         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29452         Reported by Rainer Tammer.
29453
29454 2010-07-30  Bruno Haible  <bruno@clisp.org>
29455
29456         ldexpl; Update regarding AIX.
29457         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29458         on AIX 7.
29459         Reported by Rainer Tammer.
29460
29461 2010-07-30  Bruno Haible  <bruno@clisp.org>
29462
29463         frexpl: Update regarding AIX.
29464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29465         on AIX 7.
29466         Reported by Rainer Tammer.
29467
29468 2010-07-30  Bruno Haible  <bruno@clisp.org>
29469
29470         open, fopen: Update regarding AIX.
29471         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29472         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29473         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29474         * doc/posix-functions/fopen.texi: Likewise.
29475         Reported by Rainer Tammer.
29476
29477 2010-07-30  Bruno Haible  <bruno@clisp.org>
29478
29479         chown: Update doc regarding AIX.
29480         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29481         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29482         Reported by Rainer Tammer.
29483
29484 2010-07-30  Eric Blake  <eblake@redhat.com>
29485
29486         strtod: fix bug in replacement function on AIX
29487         * lib/strtod.c (strtod): Special case broken "0x" parse in
29488         underlying strtod.
29489         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29490         * doc/posix-functions/strtod.texi (strtod): Likewise.
29491         Reported by Rainer Tammer.
29492
29493 2010-07-30  Bruno Haible  <bruno@clisp.org>
29494
29495         mbrlen: Fix cross-compilation guess for AIX.
29496         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29497         guess. Leftover from 2008-12-22.
29498
29499 2010-07-30  Bruno Haible  <bruno@clisp.org>
29500
29501         mbrtowc: Fix cross-compilation guess for AIX.
29502         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29503         guess. Leftover from 2008-12-21.
29504
29505 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29506
29507         init.sh: work around trap limitation of some shells
29508         * tests/init.sh (setup_): Move exit trap outside of shell function.
29509
29510 2010-07-29  Eric Blake  <eblake@redhat.com>
29511
29512         strtod: aid debugging
29513         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29514         understanding why strtod is rejected.
29515
29516 2010-07-28  Bruno Haible  <bruno@clisp.org>
29517
29518         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29519         * lib/unistr/u8-chr.c: Include <string.h>.
29520         * tests/unistr/test-u8-chr.c: Likewise.
29521         * tests/unistr/test-u16-chr.c: Likewise.
29522         * tests/unistr/test-u32-chr.c: Likewise.
29523         * tests/unistr/test-u8-strchr.c: Likewise.
29524         * tests/unistr/test-u16-strchr.c: Likewise.
29525         * tests/unistr/test-u32-strchr.c: Likewise.
29526         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
29527         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
29528         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
29529         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
29530
29531 2010-07-28  Bruno Haible  <bruno@clisp.org>
29532
29533         Use spaces for indentation, not tabs.
29534         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29535
29536 2010-07-27  Bruno Haible  <bruno@clisp.org>
29537
29538         mbspcasecmp: Fix function specification.
29539         * lib/string.in.h (mbspcasecmp): Fix specification comment.
29540         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
29541         Reported by Eric Blake <eblake@redhat.com>.
29542
29543 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
29544
29545         timespec: use cast and not conditional, as truncation isn't possible
29546         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
29547         instead of a conditional.  Comment about the situation in more detail.
29548         This undoes most of the 2009-10-29 patch.
29549
29550 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
29551
29552         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
29553         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
29554         * lib/unistr/u8-strchr.c: Likewise.
29555         * modules/unistr/u8-chr: Depend on memchr.
29556
29557         unistr/u*-strchr: add tests
29558         * modules/unistr/u8-strchr-tests: New file.
29559         * modules/unistr/u16-strchr-tests: New file.
29560         * modules/unistr/u32-strchr-tests: New file.
29561         * tests/unistr/test-strchr.h: New file.
29562         * tests/unistr/test-u8-strchr.c: New file.
29563         * tests/unistr/test-u16-strchr.c: New file.
29564         * tests/unistr/test-u32-strchr.c: New file.
29565
29566         unistr/u*-chr: test multibyte sequences more
29567         * tests/unistr/test-chr.h: Do complete testing of the characters in the
29568         test vector.
29569         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
29570         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
29571         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
29572
29573         unistr/u*-chr: test multibyte sequences
29574         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
29575
29576         unistr/u*-chr: prepare for multibyte tests
29577         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
29578         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
29579         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
29580         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
29581         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
29582         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
29583
29584 2010-07-18  Bruno Haible  <bruno@clisp.org>
29585
29586         unistr/u8-strchr: Optimize non-ASCII argument case.
29587         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
29588         because the first byte often matches anyway.
29589         Reported by Pádraig Brady <P@draigbrady.com>.
29590
29591 2010-07-15  Karl Berry  <karl@gnu.org>
29592
29593         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
29594
29595 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
29596
29597         getcwd: on Solaris, work better if ancestors are inaccessible
29598         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
29599         buffer and size, try again with a large buffer.  This works better
29600         on Solaris, since its getcwd succeeds even if the path to the root
29601         is inaccessible, and this is helpful in common cases such as .zfs
29602         hidden directories.  Problem reported by J Chapman Flack in
29603         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
29604         Use system getcwd if it's declared, not merely if it's partly
29605         working; use the partly-working test only to avoid needless effort
29606         if the system getcwd fails.
29607         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
29608         comment that was already obsolete and is now even more obsolete.
29609         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
29610         now might call strdup.
29611
29612 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
29613
29614         pthread: Add enough so that coreutils/src/sort.c compiles.
29615         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
29616         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
29617         gnulib. Include <sched.h> and <time.h>, as per POSIX.
29618         Include <sys/types.h>, in case it defines pthread_t.
29619         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
29620         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
29621         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
29622         (pthread_rwlockattr_t, pthread_spinlock_t):
29623         New typedefs, if HAVE_PTHREAD_T is not defined.
29624         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
29625         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
29626         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
29627         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
29628         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
29629         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
29630         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
29631         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
29632         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
29633         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
29634         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
29635         New macros.
29636         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
29637         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
29638         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
29639         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
29640         (pthread_spin_unlock): New dummy functions.
29641         (pthread_create): Return EAGAIN; don't set errno.
29642         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
29643         require AC_C_INLINE.
29644         * modules/pthread (Depends-on): Add sched, time.
29645         (pthread.h): Use AM_V_GEN.
29646
29647 2010-07-13  Bruno Haible  <bruno@clisp.org>
29648
29649         striconveh: Don't malloc memory if the result buffer is sufficient.
29650         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
29651         buffer if its size is sufficient.
29652         Reported by Ludovic Courtès <ludo@gnu.org>.
29653
29654 2010-07-13  Bruno Haible  <bruno@clisp.org>
29655
29656         strtod: Add safety check.
29657         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
29658
29659 2010-07-12  Bruno Haible  <bruno@clisp.org>
29660
29661         Unify tests that set gl_cv_func_ldexpl_no_libm.
29662         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
29663         gl_FUNC_LDEXPL.
29664         (gl_FUNC_LDEXPL): Invoke it.
29665         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29666
29667 2010-07-12  Bruno Haible  <bruno@clisp.org>
29668
29669         Unify tests that set gl_cv_func_ldexp_no_libm.
29670         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
29671         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
29672         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
29673         (configure.ac): Simply invoke gl_FUNC_LDEXP.
29674         * modules/strtod (Files): Add m4/ldexp.m4.
29675
29676 2010-07-12  Bruno Haible  <bruno@clisp.org>
29677
29678         Unify tests that set gl_cv_func_frexpl_no_libm.
29679         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
29680         gl_FUNC_FREXPL_NO_LIBM.
29681         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
29682         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29683
29684 2010-07-12  Bruno Haible  <bruno@clisp.org>
29685
29686         Unify tests that set gl_cv_func_frexp_no_libm.
29687         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
29688         gl_FUNC_FREXP_NO_LIBM.
29689         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
29690         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29691
29692 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29693
29694         memcoll: clarify sizes versus lengths, document better, and tweak perf
29695         * lib/memcoll.c (strcoll_loop, memcoll0):
29696         Improve quality of descriptive comments.  Name variables
29697         consistently as to whether they are lengths (which do not include
29698         terminating null) versus sizes (which do).
29699         * lib/xmemcoll.c (xmemcoll0): Likewise.
29700         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
29701         returned when s1size == 0; this is easier to compile and saves
29702         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
29703
29704 2010-07-12  Bruno Haible  <bruno@clisp.org>
29705
29706         Tests for module '_Exit'.
29707         * modules/_Exit-tests: New file.
29708         * tests/test-_Exit.sh: New file.
29709         * tests/test-_Exit.c: New file.
29710
29711         New module '_Exit'.
29712         * lib/stdlib.in.h (__attribute__): New macro.
29713         (_Exit): New declaration.
29714         * lib/_Exit.c: New file.
29715         * m4/_Exit.m4: New file.
29716         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
29717         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
29718         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
29719         * modules/_Exit: New file.
29720         * tests/test-stdlib-c++.cc (_Exit): Check signature.
29721         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
29722
29723 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29724
29725         strtod: make it more-accurate typically, and don't require libm
29726         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
29727         Include limits.h.  Don't include string.h.
29728         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
29729         (locale_isspace): New function, so that no casts are needed to
29730         check whether *s is a space.
29731         (ldexp): Provide an unused dummy if not available.
29732         (scale_radix_exp, parse_number, underlying_strtod): New functions.
29733         (strtod): Use them.  This implementation prefers to use the
29734         underlying strtod if available, falling back on our own code
29735         only to fix known bugs.  This is more likely to produce an
29736         accurate result.  Also, it avoids the use of libm functions.
29737         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
29738         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
29739         was absent, but it caused a test failure with coreutils.
29740         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
29741         with libm.
29742         * modules/strtod (Makefile.am, Link): libm is no longer needed.
29743         * modules/strtod-tests (Makefile.am): Likewise.
29744
29745 2010-07-11  Pádraig Brady  <P@draigBrady.com>
29746             Bruno Haible  <bruno@clisp.org>
29747
29748         unistr/u8-strchr: Optimize ASCII argument case.
29749         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
29750
29751 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29752
29753         (x)memcoll: minor tweaks
29754         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
29755         is after the type that it qualifies.
29756         (memcoll0): Likewise.
29757         * lib/memcoll.h (memcoll0): Likewise.
29758         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
29759         * lib/xmemcoll.h (xmemcoll0): Likewise.
29760         * lib/memcoll.c (memcoll0): Correct the comment.  This function
29761         differs from memcoll in that the NUL byte is part of the argument.
29762         Omit the abort-checks, as performance is a real issue here.  Plus,
29763         the checks were wrong anyway (an off-by-one error).  Omit local
29764         variable 'diff', as it's a bit clearer that way.
29765         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
29766         no longer needed.
29767
29768 2010-07-08  Chen Guo <chenguo4@yahoo.com>
29769
29770         (x)memcoll: speedup when input is known to be NUL delimited
29771         * lib/memcoll.c: Include stdlib.
29772         (memcoll0): New function.
29773         (strcoll_loop): New function, refactored for use in both memcoll
29774         and memcoll0.
29775         * lib/memcoll.h (memcoll0): Add prototype.
29776         * lib/xmemcoll.c (xmemcoll0): New function.
29777         (collate_error): New function, refactored for use in both xmemcoll
29778         and xmemcoll0.
29779         * lib/xmemcoll.h (xmemcoll0): Add prototype.
29780         * m4/memcoll.m4: add inline invocation.
29781
29782 2010-07-06  Pádraig Brady  <P@draigBrady.com>
29783
29784         * build-aux/bootstrap: Remove any local translations
29785         from the translation project synchronization directory,
29786         so that local only translations are not distributed.
29787
29788 2010-07-04  Bruno Haible  <bruno@clisp.org>
29789
29790         fsusage: Clarify which code applies to which platforms.
29791         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
29792         platform.
29793         * lib/fsusage.c (get_fs_usage): Likewise.
29794
29795 2010-07-04  Bruno Haible  <bruno@clisp.org>
29796
29797         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
29798         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
29799         Reported by Martin Lambers <marlam@marlam.de>.
29800
29801 2010-07-04  Jim Meyering  <meyering@redhat.com>
29802
29803         hash: once again explicitly disallow insertion of NULL
29804         * lib/hash.c (hash_insert0): Reinstate just-removed test:
29805         inserting a NULL pointer cannot work with these functions.
29806         Add a comment with details.
29807         This reverts part of the 2010-07-01 commit, 5bef1a35
29808         "hash: extend module to deal with non-pointer keys".
29809
29810 2010-07-01  Bruno Haible  <bruno@clisp.org>
29811
29812         stdbool: Update doc.
29813         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
29814         Info from Christian Weisgerber <naddy@mips.inka.de>.
29815
29816 2010-07-01  Jim Meyering  <meyering@redhat.com>
29817
29818         hash: extend module to deal with non-pointer keys
29819         * lib/hash.c (hash_insert0): New interface, much like hash_insert
29820         but that allows insertion of non-pointer entries.
29821         Do not disallow an ENTRY value of NULL.
29822         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
29823         * lib/hash.h (hash_insert0): Declare.
29824
29825 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29826
29827         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
29828         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
29829         not present (i.e. with autoconf 2.59 and when using gettextize, not
29830         gnulib), require AC_GNU_SOURCE instead.
29831
29832 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
29833
29834         idpriv-drop: Fix tests.
29835         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
29836         not to the test-idpriv-droptemp program.
29837
29838 2010-06-29  Bruno Haible  <bruno@clisp.org>
29839
29840         string: Fix syntax error with g++ 2.96.
29841         * lib/string.in.h (__pure__): Remove definition.
29842         (_GL_ATTRIBUTE_PURE): New macro.
29843         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
29844         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
29845         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29846
29847 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
29848
29849         unitypes: Fix bug introduced on 2010-05-18.
29850         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
29851
29852 2010-06-22  Eric Blake  <eblake@redhat.com>
29853
29854         memmem: slight optimization
29855         * lib/str-two-way.h (critical_factorization): Update comments.
29856         Reduce work during factorization phase.
29857         Reported by Carlos Bueno <carlos@bueno.org>.
29858
29859 2010-06-21  Bruno Haible  <bruno@clisp.org>
29860
29861         Fix HAVE_CALLOC_POSIX misnomer.
29862         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
29863         !HAVE_CALLOC_POSIX.
29864         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
29865         HAVE_CALLOC_POSIX.
29866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
29867         instead of HAVE_CALLOC_POSIX.
29868         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
29869         HAVE_CALLOC_POSIX.
29870
29871         Use modern idiom for calloc() replacement.
29872         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
29873         AC_FUNC_CALLOC.
29874         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
29875         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
29876         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29877         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
29878         (gl_REPLACE_CALLOC): New macro.
29879
29880 2010-06-21  Bruno Haible  <bruno@clisp.org>
29881
29882         Fix HAVE_REALLOC_POSIX misnomer.
29883         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
29884         !HAVE_REALLOC_POSIX.
29885         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
29886         HAVE_REALLOC_POSIX.
29887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
29888         instead of HAVE_REALLOC_POSIX.
29889         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
29890         HAVE_REALLOC_POSIX.
29891
29892         Use modern idiom for realloc() replacement.
29893         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
29894         AC_FUNC_REALLOC.
29895         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
29896         Autoconf's AC_FUNC_REALLOC.
29897         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29898         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
29899         (gl_REPLACE_REALLOC): New macro.
29900         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29901
29902 2010-06-21  Bruno Haible  <bruno@clisp.org>
29903
29904         Fix HAVE_MALLOC_POSIX misnomer.
29905         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
29906         !HAVE_MALLOC_POSIX.
29907         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
29908         HAVE_MALLOC_POSIX.
29909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
29910         instead of HAVE_MALLOC_POSIX.
29911         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
29912         HAVE_MALLOC_POSIX.
29913
29914         Use modern idiom for malloc() replacement.
29915         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
29916         AC_FUNC_MALLOC.
29917         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
29918         Autoconf's AC_FUNC_MALLOC.
29919         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29920         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
29921         (gl_REPLACE_MALLOC): New macro.
29922         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29923
29924 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
29925
29926         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
29927         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
29928         This macro takes 3 arguments, not 4.
29929
29930 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
29931
29932         ipv6: fix detection under mingw
29933         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
29934         in6_addr.
29935
29936 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
29937
29938         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
29939         that strtod() works when cross-compiling to a glibc version known
29940         to work.
29941
29942 2010-06-15  Bruno Haible  <bruno@clisp.org>
29943
29944         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
29945
29946 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
29947
29948         select: Correct timeout.
29949         * lib/select.c (rpl_select): Compute wait_timeout correctly.
29950
29951 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29952
29953         git-version-gen: init shell var to avoid env var influence
29954         * build-aux/git-version-gen (v): Init shell var to empty.
29955
29956 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29957
29958         priv-set: Don't assume that priv.h exists merely because getppriv does.
29959         See Jan Andersen's bug report about AIX 5L in
29960         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
29961         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
29962         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
29963         * lib/priv-set.h: Likewise.
29964         * tests/test-priv-set.c: Likewise.
29965
29966 2010-06-13  Bruno Haible  <bruno@clisp.org>
29967
29968         relocatable: Make it easier to test whether to install wrappers.
29969         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
29970         RELOCATABLE_VIA_WRAPPER.
29971
29972 2010-06-13  Bruno Haible  <bruno@clisp.org>
29973
29974         gnulib-tool: Display specified modules and dependencies differently.
29975         * gnulib-tool (func_show_module_list): New function.
29976         (func_import, func_create_testdir): Invoke it.
29977         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29978
29979 2010-06-13  Bruno Haible  <bruno@clisp.org>
29980
29981         gnulib-tool: Align code of func_import and func_create_testdir.
29982         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
29983         specified_modules.
29984
29985 2010-06-12  Jim Meyering  <meyering@redhat.com>
29986
29987         test-inttostr: avoid spurious failure on Solaris 9
29988         * tests/test-inttostr.c (main): Skip the test when snprintf fails
29989         to accept "%ju".  Reported by Bruno Haible.
29990
29991 2010-06-11  Jim Meyering  <meyering@redhat.com>
29992
29993         test-sys_socket: mark variables as used more readably
29994         * tests/test-sys_socket.c (main): Mark otherwise unused variables
29995         as "used" explicitly via (void) statement casts.  This is more
29996         readable than using them in an artificial return expression.
29997         Suggestion from Bruno Haible.
29998
29999 2010-06-11  Bruno Haible  <bruno@clisp.org>
30000
30001         Avoid some more warnings from "gcc -Wwrite-strings".
30002         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30003         to 'const char *'.
30004         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30005         * tests/test-c-strcasestr.c (main): Likewise.
30006         * tests/test-mbscasestr1.c (main): Likewise.
30007         * tests/test-mbscasestr2.c (main): Likewise.
30008         * tests/test-memmem.c (main): Likewise.
30009         * tests/test-strstr.c (main): Likewise.
30010         * tests/test-strcasestr.c (main): Likewise.
30011
30012 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30013
30014         init.sh: change framework_failure_ to fail with status 99, not 1
30015         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30016         automake's parallel-tests rule that this is an unexpected failure,
30017         even if the test is listed in XFAIL_TESTS.
30018
30019 2010-06-11  Jim Meyering  <meyering@redhat.com>
30020
30021         test-inttostr: avoid warnings about 4-6KB literal strings
30022         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30023         Include "macros.h", for its definition of ASSERT.
30024         (CK): s/assert/ASSERT/
30025         * modules/inttostr-tests (Files): Add macros.h.
30026
30027         init.sh: don't use $ME_ or skip_ before they are defined
30028         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30029         their first uses.  Also hoist their companions: warn_, fail_,
30030         framework_failure_, $stderr_fileno.  Prompted by a patch from
30031         Stefano Lattarini.
30032
30033         test-sys_socket: avoid set-but-not-used warnings from gcc
30034         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30035         avoid warning about set-but-not-used variables.
30036
30037         test-xvasprintf: avoid 'const' discard warnings
30038         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30039         "const" when assigning from literal strings.
30040         (test_xasprintf): Add "void" in function argument list to placate
30041         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30042
30043         tests: avoid compilation warnings in argmatch and exclude tests...
30044         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30045         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30046         Since it always exits, declare with the "noreturn" attribute.
30047         * tests/test-argmatch.c: Likewise.
30048
30049         tests: avoid 'const' discard warnings in mbsstr tests
30050         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30051         * tests/test-mbsstr2.c (main): Likewise.
30052
30053         test-verify: avoid warning from gcc's -Wmissing-declarations
30054         * tests/test-verify.c (function): Declare to be static.
30055
30056         test-inttostr.c: include <string.h> for use of strcmp
30057         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30058
30059         test-linkat: avoid failed assertion on "other" architectures
30060         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30061         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30062         sparc: https://bugs.launchpad.net/bugs/591968
30063
30064 2010-06-11  Jim Meyering  <meyering@redhat.com>
30065
30066         printf.m4: avoid autoconf's "Expanded Before Required" warning
30067         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30068         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30069         autoconf warning.
30070
30071 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30072
30073         Replacement header templates are now named with ".in", not "_".
30074         * doc/gnulib-intro.texi: Correct.
30075
30076 2010-06-10  Jim Meyering  <meyering@redhat.com>
30077
30078         inttostr-tests: depend on snprintf, not snprintf-posix
30079         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30080         snprintf-posix, to avoid this aclocal failure:
30081           missing file gnulib-tests/vasnprintf.c
30082           configure.ac:45: error: expected source file, required through \
30083           AC_LIBSOURCES, not found
30084
30085 2010-06-10  Jim Meyering  <meyering@redhat.com>
30086
30087         inttostr: add a new function, inttostr, and tests
30088         The namesake function was not available.  The existence of the
30089         template file, inttostr.c makes its addition nontrivial.
30090         * lib/anytostr.c: Rename from inttostr.c.
30091         (anytostr): Rename from inttostr.
30092         * lib/inttostr.c: New file.
30093         * modules/inttostr (Files): Add anytostr.c.
30094         (Makefile.am): Set lib_SOURCES instead of ...
30095         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30096         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30097         * lib/offtostr.c: Likewise.
30098         * lib/uinttostr.c: Likewise.
30099         * lib/umaxtostr.c: Likewise.
30100         * modules/inttostr-tests: New file.
30101         * tests/test-inttostr.c: New file.  Test these functions.
30102
30103 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30104             Bruno Haible  <bruno@clisp.org>
30105
30106         Add "Extending Gnulib" chapter to manual.
30107         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30108         chapter.
30109         (Extending Gnulib): New chapter.
30110         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30111         chapter.
30112
30113 2010-06-09  Bruno Haible  <bruno@clisp.org>
30114
30115         Avoid relocwrapper link errors due to gnulib replacement functions.
30116         * lib/areadlink.c: Use the system's malloc, realloc functions.
30117         (areadlink): Set errno to ENOMEM explicitly.
30118         * modules/areadlink (Depends-on): Remove malloc-posix.
30119         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30120
30121 2010-06-09  Bruno Haible  <bruno@clisp.org>
30122
30123         Avoid relocwrapper link errors due to gnulib replacement functions.
30124         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30125         * lib/malloca.c: Likewise.
30126         * lib/relocatable.c: Likewise.
30127         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30128         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30129         * lib/setenv.c: Use the system's malloc, realloc functions.
30130         * lib/strerror.c: Use the system's sprintf function.
30131         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30132
30133 2010-06-04  Bruno Haible  <bruno@clisp.org>
30134
30135         Prefer documented low-level autoconf macro names.
30136         * m4/lib-link.m4: Use m4_translit instead of translit.
30137         * m4/environ.m4: Likewise.
30138         * m4/mathfunc.m4: Likewise.
30139         * m4/onceonly.m4: Likewise.
30140         * m4/stdint.m4: Likewise.
30141         Suggested by Eric Blake.
30142
30143 2010-06-04  Martin Lambers  <marlam@marlam.de>
30144             Bruno Haible  <bruno@clisp.org>
30145
30146         havelib: Allow library names with '+' characters.
30147         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30148         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30149
30150 2010-06-09  Bruno Haible  <bruno@clisp.org>
30151
30152         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30153         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30154         realloc failed.
30155
30156 2010-06-08  Peter Simons  <simons@cryp.to>
30157
30158         maint.mk: make the news-check rule more configurable
30159         * top/maint.mk (news-check-lines-spec): New variable.
30160         (news-check): Use "sed -n 1,10p" in place of "head".
30161
30162 2010-06-07  Jim Meyering  <meyering@redhat.com>
30163
30164         do-release-commit-and-tag: fix typo in --help
30165         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30166
30167         regex: avoid new dead-code warning with gcc-4.6.0
30168         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30169         if-block containing a while-loop.  It's been unused for at least
30170         5 years.
30171
30172 2010-06-05  Bruno Haible  <bruno@clisp.org>
30173
30174         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30175         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30176
30177 2010-06-04  Bruno Haible  <bruno@clisp.org>
30178
30179         Update to GNU gettext 0.18.1.
30180         * modules/gettext (configure.ac): Require gettext infrastructure from
30181         version 0.18.1.
30182
30183 2010-06-03  Bruno Haible  <bruno@clisp.org>
30184
30185         Don't use AC_LIBOBJ with file names in subdirectories.
30186         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30187         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30188         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30189         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30190         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30191         gl_LIBUNISTRING_LIBSOURCE.
30192         (Makefile.am): Augment lib_SOURCES here, conditionally.
30193         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30194
30195 2010-06-03  Bruno Haible  <bruno@clisp.org>
30196
30197         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30198         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30199         expansion does not end with a newline.
30200         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30201         unnecessary newline.
30202
30203 2010-06-03  Bruno Haible  <bruno@clisp.org>
30204
30205         Reduce dependencies.
30206         * tests/test-quotearg.h: New file, extracted from
30207         tests/test-quotearg.c.
30208         * tests/test-quotearg-simple.c: New file, extracted from
30209         tests/test-quotearg.c.
30210         * tests/test-quotearg.c: Don't include <ctype.h>.
30211         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30212         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30213         use_quote_double_quotes, use_quotearg_colon): Moved to
30214         tests/test-quotearg.h.
30215         (results_g, flag_results, custom_quotes, custom_results): Moved
30216         to tests/test-quotearg-simple.c.
30217         (main): Moved the part that does not depend on gettext to
30218         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30219         performed.
30220         * modules/quotearg-simple: New file.
30221         * modules/quotearg-simple-tests: New file.
30222         * modules/quotearg (Depends-on): Add quotearg-simple.
30223         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30224         (Files): Add tests/test-quotearg.h.
30225         Reported by Paolo Bonzini.
30226
30227 2010-06-03  Bruno Haible  <bruno@clisp.org>
30228
30229         Reduce dependencies.
30230         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30231
30232 2010-06-03  Bruno Haible  <bruno@clisp.org>
30233
30234         time: Undefine more broken macros.
30235         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30236         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30237         Reported by Eric Blake.
30238
30239 2010-06-03  Bruno Haible  <bruno@clisp.org>
30240
30241         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30242         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30243         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30244         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30245         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30246         Reported by Ludovic Courtès <ludo@gnu.org>.
30247
30248 2010-06-02  Eric Blake  <eblake@redhat.com>
30249
30250         time: work with mingw + pthreads-win32 library
30251         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30252         if timespec is defined only in pthread.h.
30253         * modules/time (Makefile.am): Substitute it.
30254         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30255         <pthread.h>, when needed.
30256         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30257         from the library.
30258
30259 2010-05-31  Bruno Haible  <bruno@clisp.org>
30260
30261         Avoid expanding two macros in the wrong order.
30262         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30263         gl_LIBUNISTRING if it is defined.
30264         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30265         autoconf >= 2.64.
30266         Reported by Ludovic Courtès <ludo@gnu.org>.
30267
30268 2010-05-27  Jim Meyering  <meyering@redhat.com>
30269
30270         maint.mk: also prohibit "#undef" of always-defined symbols
30271         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30272         Allow more than one space before the symbol name.
30273         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30274         the regexp uses alternation.
30275
30276 2010-05-26  Eric Blake  <eblake@redhat.com>
30277
30278         maint.mk: avoid echo -e
30279         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30280         Convert all uses of echo -* to printf.
30281         Reported by Matthias Bolte.
30282
30283 2010-05-25  Bruno Haible  <bruno@clisp.org>
30284
30285         Update to GNU gettext 0.18, part 2.
30286         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30287         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30288
30289 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30290
30291         Add missing include in test-pwrite.c.
30292         * tests/test-pwrite.c: Include string.h, for strcmp.
30293
30294 2010-05-24  Bruno Haible  <bruno@clisp.org>
30295
30296         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30297
30298 2010-05-24  Bruno Haible  <bruno@clisp.org>
30299
30300         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30301         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30302         iconveh_error argument.
30303         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30304         U_STRCONV_TO_LOCALE.
30305         * lib/unistr/u16-strcoll.c: Likewise.
30306         * lib/unistr/u32-strcoll.c: Likewise.
30307         * modules/unistr/u8-strcoll (Depends-on): Add
30308         uniconv/u8-strconv-to-enc, localcharset. Remove
30309         uniconv/u8-strconv-to-locale.
30310         (configure.ac): Bump version number.
30311         * modules/unistr/u16-strcoll (Depends-on): Add
30312         uniconv/u16-strconv-to-enc, localcharset. Remove
30313         uniconv/u16-strconv-to-locale.
30314         (configure.ac): Bump version number.
30315         * modules/unistr/u32-strcoll (Depends-on): Add
30316         uniconv/u32-strconv-to-enc, localcharset. Remove
30317         uniconv/u32-strconv-to-locale.
30318         (configure.ac): Bump version number.
30319
30320 2010-05-24  Bruno Haible  <bruno@clisp.org>
30321
30322         Avoid a test failure on NetBSD 5.0.
30323         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30324         an iconv() bug.
30325
30326 2010-05-24  Bruno Haible  <bruno@clisp.org>
30327
30328         Adjust #include directive style.
30329         * modules/regex (Includes): Recommend to write <regex.h>.
30330
30331 2010-05-24  Bruno Haible  <bruno@clisp.org>
30332
30333         regex: Don't require alloca.
30334         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30335         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30336         only inside if (0).
30337
30338 2010-05-23  Jim Meyering  <meyering@redhat.com>
30339
30340         test-renameat.c: include <sys/stat.h>
30341         * tests/test-renameat.c: Include <sys/stat.h>; required for
30342         definition of S_IS* macros.
30343
30344 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30345
30346         Update maintainer documentation for 'relocatable-prog' module.
30347         * doc/relocatable-maint.texi: Update.
30348         Comments by Bruno Haible.
30349
30350 2010-05-23  Bruno Haible  <bruno@clisp.org>
30351
30352         git-merge-changelog: Enable --split-merged-entry by default.
30353         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30354         (usage): Don't mention this option any more.
30355         Reported by Ralf Wildenhues.
30356
30357 2010-05-23  Jim Meyering  <meyering@redhat.com>
30358
30359         test-pwrite: do not leave behind a test file named "out"
30360         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30361         The trivial-looking use of init.sh is really necessary.
30362         It ensures that the temporary file, "out", is created in
30363         a temporary directory, and removed upon termination.
30364         * tests/test-pwrite.sh: Re-add file.
30365         * modules/pwrite-tests: Reference it.
30366
30367 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30368
30369         Fix output redirection buglet in init.sh.
30370         * tests/init.sh: Fix redirection of stderr.
30371
30372 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30373
30374         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30375
30376 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30377
30378         * modules/valgrind-tests: New file.
30379         * m4/valgrind-tests.m4: New file.
30380         * doc/valgrind-tests.texi: New file.
30381         * doc/gnulib.texi (Running self-tests under valgrind): New
30382         section.
30383
30384 2010-05-19  Bruno Haible  <bruno@clisp.org>
30385
30386         Clean up dead code in recent commit.
30387         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30388         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30389         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30390         Suggested by Paolo Bonzini.
30391
30392 2010-05-19  Bruno Haible  <bruno@clisp.org>
30393
30394         Avoid valgrind error reports from libunistring.
30395         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30396         * modules/libunistring (Files): Add it.
30397         * modules/libunistring-optional (Files): Likewise.
30398
30399 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30400             Bruno Haible  <bruno@clisp.org>
30401
30402         New module 'libunistring-optional'.
30403         * modules/libunistring-optional: New file.
30404         * m4/libunistring-base.m4: New file.
30405         * m4/libunistring-optional.m4: New file.
30406         * lib/unicase.in.h: Renamed from lib/unicase.h.
30407         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30408         * lib/unictype.in.h: Renamed from lib/unictype.h.
30409         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30410         * lib/uniname.in.h: Renamed from lib/uniname.h.
30411         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30412         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30413         * lib/unistr.in.h: Renamed from lib/unistr.h.
30414         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30415         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30416         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30417         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30418         gl_LIBUNISTRING. If the library was found, determine the installed
30419         version and set LIBUNISTRING_VERSION.
30420         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30421         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30422         handle a configuration option --with-included-libunistring.
30423         * modules/libunistring (Files): Add m4/absolute-header.m4.
30424         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30425         Add m4/libunistring-base.m4.
30426         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30427         (Makefile.am): Build unicase.h from unicase.in.h.
30428         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30429         Add m4/libunistring-base.m4.
30430         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30431         (Makefile.am): Build uniconv.h from uniconv.in.h.
30432         * modules/unictype/base (Files): Use unictype.in.h instead of
30433         unictype.h. Add m4/libunistring-base.m4.
30434         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30435         (Makefile.am): Build unictype.h from unictype.in.h.
30436         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30437         Add m4/libunistring-base.m4.
30438         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30439         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30440         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30441         Add m4/libunistring-base.m4.
30442         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30443         (Makefile.am): Build uniname.h from uniname.in.h.
30444         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30445         Add m4/libunistring-base.m4.
30446         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30447         (Makefile.am): Build uninorm.h from uninorm.in.h.
30448         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30449         unistdio.h. Add m4/libunistring-base.m4.
30450         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30451         (Makefile.am): Build unistdio.h from unistdio.in.h.
30452         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30453         Add m4/libunistring-base.m4.
30454         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30455         (Makefile.am): Build unistr.h from unistr.in.h.
30456         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30457         Add m4/libunistring-base.m4.
30458         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30459         (Makefile.am): Build unitypes.h from unitypes.in.h.
30460         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30461         Add m4/libunistring-base.m4.
30462         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30463         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30464         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30465         uniwidth.h. Add m4/libunistring-base.m4.
30466         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30467         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30468         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30469         instead of augmenting lib_SOURCES.
30470         * modules/unicase/empty-suffix-context: Likewise.
30471         * modules/unicase/locale-language: Likewise.
30472         * modules/unicase/tolower: Likewise.
30473         * modules/unicase/totitle: Likewise.
30474         * modules/unicase/toupper: Likewise.
30475         * modules/unicase/u8-casecmp: Likewise.
30476         * modules/unicase/u8-casecoll: Likewise.
30477         * modules/unicase/u8-casefold: Likewise.
30478         * modules/unicase/u8-casexfrm: Likewise.
30479         * modules/unicase/u8-ct-casefold: Likewise.
30480         * modules/unicase/u8-ct-tolower: Likewise.
30481         * modules/unicase/u8-ct-totitle: Likewise.
30482         * modules/unicase/u8-ct-toupper: Likewise.
30483         * modules/unicase/u8-is-cased: Likewise.
30484         * modules/unicase/u8-is-casefolded: Likewise.
30485         * modules/unicase/u8-is-lowercase: Likewise.
30486         * modules/unicase/u8-is-titlecase: Likewise.
30487         * modules/unicase/u8-is-uppercase: Likewise.
30488         * modules/unicase/u8-prefix-context: Likewise.
30489         * modules/unicase/u8-suffix-context: Likewise.
30490         * modules/unicase/u8-tolower: Likewise.
30491         * modules/unicase/u8-totitle: Likewise.
30492         * modules/unicase/u8-toupper: Likewise.
30493         * modules/unicase/u16-casecmp: Likewise.
30494         * modules/unicase/u16-casecoll: Likewise.
30495         * modules/unicase/u16-casefold: Likewise.
30496         * modules/unicase/u16-casexfrm: Likewise.
30497         * modules/unicase/u16-ct-casefold: Likewise.
30498         * modules/unicase/u16-ct-tolower: Likewise.
30499         * modules/unicase/u16-ct-totitle: Likewise.
30500         * modules/unicase/u16-ct-toupper: Likewise.
30501         * modules/unicase/u16-is-cased: Likewise.
30502         * modules/unicase/u16-is-casefolded: Likewise.
30503         * modules/unicase/u16-is-lowercase: Likewise.
30504         * modules/unicase/u16-is-titlecase: Likewise.
30505         * modules/unicase/u16-is-uppercase: Likewise.
30506         * modules/unicase/u16-prefix-context: Likewise.
30507         * modules/unicase/u16-suffix-context: Likewise.
30508         * modules/unicase/u16-tolower: Likewise.
30509         * modules/unicase/u16-totitle: Likewise.
30510         * modules/unicase/u16-toupper: Likewise.
30511         * modules/unicase/u32-casecmp: Likewise.
30512         * modules/unicase/u32-casecoll: Likewise.
30513         * modules/unicase/u32-casefold: Likewise.
30514         * modules/unicase/u32-casexfrm: Likewise.
30515         * modules/unicase/u32-ct-casefold: Likewise.
30516         * modules/unicase/u32-ct-tolower: Likewise.
30517         * modules/unicase/u32-ct-totitle: Likewise.
30518         * modules/unicase/u32-ct-toupper: Likewise.
30519         * modules/unicase/u32-is-cased: Likewise.
30520         * modules/unicase/u32-is-casefolded: Likewise.
30521         * modules/unicase/u32-is-lowercase: Likewise.
30522         * modules/unicase/u32-is-titlecase: Likewise.
30523         * modules/unicase/u32-is-uppercase: Likewise.
30524         * modules/unicase/u32-prefix-context: Likewise.
30525         * modules/unicase/u32-suffix-context: Likewise.
30526         * modules/unicase/u32-tolower: Likewise.
30527         * modules/unicase/u32-totitle: Likewise.
30528         * modules/unicase/u32-toupper: Likewise.
30529         * modules/unicase/ulc-casecmp: Likewise.
30530         * modules/unicase/ulc-casecoll: Likewise.
30531         * modules/unicase/ulc-casexfrm: Likewise.
30532         * modules/uniconv/u8-conv-from-enc: Likewise.
30533         * modules/uniconv/u8-conv-to-enc: Likewise.
30534         * modules/uniconv/u8-strconv-from-enc: Likewise.
30535         * modules/uniconv/u8-strconv-from-locale: Likewise.
30536         * modules/uniconv/u8-strconv-to-enc: Likewise.
30537         * modules/uniconv/u8-strconv-to-locale: Likewise.
30538         * modules/uniconv/u16-conv-from-enc: Likewise.
30539         * modules/uniconv/u16-conv-to-enc: Likewise.
30540         * modules/uniconv/u16-strconv-from-enc: Likewise.
30541         * modules/uniconv/u16-strconv-from-locale: Likewise.
30542         * modules/uniconv/u16-strconv-to-enc: Likewise.
30543         * modules/uniconv/u16-strconv-to-locale: Likewise.
30544         * modules/uniconv/u32-conv-from-enc: Likewise.
30545         * modules/uniconv/u32-conv-to-enc: Likewise.
30546         * modules/uniconv/u32-strconv-from-enc: Likewise.
30547         * modules/uniconv/u32-strconv-from-locale: Likewise.
30548         * modules/uniconv/u32-strconv-to-enc: Likewise.
30549         * modules/uniconv/u32-strconv-to-locale: Likewise.
30550         * modules/unictype/bidicategory-byname: Likewise.
30551         * modules/unictype/bidicategory-name: Likewise.
30552         * modules/unictype/bidicategory-of: Likewise.
30553         * modules/unictype/bidicategory-test: Likewise.
30554         * modules/unictype/block-list: Likewise.
30555         * modules/unictype/block-test: Likewise.
30556         * modules/unictype/category-C: Likewise.
30557         * modules/unictype/category-Cc: Likewise.
30558         * modules/unictype/category-Cf: Likewise.
30559         * modules/unictype/category-Cn: Likewise.
30560         * modules/unictype/category-Co: Likewise.
30561         * modules/unictype/category-Cs: Likewise.
30562         * modules/unictype/category-L: Likewise.
30563         * modules/unictype/category-Ll: Likewise.
30564         * modules/unictype/category-Lm: Likewise.
30565         * modules/unictype/category-Lo: Likewise.
30566         * modules/unictype/category-Lt: Likewise.
30567         * modules/unictype/category-Lu: Likewise.
30568         * modules/unictype/category-M: Likewise.
30569         * modules/unictype/category-Mc: Likewise.
30570         * modules/unictype/category-Me: Likewise.
30571         * modules/unictype/category-Mn: Likewise.
30572         * modules/unictype/category-N: Likewise.
30573         * modules/unictype/category-Nd: Likewise.
30574         * modules/unictype/category-Nl: Likewise.
30575         * modules/unictype/category-No: Likewise.
30576         * modules/unictype/category-P: Likewise.
30577         * modules/unictype/category-Pc: Likewise.
30578         * modules/unictype/category-Pd: Likewise.
30579         * modules/unictype/category-Pe: Likewise.
30580         * modules/unictype/category-Pf: Likewise.
30581         * modules/unictype/category-Pi: Likewise.
30582         * modules/unictype/category-Po: Likewise.
30583         * modules/unictype/category-Ps: Likewise.
30584         * modules/unictype/category-S: Likewise.
30585         * modules/unictype/category-Sc: Likewise.
30586         * modules/unictype/category-Sk: Likewise.
30587         * modules/unictype/category-Sm: Likewise.
30588         * modules/unictype/category-So: Likewise.
30589         * modules/unictype/category-Z: Likewise.
30590         * modules/unictype/category-Zl: Likewise.
30591         * modules/unictype/category-Zp: Likewise.
30592         * modules/unictype/category-Zs: Likewise.
30593         * modules/unictype/category-and: Likewise.
30594         * modules/unictype/category-and-not: Likewise.
30595         * modules/unictype/category-byname: Likewise.
30596         * modules/unictype/category-name: Likewise.
30597         * modules/unictype/category-none: Likewise.
30598         * modules/unictype/category-of: Likewise.
30599         * modules/unictype/category-or: Likewise.
30600         * modules/unictype/category-test: Likewise.
30601         * modules/unictype/combining-class: Likewise.
30602         * modules/unictype/ctype-alnum: Likewise.
30603         * modules/unictype/ctype-alpha: Likewise.
30604         * modules/unictype/ctype-blank: Likewise.
30605         * modules/unictype/ctype-cntrl: Likewise.
30606         * modules/unictype/ctype-digit: Likewise.
30607         * modules/unictype/ctype-graph: Likewise.
30608         * modules/unictype/ctype-lower: Likewise.
30609         * modules/unictype/ctype-print: Likewise.
30610         * modules/unictype/ctype-punct: Likewise.
30611         * modules/unictype/ctype-space: Likewise.
30612         * modules/unictype/ctype-upper: Likewise.
30613         * modules/unictype/ctype-xdigit: Likewise.
30614         * modules/unictype/decimal-digit: Likewise.
30615         * modules/unictype/digit: Likewise.
30616         * modules/unictype/mirror: Likewise.
30617         * modules/unictype/numeric: Likewise.
30618         * modules/unictype/property-alphabetic: Likewise.
30619         * modules/unictype/property-ascii-hex-digit: Likewise.
30620         * modules/unictype/property-bidi-arabic-digit: Likewise.
30621         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
30622         * modules/unictype/property-bidi-block-separator: Likewise.
30623         * modules/unictype/property-bidi-boundary-neutral: Likewise.
30624         * modules/unictype/property-bidi-common-separator: Likewise.
30625         * modules/unictype/property-bidi-control: Likewise.
30626         * modules/unictype/property-bidi-embedding-or-override: Likewise.
30627         * modules/unictype/property-bidi-eur-num-separator: Likewise.
30628         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
30629         * modules/unictype/property-bidi-european-digit: Likewise.
30630         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
30631         * modules/unictype/property-bidi-left-to-right: Likewise.
30632         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
30633         * modules/unictype/property-bidi-other-neutral: Likewise.
30634         * modules/unictype/property-bidi-pdf: Likewise.
30635         * modules/unictype/property-bidi-segment-separator: Likewise.
30636         * modules/unictype/property-bidi-whitespace: Likewise.
30637         * modules/unictype/property-byname: Likewise.
30638         * modules/unictype/property-combining: Likewise.
30639         * modules/unictype/property-composite: Likewise.
30640         * modules/unictype/property-currency-symbol: Likewise.
30641         * modules/unictype/property-dash: Likewise.
30642         * modules/unictype/property-decimal-digit: Likewise.
30643         * modules/unictype/property-default-ignorable-code-point: Likewise.
30644         * modules/unictype/property-deprecated: Likewise.
30645         * modules/unictype/property-diacritic: Likewise.
30646         * modules/unictype/property-extender: Likewise.
30647         * modules/unictype/property-format-control: Likewise.
30648         * modules/unictype/property-grapheme-base: Likewise.
30649         * modules/unictype/property-grapheme-extend: Likewise.
30650         * modules/unictype/property-grapheme-link: Likewise.
30651         * modules/unictype/property-hex-digit: Likewise.
30652         * modules/unictype/property-hyphen: Likewise.
30653         * modules/unictype/property-id-continue: Likewise.
30654         * modules/unictype/property-id-start: Likewise.
30655         * modules/unictype/property-ideographic: Likewise.
30656         * modules/unictype/property-ids-binary-operator: Likewise.
30657         * modules/unictype/property-ids-trinary-operator: Likewise.
30658         * modules/unictype/property-ignorable-control: Likewise.
30659         * modules/unictype/property-iso-control: Likewise.
30660         * modules/unictype/property-join-control: Likewise.
30661         * modules/unictype/property-left-of-pair: Likewise.
30662         * modules/unictype/property-line-separator: Likewise.
30663         * modules/unictype/property-logical-order-exception: Likewise.
30664         * modules/unictype/property-lowercase: Likewise.
30665         * modules/unictype/property-math: Likewise.
30666         * modules/unictype/property-non-break: Likewise.
30667         * modules/unictype/property-not-a-character: Likewise.
30668         * modules/unictype/property-numeric: Likewise.
30669         * modules/unictype/property-other-alphabetic: Likewise.
30670         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
30671         * modules/unictype/property-other-grapheme-extend: Likewise.
30672         * modules/unictype/property-other-id-continue: Likewise.
30673         * modules/unictype/property-other-id-start: Likewise.
30674         * modules/unictype/property-other-lowercase: Likewise.
30675         * modules/unictype/property-other-math: Likewise.
30676         * modules/unictype/property-other-uppercase: Likewise.
30677         * modules/unictype/property-paired-punctuation: Likewise.
30678         * modules/unictype/property-paragraph-separator: Likewise.
30679         * modules/unictype/property-pattern-syntax: Likewise.
30680         * modules/unictype/property-pattern-white-space: Likewise.
30681         * modules/unictype/property-private-use: Likewise.
30682         * modules/unictype/property-punctuation: Likewise.
30683         * modules/unictype/property-quotation-mark: Likewise.
30684         * modules/unictype/property-radical: Likewise.
30685         * modules/unictype/property-sentence-terminal: Likewise.
30686         * modules/unictype/property-soft-dotted: Likewise.
30687         * modules/unictype/property-space: Likewise.
30688         * modules/unictype/property-terminal-punctuation: Likewise.
30689         * modules/unictype/property-test: Likewise.
30690         * modules/unictype/property-titlecase: Likewise.
30691         * modules/unictype/property-unassigned-code-value: Likewise.
30692         * modules/unictype/property-unified-ideograph: Likewise.
30693         * modules/unictype/property-uppercase: Likewise.
30694         * modules/unictype/property-variation-selector: Likewise.
30695         * modules/unictype/property-white-space: Likewise.
30696         * modules/unictype/property-xid-continue: Likewise.
30697         * modules/unictype/property-xid-start: Likewise.
30698         * modules/unictype/property-zero-width: Likewise.
30699         * modules/unictype/scripts: Likewise.
30700         * modules/unictype/syntax-c-ident: Likewise.
30701         * modules/unictype/syntax-c-whitespace: Likewise.
30702         * modules/unictype/syntax-java-ident: Likewise.
30703         * modules/unictype/syntax-java-whitespace: Likewise.
30704         * modules/unilbrk/u8-possible-linebreaks: Likewise.
30705         * modules/unilbrk/u8-width-linebreaks: Likewise.
30706         * modules/unilbrk/u16-possible-linebreaks: Likewise.
30707         * modules/unilbrk/u16-width-linebreaks: Likewise.
30708         * modules/unilbrk/u32-possible-linebreaks: Likewise.
30709         * modules/unilbrk/u32-width-linebreaks: Likewise.
30710         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
30711         * modules/unilbrk/ulc-width-linebreaks: Likewise.
30712         * modules/uniname/uniname: Likewise.
30713         * modules/uninorm/canonical-decomposition: Likewise.
30714         * modules/uninorm/composition: Likewise.
30715         * modules/uninorm/decomposing-form: Likewise.
30716         * modules/uninorm/decomposition: Likewise.
30717         * modules/uninorm/filter: Likewise.
30718         * modules/uninorm/nfc: Likewise.
30719         * modules/uninorm/nfd: Likewise.
30720         * modules/uninorm/nfkc: Likewise.
30721         * modules/uninorm/nfkd: Likewise.
30722         * modules/uninorm/u8-normalize: Likewise.
30723         * modules/uninorm/u8-normcmp: Likewise.
30724         * modules/uninorm/u8-normcoll: Likewise.
30725         * modules/uninorm/u8-normxfrm: Likewise.
30726         * modules/uninorm/u16-normalize: Likewise.
30727         * modules/uninorm/u16-normcmp: Likewise.
30728         * modules/uninorm/u16-normcoll: Likewise.
30729         * modules/uninorm/u16-normxfrm: Likewise.
30730         * modules/uninorm/u32-normalize: Likewise.
30731         * modules/uninorm/u32-normcmp: Likewise.
30732         * modules/uninorm/u32-normcoll: Likewise.
30733         * modules/uninorm/u32-normxfrm: Likewise.
30734         * modules/unistdio/u8-asnprintf: Likewise.
30735         * modules/unistdio/u8-asprintf: Likewise.
30736         * modules/unistdio/u8-snprintf: Likewise.
30737         * modules/unistdio/u8-sprintf: Likewise.
30738         * modules/unistdio/u8-u8-asnprintf: Likewise.
30739         * modules/unistdio/u8-u8-asprintf: Likewise.
30740         * modules/unistdio/u8-u8-snprintf: Likewise.
30741         * modules/unistdio/u8-u8-sprintf: Likewise.
30742         * modules/unistdio/u8-u8-vasnprintf: Likewise.
30743         * modules/unistdio/u8-u8-vasprintf: Likewise.
30744         * modules/unistdio/u8-u8-vsnprintf: Likewise.
30745         * modules/unistdio/u8-u8-vsprintf: Likewise.
30746         * modules/unistdio/u8-vasnprintf: Likewise.
30747         * modules/unistdio/u8-vasprintf: Likewise.
30748         * modules/unistdio/u8-vsnprintf: Likewise.
30749         * modules/unistdio/u8-vsprintf: Likewise.
30750         * modules/unistdio/u16-asnprintf: Likewise.
30751         * modules/unistdio/u16-asprintf: Likewise.
30752         * modules/unistdio/u16-snprintf: Likewise.
30753         * modules/unistdio/u16-sprintf: Likewise.
30754         * modules/unistdio/u16-u16-asnprintf: Likewise.
30755         * modules/unistdio/u16-u16-asprintf: Likewise.
30756         * modules/unistdio/u16-u16-snprintf: Likewise.
30757         * modules/unistdio/u16-u16-sprintf: Likewise.
30758         * modules/unistdio/u16-u16-vasnprintf: Likewise.
30759         * modules/unistdio/u16-u16-vasprintf: Likewise.
30760         * modules/unistdio/u16-u16-vsnprintf: Likewise.
30761         * modules/unistdio/u16-u16-vsprintf: Likewise.
30762         * modules/unistdio/u16-vasnprintf: Likewise.
30763         * modules/unistdio/u16-vasprintf: Likewise.
30764         * modules/unistdio/u16-vsnprintf: Likewise.
30765         * modules/unistdio/u16-vsprintf: Likewise.
30766         * modules/unistdio/u32-asnprintf: Likewise.
30767         * modules/unistdio/u32-asprintf: Likewise.
30768         * modules/unistdio/u32-snprintf: Likewise.
30769         * modules/unistdio/u32-sprintf: Likewise.
30770         * modules/unistdio/u32-u32-asnprintf: Likewise.
30771         * modules/unistdio/u32-u32-asprintf: Likewise.
30772         * modules/unistdio/u32-u32-snprintf: Likewise.
30773         * modules/unistdio/u32-u32-sprintf: Likewise.
30774         * modules/unistdio/u32-u32-vasnprintf: Likewise.
30775         * modules/unistdio/u32-u32-vasprintf: Likewise.
30776         * modules/unistdio/u32-u32-vsnprintf: Likewise.
30777         * modules/unistdio/u32-u32-vsprintf: Likewise.
30778         * modules/unistdio/u32-vasnprintf: Likewise.
30779         * modules/unistdio/u32-vasprintf: Likewise.
30780         * modules/unistdio/u32-vsnprintf: Likewise.
30781         * modules/unistdio/u32-vsprintf: Likewise.
30782         * modules/unistdio/ulc-asnprintf: Likewise.
30783         * modules/unistdio/ulc-asprintf: Likewise.
30784         * modules/unistdio/ulc-fprintf: Likewise.
30785         * modules/unistdio/ulc-snprintf: Likewise.
30786         * modules/unistdio/ulc-sprintf: Likewise.
30787         * modules/unistdio/ulc-vasnprintf: Likewise.
30788         * modules/unistdio/ulc-vasprintf: Likewise.
30789         * modules/unistdio/ulc-vfprintf: Likewise.
30790         * modules/unistdio/ulc-vsnprintf: Likewise.
30791         * modules/unistdio/ulc-vsprintf: Likewise.
30792         * modules/unistr/u8-check: Likewise.
30793         * modules/unistr/u8-chr: Likewise.
30794         * modules/unistr/u8-cmp: Likewise.
30795         * modules/unistr/u8-cmp2: Likewise.
30796         * modules/unistr/u8-cpy: Likewise.
30797         * modules/unistr/u8-cpy-alloc: Likewise.
30798         * modules/unistr/u8-endswith: Likewise.
30799         * modules/unistr/u8-mblen: Likewise.
30800         * modules/unistr/u8-mbsnlen: Likewise.
30801         * modules/unistr/u8-mbtouc: Likewise.
30802         * modules/unistr/u8-mbtouc-unsafe: Likewise.
30803         * modules/unistr/u8-mbtoucr: Likewise.
30804         * modules/unistr/u8-move: Likewise.
30805         * modules/unistr/u8-next: Likewise.
30806         * modules/unistr/u8-prev: Likewise.
30807         * modules/unistr/u8-set: Likewise.
30808         * modules/unistr/u8-startswith: Likewise.
30809         * modules/unistr/u8-stpcpy: Likewise.
30810         * modules/unistr/u8-stpncpy: Likewise.
30811         * modules/unistr/u8-strcat: Likewise.
30812         * modules/unistr/u8-strchr: Likewise.
30813         * modules/unistr/u8-strcmp: Likewise.
30814         * modules/unistr/u8-strcoll: Likewise.
30815         * modules/unistr/u8-strcpy: Likewise.
30816         * modules/unistr/u8-strcspn: Likewise.
30817         * modules/unistr/u8-strdup: Likewise.
30818         * modules/unistr/u8-strlen: Likewise.
30819         * modules/unistr/u8-strmblen: Likewise.
30820         * modules/unistr/u8-strmbtouc: Likewise.
30821         * modules/unistr/u8-strncat: Likewise.
30822         * modules/unistr/u8-strncmp: Likewise.
30823         * modules/unistr/u8-strncpy: Likewise.
30824         * modules/unistr/u8-strnlen: Likewise.
30825         * modules/unistr/u8-strpbrk: Likewise.
30826         * modules/unistr/u8-strrchr: Likewise.
30827         * modules/unistr/u8-strspn: Likewise.
30828         * modules/unistr/u8-strstr: Likewise.
30829         * modules/unistr/u8-strtok: Likewise.
30830         * modules/unistr/u8-to-u16: Likewise.
30831         * modules/unistr/u8-to-u32: Likewise.
30832         * modules/unistr/u8-uctomb: Likewise.
30833         * modules/unistr/u16-check: Likewise.
30834         * modules/unistr/u16-chr: Likewise.
30835         * modules/unistr/u16-cmp: Likewise.
30836         * modules/unistr/u16-cmp2: Likewise.
30837         * modules/unistr/u16-cpy: Likewise.
30838         * modules/unistr/u16-cpy-alloc: Likewise.
30839         * modules/unistr/u16-endswith: Likewise.
30840         * modules/unistr/u16-mblen: Likewise.
30841         * modules/unistr/u16-mbsnlen: Likewise.
30842         * modules/unistr/u16-mbtouc: Likewise.
30843         * modules/unistr/u16-mbtouc-unsafe: Likewise.
30844         * modules/unistr/u16-mbtoucr: Likewise.
30845         * modules/unistr/u16-move: Likewise.
30846         * modules/unistr/u16-next: Likewise.
30847         * modules/unistr/u16-prev: Likewise.
30848         * modules/unistr/u16-set: Likewise.
30849         * modules/unistr/u16-startswith: Likewise.
30850         * modules/unistr/u16-stpcpy: Likewise.
30851         * modules/unistr/u16-stpncpy: Likewise.
30852         * modules/unistr/u16-strcat: Likewise.
30853         * modules/unistr/u16-strchr: Likewise.
30854         * modules/unistr/u16-strcmp: Likewise.
30855         * modules/unistr/u16-strcoll: Likewise.
30856         * modules/unistr/u16-strcpy: Likewise.
30857         * modules/unistr/u16-strcspn: Likewise.
30858         * modules/unistr/u16-strdup: Likewise.
30859         * modules/unistr/u16-strlen: Likewise.
30860         * modules/unistr/u16-strmblen: Likewise.
30861         * modules/unistr/u16-strmbtouc: Likewise.
30862         * modules/unistr/u16-strncat: Likewise.
30863         * modules/unistr/u16-strncmp: Likewise.
30864         * modules/unistr/u16-strncpy: Likewise.
30865         * modules/unistr/u16-strnlen: Likewise.
30866         * modules/unistr/u16-strpbrk: Likewise.
30867         * modules/unistr/u16-strrchr: Likewise.
30868         * modules/unistr/u16-strspn: Likewise.
30869         * modules/unistr/u16-strstr: Likewise.
30870         * modules/unistr/u16-strtok: Likewise.
30871         * modules/unistr/u16-to-u32: Likewise.
30872         * modules/unistr/u16-to-u8: Likewise.
30873         * modules/unistr/u16-uctomb: Likewise.
30874         * modules/unistr/u32-check: Likewise.
30875         * modules/unistr/u32-chr: Likewise.
30876         * modules/unistr/u32-cmp: Likewise.
30877         * modules/unistr/u32-cmp2: Likewise.
30878         * modules/unistr/u32-cpy: Likewise.
30879         * modules/unistr/u32-cpy-alloc: Likewise.
30880         * modules/unistr/u32-endswith: Likewise.
30881         * modules/unistr/u32-mblen: Likewise.
30882         * modules/unistr/u32-mbsnlen: Likewise.
30883         * modules/unistr/u32-mbtouc: Likewise.
30884         * modules/unistr/u32-mbtouc-unsafe: Likewise.
30885         * modules/unistr/u32-mbtoucr: Likewise.
30886         * modules/unistr/u32-move: Likewise.
30887         * modules/unistr/u32-next: Likewise.
30888         * modules/unistr/u32-prev: Likewise.
30889         * modules/unistr/u32-set: Likewise.
30890         * modules/unistr/u32-startswith: Likewise.
30891         * modules/unistr/u32-stpcpy: Likewise.
30892         * modules/unistr/u32-stpncpy: Likewise.
30893         * modules/unistr/u32-strcat: Likewise.
30894         * modules/unistr/u32-strchr: Likewise.
30895         * modules/unistr/u32-strcmp: Likewise.
30896         * modules/unistr/u32-strcoll: Likewise.
30897         * modules/unistr/u32-strcpy: Likewise.
30898         * modules/unistr/u32-strcspn: Likewise.
30899         * modules/unistr/u32-strdup: Likewise.
30900         * modules/unistr/u32-strlen: Likewise.
30901         * modules/unistr/u32-strmblen: Likewise.
30902         * modules/unistr/u32-strmbtouc: Likewise.
30903         * modules/unistr/u32-strncat: Likewise.
30904         * modules/unistr/u32-strncmp: Likewise.
30905         * modules/unistr/u32-strncpy: Likewise.
30906         * modules/unistr/u32-strnlen: Likewise.
30907         * modules/unistr/u32-strpbrk: Likewise.
30908         * modules/unistr/u32-strrchr: Likewise.
30909         * modules/unistr/u32-strspn: Likewise.
30910         * modules/unistr/u32-strstr: Likewise.
30911         * modules/unistr/u32-strtok: Likewise.
30912         * modules/unistr/u32-to-u16: Likewise.
30913         * modules/unistr/u32-to-u8: Likewise.
30914         * modules/unistr/u32-uctomb: Likewise.
30915         * modules/uniwbrk/u8-wordbreaks: Likewise.
30916         * modules/uniwbrk/u16-wordbreaks: Likewise.
30917         * modules/uniwbrk/u32-wordbreaks: Likewise.
30918         * modules/uniwbrk/ulc-wordbreaks: Likewise.
30919         * modules/uniwbrk/wordbreak-property: Likewise.
30920         * modules/uniwidth/u8-strwidth: Likewise.
30921         * modules/uniwidth/u8-width: Likewise.
30922         * modules/uniwidth/u16-strwidth: Likewise.
30923         * modules/uniwidth/u16-width: Likewise.
30924         * modules/uniwidth/u32-strwidth: Likewise.
30925         * modules/uniwidth/u32-width: Likewise.
30926         * modules/uniwidth/width: Likewise.
30927         * modules/unicase/cased-tests (Makefile.am): Link all test programs
30928         with $(LIBUNISTRING).
30929         * modules/unicase/ignorable-tests: Likewise.
30930         * modules/unicase/locale-language-tests: Likewise.
30931         * modules/unicase/tolower-tests: Likewise.
30932         * modules/unicase/totitle-tests: Likewise.
30933         * modules/unicase/toupper-tests: Likewise.
30934         * modules/unicase/u8-casecmp-tests: Likewise.
30935         * modules/unicase/u8-casecoll-tests: Likewise.
30936         * modules/unicase/u8-casefold-tests: Likewise.
30937         * modules/unicase/u8-is-cased-tests: Likewise.
30938         * modules/unicase/u8-is-casefolded-tests: Likewise.
30939         * modules/unicase/u8-is-lowercase-tests: Likewise.
30940         * modules/unicase/u8-is-titlecase-tests: Likewise.
30941         * modules/unicase/u8-is-uppercase-tests: Likewise.
30942         * modules/unicase/u8-tolower-tests: Likewise.
30943         * modules/unicase/u8-totitle-tests: Likewise.
30944         * modules/unicase/u8-toupper-tests: Likewise.
30945         * modules/unicase/u16-casecmp-tests: Likewise.
30946         * modules/unicase/u16-casecoll-tests: Likewise.
30947         * modules/unicase/u16-casefold-tests: Likewise.
30948         * modules/unicase/u16-is-cased-tests: Likewise.
30949         * modules/unicase/u16-is-casefolded-tests: Likewise.
30950         * modules/unicase/u16-is-lowercase-tests: Likewise.
30951         * modules/unicase/u16-is-titlecase-tests: Likewise.
30952         * modules/unicase/u16-is-uppercase-tests: Likewise.
30953         * modules/unicase/u16-tolower-tests: Likewise.
30954         * modules/unicase/u16-totitle-tests: Likewise.
30955         * modules/unicase/u16-toupper-tests: Likewise.
30956         * modules/unicase/u32-casecmp-tests: Likewise.
30957         * modules/unicase/u32-casecoll-tests: Likewise.
30958         * modules/unicase/u32-casefold-tests: Likewise.
30959         * modules/unicase/u32-is-cased-tests: Likewise.
30960         * modules/unicase/u32-is-casefolded-tests: Likewise.
30961         * modules/unicase/u32-is-lowercase-tests: Likewise.
30962         * modules/unicase/u32-is-titlecase-tests: Likewise.
30963         * modules/unicase/u32-is-uppercase-tests: Likewise.
30964         * modules/unicase/u32-tolower-tests: Likewise.
30965         * modules/unicase/u32-totitle-tests: Likewise.
30966         * modules/unicase/u32-toupper-tests: Likewise.
30967         * modules/unicase/ulc-casecmp-tests: Likewise.
30968         * modules/unicase/ulc-casecoll-tests: Likewise.
30969         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
30970         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
30971         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
30972         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
30973         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
30974         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
30975         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
30976         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
30977         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
30978         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
30979         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
30980         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
30981         * modules/unictype/bidicategory-byname-tests: Likewise.
30982         * modules/unictype/bidicategory-name-tests: Likewise.
30983         * modules/unictype/bidicategory-of-tests: Likewise.
30984         * modules/unictype/bidicategory-test-tests: Likewise.
30985         * modules/unictype/block-list-tests: Likewise.
30986         * modules/unictype/block-of-tests: Likewise.
30987         * modules/unictype/block-test-tests: Likewise.
30988         * modules/unictype/category-C-tests: Likewise.
30989         * modules/unictype/category-Cc-tests: Likewise.
30990         * modules/unictype/category-Cf-tests: Likewise.
30991         * modules/unictype/category-Cn-tests: Likewise.
30992         * modules/unictype/category-Co-tests: Likewise.
30993         * modules/unictype/category-Cs-tests: Likewise.
30994         * modules/unictype/category-L-tests: Likewise.
30995         * modules/unictype/category-Ll-tests: Likewise.
30996         * modules/unictype/category-Lm-tests: Likewise.
30997         * modules/unictype/category-Lo-tests: Likewise.
30998         * modules/unictype/category-Lt-tests: Likewise.
30999         * modules/unictype/category-Lu-tests: Likewise.
31000         * modules/unictype/category-M-tests: Likewise.
31001         * modules/unictype/category-Mc-tests: Likewise.
31002         * modules/unictype/category-Me-tests: Likewise.
31003         * modules/unictype/category-Mn-tests: Likewise.
31004         * modules/unictype/category-N-tests: Likewise.
31005         * modules/unictype/category-Nd-tests: Likewise.
31006         * modules/unictype/category-Nl-tests: Likewise.
31007         * modules/unictype/category-No-tests: Likewise.
31008         * modules/unictype/category-P-tests: Likewise.
31009         * modules/unictype/category-Pc-tests: Likewise.
31010         * modules/unictype/category-Pd-tests: Likewise.
31011         * modules/unictype/category-Pe-tests: Likewise.
31012         * modules/unictype/category-Pf-tests: Likewise.
31013         * modules/unictype/category-Pi-tests: Likewise.
31014         * modules/unictype/category-Po-tests: Likewise.
31015         * modules/unictype/category-Ps-tests: Likewise.
31016         * modules/unictype/category-S-tests: Likewise.
31017         * modules/unictype/category-Sc-tests: Likewise.
31018         * modules/unictype/category-Sk-tests: Likewise.
31019         * modules/unictype/category-Sm-tests: Likewise.
31020         * modules/unictype/category-So-tests: Likewise.
31021         * modules/unictype/category-Z-tests: Likewise.
31022         * modules/unictype/category-Zl-tests: Likewise.
31023         * modules/unictype/category-Zp-tests: Likewise.
31024         * modules/unictype/category-Zs-tests: Likewise.
31025         * modules/unictype/category-and-not-tests: Likewise.
31026         * modules/unictype/category-and-tests: Likewise.
31027         * modules/unictype/category-byname-tests: Likewise.
31028         * modules/unictype/category-name-tests: Likewise.
31029         * modules/unictype/category-none-tests: Likewise.
31030         * modules/unictype/category-of-tests: Likewise.
31031         * modules/unictype/category-or-tests: Likewise.
31032         * modules/unictype/category-test-withtable-tests: Likewise.
31033         * modules/unictype/combining-class-tests: Likewise.
31034         * modules/unictype/ctype-alnum-tests: Likewise.
31035         * modules/unictype/ctype-alpha-tests: Likewise.
31036         * modules/unictype/ctype-blank-tests: Likewise.
31037         * modules/unictype/ctype-cntrl-tests: Likewise.
31038         * modules/unictype/ctype-digit-tests: Likewise.
31039         * modules/unictype/ctype-graph-tests: Likewise.
31040         * modules/unictype/ctype-lower-tests: Likewise.
31041         * modules/unictype/ctype-print-tests: Likewise.
31042         * modules/unictype/ctype-punct-tests: Likewise.
31043         * modules/unictype/ctype-space-tests: Likewise.
31044         * modules/unictype/ctype-upper-tests: Likewise.
31045         * modules/unictype/ctype-xdigit-tests: Likewise.
31046         * modules/unictype/decimal-digit-tests: Likewise.
31047         * modules/unictype/digit-tests: Likewise.
31048         * modules/unictype/mirror-tests: Likewise.
31049         * modules/unictype/numeric-tests: Likewise.
31050         * modules/unictype/property-alphabetic-tests: Likewise.
31051         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31052         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31053         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31054         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31055         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31056         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31057         * modules/unictype/property-bidi-control-tests: Likewise.
31058         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31059         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31060         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31061         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31062         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31063         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31064         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31065         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31066         * modules/unictype/property-bidi-pdf-tests: Likewise.
31067         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31068         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31069         * modules/unictype/property-byname-tests: Likewise.
31070         * modules/unictype/property-combining-tests: Likewise.
31071         * modules/unictype/property-composite-tests: Likewise.
31072         * modules/unictype/property-currency-symbol-tests: Likewise.
31073         * modules/unictype/property-dash-tests: Likewise.
31074         * modules/unictype/property-decimal-digit-tests: Likewise.
31075         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31076         * modules/unictype/property-deprecated-tests: Likewise.
31077         * modules/unictype/property-diacritic-tests: Likewise.
31078         * modules/unictype/property-extender-tests: Likewise.
31079         * modules/unictype/property-format-control-tests: Likewise.
31080         * modules/unictype/property-grapheme-base-tests: Likewise.
31081         * modules/unictype/property-grapheme-extend-tests: Likewise.
31082         * modules/unictype/property-grapheme-link-tests: Likewise.
31083         * modules/unictype/property-hex-digit-tests: Likewise.
31084         * modules/unictype/property-hyphen-tests: Likewise.
31085         * modules/unictype/property-id-continue-tests: Likewise.
31086         * modules/unictype/property-id-start-tests: Likewise.
31087         * modules/unictype/property-ideographic-tests: Likewise.
31088         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31089         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31090         * modules/unictype/property-ignorable-control-tests: Likewise.
31091         * modules/unictype/property-iso-control-tests: Likewise.
31092         * modules/unictype/property-join-control-tests: Likewise.
31093         * modules/unictype/property-left-of-pair-tests: Likewise.
31094         * modules/unictype/property-line-separator-tests: Likewise.
31095         * modules/unictype/property-logical-order-exception-tests: Likewise.
31096         * modules/unictype/property-lowercase-tests: Likewise.
31097         * modules/unictype/property-math-tests: Likewise.
31098         * modules/unictype/property-non-break-tests: Likewise.
31099         * modules/unictype/property-not-a-character-tests: Likewise.
31100         * modules/unictype/property-numeric-tests: Likewise.
31101         * modules/unictype/property-other-alphabetic-tests: Likewise.
31102         * modules/unictype/property-other-default-ignorable-code-point-tests:
31103         Likewise.
31104         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31105         * modules/unictype/property-other-id-continue-tests: Likewise.
31106         * modules/unictype/property-other-id-start-tests: Likewise.
31107         * modules/unictype/property-other-lowercase-tests: Likewise.
31108         * modules/unictype/property-other-math-tests: Likewise.
31109         * modules/unictype/property-other-uppercase-tests: Likewise.
31110         * modules/unictype/property-paired-punctuation-tests: Likewise.
31111         * modules/unictype/property-paragraph-separator-tests: Likewise.
31112         * modules/unictype/property-pattern-syntax-tests: Likewise.
31113         * modules/unictype/property-pattern-white-space-tests: Likewise.
31114         * modules/unictype/property-private-use-tests: Likewise.
31115         * modules/unictype/property-punctuation-tests: Likewise.
31116         * modules/unictype/property-quotation-mark-tests: Likewise.
31117         * modules/unictype/property-radical-tests: Likewise.
31118         * modules/unictype/property-sentence-terminal-tests: Likewise.
31119         * modules/unictype/property-soft-dotted-tests: Likewise.
31120         * modules/unictype/property-space-tests: Likewise.
31121         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31122         * modules/unictype/property-test-tests: Likewise.
31123         * modules/unictype/property-titlecase-tests: Likewise.
31124         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31125         * modules/unictype/property-unified-ideograph-tests: Likewise.
31126         * modules/unictype/property-uppercase-tests: Likewise.
31127         * modules/unictype/property-variation-selector-tests: Likewise.
31128         * modules/unictype/property-white-space-tests: Likewise.
31129         * modules/unictype/property-xid-continue-tests: Likewise.
31130         * modules/unictype/property-xid-start-tests: Likewise.
31131         * modules/unictype/property-zero-width-tests: Likewise.
31132         * modules/unictype/scripts-tests: Likewise.
31133         * modules/unictype/syntax-c-ident-tests: Likewise.
31134         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31135         * modules/unictype/syntax-java-ident-tests: Likewise.
31136         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31137         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31138         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31139         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31140         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31141         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31142         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31143         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31144         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31145         * modules/uniname/uniname-tests: Likewise.
31146         * modules/uninorm/canonical-decomposition-tests: Likewise.
31147         * modules/uninorm/compat-decomposition-tests: Likewise.
31148         * modules/uninorm/composition-tests: Likewise.
31149         * modules/uninorm/decomposing-form-tests: Likewise.
31150         * modules/uninorm/decomposition-tests: Likewise.
31151         * modules/uninorm/filter-tests: Likewise.
31152         * modules/uninorm/nfc-tests: Likewise.
31153         * modules/uninorm/nfd-tests: Likewise.
31154         * modules/uninorm/nfkc-tests: Likewise.
31155         * modules/uninorm/nfkd-tests: Likewise.
31156         * modules/uninorm/u8-normcmp-tests: Likewise.
31157         * modules/uninorm/u8-normcoll-tests: Likewise.
31158         * modules/uninorm/u16-normcmp-tests: Likewise.
31159         * modules/uninorm/u16-normcoll-tests: Likewise.
31160         * modules/uninorm/u32-normcmp-tests: Likewise.
31161         * modules/uninorm/u32-normcoll-tests: Likewise.
31162         * modules/unistdio/u8-asnprintf-tests: Likewise.
31163         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31164         * modules/unistdio/u8-vasprintf-tests: Likewise.
31165         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31166         * modules/unistdio/u8-vsprintf-tests: Likewise.
31167         * modules/unistdio/u16-asnprintf-tests: Likewise.
31168         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31169         * modules/unistdio/u16-vasprintf-tests: Likewise.
31170         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31171         * modules/unistdio/u16-vsprintf-tests: Likewise.
31172         * modules/unistdio/u32-asnprintf-tests: Likewise.
31173         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31174         * modules/unistdio/u32-vasprintf-tests: Likewise.
31175         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31176         * modules/unistdio/u32-vsprintf-tests: Likewise.
31177         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31178         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31179         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31180         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31181         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31182         * modules/unistr/u8-check-tests: Likewise.
31183         * modules/unistr/u8-chr-tests: Likewise.
31184         * modules/unistr/u8-cmp-tests: Likewise.
31185         * modules/unistr/u8-cmp2-tests: Likewise.
31186         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31187         * modules/unistr/u8-cpy-tests: Likewise.
31188         * modules/unistr/u8-mblen-tests: Likewise.
31189         * modules/unistr/u8-mbsnlen-tests: Likewise.
31190         * modules/unistr/u8-mbtouc-tests: Likewise.
31191         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31192         * modules/unistr/u8-mbtoucr-tests: Likewise.
31193         * modules/unistr/u8-move-tests: Likewise.
31194         * modules/unistr/u8-next-tests: Likewise.
31195         * modules/unistr/u8-prev-tests: Likewise.
31196         * modules/unistr/u8-set-tests: Likewise.
31197         * modules/unistr/u8-stpcpy-tests: Likewise.
31198         * modules/unistr/u8-stpncpy-tests: Likewise.
31199         * modules/unistr/u8-strcat-tests: Likewise.
31200         * modules/unistr/u8-strcmp-tests: Likewise.
31201         * modules/unistr/u8-strcoll-tests: Likewise.
31202         * modules/unistr/u8-strcpy-tests: Likewise.
31203         * modules/unistr/u8-strdup-tests: Likewise.
31204         * modules/unistr/u8-strlen-tests: Likewise.
31205         * modules/unistr/u8-strmblen-tests: Likewise.
31206         * modules/unistr/u8-strmbtouc-tests: Likewise.
31207         * modules/unistr/u8-strncat-tests: Likewise.
31208         * modules/unistr/u8-strncmp-tests: Likewise.
31209         * modules/unistr/u8-strncpy-tests: Likewise.
31210         * modules/unistr/u8-strnlen-tests: Likewise.
31211         * modules/unistr/u8-to-u16-tests: Likewise.
31212         * modules/unistr/u8-to-u32-tests: Likewise.
31213         * modules/unistr/u8-uctomb-tests: Likewise.
31214         * modules/unistr/u16-check-tests: Likewise.
31215         * modules/unistr/u16-chr-tests: Likewise.
31216         * modules/unistr/u16-cmp-tests: Likewise.
31217         * modules/unistr/u16-cmp2-tests: Likewise.
31218         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31219         * modules/unistr/u16-cpy-tests: Likewise.
31220         * modules/unistr/u16-mblen-tests: Likewise.
31221         * modules/unistr/u16-mbsnlen-tests: Likewise.
31222         * modules/unistr/u16-mbtouc-tests: Likewise.
31223         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31224         * modules/unistr/u16-mbtoucr-tests: Likewise.
31225         * modules/unistr/u16-move-tests: Likewise.
31226         * modules/unistr/u16-next-tests: Likewise.
31227         * modules/unistr/u16-prev-tests: Likewise.
31228         * modules/unistr/u16-set-tests: Likewise.
31229         * modules/unistr/u16-stpcpy-tests: Likewise.
31230         * modules/unistr/u16-stpncpy-tests: Likewise.
31231         * modules/unistr/u16-strcat-tests: Likewise.
31232         * modules/unistr/u16-strcmp-tests: Likewise.
31233         * modules/unistr/u16-strcoll-tests: Likewise.
31234         * modules/unistr/u16-strcpy-tests: Likewise.
31235         * modules/unistr/u16-strdup-tests: Likewise.
31236         * modules/unistr/u16-strlen-tests: Likewise.
31237         * modules/unistr/u16-strmblen-tests: Likewise.
31238         * modules/unistr/u16-strmbtouc-tests: Likewise.
31239         * modules/unistr/u16-strncat-tests: Likewise.
31240         * modules/unistr/u16-strncmp-tests: Likewise.
31241         * modules/unistr/u16-strncpy-tests: Likewise.
31242         * modules/unistr/u16-strnlen-tests: Likewise.
31243         * modules/unistr/u16-to-u32-tests: Likewise.
31244         * modules/unistr/u16-to-u8-tests: Likewise.
31245         * modules/unistr/u16-uctomb-tests: Likewise.
31246         * modules/unistr/u32-check-tests: Likewise.
31247         * modules/unistr/u32-chr-tests: Likewise.
31248         * modules/unistr/u32-cmp-tests: Likewise.
31249         * modules/unistr/u32-cmp2-tests: Likewise.
31250         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31251         * modules/unistr/u32-cpy-tests: Likewise.
31252         * modules/unistr/u32-mblen-tests: Likewise.
31253         * modules/unistr/u32-mbsnlen-tests: Likewise.
31254         * modules/unistr/u32-mbtouc-tests: Likewise.
31255         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31256         * modules/unistr/u32-mbtoucr-tests: Likewise.
31257         * modules/unistr/u32-move-tests: Likewise.
31258         * modules/unistr/u32-next-tests: Likewise.
31259         * modules/unistr/u32-prev-tests: Likewise.
31260         * modules/unistr/u32-set-tests: Likewise.
31261         * modules/unistr/u32-stpcpy-tests: Likewise.
31262         * modules/unistr/u32-stpncpy-tests: Likewise.
31263         * modules/unistr/u32-strcat-tests: Likewise.
31264         * modules/unistr/u32-strcmp-tests: Likewise.
31265         * modules/unistr/u32-strcoll-tests: Likewise.
31266         * modules/unistr/u32-strcpy-tests: Likewise.
31267         * modules/unistr/u32-strdup-tests: Likewise.
31268         * modules/unistr/u32-strlen-tests: Likewise.
31269         * modules/unistr/u32-strmblen-tests: Likewise.
31270         * modules/unistr/u32-strmbtouc-tests: Likewise.
31271         * modules/unistr/u32-strncat-tests: Likewise.
31272         * modules/unistr/u32-strncmp-tests: Likewise.
31273         * modules/unistr/u32-strncpy-tests: Likewise.
31274         * modules/unistr/u32-strnlen-tests: Likewise.
31275         * modules/unistr/u32-to-u16-tests: Likewise.
31276         * modules/unistr/u32-to-u8-tests: Likewise.
31277         * modules/unistr/u32-uctomb-tests: Likewise.
31278         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31279         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31280         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31281         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31282         * modules/uniwidth/u8-strwidth-tests: Likewise.
31283         * modules/uniwidth/u8-width-tests: Likewise.
31284         * modules/uniwidth/u16-strwidth-tests: Likewise.
31285         * modules/uniwidth/u16-width-tests: Likewise.
31286         * modules/uniwidth/u32-strwidth-tests: Likewise.
31287         * modules/uniwidth/u32-width-tests: Likewise.
31288         * modules/uniwidth/width-tests: Likewise.
31289
31290 2010-05-18  Richard Jones  <rjones@redhat.com>
31291
31292         doc: users.txt: list hivex
31293         * users.txt: Add hivex.
31294
31295 2010-05-18  Richard Jones  <rjones@redhat.com>
31296
31297         doc: users.txt: list febootstrap
31298         * users.txt: Add febootstrap.
31299
31300 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31301
31302         bootstrap: fix an error when gnulib is not used as a git submodule
31303         * build-aux/bootstrap (gnulib_path): If its length is zero then
31304         assign "gnulib" to it.
31305         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31306
31307 2010-05-16  Bruno Haible  <bruno@clisp.org>
31308
31309         Avoid autoconf warnings about AM_ICONV.
31310         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31311         2.64.
31312
31313 2010-05-16  Bruno Haible  <bruno@clisp.org>
31314
31315         absolute-header: Make the macro usable in more situations.
31316         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31317         from gl_ABSOLUTE_HEADER.
31318         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31319
31320 2010-05-16  James Youngman  <jay@gnu.org>
31321
31322         doc: update users.txt
31323         * users.txt: Add CSSC.
31324
31325 2010-05-16  Jim Meyering  <meyering@redhat.com>
31326
31327         init.sh: fix an error in the previous change; add more comments
31328         * tests/init.sh: Compare exit code in loop against 9, not 2.
31329         Patch by Bruno Haible.
31330         Make the two tests more similar by adding an empty "then" clause.
31331         Add comments.
31332
31333         init.sh: avoid unnecessary shell re-exec
31334         * tests/init.sh: Improve the re-exec-required check to first test the
31335         current shell.  If it passes the test, do not search for a shell that
31336         does pass, and do not re-exec.  This test is particularly contorted to
31337         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31338         of $(...) evokes a syntax error and causes immediate shell exit with
31339         status 2.  Bruno Haible reported that the re-exec made it impossible
31340         to single-step through any init.sh-using script.
31341
31342 2010-05-16  Bruno Haible  <bruno@clisp.org>
31343
31344         Fix collision between gnulib's and libintl's printf replacements.
31345         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31346         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31347         (printf): When using GNU C, map the __printf__ function to rpl_printf
31348         via __asm__. When not using GNU C, define rpl_printf instead of
31349         __printf__.
31350         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31351         commit.
31352         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31353         commit.
31354         * m4/asm-underscore.m4: New file.
31355         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31356         * modules/stdio (Files): Add m4/asm-underscore.m4.
31357         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31358         Reported by Ben Pfaff.
31359
31360 2010-05-16  Bruno Haible  <bruno@clisp.org>
31361
31362         verify: Avoid skipping the test on openSUSE 11.0.
31363         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31364
31365 2010-05-13  Bruno Haible  <bruno@clisp.org>
31366
31367         Avoid useless warnings from G++.
31368         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31369         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31370         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31371
31372 2010-05-11  Jim Meyering  <meyering@redhat.com>
31373
31374         maint.mk: tweak preceding change
31375         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31376         regexps tighter by anchoring at EOL, and make the new group "shy"
31377         for slightly decreased overhead.
31378
31379 2010-05-11  Eric Blake  <eblake@redhat.com>
31380
31381         maint.mk: gnulib doesn't guarantee NSIG
31382         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31383
31384 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31385
31386         test-pwrite.c: Remove unused variable declaration.
31387         * tests/test-pwrite.c (main): Remove read_buf declaration.
31388
31389         Remove useless test-pwrite.sh file.
31390         * tests/test-pwrite.sh: Delete file.
31391         * modules/pwrite-tests: Remove references.
31392         Reported by Bruno Haible.
31393
31394 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31395
31396         init.sh: fix a typo
31397         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31398
31399 2010-05-10  Jim Meyering  <meyering@redhat.com>
31400
31401         maint.mk: avoid using a temporary file in the always-defined-macros check
31402         * top/maint.mk (.re-defmac): Remove rule.
31403         (gl_trap_): Remove definition.
31404         (sc_prohibit_always-defined_macros): Rewrite not to create and
31405         depend on a temporary file.  Instead, depend on GNU grep's ability
31406         to read a list of regular expressions from stdin when given "-f -".
31407
31408 2010-05-09  Bruno Haible  <bruno@clisp.org>
31409
31410         Update to GNU gettext 0.18, part 1.
31411         * m4/gettext.m4: Update to GNU gettext 0.18.
31412         * m4/intl.m4: Likewise.
31413         * m4/po.m4: Likewise.
31414         * modules/gettext (Files): Add m4/fcntl-o.m4.
31415         (configure.ac): Require gettext infrastructure from version 0.18.
31416
31417 2010-05-09  Jim Meyering  <meyering@redhat.com>
31418
31419         init.sh: enable MALLOC_PERTURB_
31420         * tests/init.sh: Enable glibc's malloc-perturbing option.
31421
31422         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31423         With my recent change in init.sh from the two-line form:
31424             -#   : ${srcdir=.}
31425             -#   . "$srcdir/init.sh"; path_prepend_ .
31426             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31427         I noticed that using the one-line form would cause this test
31428         to fail with a false-positive, or to stop working altogether,
31429         depending on whether help-version changed or all the tests did.
31430         * top/maint.mk (_hv_regex): Remove this definition.
31431         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31432         (_hv_regex_strong): Use a stronger regex to check for conformance.
31433         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31434         Give a separate diagnostic for lack of conforming use.
31435
31436         maint.mk: prohibit definition of symbols defined by gnulib
31437         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31438         definition of symbols defined by gnulib.
31439
31440 2010-05-09  Bruno Haible  <bruno@clisp.org>
31441
31442         acl: Avoid test failure on Cygwin-hosted mingw.
31443         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31444
31445 2010-05-09  Bruno Haible  <bruno@clisp.org>
31446
31447         error: Use system's fcntl function.
31448         * lib/error.c (fcntl): Undefine.
31449
31450 2010-05-09  Jim Meyering  <meyering@redhat.com>
31451
31452         verify: adjust formatting to be more consistent
31453         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31454         argument-list '('s, and after one comma.
31455
31456 2010-05-09  Bruno Haible  <bruno@clisp.org>
31457
31458         error: More reliable output on mingw.
31459         * lib/error.c: Include <windows.h>.
31460         (is_open): New function.
31461         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31462         defined.
31463
31464 2010-05-09  Bruno Haible  <bruno@clisp.org>
31465
31466         vasnprintf: Fix syntax errors in libintl build on mingw.
31467         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31468         pad_ourselves and prec_ourselves after use.
31469
31470 2010-05-08  Bruno Haible  <bruno@clisp.org>
31471
31472         * lib/config.charset: Update comments for Cygwin 1.7.
31473         * lib/localcharset.c: Likewise.
31474
31475 2010-05-07  Jim Meyering  <meyering@redhat.com>
31476
31477         init.sh: improve comments
31478         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31479         . "${srcdir=.}/init.sh"; path_prepend_ .
31480         Add a note about path_prepend_ and the alternative of using
31481         TESTS_ENVIRONMENT.
31482
31483 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31484
31485         exclude: Unescape hashed patterns in wildcard mode.
31486         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31487         to the hash list.
31488         * tests/test-exclude8.sh: New test case.
31489         * modules/exclude-tests: Add new test.
31490
31491 2010-05-05  Eric Blake  <eblake@redhat.com>
31492
31493         verify: automate tests
31494         * modules/verify-tests: New module.
31495         * tests/test-verify.sh: New file.
31496         * tests/test-verify.c: Guard each negative test with a unique id.
31497         Also avoid warning about unused left hand of comma expressions.
31498
31499 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31500
31501         Further improvements to verify.h, suggested by Eric Blake.
31502         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31503         the GL_* versions, to avoid collision with OpenGL.
31504         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31505         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31506         than testing merely whether it's defined.
31507
31508         Modify verify.h to pacify gcc -Wredundant_decls.
31509         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31510         These use the prefix "GL_" since they're likely to be useful elsewhere.
31511         We may need to break them out into a different .h file.
31512         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31513         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31514         of verify_function__.
31515
31516 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31517
31518         Tests for module pwrite.
31519         * modules/pwrite-tests: New file.
31520         * tests/test-pwrite.sh: New file.
31521         * tests/test-pwrite.c: New file.
31522
31523         New module pwrite.
31524         * lib/unistd.in.h (pwrite): New declaration.
31525         * lib/pwrite.c: New file, from glibc with modifications.
31526         * m4/pwrite.m4: New file.
31527         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
31528         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
31529         REPLACE_PWRITE.
31530         * modules/pwrite: New file.
31531         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
31532         REPLACE_PWRITE.
31533         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
31534         * doc/posix-functions/pwrite.texi: Mention the new module.
31535
31536 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31537
31538         pread: Update documentation.
31539         * doc/posix-functions/pread.texi: Mention the 'pread' module.
31540
31541 2010-05-04  Eric Blake  <eblake@redhat.com>
31542
31543         docs: update cygwin progress
31544         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
31545         this bug.
31546         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
31547         Added in cygwin 1.7.2.
31548         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
31549         Likewise.
31550         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
31551         Likewise.
31552         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31553         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31554         * doc/glibc-functions/accept4.texi (accept4): Likewise.
31555         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
31556         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
31557         Mention nproc module.
31558         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
31559         bug in cygwin 1.7.5 addition.
31560         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
31561         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
31562         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
31563         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
31564         1.7.5.
31565         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
31566         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
31567         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
31568         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
31569         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
31570         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
31571         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
31572         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
31573         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
31574         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
31575         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
31576         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
31577         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
31578         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
31579         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
31580         Likewise.
31581         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
31582         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
31583         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
31584         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
31585         Likewise.
31586         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
31587         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
31588         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
31589         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
31590         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
31591         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
31592         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
31593         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
31594         Likewise.
31595         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
31596         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
31597         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
31598         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
31599         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
31600         Likewise.
31601         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
31602         Likewise.
31603         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
31604         Likewise.
31605         * doc/glibc-functions/xdrrec_endofrecord.texi
31606         (xdrrec_endofrecord): Likewise.
31607         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
31608         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
31609         Likewise.
31610         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
31611         Likewise.
31612
31613 2010-05-04  Jim Meyering  <meyering@redhat.com>
31614
31615         gendocs.sh: make its "-s FILE" option more useful
31616         * build-aux/gendocs.sh: When honoring the -s FILE option, update
31617         $PACKAGE to reflect the probably-different basename of "FILE".
31618
31619 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31620
31621         bootstrap: don't ignore download_po_files failure
31622         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
31623         failure.
31624
31625 2010-05-03  Jim Meyering  <meyering@redhat.com>
31626
31627         maint.mk: allow to pass options to gendocs.sh
31628         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
31629         (gendocs_options_): New overridable variable.
31630
31631         gnu-web-doc-update: don't ignore configure or build failure
31632         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
31633
31634         announce-gen: backslash-escape '@'s in --help output
31635         * build-aux/announce-gen: Fix syntax errors.
31636
31637         maint.mk, announce-gen: allow project-specific announcement mail headers
31638         * top/maint.mk (translation_project_): Define default.
31639         (announcement_Cc_, announcement_mail_headers_): Likewise.
31640         (announcement): Invoke announce-gen with new --mail-headers option.
31641         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
31642
31643         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
31644         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
31645         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
31646         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
31647         line in the "err2" output file when running "make check" in verbose
31648         mode (i.e., with set -x enabled).
31649
31650 2010-05-03  Bruno Haible  <bruno@clisp.org>
31651
31652         wctob: Fix for weird platforms.
31653         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
31654         argument value.
31655
31656 2010-05-03  Jim Meyering  <meyering@redhat.com>
31657
31658         maint.mk: prohibit unwarranted use of <strings.h>
31659         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
31660         strings.h in a file that does not also use strcasecmp, strncasecmp,
31661         ffs or ffsll.
31662
31663         maint.mk: remove obsolete comments
31664         * top/maint.mk: Remove stale, commented-out rules.
31665
31666 2010-05-02  Bruno Haible  <bruno@clisp.org>
31667
31668         wcwidth: Declare also when it's aliased.
31669         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
31670         macro.
31671
31672 2010-05-02  Bruno Haible  <bruno@clisp.org>
31673
31674         Fix regression from 2010-04-25.
31675         * gnulib-tool (func_modules_transitive_closure): Check the status of
31676         all modules, not only of the tests that are of the form foo-tests where
31677         foo is a module.
31678
31679 2010-05-02  Bruno Haible  <bruno@clisp.org>
31680
31681         wctob: Work around nasty Cygwin 1.7.2 bug.
31682         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
31683         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
31684
31685 2010-05-01  Bruno Haible  <bruno@clisp.org>
31686
31687         fpurge: Sharper test.
31688         * tests/test-fpurge.c (main): Add one more ftell check.
31689         * modules/fpurge-tests (Depends-on): Add ftell.
31690         Suggested by Eric Blake.
31691
31692 2010-05-01  Bruno Haible  <bruno@clisp.org>
31693
31694         ftello: Another test.
31695         * tests/test-ftello3.c: New file.
31696         * modules/ftello-tests (Files): Add it.
31697         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31698         MOSTLYCLEANFILES.
31699
31700         ftell: Another test.
31701         * tests/test-ftell3.c: New file.
31702         * modules/ftell-tests (Files): Add it.
31703         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31704         MOSTLYCLEANFILES.
31705
31706 2010-05-01  Bruno Haible  <bruno@clisp.org>
31707
31708         ftell, ftello: Work around Solaris bug.
31709         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
31710         * lib/ftello.c: Include stdio-impl.h.
31711         (ftello): On Solaris, when _IOWRT is set, compute the result without
31712         looking at _IOREAD.
31713         * modules/ftello (Files): Add lib/stdio-impl.h.
31714         * doc/posix-functions/ftell.texi: Mention Solaris bug.
31715         * doc/posix-functions/ftello.texi: Likewise.
31716         Reported by Eric Blake.
31717
31718 2010-05-01  Bruno Haible  <bruno@clisp.org>
31719
31720         freading: Adapt to special meaning of _IOREAD flag on Solaris.
31721         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
31722         the _IOWRT flag is also set.
31723
31724 2010-05-01  Bruno Haible  <bruno@clisp.org>
31725
31726         Fix doc about a HP-UX stdio bug.
31727         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
31728         * doc/posix-functions/ftello.texi: Likewise.
31729
31730 2010-05-01  Bruno Haible  <bruno@clisp.org>
31731
31732         lseek test: Fix failure on Solaris.
31733         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
31734         output.
31735
31736 2010-04-30  Jim Meyering  <meyering@redhat.com>
31737
31738         bootstrap: don't ignore failure to generate po*/Makevars
31739         * build-aux/bootstrap (with_gettext): Don't ignore failure
31740         to create po/Makevars or runtime-po/Makevars.
31741
31742 2010-04-29  Eric Blake  <eblake@redhat.com>
31743
31744         headers: relax license to LGPLv2+
31745         * modules/fcntl-h (License): Relax license.
31746         * modules/getopt-posix (License): Likewise.
31747         * modules/locale (License): Likewise.
31748         * modules/math (License): Likewise.
31749         * modules/pty (License): Likewise.
31750         * modules/sched (License): Likewise.
31751         * modules/search (License): Likewise.
31752         * modules/spawn (License): Likewise.
31753         * modules/stdarg (License): Likewise.
31754         * modules/sysexits (License): Likewise.
31755
31756 2010-04-29  Jim Meyering  <meyering@redhat.com>
31757
31758         inttypes: relax license to LGPLv2+
31759         * modules/inttypes (License): Relax license.
31760
31761 2010-04-29  Simon Josefsson  <simon@josefsson.org>
31762
31763         * top/maint.mk (indent): Run twice to produce idempotent results.
31764
31765 2010-04-28  Bruno Haible  <bruno@clisp.org>
31766
31767         getdate: Generate getdate.c in the source directory.
31768         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
31769         MOSTLYCLEANFILES.
31770         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
31771
31772 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
31773
31774         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
31775         is not declared as a const *; avoid warnings in that case.
31776
31777 2010-04-28  Eric Blake  <eblake@redhat.com>
31778
31779         canonicalize-lgpl: avoid compiler warning
31780         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
31781         declaration' / 'extraneous semicolon' warning with some compilers.
31782         Reported by Andreas Gruenbacher.
31783
31784 2010-04-28  Jim Meyering  <meyering@redhat.com>
31785
31786         init.sh: ensure a more reliable exit status when exiting via trap
31787         * tests/init.sh (setup_): Don't rely on $? in signal handler.
31788         Inspired by patches from Dmitry V. Levin.
31789         Also trap on signal 3 (SIGQUIT).
31790
31791 2010-04-27  Bruno Haible  <bruno@clisp.org>
31792
31793         Update doc about utimes().
31794         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
31795         'utimens' module.
31796         Reported by Andreas Gruenbacher <agruen@suse.de>.
31797
31798 2010-04-27  Eric Blake  <eblake@redhat.com>
31799
31800         full-read, full-write: relax license
31801         * modules/full-read (License): Drop to LGPLv2+.
31802         * modules/full-write (License): Likewise.
31803         * modules/safe-read (License): Likewise.
31804         * modules/safe-write (License): Likewise.
31805
31806         pthread: mention library for linking
31807         * modules/pthread (Link): Mention $(LIB_PTHREAD).
31808
31809 2010-04-27  Jim Meyering  <meyering@redhat.com>
31810
31811         maint.mk: fix a bug introduced in last change
31812         * top/maint.mk (gl_assured_headers_): Now that all names are on
31813         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
31814         is not anchored to end of word, it should be adequate.
31815
31816         maint.mk: avoid side-effect in latest syntax-check
31817         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
31818         to run commands via $(shell...), and hence to incur cost only when
31819         the new rule is actually run.
31820
31821         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
31822         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
31823         and use that to create a regexp used to detect all #if HAVE_..._H uses.
31824         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
31825         (gl_assured_headers_, az_, AZ_): Define.
31826         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
31827
31828 2010-04-26  Jim Meyering  <jim@meyering.net>
31829             Bruno Haible  <bruno@clisp.org>
31830
31831         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
31832         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
31833         Prompted by an exchange with Gilles Espinasse.
31834
31835 2010-04-26  Jim Meyering  <meyering@redhat.com>
31836
31837         git-version-gen: aesthetic tweak
31838         * build-aux/git-version-gen: Use "$nl" rather than a literal,
31839         so that the command remains on a single line.
31840
31841 2010-04-26  Eric Blake  <eblake@redhat.com>
31842
31843         git-version-gen: allow use on EBCDIC hosts
31844         * build-aux/git-version-gen (dirty): Use literal rather than tying
31845         ourselves to ascii.
31846         Reported by Steve Goetze.
31847
31848 2010-04-25  Bruno Haible  <bruno@clisp.org>
31849
31850         netdb: Add support for GNULIB_POSIXCHECK.
31851         * lib/netdb.in.h: Include warn-on-use.h.
31852         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
31853         functions are used when GNULIB_POSIXCHECK is defined and the
31854         getaddrinfo module is not in use.
31855         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
31856         freeaddrinfo, gai_strerror, getnameinfo are declared.
31857         * modules/netdb (Depends-on): Add warn-on-use.
31858         (Makefile.am): Include warn-on-use.h in netdb.h.
31859
31860 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
31861
31862         build: avoid "make check" failure without .git/ directory
31863         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
31864         there is no .git/ directory.
31865
31866 2010-04-25  Bruno Haible  <bruno@clisp.org>
31867
31868         ptsname: Fix misuse of ttyname_r.
31869         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
31870         of errno.
31871
31872 2010-04-25  Bruno Haible  <bruno@clisp.org>
31873
31874         ttyname_r: Make it work on Solaris 10.
31875         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
31876         if the system function has the POSIX declaration. Test whether the
31877         function fails if the buffer is less than 128 bytes large.
31878         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
31879         system's ttyname_r function. Provide a reasonably large buffer.
31880         * modules/ttyname_r (Depends-on): Add extensions.
31881         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
31882
31883 2010-04-25  Bruno Haible  <bruno@clisp.org>
31884
31885         Use the 'extensions' module for some more functions on Solaris.
31886         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
31887         module.
31888         * doc/posix-functions/ctime_r.texi: Likewise.
31889         * doc/posix-functions/getgrgid_r.texi: Likewise.
31890         * doc/posix-functions/getgrnam_r.texi: Likewise.
31891         * doc/posix-functions/getpwnam_r.texi: Likewise.
31892         * doc/posix-functions/getpwuid_r.texi: Likewise.
31893         * doc/posix-functions/readdir_r.texi: Likewise.
31894         * doc/posix-functions/sigwait.texi: Likewise.
31895         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
31896         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
31897
31898 2010-04-25  Bruno Haible  <bruno@clisp.org>
31899
31900         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
31901         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
31902         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
31903         * lib/ttyname_r.c: Include <limits.h>.
31904         (ttyname_r): Define using the system's ttyname_r function, if it exists
31905         and not on Solaris.
31906         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
31907         set.
31908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
31909         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
31910         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
31911         Reported by Simon Josefsson.
31912
31913 2010-04-25  Bruno Haible  <bruno@clisp.org>
31914
31915         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
31916         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
31917         * doc/posix-functions/ctime_r.texi: Likewise.
31918         * doc/posix-functions/getgrgid_r.texi: Likewise.
31919         * doc/posix-functions/getgrnam_r.texi: Likewise.
31920         * doc/posix-functions/getlogin_r.texi: Likewise.
31921         * doc/posix-functions/getpwnam_r.texi: Likewise.
31922         * doc/posix-functions/getpwuid_r.texi: Likewise.
31923         * doc/posix-functions/readdir_r.texi: Likewise.
31924         * doc/posix-functions/sigwait.texi: Likewise.
31925         * doc/posix-functions/ttyname_r.texi: Likewise.
31926         Reported by Simon Josefsson.
31927
31928 2010-04-25  Bruno Haible  <bruno@clisp.org>
31929
31930         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
31931         * gnulib-tool (func_usage): Document that --with-*-tests options apply
31932         also to --create-testdir.
31933         (func_acceptable): Don't consider the status of *-tests modules here.
31934         (func_modules_transitive_closure): Consider it here, before including a
31935         test module.
31936         (func_import, func_create_testdir): Set inc_all_direct_tests,
31937         inc_all_indirect_tests.
31938         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
31939         --create-testdir and --create-megatestdir.
31940
31941 2010-04-25  Bruno Haible  <bruno@clisp.org>
31942
31943         gnulib-tool: Add --without-*-tests options.
31944         * gnulib-tool (func_usage): Document the --without-*-tests options.
31945         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
31946         excl_unportable_tests): New variables.
31947         Fail if they are specified with --import or --update.
31948         (func_acceptable): Respect the excl_*_tests variables.
31949         (func_import): Set the excl_*_tests variables to empty.
31950
31951 2010-04-25  Simon Josefsson  <simon@josefsson.org>
31952             Bruno Haible  <bruno@clisp.org>
31953
31954         Work around a MacOS X 10.4 bug with openpty.
31955         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
31956         * tests/test-openpty.c (main): Close the master side explicitly.
31957
31958 2010-04-25  Bruno Haible  <bruno@clisp.org>
31959
31960         strnlen: Fix a C++ test error on MacOS X and Solaris.
31961         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
31962         the function is not declared.
31963         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
31964         Simon Josefsson.
31965
31966 2010-04-24  Bruno Haible  <bruno@clisp.org>
31967
31968         Avoid a gcc warning.
31969         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
31970         of correct type for %08lx directive.
31971         Reported by Eric Blake.
31972
31973 2010-04-24  Bruno Haible  <bruno@clisp.org>
31974
31975         vasnprintf: Correct errno value in case of out-of-memory.
31976         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
31977         or sprintf. Use the errno value from SNPRINTF or sprintf.
31978         Reported by Ian Beckwith <ianb@erislabs.net>.
31979
31980 2010-04-24  Bruno Haible  <bruno@clisp.org>
31981
31982         ansi-c++-opt: Find correct compiler when cross-compiling.
31983         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
31984         AC_CHECK_PROGS.
31985         Reported by Simon Josefsson.
31986
31987 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
31988
31989         vc-list-files: Add support for subversion
31990         * build-aux/vc-list-files: Use "svn list" to generate the list of
31991         files controlled by subversion.
31992
31993 2010-04-23  Jim Meyering  <meyering@redhat.com>
31994
31995         vc-list-files tests: convert to use init.sh
31996         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
31997         path_prepend_.
31998         Use Exit, not exit.
31999         Use skip_ rather than open coding it.
32000         Remove trap set-up and compare definitions.
32001         * tests/test-vc-list-files-git.sh: Likewise.
32002         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32003
32004 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32005
32006         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32007         backup files.
32008
32009 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32010
32011         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32012
32013 2010-04-20  Eric Blake  <eblake@redhat.com>
32014
32015         tests: be robust to ignored SIGPIPE
32016         * tests/test-select-in.sh: Consume all output.
32017         * tests/test-lseek.sh: Check correct exit status, while avoiding
32018         EPIPE.
32019
32020 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32021             Bruno Haible  <bruno@clisp.org>
32022
32023         visibility: Don't use -fvisibility if it leads to a warning.
32024         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32025         yes, don't pretend that visibility works if it leads to a warning.
32026         Reported by Mike Gran <spk121@yahoo.com>.
32027
32028 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32029
32030         * build-aux/bootstrap: Use "git -h" for testing for supported options
32031         instead of "git --help".  The short-form option only shows a summary,
32032         and doesn't layout the full man page.  Grep for the full option name
32033         in the summary, too.
32034
32035 2010-04-19  Bruno Haible  <bruno@clisp.org>
32036
32037         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32038         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32039         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32040         mention of RELOCATABLE_STRIP.
32041         Reported by Sylvain Beucler <beuc@beuc.net>.
32042
32043 2010-04-19  Bruno Haible  <bruno@clisp.org>
32044
32045         * lib/diffseq.h: Fix typo in comment.
32046         Reported by Eric Blake.
32047
32048 2010-04-19  Bruno Haible  <bruno@clisp.org>
32049
32050         ioctl: Move autoconf macro to a .m4 file.
32051         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32052         * modules/ioctl (Files): Add it.
32053         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32054         Reported by Ian Beckwith <ianb@erislabs.net>.
32055
32056 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32057             Bruno Haible  <bruno@clisp.org>
32058
32059         diffseq: Accommodate use-case with abstract arrays.
32060         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32061         is not defined.
32062         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32063         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32064
32065 2010-04-18  Bruno Haible  <bruno@clisp.org>
32066
32067         * doc/posix-headers/stdbool.texi: More precise wording.
32068
32069 2010-04-17  Jim Meyering  <meyering@redhat.com>
32070
32071         maint.mk: use gnu-style indentation in an embedded perl script
32072         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32073         Rename variable: s/two/last_two_bytes/
32074
32075 2010-04-16  Eric Blake  <eblake@redhat.com>
32076
32077         test-stdbool: skip test that fails with Solaris CC
32078         * tests/test-stdbool.c (f): Skip test that causes compilation
32079         error under buggy C++ compiler.
32080         * lib/stdbool.in.h: Document the limitation.
32081         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32082
32083         setenv: allow compilation with C++
32084         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32085         register keyword.
32086
32087         stdint: allow test to pass with C++
32088         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32089
32090         getopt: allow compilation with C++
32091         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32092         struct.
32093         * lib/getopt.c (_getopt_internal_r): Use correct type.
32094         Reported by Dagobert Michelson, via Joel E. Denny.
32095
32096 2010-04-16  Bruno Haible  <bruno@clisp.org>
32097
32098         Override netdb.h always.
32099         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32100         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32101         Reported by Ludovic Courtès <ludo@gnu.org>.
32102
32103 2010-04-15  Bruno Haible  <bruno@clisp.org>
32104
32105         openpty: Fix mistake from 2010-03-21.
32106         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32107         Reported by Simon Josefsson.
32108
32109 2010-04-15  Eric Blake  <eblake@redhat.com>
32110
32111         test-forkpty: fix expected signature
32112         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32113         Reported by Simon Josefsson.
32114
32115 2010-04-15  Jim Meyering  <meyering@redhat.com>
32116
32117         maint.mk: texinfo_suffix_re_: correct the default regexp
32118         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32119
32120         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32121         make it configurable via texinfo_suffix_re_.
32122
32123 2010-04-14  Eric Blake  <eblake@redhat.com>
32124
32125         strtok_r: relax license to LGPLv2+
32126         * modules/strtok_r (License): Relax license.
32127         Reported by Matthias Bolte.
32128
32129 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32130
32131         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32132         version 1.4.4 by default instead of requiring the libgcrypt
32133         version used during build.  This makes it possible to use the
32134         application with older but still binary compatible libgcrypt
32135         versions.
32136
32137 2010-04-13  Eric Blake  <eblake@redhat.com>
32138
32139         getopt-gnu: match recent glibc fixes and posix ruling
32140         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32141         '+' handling, when requesting extensions.
32142         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32143         'W;' handling.
32144         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32145         * doc/posix-functions/getopt.texi (getopt): Document this.
32146         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32147         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32148         Likewise.
32149
32150         getopt: merge bug fixes from glibc
32151         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32152         diagnostics.  Honor '+:' correctly.  Reject ';'.
32153
32154         getopt-posix: detect MacOS bug
32155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32156         optind when missing a required argument.
32157         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32158         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32159         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32160         Likewise.
32161
32162         getopt-posix: avoid spurious failure on Solaris
32163         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32164         an indicator that setting optind=1 is sufficient for reset.
32165
32166         getopt-posix: avoid spurious failure on FreeBSD
32167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32168         in POSIX mode, since the m4 test uses it.
32169
32170         gnulib-tool: silence warning on BSD sh
32171         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32172
32173 2010-04-13  Jim Meyering  <meyering@redhat.com>
32174
32175         doc: users.txt: GNU patch now uses gnulib
32176         * users.txt: Add patch.
32177
32178 2010-04-12  Jim Meyering  <meyering@redhat.com>
32179
32180         maint.mk: generate more concise timing data for syntax-check rules
32181         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32182         " done" from each line that reports a syntax-check test duration.
32183
32184 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32185
32186         git-version-gen: use "git update-index..." rather than "git status"
32187         * build-aux/git-version-gen: Use git update-index --refresh, not
32188         "git status".  With some versions of git, "git status" would fail
32189         to update the index and result in an unwarranted "-dirty" suffix.
32190
32191 2010-04-11  Jim Meyering  <meyering@redhat.com>
32192
32193         openat: correct formatting (no semantic change)
32194         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32195         Suggested by Bruno Haible.
32196
32197 2010-04-11  Bruno Haible  <bruno@clisp.org>
32198
32199         Stricter declaration checking in testdirs.
32200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32201         If for_tests is true, augment AM_CPPFLAGS to define
32202         GNULIB_STRICT_CHECKING.
32203         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32204         GNULIB_STRICT_CHECKING is defined, verify that the function is
32205         declared.
32206
32207 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32208             Bruno Haible  <bruno@clisp.org>
32209
32210         libunistring: Improve configure output.
32211         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32212         Don't say "consider installing GNU libunistring" when checking again
32213         with libiconv.
32214
32215 2010-04-11  Bruno Haible  <bruno@clisp.org>
32216
32217         libunistring: Correct value of $LTLIBUNISTRING.
32218         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32219         correct the value of $LTLIBUNISTRING.
32220
32221 2010-04-11  Bruno Haible  <bruno@clisp.org>
32222
32223         havelib: Add static libraries to LIBS in the right order.
32224         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32225         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32226
32227 2010-04-11  Bruno Haible  <bruno@clisp.org>
32228
32229         libunistring: Detect libunistring also when it depends on libiconv.
32230         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32231         the second AC_LIB_HAVE_LINKFLAGS invocation.
32232
32233 2010-04-11  James Youngman  <jay@gnu.org>
32234
32235         close-stream: declare local scalars to be "const"
32236         * lib/close-stream.c (close_stream): Make boolean variables const
32237         to document the fact that we set but do not change them.
32238
32239 2010-04-11  Bruno Haible  <bruno@clisp.org>
32240
32241         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32242
32243 2010-04-11  Jim Meyering  <meyering@redhat.com>
32244
32245         maint.mk: don't include dist-check.mk
32246         * top/maint.mk: Remove bogus include directive.
32247
32248         maint.mk: improve empty-line-at-EOF check
32249         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32250         solution, rather than tail+Perl-based one.  The latter would read
32251         a few kilobytes from the end of each file, and did not handle empty
32252         files properly.
32253
32254         maint.mk: print the elapsed time for each syntax-check rule
32255         * top/maint.mk (sc_m_rules_): Save start time in a file.
32256         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32257         (local-check): Interpose the .z rules
32258
32259 2010-04-11  Jim Meyering  <meyering@redhat.com>
32260
32261         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32262         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32263         empty file with one that ends in an empty line.
32264
32265 2010-04-10  Bruno Haible  <bruno@clisp.org>
32266
32267         mkdir: Make it work on mingw64.
32268         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32269         * lib/mkdir.c: Update comment.
32270         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
32271
32272 2010-04-10  Bruno Haible  <bruno@clisp.org>
32273
32274         Don't override improved macro from newer autoconf.
32275         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32276         autoconf >= 2.62.
32277         Reported by Joel E. Denny <jdenny@clemson.edu>.
32278
32279 2010-04-10  Jim Meyering  <meyering@redhat.com>
32280
32281         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32282         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32283
32284         maint.mk: correct a diagnostic
32285         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32286         in diagnostic; now use $prohibit.
32287
32288 2010-04-10  Bruno Haible  <address@hidden>
32289
32290         fchownat: Fix a C++ test error on Solaris 8.
32291         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32292         the function does not exist.
32293
32294 2010-04-10  Bruno Haible  <bruno@clisp.org>
32295
32296         vasnprintf: Add more tests.
32297         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32298         (test_function): Test converting an invalid wide string.
32299
32300         vasnprintf: Correct handling of unconvertible wide string arguments.
32301         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32302         VASNPRINTF.
32303         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32304         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32305         smaller than the expected maximum need for the directive. Set errno to
32306         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32307         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32309         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32310         * modules/vasnprintf (Files): Add m4/printf.m4.
32311         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32312
32313 2010-04-10  Bruno Haible  <bruno@clisp.org>
32314
32315         vasnprintf: Fix crash in %ls directive.
32316         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32317         string is passed as argument to %ls, with no precision and no width.
32318         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32319
32320 2010-04-10  Bruno Haible  <bruno@clisp.org>
32321
32322         vasnprintf: Fix multiple test failures on mingw.
32323         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32324         _snprintf, or snwprintf, not _snwprintf.
32325
32326 2010-04-10  Bruno Haible  <bruno@clisp.org>
32327
32328         write: Fix a C++ test error on mingw.
32329         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32330
32331 2010-04-10  Bruno Haible  <bruno@clisp.org>
32332
32333         vasnprintf test: Reduce code duplication.
32334         * tests/test-vasnprintf.c (test_function): New function, extracted from
32335         test_vasnprintf.
32336         (test_vasnprintf, test_asnprintf): Invoke it.
32337
32338 2010-04-10  Bruno Haible  <bruno@clisp.org>
32339
32340         strnlen: Fix warning in C++ mode on MacOS X.
32341         * lib/string.in.h (strnlen): Use the modern idiom.
32342         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32343         defining strnlen as a macro already in <config.h>.
32344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32345         REPLACE_STRNLEN.
32346         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32347         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32348
32349 2010-04-08  James Youngman  <jay@gnu.org>
32350
32351         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32352         the example.
32353
32354 2010-04-09  Jim Meyering  <meyering@redhat.com>
32355
32356         maint.mk: print better diagnostic when there is no $(_hv_file)
32357         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32358         announce that when $(_hv_file) (aka help-version) does not exist.
32359
32360         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32361         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32362         not try to interpret its random input bytes.  Jarno Rajahalme reported
32363         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32364         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32365         (mktempd_): Likewise, just in case.
32366
32367         ftruncate: add two years to projected module removal date: 2012
32368         * m4/ftruncate.m4: Adjust comments.
32369
32370         ftruncate: mark module as obsolete; even MinGW provides it, now
32371         * modules/ftruncate (Status): Obsolete.
32372         (Notice): Say that.
32373         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32374         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32375
32376 2010-04-08  Bruno Haible  <bruno@clisp.org>
32377
32378         Fix side effects from tests-related modules.
32379         * modules/dprintf-posix (Comment): New section.
32380         * modules/fprintf-posix (Comment): Likewise.
32381         * modules/obstack-printf-posix (Comment): Likewise.
32382         * modules/printf-posix (Comment): Likewise.
32383         * modules/snprintf-posix (Comment): Likewise.
32384         * modules/sprintf-posix (Comment): Likewise.
32385         * modules/vasnprintf-posix (Comment): Likewise.
32386         * modules/vasprintf-posix (Comment): Likewise.
32387         * modules/vdprintf-posix (Comment): Likewise.
32388         * modules/vfprintf-posix (Comment): Likewise.
32389         * modules/vprintf-posix (Comment): Likewise.
32390         * modules/vsnprintf-posix (Comment): Likewise.
32391         * modules/vsprintf-posix (Comment): Likewise.
32392         * modules/xprintf-posix (Comment): Likewise.
32393         * modules/xvasprintf-posix (Comment): Likewise.
32394         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32395         * modules/floorf-tests (Depends-on): Likewise.
32396         * modules/round-tests (Depends-on): Likewise.
32397         * modules/roundf-tests (Depends-on): Likewise.
32398         * modules/trunc-tests (Depends-on): Likewise.
32399         * modules/truncf-tests (Depends-on): Likewise.
32400         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32401         'fprintf-posix' module is not present.
32402         * tests/test-floorf2.c (check): Likewise.
32403         * tests/test-trunc2.c (check): Likewise.
32404         * tests/test-truncf2.c (check): Likewise.
32405         * tests/test-round2.c (equal): Likewise.
32406         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32407
32408 2010-04-07  Karl Berry  <karl@gnu.org>
32409
32410         * config/srclist.txt,
32411         * config/srclistvars.sh,
32412         * config/srclist-update: doc fixes.
32413
32414 2010-04-07  Jim Meyering  <meyering@redhat.com>
32415
32416         maint.mk: add a PATH crosschecking syntax-check rule
32417         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32418         Useful if you use a test like the one in help-version (coreutils,
32419         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32420         printed by prog --version.
32421
32422 2010-04-06  Bruno Haible  <bruno@clisp.org>
32423
32424         Fix link error on mingw.
32425         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32426         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32427
32428 2010-04-06  Bruno Haible  <bruno@clisp.org>
32429
32430         Assume rmdir exists.
32431         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32432
32433 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32434
32435         doc: update users.txt
32436         * users.txt: Add gcal.
32437
32438 2010-04-06  Jim Meyering  <meyering@redhat.com>
32439
32440         init.sh: simply unset TMPDIR rather than risking env -i
32441         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32442         although it probably works fine on all Unix-based systems, some
32443         systems (Cygwin?) cannot tolerate a totally cleared environment.
32444         Suggestion from Eric Blake.
32445
32446 2010-04-06  Jim Meyering  <meyering@redhat.com>
32447
32448         init.sh: portability fix: use env's POSIX-specified -i option not -u
32449         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32450         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32451
32452 2010-04-05  Bruno Haible  <bruno@clisp.org>
32453
32454         btowc: Work around Cygwin 1.7.2 bug.
32455         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32456         does not map NUL to 0.
32457         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32458
32459 2010-04-05  Bruno Haible  <bruno@clisp.org>
32460
32461         Make the multithread modules work on Cygwin 1.7.2.
32462         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32463         imported symbols can be declared weak, so that it returns "no" on
32464         Cygwin 1.7.2.
32465
32466 2010-04-05  Bruno Haible  <bruno@clisp.org>
32467
32468         Use the module 'strncat'.
32469         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32470
32471         Tests for module 'strncat'.
32472         * modules/strncat-tests: New file.
32473         * tests/test-strncat.c: New file.
32474
32475         New module 'strncat'.
32476         * lib/string.in.h (strncat): New declaration.
32477         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32478         * m4/strncat.m4: New file, based on m4/memchr.m4.
32479         * modules/strncat: New file.
32480         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32481         is declared.
32482         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32483         REPLACE_STRNCAT.
32484         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32485         REPLACE_STRNCAT.
32486         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32487         module.
32488         * tests/test-string-c++.cc: Check signature of strncat.
32489
32490 2010-04-05  Jim Meyering  <meyering@redhat.com>
32491
32492         xstrtoumax-tests: convert to use init.sh
32493         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32494         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32495         Use Exit, not exit.
32496         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32497
32498         xstrtoimax-tests: convert to use init.sh
32499         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32500         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32501         Use Exit, not exit.
32502         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32503
32504 2010-04-05  Bruno Haible  <bruno@clisp.org>
32505
32506         sys_socket: Avoid #define replacements in C++ mode.
32507         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32508         warning to the function if possible, rather than #defining the symbol
32509         to a dysfunctional alias.
32510
32511 2010-04-05  Bruno Haible  <bruno@clisp.org>
32512
32513         fseeko: Fix C++ test error on mingw.
32514         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32515         gl_FUNC_FSEEKO.
32516         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32517         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32518         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32519         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32520
32521 2010-04-05  Bruno Haible  <bruno@clisp.org>
32522
32523         duplocale: Improve test output.
32524         * tests/test-duplocale.c (main): Print reason for skipped test.
32525
32526 2010-04-05  Bruno Haible  <bruno@clisp.org>
32527
32528         Assume rmdir exists.
32529         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
32530         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
32531
32532 2010-04-05  Bruno Haible  <bruno@clisp.org>
32533
32534         Fix link error on Solaris 8 with cc.
32535         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
32536
32537 2010-04-05  Bruno Haible  <bruno@clisp.org>
32538
32539         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32540         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
32541
32542 2010-04-05  Bruno Haible  <bruno@clisp.org>
32543
32544         vasprintf: Update documentation.
32545         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
32546
32547 2010-04-05  Bruno Haible  <bruno@clisp.org>
32548
32549         ptsname: Improve test.
32550         * tests/test-ptsname.c (main): Also try the various master names of BSD
32551         systems.
32552
32553 2010-04-05  Bruno Haible  <bruno@clisp.org>
32554
32555         memchr: Avoid a possible C++ test error.
32556         * lib/string.in.h (memchr): Provide declaration if function is missing.
32557         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
32558         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
32559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
32560         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
32561
32562 2010-04-05  Bruno Haible  <bruno@clisp.org>
32563
32564         strtok_r: Improve idiom.
32565         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
32566         AC_LIBOBJ is used.
32567
32568 2010-04-05  Bruno Haible  <bruno@clisp.org>
32569
32570         strdup: Improve idiom.
32571         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
32572         AC_LIBOBJ is used.
32573         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
32574         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
32575         when AC_LIBOBJ is used.
32576
32577 2010-04-05  Bruno Haible  <bruno@clisp.org>
32578
32579         mbsinit, mbrtowc, wcrtomb: Improve idioms.
32580         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
32581         don't set REPLACE_MBSINIT to 1.
32582         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
32583         don't set REPLACE_MBRTOWC to 1.
32584         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
32585         exist, don't set REPLACE_MBSRTOWCS to 1.
32586         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
32587         exist, don't set REPLACE_MBSNRTOWCS to 1.
32588         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
32589         don't set REPLACE_WCRTOMB to 1.
32590         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
32591         exist, don't set REPLACE_WCSRTOMBS to 1.
32592         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
32593         exist, don't set REPLACE_WCSNRTOMBS to 1.
32594
32595 2010-04-05  Bruno Haible  <bruno@clisp.org>
32596
32597         ldexpl: Improve idiom.
32598         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
32599         make sure to set HAVE_DECL_LDEXPL to 0.
32600
32601 2010-04-05  Jim Meyering  <meyering@redhat.com>
32602
32603         xstrtol-tests: convert to use init.sh
32604         * modules/xstrtol-tests (Files): Add tests/init.sh.
32605         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32606         Use Exit, not exit.
32607         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32608
32609         atexit-tests: convert to use init.sh
32610         * modules/atexit-tests (Files): Add tests/init.sh.
32611         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32612         Use Exit, not exit.
32613         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32614
32615         init.sh: fix typo
32616         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
32617
32618         init.sh: make it easier for a test script to write to the tty, ...
32619         when using automake's parallel-tests mode.
32620         * tests/init.sh (stderr_fileno_): Define overridable variable.
32621         (warn_): New function, to use it.
32622         (fail_, skip_, framework_failure_): Use warn_.
32623
32624 2010-04-04  Bruno Haible  <bruno@clisp.org>
32625
32626         btowc: Avoid warning.
32627         * lib/btowc.c: Include <stdlib.h>.
32628         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
32629
32630 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32631             Bruno Haible  <bruno@clisp.org>
32632
32633         wchar: Port to NetBSD 1.5.
32634         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
32635         * lib/wctype.in.h (WEOF): Likewise.
32636
32637 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32638             Bruno Haible  <bruno@clisp.org>
32639
32640         Port extended stdio to NetBSD 1.5.
32641         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
32642         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
32643         older.
32644
32645 2010-04-04  Bruno Haible  <bruno@clisp.org>
32646
32647         string: Remove unused substitution.
32648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32649         HAVE_DECL_STRERROR.
32650         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
32651
32652 2010-04-04  Bruno Haible  <bruno@clisp.org>
32653
32654         strtod: Avoid a possible C++ test error.
32655         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
32656         set REPLACE_STRTOD.
32657
32658 2010-04-04  Bruno Haible  <bruno@clisp.org>
32659
32660         strerror: Update documentation.
32661         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
32662
32663 2010-04-04  Bruno Haible  <bruno@clisp.org>
32664
32665         stdio: Fix some C++ test errors on Solaris 8 with GCC.
32666         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
32667         _GL_CXXALIAS_SYS_CAST.
32668
32669 2010-04-04  Bruno Haible  <bruno@clisp.org>
32670
32671         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32672         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
32673         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
32674         REPLACE_FREXPL to 1.
32675         * doc/posix-functions/frexpl.texi: Update documentation.
32676
32677 2010-04-04  Bruno Haible  <bruno@clisp.org>
32678
32679         math: Fix some C++ test errors on Solaris 8 and Cygwin.
32680         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
32681
32682 2010-04-04  Bruno Haible  <bruno@clisp.org>
32683
32684         Implement nanosleep for native Windows.
32685         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
32686
32687 2010-04-04  Bruno Haible  <bruno@clisp.org>
32688
32689         math: Fix some C++ test errors on Solaris 8.
32690         * lib/math.in.h (truncf, trunc): Use simpler idiom.
32691
32692 2010-04-04  Bruno Haible  <bruno@clisp.org>
32693
32694         math: Fix some C++ test errors on Cygwin.
32695         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
32696         truncl): Provide declaration if the system does not have it.
32697         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
32698         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
32699         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
32700         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
32701         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
32702         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
32703         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
32704         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
32705         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
32706         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
32707         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
32708         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
32709         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
32710         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
32711         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
32712         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
32713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
32714         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32715         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32716         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
32717         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32718         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32719
32720 2010-04-04  Bruno Haible  <bruno@clisp.org>
32721
32722         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
32723         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32724         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32725         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32726         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32727         * m4/isinf.m4 (gl_ISINF): Likewise.
32728         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32729
32730 2010-04-04  Bruno Haible  <bruno@clisp.org>
32731
32732         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
32733         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32734
32735 2010-04-04  Bruno Haible  <bruno@clisp.org>
32736
32737         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
32738         * modules/tmpfile (configure.ac): Update.
32739
32740         tmpfile: Fix C++ test error on mingw.
32741         * lib/stdio.in.h (tmpfile): New declaration.
32742         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
32743         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
32744         * modules/tmpfile (Depends-on): Add stdio.
32745         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32746         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
32747         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
32748         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
32749         REPLACE_TMPFILE.
32750         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
32751
32752 2010-04-04  Bruno Haible  <bruno@clisp.org>
32753
32754         ioctl: Fix C++ test error on mingw.
32755         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
32756         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
32757         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
32758
32759 2010-04-03  Bruno Haible  <bruno@clisp.org>
32760
32761         wcwidth: Fix C++ test error on mingw.
32762         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
32763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
32764         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
32765
32766 2010-04-03  Bruno Haible  <bruno@clisp.org>
32767
32768         nanosleep: Fix C++ test error on mingw.
32769         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
32770         * lib/time.in.h (nanosleep): Use modern idiom.
32771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
32772         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
32773         REPLACE_NANOSLEEP to 1.
32774         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
32775         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
32776
32777 2010-04-03  Bruno Haible  <bruno@clisp.org>
32778
32779         strptime: Fix C++ test error on mingw.
32780         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
32781         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
32782         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
32783         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
32784         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
32785         not REPLACE_STRPTIME.
32786         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
32787         REPLACE_STRPTIME.
32788
32789 2010-04-03  Bruno Haible  <bruno@clisp.org>
32790
32791         timegm: Fix C++ test error on mingw.
32792         * lib/time.in.h (timegm): Use modern idiom.
32793         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
32794         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
32795         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
32796         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
32797
32798 2010-04-03  Bruno Haible  <bruno@clisp.org>
32799
32800         timegm: Assume declaration if function exists.
32801         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
32802         if it exists. Don't clobber ac_cv_func_timegm.
32803
32804 2010-04-03  Bruno Haible  <bruno@clisp.org>
32805
32806         time_r: Fix C++ test error on mingw.
32807         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
32808         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
32809         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
32810         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
32811         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
32812
32813 2010-04-03  Bruno Haible  <bruno@clisp.org>
32814
32815         time_r: Minor updates.
32816         * modules/time_r (Description): Mention the provided functions.
32817         * lib/time_r.c: Don't include <string.h>.
32818         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
32819         * doc/posix-functions/localtime_r.texi: Likewise.
32820
32821 2010-04-03  Bruno Haible  <bruno@clisp.org>
32822
32823         time: Fix regression introduced on 2010-03-08.
32824         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
32825         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
32826
32827 2010-04-03  Jim Meyering  <meyering@redhat.com>
32828
32829         maint.mk: don't silently disable project-specific syntax-check rules
32830         * top/maint.mk (_prohibit_regexp): Define, to help people realize
32831         that they need to convert their project-specific syntax-check rules
32832         to use the new _sc_search_regexp.
32833
32834 2010-04-03  Bruno Haible  <bruno@clisp.org>
32835
32836         fchdir: Fix regression introduced on 2010-03-08.
32837         * lib/unistd.in.h (fchdir): Fix declaration.
32838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
32839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
32840         REPLACE_FCHDIR.
32841         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
32842         REPLACE_FCHDIR.
32843
32844 2010-04-03  Bruno Haible  <bruno@clisp.org>
32845
32846         getpagesize: Fix C++ test error on mingw.
32847         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
32848         system does not declare the function.
32849         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
32850         declared.
32851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32852         HAVE_DECL_GETPAGESIZE.
32853         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
32854
32855 2010-04-03  Bruno Haible  <bruno@clisp.org>
32856
32857         stdio: Make C++ tests work on mingw.
32858         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
32859         does not declare the function.
32860
32861 2010-04-03  Bruno Haible  <bruno@clisp.org>
32862
32863         ftello: Fix C++ test error on mingw.
32864         * lib/stdio.in.h (ftello): Use modern idiom.
32865         * lib/ftello.c (ftello): Renamed from rpl_ftello.
32866         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
32867         is missing and that it needs to be replaced.
32868         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
32869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
32870         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
32871
32872 2010-04-03  Bruno Haible  <bruno@clisp.org>
32873
32874         fseeko: Fix C++ test error on mingw.
32875         * lib/stdio.in.h (fseeko): Use modern idiom.
32876         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
32877         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
32878         is missing and that it needs to be replaced.
32879         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
32880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
32881         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
32882
32883 2010-04-03  Bruno Haible  <bruno@clisp.org>
32884
32885         mkstemp: Fix C++ test error on mingw.
32886         * lib/stdlib.in.h (mkstemp): Use modern idiom.
32887         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
32888         function is missing and that it needs to be replaced.
32889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
32890         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
32891
32892 2010-04-03  Bruno Haible  <bruno@clisp.org>
32893
32894         stpncpy: Fix C++ test error on mingw.
32895         * lib/string.in.h (stpncpy): Use modern idiom.
32896         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
32897         function is missing and that it needs to be replaced.
32898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32899         REPLACE_STPNCPY.
32900         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
32901
32902 2010-04-03  Bruno Haible  <bruno@clisp.org>
32903
32904         sys_stat: Fix C++ test error on mingw.
32905         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
32906         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
32907
32908 2010-04-03  Bruno Haible  <bruno@clisp.org>
32909
32910         pty: Update doc.
32911         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
32912
32913 2010-04-03  Bruno Haible  <bruno@clisp.org>
32914
32915         unistd: Fix C++ test error on mingw.
32916         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
32917
32918 2010-04-03  Bruno Haible  <bruno@clisp.org>
32919
32920         Update doc regarding mingw.
32921         * doc/glibc-functions/openpty.texi: Update regarding mingw.
32922         * doc/glibc-functions/login_tty.texi: Likewise.
32923         * doc/glibc-functions/forkpty.texi: Likewise.
32924
32925 2010-04-03  Bruno Haible  <bruno@clisp.org>
32926
32927         stdlib: Avoid compilation failure of c-strtold on mingw.
32928         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
32929
32930 2010-04-03  Bruno Haible  <bruno@clisp.org>
32931
32932         locale: Make C++ tests work on Cygwin and mingw.
32933         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
32934         cannot provide the function.
32935         Reported by Simon Josefsson.
32936
32937 2010-04-03  Bruno Haible  <bruno@clisp.org>
32938
32939         localename: Port to MacOS X 10.6.
32940         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
32941         memory layout of the locales in MacOS X 10.6 as well.
32942         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
32943
32944 2010-04-02  Bruno Haible  <bruno@clisp.org>
32945
32946         gnulib-tool: Ensure that long-running tests are executed last.
32947         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
32948         running tests after the one for the other tests.
32949
32950 2010-04-02  Bruno Haible  <bruno@clisp.org>
32951
32952         gnulib-tool: Ensure the tests in the main directory are executed first.
32953         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
32954         start with the current directory.
32955
32956 2010-04-02  Bruno Haible  <bruno@clisp.org>
32957
32958         Tests for module 'havelib', moved here from GNU gettext.
32959         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
32960         modifications.
32961         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
32962         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
32963         with modifications.
32964         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
32965         modifications.
32966         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
32967         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
32968         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
32969         with modifications.
32970         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
32971         with modifications.
32972         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
32973         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
32974         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
32975         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
32976         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
32977         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
32978         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
32979         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
32980         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
32981         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
32982         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
32983         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
32984         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
32985         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
32986         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
32987         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
32988         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
32989         with modifications.
32990         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
32991         with modifications.
32992         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
32993         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
32994         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
32995         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
32996         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
32997         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
32998         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
32999         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33000         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33001         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33002         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33003         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33004         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33005         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33006         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33007         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33008         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33009         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33010         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33011         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33012         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33013         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33014         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33015         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33016         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33017         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33018         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33019         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33020         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33021         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33022         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33023         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33024         * tests/havelib/rpathx/rpathx.c: New file, from
33025         gettext/autoconf-lib-link.
33026         * tests/havelib/rpathx/Makefile.am: New file, from
33027         gettext/autoconf-lib-link.
33028         * tests/havelib/rpathx/configure.ac: New file, from
33029         gettext/autoconf-lib-link with modifications.
33030         * tests/havelib/rpathy/rpathy.c: New file, from
33031         gettext/autoconf-lib-link.
33032         * tests/havelib/rpathy/Makefile.am: New file, from
33033         gettext/autoconf-lib-link.
33034         * tests/havelib/rpathy/configure.ac: New file, from
33035         gettext/autoconf-lib-link with modifications.
33036         * tests/havelib/rpathz/rpathz.c: New file, from
33037         gettext/autoconf-lib-link.
33038         * tests/havelib/rpathz/Makefile.am: New file, from
33039         gettext/autoconf-lib-link.
33040         * tests/havelib/rpathz/configure.ac: New file, from
33041         gettext/autoconf-lib-link with modifications.
33042         * tests/havelib/rpathlx/usex.c: New file, from
33043         gettext/autoconf-lib-link.
33044         * tests/havelib/rpathlx/Makefile.am: New file, from
33045         gettext/autoconf-lib-link.
33046         * tests/havelib/rpathlx/configure.ac: New file, from
33047         gettext/autoconf-lib-link with modifications.
33048         * tests/havelib/rpathly/usey.c: New file, from
33049         gettext/autoconf-lib-link.
33050         * tests/havelib/rpathly/Makefile.am: New file, from
33051         gettext/autoconf-lib-link.
33052         * tests/havelib/rpathly/configure.ac: New file, from
33053         gettext/autoconf-lib-link with modifications.
33054         * tests/havelib/rpathlz/usez.c: New file, from
33055         gettext/autoconf-lib-link.
33056         * tests/havelib/rpathlz/Makefile.am: New file, from
33057         gettext/autoconf-lib-link.
33058         * tests/havelib/rpathlz/configure.ac: New file, from
33059         gettext/autoconf-lib-link with modifications.
33060         * tests/havelib/rpathlyx/usey.c: New file, from
33061         gettext/autoconf-lib-link.
33062         * tests/havelib/rpathlyx/Makefile.am: New file, from
33063         gettext/autoconf-lib-link.
33064         * tests/havelib/rpathlyx/configure.ac: New file, from
33065         gettext/autoconf-lib-link with modifications.
33066         * tests/havelib/rpathlzyx/usez.c: New file, from
33067         gettext/autoconf-lib-link.
33068         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33069         gettext/autoconf-lib-link.
33070         * tests/havelib/rpathlzyx/configure.ac: New file, from
33071         gettext/autoconf-lib-link with modifications.
33072         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33073         with modifications.
33074
33075 2010-04-02  Bruno Haible  <bruno@clisp.org>
33076
33077         gnulib-tool: Create distributed built sources also for the tests.
33078         * gnulib-tool (func_create_testdir): Also generate distributed built
33079         sources in the tests directory.
33080
33081 2010-04-02  Bruno Haible  <bruno@clisp.org>
33082
33083         gnulib-tool: Obey user's environment variables.
33084         * gnulib-tool (func_create_testdir): When creating built sources,
33085         respect the environment variables for autoconf, automake, etc. given by
33086         the user.
33087
33088 2010-04-02  Bruno Haible  <bruno@clisp.org>
33089
33090         gnulib-tool: Provide the value of --m4-base to modules.
33091         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33092         of gl_m4_base.
33093
33094 2010-04-02  Eric Blake  <eblake@redhat.com>
33095
33096         maint.mk: fix some fallout
33097         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33098         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33099
33100 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33101
33102         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33103         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33104         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33105         (sc_cast_of_x_alloc_return_value): Likewise.
33106         (sc_cast_of_alloca_return_value): Likewise.
33107         (sc_space_tab): Likewise.
33108         (sc_prohibit_atoi_atof): Likewise.
33109         (sc_prohibit_magic_number_exit): Likewise.
33110         (sc_error_exit_success): Likewise.
33111         (sc_file_system): Likewise.
33112         (sc_prohibit_have_config_h): Likewise.
33113         (sc_require_config_h): Likewise.
33114         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33115         (sc_obsolete_symbols): Likewise.
33116         (sc_changelog): Likewise.
33117         (sc_program_name): Likewise.
33118         (sc_the_the): Likewise.
33119         (sc_trailing_blank): Likewise.
33120         (sc_two_space_separator_in_usage): Likewise.
33121         (sc_useless_cpp_parens): Likewise.
33122         (sc_GPL_version): Likewise.
33123         (sc_GFDL_version): Likewise.
33124         (sc_texinfo_acronym): Likewise.
33125         (sc_prohibit_cvs_keyword): Likewise.
33126         (sc_prohibit_stat_st_blocks): Likewise.
33127         (sc_prohibit_S_IS_definition): Likewise.
33128         (sc_redundant_const): Likewise.
33129         (sc_makefile_TAB_only_indentation): Likewise.
33130         (sc_m4_quote_check): Likewise.
33131         (sc_makefile_path_separator_check): Likewise.
33132         (sc_copyright_check): Likewise.
33133         (sc_Wundef_boolean): Likewise.
33134         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33135
33136         maint.mk: match 0 or more whitespace-before-function-call '('
33137         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33138         that have zero or two-and-more spaces between the function name
33139         and the open parenthesis.
33140         (sc_error_message_warn_fatal): Likewise.
33141         (sc_error_message_uppercase): Likewise.
33142         (sc_error_message_period): Likewise.
33143
33144 2010-03-31  Eric Blake  <eblake@redhat.com>
33145
33146         maint.mk: check for [ as well as test
33147         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33148         Based on a libvirt report by Matthias Bolte.
33149
33150         gnumakefile: don't squelch _version output
33151         * top/GNUmakefile (_version): Create one-shot dependency rather
33152         than using $(shell) when version must be regenerated.
33153         (_autoreconf): Run verbosely, by default.
33154
33155         sys_time: avoid compiler warnings
33156         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33157         unconditional, fixing regression from 2010-03-29.
33158         Reported by Simon Josefsson.
33159
33160 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33161
33162         maint.mk: s/_header_without_use/_sc_header_without_use/
33163         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33164         (sc_prohibit_assert_without_use): Use the new name.
33165         (sc_prohibit_close_stream_without_use): Likewise.
33166         (sc_prohibit_getopt_without_use): Likewise.
33167         (sc_prohibit_quotearg_without_use): Likewise.
33168         (sc_prohibit_quote_without_use): Likewise.
33169         (sc_prohibit_long_options_without_use): Likewise.
33170         (sc_prohibit_inttostr_without_use): Likewise.
33171         (sc_prohibit_ignore_value_without_use): Likewise.
33172         (sc_prohibit_error_without_use): Likewise.
33173         (sc_prohibit_xalloc_without_use): Likewise.
33174         (sc_prohibit_hash_without_use): Likewise.
33175         (sc_prohibit_hash_pjw_without_use): Likewise.
33176         (sc_prohibit_safe_read_without_use): Likewise.
33177         (sc_prohibit_argmatch_without_use): Likewise.
33178         (sc_prohibit_canonicalize_without_use): Likewise.
33179         (sc_prohibit_root_dev_ino_without_use): Likewise.
33180         (sc_prohibit_openat_without_use): Likewise.
33181         (sc_prohibit_c_ctype_without_use): Likewise.
33182         (sc_prohibit_signal_without_use): Likewise.
33183         (sc_prohibit_intprops_without_use): Likewise.
33184
33185 2010-03-30  Eric Blake  <eblake@redhat.com>
33186
33187         maint: improve module indicators
33188         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33189         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33190         columns, and avoid extra macro expansion.
33191
33192         fdopendir: work around FreeBSD bug
33193         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33194         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33195         * modules/dirent (Makefile.am): Substitute it.
33196         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33197         declaration.
33198         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33199         fix.
33200         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33201
33202 2010-03-29  Bruno Haible  <bruno@clisp.org>
33203
33204         Emit #pragma system_header after the inclusion guard, not before.
33205         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33206         guard that spans the entire file, not before. This enables an
33207         optimization in GCC's preprocessor.
33208         * lib/ctype.in.h: Likewise.
33209         * lib/dirent.in.h: Likewise.
33210         * lib/errno.in.h: Likewise.
33211         * lib/float.in.h: Likewise.
33212         * lib/getopt.in.h: Likewise.
33213         * lib/iconv.in.h: Likewise.
33214         * lib/langinfo.in.h: Likewise.
33215         * lib/locale.in.h: Likewise.
33216         * lib/math.in.h: Likewise.
33217         * lib/netdb.in.h: Likewise.
33218         * lib/netinet_in.in.h: Likewise.
33219         * lib/pty.in.h: Likewise.
33220         * lib/sched.in.h: Likewise.
33221         * lib/se-selinux.in.h: Likewise.
33222         * lib/search.in.h: Likewise.
33223         * lib/spawn.in.h: Likewise.
33224         * lib/stdarg.in.h: Likewise.
33225         * lib/stdint.in.h: Likewise.
33226         * lib/string.in.h: Likewise.
33227         * lib/strings.in.h: Likewise.
33228         * lib/sys_file.in.h: Likewise.
33229         * lib/sys_ioctl.in.h: Likewise.
33230         * lib/sys_time.in.h: Likewise.
33231         * lib/sys_times.in.h: Likewise.
33232         * lib/sys_utsname.in.h: Likewise.
33233         * lib/sys_wait.in.h: Likewise.
33234         * lib/sysexits.in.h: Likewise.
33235         * lib/wctype.in.h: Likewise.
33236
33237 2010-03-28  James Youngman  <jay@gnu.org>
33238
33239         save-cwd: don't leak a file descriptor when the caller execs.
33240         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33241         saved file descriptor.
33242         * modules/save-cwd (Depends-on): Depend on cloexec.
33243
33244 2010-03-29  Bruno Haible  <bruno@clisp.org>
33245
33246         Remove vestiges of fts-lgpl module.
33247         * lib/fts_.h: Assume GNULIB_FTS is 1.
33248         * lib/fts.c: Likewise.
33249         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33250
33251 2010-03-28  Bruno Haible  <bruno@clisp.org>
33252
33253         Fix definition of tests witness macro.
33254         * gnulib-tool (func_import): Fix definition of witness macro.
33255
33256 2010-03-28  Bruno Haible  <bruno@clisp.org>
33257
33258         Fix ioctl's protoype on glibc systems.
33259         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33260         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33261         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33262         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33263         signature. If not, arrange to replace the ioctl function.
33264         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33265         REPLACE_IOCTL.
33266         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33267         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33268         Reported by Ludovic Courtès <ludo@gnu.org>.
33269
33270 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33271
33272         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33273         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33274         made it so grep -r --include=GLOB* ... did not work.
33275
33276 2010-03-26  Jim Meyering  <meyering@redhat.com>
33277             Eric Blake  <eblake@redhat.com>
33278
33279         maint.mk: prohibit use of test's -o and -a operators
33280         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33281
33282 2010-03-28  Bruno Haible  <bruno@clisp.org>
33283
33284         Remove unused GNULIB_XYZ macro definitions.
33285         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33286         invocation.
33287
33288 2010-03-28  Bruno Haible  <bruno@clisp.org>
33289
33290         Mark privileged tests modules.
33291         * modules/idpriv-drop-tests (Status): New section.
33292         * modules/idpriv-droptemp-tests (Status): New section.
33293
33294 2010-03-28  Bruno Haible  <bruno@clisp.org>
33295
33296         Split C++ tests into separate tests modules.
33297         * modules/dirent-c++-tests: New file, extracted from
33298         modules/dirent-tests.
33299         * modules/dirent-tests: Depend on it.
33300         * modules/fcntl-h-c++-tests: New file, extracted from
33301         modules/fcntl-h-tests.
33302         * modules/fcntl-h-tests: Depend on it.
33303         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33304         * modules/glob-tests: Depend on it.
33305         * modules/iconv-h-c++-tests: New file, extracted from
33306         modules/iconv-h-tests.
33307         * modules/iconv-h-tests: Depend on it.
33308         * modules/langinfo-c++-tests: New file, extracted from
33309         modules/langinfo-tests.
33310         * modules/langinfo-tests: Depend on it.
33311         * modules/locale-c++-tests: New file, extracted from
33312         modules/locale-tests.
33313         * modules/locale-tests: Depend on it.
33314         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33315         * modules/math-tests: Depend on it.
33316         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33317         * modules/pty-tests: Depend on it.
33318         * modules/search-c++-tests: New file, extracted from
33319         modules/search-tests.
33320         * modules/search-tests: Depend on it.
33321         * modules/signal-c++-tests: New file, extracted from
33322         modules/signal-tests.
33323         * modules/signal-tests: Depend on it.
33324         * modules/spawn-c++-tests: New file, extracted from
33325         modules/spawn-tests.
33326         * modules/spawn-tests: Depend on it.
33327         * modules/stdio-c++-tests: New file, extracted from
33328         modules/stdio-tests.
33329         * modules/stdio-tests: Depend on it.
33330         * modules/stdlib-c++-tests: New file, extracted from
33331         modules/stdlib-tests.
33332         * modules/stdlib-tests: Depend on it.
33333         * modules/string-c++-tests: New file, extracted from
33334         modules/string-tests.
33335         * modules/string-tests: Depend on it.
33336         * modules/sys_ioctl-c++-tests: New file, extracted from
33337         modules/sys_ioctl-tests.
33338         * modules/sys_ioctl-tests: Depend on it.
33339         * modules/sys_select-c++-tests: New file, extracted from
33340         modules/sys_select-tests.
33341         * modules/sys_select-tests: Depend on it.
33342         * modules/sys_socket-c++-tests: New file, extracted from
33343         modules/sys_socket-tests.
33344         * modules/sys_socket-tests: Depend on it.
33345         * modules/sys_stat-c++-tests: New file, extracted from
33346         modules/sys_stat-tests.
33347         * modules/sys_stat-tests: Depend on it.
33348         * modules/sys_time-c++-tests: New file, extracted from
33349         modules/sys_time-tests.
33350         * modules/sys_time-tests: Depend on it.
33351         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33352         * modules/time-tests: Depend on it.
33353         * modules/unistd-c++-tests: New file, extracted from
33354         modules/unistd-tests.
33355         * modules/unistd-tests: Depend on it.
33356         * modules/wchar-c++-tests: New file, extracted from
33357         modules/wchar-tests.
33358         * modules/wchar-tests: Depend on it.
33359         * modules/wctype-c++-tests: New file, extracted from
33360         modules/wctype-tests.
33361         * modules/wctype-tests: Depend on it.
33362         Reported by Simon Josefsson.
33363
33364 2010-03-28  Bruno Haible  <bruno@clisp.org>
33365
33366         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33367         * gnulib-tool (func_exists_module): New function, extracted from
33368         func_verify_module.
33369         (func_verify_module): Use it.
33370         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33371         'foo' only if 'foo' exists.
33372         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33373         module.
33374
33375 2010-03-28  Bruno Haible  <bruno@clisp.org>
33376
33377         gnulib-tool: Add support for special categories of tests.
33378         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33379         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33380         (func_usage): Document them.
33381         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33382         inc_unportable_tests, inc_all_tests): New variables.
33383         (func_acceptable): Consider these variables.
33384         (func_modules_transitive_closure): Make it work when the 'Status' field
33385         consists of multiple words.
33386         (func_import): Store and restore the values of inc_cxx_tests,
33387         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33388         inc_all_tests in gnulib-comp.m4.
33389         (func_create_testdir): Set inc_all_tests to true.
33390         * doc/gnulib.texi (Extra tests modules): New section.
33391         Suggested by Jim Meyering.
33392
33393 2010-03-28  Bruno Haible  <bruno@clisp.org>
33394
33395         ansi-c++-opt: Allow turning off the C++ build by default.
33396         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33397         gl_CXX_CHOICE_DEFAULT_NO is defined.
33398         Requested by Eric Blake.
33399
33400 2010-03-28  Bruno Haible  <bruno@clisp.org>
33401
33402         unistd: Avoid #define replacements in C++ mode.
33403         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33404         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33405         setsockopt, shutdown, select): In C++, attach a warning to the function
33406         if possible, rather than #defining the symbol to a dysfunctional alias.
33407         Reported by John W. Eaton <jwe@gnu.org>.
33408
33409 2010-03-28  Bruno Haible  <bruno@clisp.org>
33410
33411         Fix link errors on mingw.
33412         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33413         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33414         $(LIBSOCKET).
33415         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33416         $(LIBSOCKET).
33417
33418 2010-03-28  Bruno Haible  <bruno@clisp.org>
33419             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33420
33421         lib-ignore: Determine different options for different compilers.
33422         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33423         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33424         Add comments.
33425         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33426         * NEWS: Mention the change.
33427
33428 2010-03-27  Bruno Haible  <bruno@clisp.org>
33429
33430         Remove unused GNULIB_XYZ macro definitions.
33431         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33432         * modules/fseek (configure.ac): Likewise.
33433         * modules/ioctl (configure.ac): Likewise.
33434         * modules/open (configure.ac): Likewise.
33435         * modules/stdlib-safer (configure.ac): Likewise.
33436
33437 2010-03-27  Bruno Haible  <bruno@clisp.org>
33438
33439         Add a remark about certain modules.
33440         * modules/malloc (Comment): New section.
33441         * modules/realloc (Comment): Likewise.
33442         * modules/sigpipe (Comment): Likewise.
33443
33444 2010-03-27  Bruno Haible  <bruno@clisp.org>
33445
33446         Resolve conflict between the two kinds of module indicators.
33447         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33448         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33449         * modules/canonicalize (configure.ac): Invoke
33450         gl_MODULE_INDICATOR_FOR_TESTS.
33451         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33452         GNULIB_XYZ.
33453         * tests/test-dirent-c++.cc: Likewise.
33454         * tests/test-dirent-safer.c: Likewise.
33455         * tests/test-dup2.c: Likewise.
33456         * tests/test-fchdir.c: Likewise.
33457         * tests/test-fcntl-h-c++.cc: Likewise.
33458         * tests/test-getopt.c: Likewise.
33459         * tests/test-getopt.h: Likewise.
33460         * tests/test-langinfo-c++.cc: Likewise.
33461         * tests/test-locale-c++.cc: Likewise.
33462         * tests/test-math-c++.cc: Likewise.
33463         * tests/test-pty-c++.cc: Likewise.
33464         * tests/test-search-c++.cc: Likewise.
33465         * tests/test-signal-c++.cc: Likewise.
33466         * tests/test-spawn-c++.cc: Likewise.
33467         * tests/test-stdio-c++.cc: Likewise.
33468         * tests/test-stdlib-c++.cc: Likewise.
33469         * tests/test-string-c++.cc: Likewise.
33470         * tests/test-sys_ioctl-c++.cc: Likewise.
33471         * tests/test-sys_select-c++.cc: Likewise.
33472         * tests/test-sys_socket-c++.cc: Likewise.
33473         * tests/test-sys_stat-c++.cc: Likewise.
33474         * tests/test-sys_time-c++.cc: Likewise.
33475         * tests/test-time-c++.cc: Likewise.
33476         * tests/test-unistd-c++.cc: Likewise.
33477         * tests/test-wchar-c++.cc: Likewise.
33478         * tests/uninorm/test-u8-nfc.c: Likewise.
33479         * tests/uninorm/test-u8-nfd.c: Likewise.
33480         * tests/uninorm/test-u8-nfkc.c: Likewise.
33481         * tests/uninorm/test-u8-nfkd.c: Likewise.
33482         * tests/uninorm/test-u16-nfc.c: Likewise.
33483         * tests/uninorm/test-u16-nfd.c: Likewise.
33484         * tests/uninorm/test-u16-nfkc.c: Likewise.
33485         * tests/uninorm/test-u16-nfkd.c: Likewise.
33486         * tests/uninorm/test-u32-nfc.c: Likewise.
33487         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33488         * tests/uninorm/test-u32-nfd.c: Likewise.
33489         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33490         * tests/uninorm/test-u32-nfkc.c: Likewise.
33491         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33492         * tests/uninorm/test-u32-nfkd.c: Likewise.
33493         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33494         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33495
33496 2010-03-27  Bruno Haible  <bruno@clisp.org>
33497
33498         Distinguish two kinds of module indicators.
33499         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33500         gl_MODULE_INDICATOR.
33501         (gl_MODULE_INDICATOR): New macro.
33502         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33503         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33504         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33505         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33506         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33507         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33508         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33509         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33510         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33511         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33512         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33513         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33515         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33516         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33517         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33518         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33519         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33520         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33521         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33522         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33523         * modules/cloexec (configure.ac): Likewise.
33524         * modules/getopt-gnu (configure.ac): Likewise.
33525         * modules/uninorm/u8-normalize (configure.ac): Likewise.
33526         * modules/uninorm/u16-normalize (configure.ac): Likewise.
33527         * modules/uninorm/u32-normalize (configure.ac): Likewise.
33528         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
33529
33530 2010-03-27  Bruno Haible  <bruno@clisp.org>
33531
33532         New module description field 'Comment'.
33533         * gnulib-tool: New option --extract-comment.
33534         (func_usage): Document it.
33535         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
33536         (func_get_comment): New function.
33537         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
33538
33539 2010-03-27  Bruno Haible  <bruno@clisp.org>
33540
33541         Addendum to 2010-02-07 commit.
33542         * gnulib-tool (func_usage): Document --extract-applicability option.
33543
33544 2010-03-27  Bruno Haible  <bruno@clisp.org>
33545
33546         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
33547         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
33548         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
33549         rather than link errors.
33550
33551 2010-03-27  Bruno Haible  <bruno@clisp.org>
33552
33553         Avoid side effects from tests-related modules on the compilation of lib.
33554         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
33555         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
33556         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
33557         parameter. Emit into AM_CPPFLAGS a definition of the designated C
33558         macro.
33559         (func_import): Define a witness macro. Assign it a value that depends
33560         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
33561         tests-related modules.
33562         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
33563         Reported by Jim Meyering.
33564
33565 2010-03-27  Bruno Haible  <bruno@clisp.org>
33566
33567         Factorize common .m4 code.
33568         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
33569         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
33570         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
33571         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
33572         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33573         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
33574         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
33575         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33576         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33577         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33578         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
33579         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33580         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33581         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33582         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33583         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
33584         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33585         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33587         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
33588         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
33589         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33590         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33591         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33592         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33593         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33594         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
33595         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
33596         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
33597         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33598         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33599         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33600
33601 2010-03-27  Bruno Haible  <bruno@clisp.org>
33602
33603         Fix a compilation error on Cygwin with g++ >= 4.3.
33604         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
33605         if it is undefined or if we alias it to chmod.
33606         (lstat): Don't warn about the use of this function if it is undefined
33607         or if we alias it to stat.
33608         Reported by Simon Josefsson.
33609
33610 2010-03-27  Bruno Haible  <bruno@clisp.org>
33611
33612         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
33613         * modules/getlogin (configure.ac): Update.
33614
33615         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
33616         * modules/getlogin_r (configure.ac): Update.
33617
33618         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
33619         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
33620         * modules/inet_ntop (configure.ac): Update.
33621
33622         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
33623         * modules/inet_pton (configure.ac): Update.
33624
33625         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
33626         * modules/mbslen (configure.ac): Update.
33627
33628         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
33629         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
33630         * modules/forkpty (configure.ac): Update.
33631         * modules/openpty (configure.ac): Update.
33632
33633 2010-03-26  Simon Josefsson  <simon@josefsson.org>
33634
33635         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
33636         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
33637
33638 2010-03-25  Eric Blake  <eblake@redhat.com>
33639
33640         maint: use pragma consistently across replacement headers
33641         * lib/ctype.in.h (system_header): Hoist for consistent placement.
33642         * lib/dirent.in.h (system_header): Likewise.
33643         * lib/errno.in.h (system_header): Likewise.
33644         * lib/float.in.h (system_header): Likewise.
33645         * lib/getopt.in.h (system_header): Likewise.
33646         * lib/iconv.in.h (system_header): Likewise.
33647         * lib/inttypes.in.h (system_header): Likewise.
33648         * lib/langinfo.in.h (system_header): Likewise.
33649         * lib/locale.in.h (system_header): Likewise.
33650         * lib/math.in.h (system_header): Likewise.
33651         * lib/netdb.in.h (system_header): Likewise.
33652         * lib/netinet_in.in.h (system_header): Likewise.
33653         * lib/pty.in.h (system_header): Likewise.
33654         * lib/sched.in.h (system_header): Likewise.
33655         * lib/se-selinux.in.h (system_header): Likewise.
33656         * lib/search.in.h (system_header): Likewise.
33657         * lib/spawn.in.h (system_header): Likewise.
33658         * lib/stdarg.in.h (system_header): Likewise.
33659         * lib/stdint.in.h (system_header): Likewise.
33660         * lib/string.in.h (system_header): Likewise.
33661         * lib/strings.in.h (system_header): Likewise.
33662         * lib/sys_file.in.h (system_header): Likewise.
33663         * lib/sys_ioctl.in.h (system_header): Likewise.
33664         * lib/sys_socket.in.h (system_header): Likewise.
33665         * lib/sys_times.in.h (system_header): Likewise.
33666         * lib/sys_utsname.in.h (system_header): Likewise.
33667         * lib/sys_wait.in.h (system_header): Likewise.
33668         * lib/sysexits.in.h (system_header): Likewise.
33669         * lib/unistd.in.h (system_header): Likewise.
33670         * lib/wctype.in.h (system_header): Likewise.
33671
33672         arpa/inet: fix mingw compilation warning
33673         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
33674         Reported by Matthew Bolte.
33675
33676 2010-03-25  Bruno Haible  <bruno@clisp.org>
33677
33678         Avoid collision between gnulib wrapper and libintl wrapper.
33679         * lib/printf.c (printf): Don't define if a printf wrapper is already
33680         defined in intl/printf.c.
33681         Reported by Michel Boaventura <michel@michelboaventura.com>.
33682
33683 2010-03-25  Bruno Haible  <bruno@clisp.org>
33684
33685         Use ANSI C.
33686         * lib/readutmp.h (getutent): Provide ANSI C prototype.
33687
33688 2010-03-25  Bruno Haible  <bruno@clisp.org>
33689
33690         Minor formatting changes.
33691         * lib/acosl.c: Insert space before function argument list.
33692         * lib/argz.c: Likewise.
33693         * lib/asinl.c: Likewise.
33694         * lib/expl.c: Likewise.
33695         * lib/gen-uni-tables.c: Likewise.
33696         * lib/gettext.h: Likewise.
33697         * lib/glthread/lock.h: Likewise.
33698         * lib/tanl.c: Likewise.
33699         * lib/uniname/uniname.c: Likewise.
33700         * tests/test-idpriv-drop.c: Likewise.
33701         * tests/test-idpriv-droptemp.c: Likewise.
33702         * tests/test-lock.c: Likewise.
33703         * tests/test-tls.c: Likewise.
33704         * lib/argp-help.c: Insert space before function-like macro argument
33705         list.
33706         * lib/memcmp.c: Likewise.
33707         * tests/test-base64.c: Likewise.
33708         * lib/localename.c: Insert space before sizeof's argument list.
33709         * lib/safe-alloc.h: Likewise.
33710         * lib/file-set.h: Insert space before macro argument list.
33711         * tests/test-argp.c: Likewise.
33712         * lib/argp-namefrob.h: Insert space before function parameter list.
33713         * lib/getaddrinfo.c: Likewise.
33714         * lib/netdb.in.h: Likewise.
33715         * lib/parse-duration.h: Likewise.
33716         * lib/parse-duration.c: Likewise.
33717         * lib/poll.c: Likewise.
33718         * lib/select.c: Likewise.
33719         * lib/trim.h: Likewise.
33720         * tests/test-usleep.c: Likewise.
33721         * lib/ldexpl.c: Insert space before function parameter list and before
33722         function argument list.
33723         * lib/logl.c: Likewise.
33724         * lib/sqrtl.c: Likewise.
33725         * lib/trim.c: Likewise.
33726         * lib/cosl.c: Use GNU style indentation. Insert space before function
33727         argument list.
33728         * lib/sinl.c: Likewise.
33729         * lib/tsearch.c: Insert space after 'for'.
33730         Reported by Jim Meyering.
33731
33732 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
33733
33734         * maint.mk (sc_Wundef_boolean): Check for the presence of the
33735         config header before grepping, as it's not present before
33736         autoreconf/configure are run.  Reported by Simon Josefsson.
33737
33738 2010-03-23  Bruno Haible  <bruno@clisp.org>
33739
33740         pt_chown: Make it work with automake < 1.11.
33741         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
33742         Reported by Simon Josefsson.
33743
33744 2010-03-23  Bruno Haible  <bruno@clisp.org>
33745
33746         pt_chown: Don't depend on GPLed modules.
33747         * lib/pt_chown.c: Don't include idpriv.h.
33748         (main): Don't drop privileges.
33749         * modules/pt_chown (Depends-on): Remove idpriv-drop.
33750         Reported by Simon Josefsson.
33751
33752 2010-03-24  Simon Josefsson  <simon@josefsson.org>
33753
33754         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
33755         suggestions from karl@freefriends.org (Karl Berry).
33756
33757 2010-03-22  Eric Blake  <eblake@redhat.com>
33758
33759         gethostname: further tweaks
33760         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
33761         are overriding gethostname.
33762         Suggested by Bruno Haible.
33763
33764 2010-03-21  Bruno Haible  <bruno@clisp.org>
33765
33766         Fix comments.
33767         * lib/forkpty.c (rpl_forkpty): Fix comment.
33768         * lib/openpty.c (rpl_openpty): Likewise.
33769         Reported by Eric Blake.
33770
33771 2010-03-22  Eric Blake  <eblake@redhat.com>
33772
33773         gethostname: fix build on mingw
33774         * lib/unistd.in.h (includes): Work around fact that mingw
33775         <winsock2.h> re-includes <unistd.h>, by avoiding any
33776         redeclarations if we are being included by <winsock2.h>.
33777         Reported by Matthias Bolte.
33778
33779 2010-03-21  Bruno Haible  <bruno@clisp.org>
33780
33781         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33782         * lib/forkpty.c (forkpty): New replacement function, from glibc with
33783         modifications.
33784         * lib/pty.in.h (forkpty): Update declaration. Add comments.
33785         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
33786         provide the replacement.
33787         * modules/forkpty (Depends-on): Add openpty, login_tty.
33788         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
33789         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
33790         * doc/glibc-functions/forkpty.texi: More supported platforms.
33791         * config/srclist.txt: Add forkpty.c (commented).
33792
33793 2010-03-21  Bruno Haible  <bruno@clisp.org>
33794
33795         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
33796         (Makefile.am): Verify that PTY_LIB is defined.
33797
33798         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
33799
33800 2010-03-21  Bruno Haible  <bruno@clisp.org>
33801
33802         Tests for module 'login_tty'.
33803         * modules/login_tty-tests: New file.
33804         * tests/test-login_tty.c: New file.
33805
33806         New module 'login_tty'.
33807         * lib/login_tty.c: New file.
33808         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
33809         * modules/login_tty: New file.
33810         * doc/glibc-functions/login_tty.texi: Mention the new module.
33811
33812 2010-03-21  Bruno Haible  <bruno@clisp.org>
33813
33814         login_tty: Documentation.
33815         * doc/glibc-functions/login_tty.texi: New file.
33816         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
33817
33818 2010-03-21  Bruno Haible  <bruno@clisp.org>
33819
33820         pty: Consistent macro naming.
33821         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
33822         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
33823         * modules/pty (configure.ac): Update.
33824
33825 2010-03-21  Bruno Haible  <bruno@clisp.org>
33826
33827         Tests for openpty: Make stricter.
33828         * tests/test-openpty.c (main): Add test of canonical processing and
33829         erase.
33830         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
33831
33832         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33833         * lib/openpty.c (openpty): New replacement function.
33834         * lib/pty.in.h: Include <termios.h>.
33835         (openpty): Update declaration. Add comments.
33836         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
33837         is not declared, arrange to provide the replacement. Check for _getpty
33838         and posix_openpt.
33839         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
33840         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
33841         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
33842         * modules/pty-tests (test_pty_c___LDADD): New variable.
33843         * doc/glibc-functions/openpty.texi: More supported platforms.
33844
33845 2010-03-21  Bruno Haible  <bruno@clisp.org>
33846
33847         setenv: Tweaks.
33848         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
33849         the test program.
33850         * doc/posix-functions/setenv.texi: Update platforms list.
33851
33852 2010-03-21  Bruno Haible  <bruno@clisp.org>
33853
33854         New module 'unlockpt'.
33855         * lib/unlockpt.c: New file, from glibc with modifications.
33856         * m4/unlockpt.m4: New file.
33857         * modules/unlockpt: New file.
33858         * lib/stdlib.in.h (unlockpt): New declaration.
33859         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
33860         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
33861         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
33862         HAVE_UNLOCKPT.
33863         * doc/posix-functions/unlockpt.texi: Mention the new module.
33864         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
33865         * config/srclist.txt: Add unlockpt.c (commented).
33866
33867 2010-03-21  Jim Meyering  <meyering@redhat.com>
33868
33869         maint.mk: prohibit inclusion of "intprops.h" without use
33870         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
33871
33872 2010-03-21  Bruno Haible  <bruno@clisp.org>
33873
33874         New module 'grantpt'.
33875         * lib/grantpt.c: New file, from glibc with modifications.
33876         * m4/grantpt.m4: New file.
33877         * modules/grantpt: New file.
33878         * lib/stdlib.in.h (grantpt): New declaration.
33879         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
33880         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
33881         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
33882         HAVE_GRANTPT.
33883         * doc/posix-functions/grantpt.texi: Mention the new module.
33884         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
33885         * config/srclist.txt: Add grantpt.c (commented).
33886
33887 2010-03-21  Bruno Haible  <bruno@clisp.org>
33888
33889         New module 'pt_chown'.
33890         * lib/pt_chown.c: New file, from glibc with modifications.
33891         * lib/pty-private.h: New file, from glibc with modifications.
33892         * modules/pt_chown: New file.
33893         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
33894
33895 2010-03-21  Bruno Haible  <bruno@clisp.org>
33896
33897         Tests for module 'ptsname'.
33898         * modules/ptsname-tests: New file.
33899         * tests/test-ptsname.c: New file.
33900
33901         New module 'ptsname'.
33902         * lib/ptsname.c: New file, from glibc with modifications.
33903         * m4/ptsname.m4: New file.
33904         * modules/ptsname: New file.
33905         * lib/stdlib.in.h (ptsname): New declaration.
33906         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
33907         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
33908         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
33909         HAVE_PTSNAME.
33910         * doc/posix-functions/ptsname.texi: Mention the new module.
33911         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
33912         * config/srclist.txt: Add ptsname.c (commented).
33913
33914 2010-03-21  Bruno Haible  <bruno@clisp.org>
33915
33916         Tests for module 'ttyname_r'.
33917         * modules/ttyname_r-tests: New file.
33918         * tests/test-ttyname_r.c: New file.
33919
33920         New module 'ttyname_r'.
33921         * lib/ttyname_r.c: New file.
33922         * m4/ttyname_r.m4: New file.
33923         * modules/ttyname_r: New file.
33924         * lib/unistd.in.h (ttyname_r): New declaration.
33925         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
33926         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
33927         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
33928         HAVE_TTYNAME_R.
33929         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
33930         * doc/posix-functions/ttyname_r.texi: Mention the new module.
33931
33932 2010-03-20  Bruno Haible  <bruno@clisp.org>
33933
33934         signal: Undefine macro definitions in C++ mode.
33935         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
33936         sigfillset): Undefine macro definitions from the system header in C++
33937         mode.
33938         Reported by John W. Eaton <jwe@gnu.org>.
33939
33940 2010-03-20  Bruno Haible  <bruno@clisp.org>
33941
33942         Ensure no #include statements inside extern "C" { ... }.
33943         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
33944         contain #include statements.
33945         * lib/time.in.h: Likewise.
33946
33947 2010-03-20  Bruno Haible  <bruno@clisp.org>
33948
33949         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
33950         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
33951         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
33952         Reported by John W. Eaton <jwe@gnu.org>.
33953
33954 2010-03-20  Bruno Haible  <bruno@clisp.org>
33955
33956         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
33957         Reported by Jim Meyering.
33958
33959 2010-03-20  Bruno Haible  <bruno@clisp.org>
33960
33961         pipe: Set errno upon failure.
33962         * lib/pipe.h: Specify that when -1 is returned, errno is set.
33963         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
33964         errno value in error message.
33965
33966 2010-03-20  Bruno Haible  <bruno@clisp.org>
33967             Jim Meyering  <meyering@redhat.com>
33968
33969         lchown: Avoid "unused variable" warning.
33970         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
33971
33972 2010-03-20  Bruno Haible  <bruno@clisp.org>
33973
33974         Work around unlink() bug on MacOS X 10.5.6.
33975         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
33976         attempting to unlink a parent directory.
33977         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
33978         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
33979         activate for the replacement function.
33980         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
33981
33982 2010-03-20  Bruno Haible  <bruno@clisp.org>
33983
33984         Fix link errors on Solaris 8.
33985         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
33986         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
33987
33988 2010-03-19  Jim Meyering  <meyering@redhat.com>
33989
33990         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
33991         The _LIBC implementation of build_range_exp correctly honors the
33992         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
33993         However, the non-_LIBC implementation would ignore that syntax-bit
33994         flag and return REG_ERANGE unconditionally.
33995         This change makes it honor that flag.
33996         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
33997         Make two pointer parameters "const".
33998         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
33999         (parse_bracket_exp): Update caller.
34000
34001         regex.m4: correct the reversed range endpoint ([b-a]) test
34002         * m4/regex.m4: When requiring that [b-a] evoke failure,
34003         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34004         test pass once again for x86-based systems.
34005
34006 2010-03-19  Bruno Haible  <bruno@clisp.org>
34007
34008         scandir: Fix link error on Solaris 8.
34009         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34010         macros.
34011
34012 2010-03-19  Bruno Haible  <bruno@clisp.org>
34013
34014         getusershell: Fix documentation.
34015         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34016         module.
34017         * doc/glibc-functions/setusershell.texi: Likewise.
34018
34019         getusershell: Provide declaration, missing on Solaris 9.
34020         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34021         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34022         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34023         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34025         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34026         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34027         HAVE_GETUSERSHELL.
34028         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34029
34030 2010-03-19  Bruno Haible  <bruno@clisp.org>
34031
34032         wctype: Provide iswblank function.
34033         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34034         exists and is fine.
34035         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34036         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34037         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34038         * doc/posix-functions/iswblank.texi: Update.
34039
34040 2010-03-19  Bruno Haible  <bruno@clisp.org>
34041
34042         Tests of module 'pty' in C++ mode.
34043         * modules/pty-tests: New file.
34044         * tests/test-pty-c++.cc: New file.
34045         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34046
34047 2010-03-19  Eric Blake  <eblake@redhat.com>
34048
34049         logb: fix documentation
34050         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34051         1.5 declaration bug.
34052
34053         forkpty, openpty: prefer glibc's const-safe prototype
34054         * lib/forkpty.c (rpl_forkpty): New file.
34055         * lib/openpty.c (rpl_openpty): Likewise.
34056         * modules/forkpty (Files): Distribute it.
34057         * modules/openpty (Files): Likewise.
34058         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34059         check...
34060         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34061         replacement for for non-const BSD signature.
34062         * modules/pty (Makefile.am): Substitute witnesses.
34063         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34064         * tests/test-forkpty.c: Update signature check.
34065         * tests/test-openpty.c: Likewise.
34066         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34067         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34068
34069         forkpty, openpty: split functions into new modules
34070         * modules/pty (Makefile.am): Substitute new witnesses.
34071         (Libraries): Move library detection...
34072         * modules/forkpty: ...into new module.
34073         * modules/openpty: Another new module.
34074         * modules/pty-tests: Rename and split...
34075         * modules/forkpty-tests: ...to this...
34076         * modules/openpty-tests: ...and this.
34077         * tests/test-pty.c: Rename and split...
34078         * tests/test-forkpty.c: ...to this...
34079         * tests/test-openpty.c: ...and this.
34080         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34081         (gl_PTY): Split library searching...
34082         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34083         (gl_FORKPTY, gl_OPENPTY): New macros.
34084         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34085         * NEWS: Mention the split.
34086         * MODULES.html.sh (Misc): Document the modules.
34087         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34088         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34089
34090         pty: improve replacement header
34091         * lib/pty.in.h: New file.
34092         * modules/pty (Files): Ship it.
34093         (Makefile.am): Always build replacement.
34094         * m4/pty.m4: Rename...
34095         * m4/pty_h.m4: ...to this.
34096         (gl_PTY): Modernize setting of witness macros; update check of
34097         forkpty to take proper advantage of cache.
34098         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34099
34100         getopt: avoid compiler warning
34101         * lib/getopt.c (attribute_hidden): Remove unused macro.
34102
34103 2010-03-18  Bruno Haible  <bruno@clisp.org>
34104
34105         Fix link errors on Solaris 8.
34106         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34107         * modules/search-tests (test_search_c___LDADD): Likewise.
34108         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34109         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34110         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34111         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34112         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34113         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34114         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34115
34116 2010-03-18  Bruno Haible  <bruno@clisp.org>
34117
34118         Fix bug introduced on 2010-03-14.
34119         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34120         (gl_SPAWN_H): Require it.
34121         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34122         Reported by Simon Josefsson.
34123
34124 2010-03-18  Bruno Haible  <bruno@clisp.org>
34125
34126         Fix typo introduced on 2009-12-31.
34127         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34128         posix_spawn_file_actions_adddup2.
34129
34130 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34131         and Eric Blake  <eblake@redhat.com>
34132
34133         test-vc-list-files-git: make more robust
34134         * tests/test-vc-list-files-git.sh: Unset problematic environment
34135         variables.  Chain commands together.
34136
34137 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34138
34139         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34140         `AC_CHECK_DECL' invocation.
34141
34142 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34143
34144         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34145         appears before executable statements. Suggested by Petr Sumbera
34146         <Petr.Sumbera@Sun.COM>.
34147
34148 2010-03-14  Bruno Haible  <bruno@clisp.org>
34149
34150         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34151         portability problems. Instead use a simpler test.
34152         (main): Check that invalid arguments are rejected only on Linux.
34153
34154 2010-03-14  Bruno Haible  <bruno@clisp.org>
34155
34156         Fix bug introduced on 2009-12-31.
34157         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34158         gl_PREREQ_SYS_H_WINSOCK2 always.
34159         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34160         SYS_SOCKET_H variable.
34161         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34162         Update comments.
34163         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34164         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34165         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34166         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34167         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34168
34169 2010-03-14  Bruno Haible  <bruno@clisp.org>
34170
34171         Fix values returned by sinl, cosl.
34172         * lib/trigl.h: Add specification comments.
34173         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34174         that combines the values from the precomputed table with the values of
34175         the Chebyshev polynomials.
34176
34177 2010-03-14  Bruno Haible  <bruno@clisp.org>
34178
34179         Fix compilation error when modules 'posix_spawn[p]' are not used.
34180         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34181         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34182
34183 2010-03-14  Bruno Haible  <bruno@clisp.org>
34184
34185         Fix compilation error on mingw when module 'time_r' is not used.
34186         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34187         is 1.
34188         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34189         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34190         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34191         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34192
34193 2010-03-14  Bruno Haible  <bruno@clisp.org>
34194
34195         Fix compilation error with Sun C.
34196         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34197         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34198         instead of GCC specific ULONG_LONG_MAX.
34199         * lib/xstrtoll.c: Likewise.
34200         * lib/xstrtoull.c: Likewise.
34201
34202 2010-03-13  Bruno Haible  <bruno@clisp.org>
34203
34204         Allow the user to disable C++ code and tests.
34205         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34206         (gl_PROG_ANSI_CXX): Require it.
34207
34208 2010-03-13  Bruno Haible  <bruno@clisp.org>
34209
34210         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34211         cases.
34212
34213 2010-03-13  Bruno Haible  <bruno@clisp.org>
34214
34215         Test that gnulib does not break the standard C++ headers.
34216         * tests/test-locale-c++2.cc: New file.
34217         * modules/locale-tests (Files): Add it.
34218         (Makefile.am): Compile it for test-locale-c++.
34219         * tests/test-math-c++2.cc: New file.
34220         * modules/math-tests (Files): Add it.
34221         (Makefile.am): Compile it for test-math-c++.
34222         * tests/test-signal-c++2.cc: New file.
34223         * modules/signal-tests (Files): Add it.
34224         (Makefile.am): Compile it for test-signal-c++.
34225         * tests/test-stdio-c++2.cc: New file.
34226         * modules/stdio-tests (Files): Add it.
34227         (Makefile.am): Compile it for test-stdio-c++.
34228         * tests/test-stdlib-c++2.cc: New file.
34229         * modules/stdlib-tests (Files): Add it.
34230         (Makefile.am): Compile it for test-stdlib-c++.
34231         * tests/test-string-c++2.cc: New file.
34232         * modules/string-tests (Files): Add it.
34233         (Makefile.am): Compile it for test-string-c++.
34234         * tests/test-time-c++2.cc: New file.
34235         * modules/time-tests (Files): Add it.
34236         (Makefile.am): Compile it for test-time-c++.
34237         Reported by John W. Eaton <jwe@gnu.org>.
34238
34239 2010-03-13  Bruno Haible  <bruno@clisp.org>
34240
34241         * gnulib-tool (func_usage): Clarify which options are available for
34242         --create-testdir and --create-megatestdir.
34243
34244 2010-03-13  Bruno Haible  <bruno@clisp.org>
34245
34246         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34247         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34248         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34249         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34250         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34251         when appropriate.
34252         Reported by Jim Meyering.
34253
34254 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34255
34256         * gnulib-tool (func_import): Explain origin of code.
34257
34258 2010-03-12  Bruno Haible  <bruno@clisp.org>
34259
34260         Fix problem with automake's definition of CXXLINK.
34261         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34262         Reported by Simon Josefsson and Ludovic Courtès.
34263
34264 2010-03-12  Bruno Haible  <bruno@clisp.org>
34265
34266         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34267         stable releases.
34268
34269 2010-03-11  Bruno Haible  <bruno@clisp.org>
34270
34271         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34272         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34273         whether the system provides one variant or multiple variants of the
34274         function.
34275         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34276         C++ compilers.
34277         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34278         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34279         Reported by Jim Meyering.
34280
34281 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34282
34283         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34284
34285 2010-03-08  Bruno Haible  <bruno@clisp.org>
34286
34287         gnulib-tool: Add support for --libtool in --create-testdir.
34288         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34289         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34290
34291 2010-03-08  Eric Blake  <eblake@redhat.com>
34292
34293         gnulib-tool.texi: mention possibility of git submodule
34294         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34295         submodules.
34296         * doc/.gitignore: Ignore another generated file.
34297
34298 2010-03-08  Karl Berry  <karl@gnu.org>
34299
34300         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34301         of committing gnulib files while skipping others.
34302
34303 2010-03-07  Bruno Haible  <bruno@clisp.org>
34304
34305         Tests of module 'wctype' in C++ mode.
34306         * tests/test-wctype-c++.cc: New file.
34307         * modules/wctype-tests (Files): Add it and tests/signature.h.
34308         (Depends-on): Add ansi-c++-opt.
34309         (Makefile.am): Arrange to compile and run test-wctype-c++.
34310
34311         Tests of module 'wchar' in C++ mode.
34312         * tests/test-wchar-c++.cc: New file.
34313         * modules/wchar-tests (Files): Add it and tests/signature.h.
34314         (Depends-on): Add ansi-c++-opt.
34315         (Makefile.am): Arrange to compile and run test-wchar-c++.
34316         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34317         gl_MODULE_INDICATOR.
34318
34319         Tests of module 'unistd' in C++ mode.
34320         * tests/test-unistd-c++.cc: New file.
34321         * modules/unistd-tests (Files): Add it and tests/signature.h.
34322         (Depends-on): Add ansi-c++-opt.
34323         (Makefile.am): Arrange to compile and run test-unistd-c++.
34324         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34325         gl_MODULE_INDICATOR.
34326
34327         Tests of module 'time' in C++ mode.
34328         * tests/test-time-c++.cc: New file.
34329         * modules/time-tests (Files): Add it and tests/signature.h.
34330         (Depends-on): Add ansi-c++-opt.
34331         (Makefile.am): Arrange to compile and run test-time-c++.
34332         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34333
34334         Tests of module 'sys_time' in C++ mode.
34335         * tests/test-sys_time-c++.cc: New file.
34336         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34337         (Depends-on): Add ansi-c++-opt.
34338         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34339         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34340         gl_MODULE_INDICATOR.
34341
34342         Tests of module 'sys_stat' in C++ mode.
34343         * tests/test-sys_stat-c++.cc: New file.
34344         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34345         (Depends-on): Add ansi-c++-opt.
34346         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34347         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34348         gl_MODULE_INDICATOR.
34349
34350         Tests of module 'sys_socket' in C++ mode.
34351         * tests/test-sys_socket-c++.cc: New file.
34352         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
34353         (Depends-on): Add ansi-c++-opt.
34354         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
34355         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34356         gl_MODULE_INDICATOR.
34357
34358         Tests of module 'sys_select' in C++ mode.
34359         * tests/test-sys_select-c++.cc: New file.
34360         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34361         (Depends-on): Add ansi-c++-opt.
34362         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34363         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34364         gl_MODULE_INDICATOR.
34365
34366         Tests of module 'sys_ioctl' in C++ mode.
34367         * tests/test-sys_ioctl-c++.cc: New file.
34368         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34369         (Depends-on): Add ansi-c++-opt.
34370         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34371         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34372         gl_MODULE_INDICATOR.
34373
34374         Tests of module 'string' in C++ mode.
34375         * tests/test-string-c++.cc: New file.
34376         * modules/string-tests (Files): Add it and tests/signature.h.
34377         (Depends-on): Add ansi-c++-opt.
34378         (Makefile.am): Arrange to compile and run test-string-c++.
34379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34380         gl_MODULE_INDICATOR.
34381
34382         Tests of module 'stdlib' in C++ mode.
34383         * tests/test-stdlib-c++.cc: New file.
34384         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34385         (Depends-on): Add ansi-c++-opt.
34386         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34387         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34388         gl_MODULE_INDICATOR.
34389
34390         Tests of module 'stdio' in C++ mode.
34391         * tests/test-stdio-c++.cc: New file.
34392         * modules/stdio-tests (Files): Add it and tests/signature.h.
34393         (Depends-on): Add ansi-c++-opt.
34394         (Makefile.am): Arrange to compile and run test-stdio-c++.
34395         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34396         gl_MODULE_INDICATOR.
34397
34398         Tests of module 'spawn' in C++ mode.
34399         * tests/test-spawn-c++.cc: New file.
34400         * modules/spawn-tests (Files): Add it and tests/signature.h.
34401         (Depends-on): Add ansi-c++-opt.
34402         (Makefile.am): Arrange to compile and run test-spawn-c++.
34403         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34404         gl_MODULE_INDICATOR.
34405
34406         Tests of module 'signal' in C++ mode.
34407         * tests/test-signal-c++.cc: New file.
34408         * modules/signal-tests (Files): Add it and tests/signature.h.
34409         (Depends-on): Add ansi-c++-opt.
34410         (Makefile.am): Arrange to compile and run test-signal-c++.
34411         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34412         gl_MODULE_INDICATOR.
34413
34414         Tests of module 'search' in C++ mode.
34415         * tests/test-search-c++.cc: New file.
34416         * modules/search-tests (Files): Add it and tests/signature.h.
34417         (Depends-on): Add ansi-c++-opt.
34418         (Makefile.am): Arrange to compile and run test-search-c++.
34419         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34420         gl_MODULE_INDICATOR.
34421
34422         Tests of module 'math' in C++ mode.
34423         * tests/test-math-c++.cc: New file.
34424         * modules/math-tests (Files): Add it and tests/signature.h.
34425         (Depends-on): Add ansi-c++-opt.
34426         (Makefile.am): Arrange to compile and run test-math-c++.
34427         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34428
34429         Tests of module 'locale' in C++ mode.
34430         * tests/test-locale-c++.cc: New file.
34431         * modules/locale-tests (Files): Add it and tests/signature.h.
34432         (Depends-on): Add ansi-c++-opt.
34433         (Makefile.am): Arrange to compile and run test-locale-c++.
34434         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34435         gl_MODULE_INDICATOR.
34436
34437         Tests of module 'langinfo' in C++ mode.
34438         * tests/test-langinfo-c++.cc: New file.
34439         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34440         (Depends-on): Add ansi-c++-opt.
34441         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34442         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34443         gl_MODULE_INDICATOR.
34444
34445         Tests of module 'iconv-h' in C++ mode.
34446         * tests/test-iconv-h-c++.cc: New file.
34447         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34448         (Depends-on): Add ansi-c++-opt.
34449         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34450
34451         Tests of module 'glob' in C++ mode.
34452         * tests/test-glob-c++.cc: New file.
34453         * modules/glob-tests (Files): Add it.
34454         (Depends-on): Add ansi-c++-opt.
34455         (Makefile.am): Arrange to compile and run test-glob-c++.
34456
34457         Tests of module 'fcntl-h' in C++ mode.
34458         * tests/test-fcntl-h-c++.cc: New file.
34459         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34460         (Depends-on): Add ansi-c++-opt.
34461         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34462         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34463         gl_MODULE_INDICATOR.
34464
34465         Tests of module 'dirent' in C++ mode.
34466         * tests/test-dirent-c++.cc: New file.
34467         * modules/dirent-tests (Files): Add it and tests/signature.h.
34468         (Depends-on): Add ansi-c++-opt.
34469         (Makefile.am): Arrange to compile and run test-dirent-c++.
34470         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34471         gl_MODULE_INDICATOR.
34472
34473         New module 'ansi-c++-opt'.
34474         * modules/ansi-c++-opt: New file.
34475         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34476
34477         Document C++ namespace mode.
34478         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34479
34480         wctype: Avoid #define replacements in C++ mode.
34481         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34482         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34483         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34484         In C++, define a namespaced alias symbol.
34485         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34486         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34487         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34488         rule.
34489
34490         wchar: Avoid #define replacements in C++ mode.
34491         * lib/wchar.in.h: Include c++defs.h.
34492         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34493         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34494         symbol.
34495         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34496         * modules/wchar (Depends-on): Add c++defs.
34497         (Makefile.am): Update wchar.h rule.
34498
34499         unistd: Avoid #define replacements in C++ mode.
34500         * lib/unistd.in.h: Include c++defs.h.
34501         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34502         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34503         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34504         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34505         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34506         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34507         symbol.
34508         (environ): Update.
34509         * modules/unistd (Depends-on): Add c++defs.
34510         (Makefile.am): Update unistd.h rule.
34511
34512         time: Avoid #define replacements in C++ mode.
34513         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34514         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34515         define a namespaced alias symbol.
34516         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34517         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34518         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34519         * modules/time (Depends-on): Add c++defs, warn-on-use.
34520         (Makefile.am): Update time.h rule.
34521         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34522         * modules/nanosleep (configure.ac): Likewise.
34523         * modules/strptime (configure.ac): Likewise.
34524         * modules/timegm (configure.ac): Likewise.
34525
34526         sys_time: Avoid #define replacements in C++ mode.
34527         * lib/sys_time.in.h: Include c++defs.h.
34528         (gettimeofday): In C++, define a namespaced alias symbol.
34529         * modules/sys_time (Depends-on): Add c++defs.
34530         (Makefile.am): Update sys/time.h rule.
34531
34532         sys_stat: Avoid #define replacements in C++ mode.
34533         * lib/sys_stat.in.h: Include c++defs.h.
34534         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
34535         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
34536         namespaced alias symbol.
34537         In C++, define a namespaced alias symbol.
34538         * modules/sys_stat (Depends-on): Add c++defs.
34539         (Makefile.am): Update sys/stat.h rule.
34540
34541         sys_socket: Avoid #define replacements in C++ mode.
34542         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
34543         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
34544         definitions also when the system has a <sys/socket.h>.
34545         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34546         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
34547         In C++, define a namespaced alias symbol.
34548         * modules/sys_socket (Depends-on): Add c++defs.
34549         (Makefile.am): Update sys/socket.h rule.
34550
34551         sys_select: Avoid #define replacements in C++ mode.
34552         * lib/sys_select.in.h: Include c++defs.h. Enable the function
34553         definitions also when the system has a <sys/select.h>.
34554         (select): In C++, define a namespaced alias symbol.
34555         * modules/sys_select (Depends-on): Add c++defs.
34556         (Makefile.am): Update sys/select.h rule.
34557
34558         sys_ioctl: Avoid #define replacements in C++ mode.
34559         * lib/sys_ioctl.in.h: Include c++defs.h.
34560         (ioctl): In C++, define a namespaced alias symbol.
34561         * modules/sys_ioctl (Depends-on): Add c++defs.
34562         (Makefile.am): Update sys/ioctl.h rule.
34563
34564         string: Avoid #define replacements in C++ mode.
34565         * lib/string.in.h: Include c++defs.h.
34566         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
34567         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34568         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34569         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
34570         strsignal, strverscmp): In C++, define a namespaced alias symbol.
34571         * modules/string (Depends-on): Add c++defs.
34572         (Makefile.am): Update string.h rule.
34573
34574         stdlib: Avoid #define replacements in C++ mode.
34575         * lib/stdlib.in.h: Include c++defs.h.
34576         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
34577         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
34578         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
34579         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
34580         symbol.
34581         * modules/stdlib (Depends-on): Add c++defs.
34582         (Makefile.am): Update stdlib.h rule.
34583
34584         stdio: Avoid #define replacements in C++ mode.
34585         * lib/stdio.in.h: Include c++defs.h.
34586         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
34587         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
34588         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
34589         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
34590         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
34591         namespaced alias symbol.
34592         * modules/stdio (Depends-on): Add c++defs.
34593         (Makefile.am): Update stdio.h rule.
34594
34595         spawn: Avoid #define replacements in C++ mode.
34596         * lib/spawn.in.h: Include c++defs.h.
34597         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34598         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34599         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34600         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34601         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34602         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34603         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34604         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34605         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34606         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34607         In C++, define a namespaced alias symbol.
34608         * modules/spawn (Depends-on): Add c++defs.
34609         (Makefile.am): Update spawn.h rule.
34610
34611         signal: Avoid #define replacements in C++ mode.
34612         * lib/signal.in.h: Include c++defs.h.
34613         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34614         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
34615         namespaced alias symbol.
34616         * modules/signal (Depends-on): Add c++defs.
34617         (Makefile.am): Update signal.h rule.
34618
34619         search: Avoid #define replacements in C++ mode.
34620         * lib/search.in.h: Include c++defs.h.
34621         (_gl_search_compar_fn, _gl_search_action_fn): New types.
34622         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
34623         symbol.
34624         * modules/search (Depends-on): Add c++defs.
34625         (Makefile.am): Update search.h rule.
34626
34627         math: Avoid #define replacements in C++ mode.
34628         * lib/math.in.h: Include c++defs.h.
34629         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
34630         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
34631         trunc, truncl): In C++, define a namespaced alias symbol.
34632         * modules/math (Depends-on): Add c++defs.
34633         (Makefile.am): Update math.h rule.
34634
34635         locale: Avoid #define replacements in C++ mode.
34636         * lib/locale.in.h: Include c++defs.h.
34637         (duplocale): In C++, define a namespaced alias symbol.
34638         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
34639         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
34640         * modules/locale (Depends-on): Add c++defs.
34641         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
34642
34643         langinfo: Avoid #define replacements in C++ mode.
34644         * lib/langinfo.in.h: Include c++defs.h.
34645         (nl_langinfo): In C++, define a namespaced alias symbol.
34646         * modules/langinfo (Depends-on): Add c++defs.
34647         (Makefile.am): Update langinfo.h rule.
34648
34649         iconv-h: Avoid #define replacements in C++ mode.
34650         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
34651         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
34652         symbol.
34653         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34654         whenever iconv is present.
34655         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
34656         (Makefile.am): Update iconv.h rule.
34657
34658         glob: Avoid #define replacements in C++ mode.
34659         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
34660         (_gl_glob_errfunc_fn): New type.
34661         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
34662         symbol.
34663         * modules/glob (Depends-on): Add c++defs, warn-on-use.
34664         (Makefile.am): Update glob.h rule.
34665
34666         fcntl-h: Avoid #define replacements in C++ mode.
34667         * lib/fcntl.in.h: Include c++defs.h.
34668         (fcntl, open, openat): In C++, define a namespaced alias symbol.
34669         * modules/fcntl-h (Depends-on): Add c++defs.
34670         (Makefile.am): Update fcntl.h rule.
34671
34672         dirent: Avoid #define replacements in C++ mode.
34673         * lib/dirent.in.h: Include c++defs.h.
34674         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
34675         namespaced alias symbol.
34676         (dirfd): Update declaration.
34677         * modules/dirent (Depends-on): Add c++defs.
34678         (Makefile.am): Update dirent.h rule.
34679
34680         ctype: Make it usable in C++ code.
34681         * lib/ctype.in.h: Include c++defs.h.
34682         (isblank): Declare as extern "C".
34683         * modules/ctype (Depends-on): Add c++defs.
34684         (Makefile.am): Update ctype.h rule.
34685
34686         New module 'c++defs'.
34687         * modules/c++defs: New file.
34688         * build-aux/c++defs.h: New file.
34689         Reported by John W. Eaton <jwe@gnu.org>.
34690
34691 2010-03-07  Bruno Haible  <bruno@clisp.org>
34692
34693         logb: Provide missing declaration for Cygwin.
34694         * lib/math.in.h (logb): New declaration.
34695         * m4/logb.m4: New file.
34696         * modules/logb (Files): Add m4/logb.m4.
34697         (Depends-on): Add math.
34698         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
34699         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
34700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
34701         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
34702         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
34703
34704 2010-03-07  Bruno Haible  <bruno@clisp.org>
34705
34706         Fix test-cond link error.
34707         * tests/test-cond.c: Include <stdio.h>.
34708
34709 2010-03-07  Bruno Haible  <bruno@clisp.org>
34710
34711         Fix test-dirent-safer link error.
34712         * modules/dirent-safer-tests (Makefile.am): Define
34713         test_dirent_safer_LDADD.
34714
34715 2010-03-07  Bruno Haible  <bruno@clisp.org>
34716
34717         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
34718         among default module list.
34719
34720 2010-03-07  Bruno Haible  <bruno@clisp.org>
34721
34722         Fix link error on platforms with GNU libiconv.
34723         * modules/unistr/u8-strcoll-tests (Makefile): Define
34724         test_u8_strcoll_LDADD.
34725         * modules/unistr/u16-strcoll-tests (Makefile): Define
34726         test_u16_strcoll_LDADD.
34727         * modules/unistr/u32-strcoll-tests (Makefile): Define
34728         test_u32_strcoll_LDADD.
34729
34730 2010-03-07  Bruno Haible  <bruno@clisp.org>
34731
34732         Use POSIX declarations for socket functions.
34733         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
34734         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
34735         rpl_sendto): Change declaration to match POSIX.
34736         * lib/connect.c (rpl_connect): Likewise.
34737         * lib/accept.c (rpl_accept): Likewise.
34738         * lib/bind.c (rpl_bind): Likewise.
34739         * lib/getpeername.c (rpl_getpeername): Likewise.
34740         * lib/getsockname.c (rpl_getsockname): Likewise.
34741         * lib/recv.c (rpl_recv): Likewise.
34742         * lib/send.c (rpl_send): Likewise.
34743         * lib/recvfrom.c (rpl_recvfrom): Likewise.
34744         * lib/sendto.c (rpl_sendto): Likewise.
34745
34746 2010-03-06  Bruno Haible  <bruno@clisp.org>
34747
34748         Clarify access, euidaccess, faccessat.
34749         * doc/posix-functions/faccessat.texi: Mention security problem under
34750         "Other problems", not "Portability problems".
34751         * doc/posix-functions/access.texi: Likewise. Mention a related security
34752         problem.
34753         * doc/glibc-functions/euidaccess.texi: Mention security problems.
34754         * lib/euidaccess.c: Add comments about platforms.
34755         * lib/unistd.in.h (access, euidaccess): Add warnings.
34756
34757 2010-03-07  Bruno Haible  <bruno@clisp.org>
34758
34759         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
34760         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
34761         (POSIX_SPAWN_SETSCHEDULER): Likewise.
34762         (POSIX_SPAWN_USEVFORK): Define in a way that works when
34763         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34764         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
34765         declare when POSIX_SPAWN_SETSCHEDULER is zero.
34766         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
34767         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
34768         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
34769         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
34770         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
34771         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
34772         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
34773         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
34774         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
34775         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
34776         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
34777         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
34778         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
34779         Likewise.
34780         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
34781         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
34782         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
34783         Likewise.
34784         * tests/test-spawn.c (main): Make it work when
34785         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34786
34787 2010-03-07  Bruno Haible  <bruno@clisp.org>
34788
34789         Fix incorrect Makefile.am generation in German locale.
34790         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34791         Execute sed command with character range in C locale.
34792
34793 2010-03-06  Bruno Haible  <bruno@clisp.org>
34794
34795         Tests for module 'iconv-h'.
34796         * modules/iconv-h-tests: New file.
34797         * tests/test-iconv-h.c: New file.
34798
34799         New module 'iconv-h'.
34800         * modules/iconv-h: New file.
34801         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
34802         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
34803         (configure.ac): Remove gl_ICONV_H.
34804         (Makefile.am): Remove rule for iconv.h.
34805
34806 2010-03-06  Bruno Haible  <bruno@clisp.org>
34807
34808         More consistent naming of *.m4 files.
34809         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
34810         * modules/wctype (Files): Update.
34811
34812         More consistent naming of *.m4 files.
34813         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
34814         * modules/wchar (Files): Update.
34815
34816 2010-03-06  Jim Meyering  <meyering@redhat.com>
34817
34818         euidaccess: relax license to LGPLv2+
34819         * modules/euidaccess (License): Relax to LGPLv2+.
34820
34821 2010-03-06  Bruno Haible  <bruno@clisp.org>
34822
34823         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
34824         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
34825         (Makefile.am): Augment lib_SOURCES instead.
34826
34827 2010-03-04  Jim Meyering  <meyering@redhat.com>
34828
34829         utime: remove obsolete module
34830         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
34831         unnecessary for years, and has been marked as obsolete for 10 months.
34832         * modules/utime: Remove file.
34833         * lib/utime.c: Remove file.
34834         * m4/utime.m4: Remove file.
34835         * m4/utimes-null.m4: Remove file.
34836         * doc/posix-functions/utime.texi (utime): Remove reference to
34837         the module.  Move the sole "fixed by gnulib" item into the
34838         "problems not fixed by Gnulib" list.
34839         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
34840
34841 2010-03-05  Simon Josefsson  <simon@josefsson.org>
34842
34843         * modules/exit (License): Relax license to LGPLv2+.
34844         (Status): Mark as obsolete.
34845         * NEWS: Mention deprecated 'exit' module.
34846         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
34847         of now obsolete 'exit'.
34848
34849 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34850
34851         fts-lgpl: remove unused module
34852         * modules/fts-lgpl: Remove.
34853         * MODULES.html.sh (func_all_modules): Adjust.
34854         * check-module (find_included_lib_files): Adjust.
34855         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
34856
34857 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34858
34859         copy-acl: enhance Solaris ACL error handling
34860         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
34861         * lib/set-mode-acl.c (qset_acl): Likewise.
34862
34863 2010-03-02  Bruno Haible  <bruno@clisp.org>
34864
34865         spawn: Don't override the system defined values on FreeBSD 8.
34866         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
34867         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
34868         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
34869         if HAVE_POSIX_SPAWN is 1.
34870         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
34871
34872 2010-03-01  Bruno Haible  <bruno@clisp.org>
34873
34874         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
34875         regarding Automake.
34876
34877 2010-02-25  Bruno Haible  <bruno@clisp.org>
34878
34879         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
34880         * gnulib-tool: Define 'echo' as a function only before the ksh alias
34881         setting, not afterwards.
34882         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34883
34884 2010-02-24  Eric Blake  <eblake@redhat.com>
34885
34886         bootstrap, git-version-gen: use timestamp
34887         * build-aux/git-version-gen (scriptversion): Force UTC.
34888         * build-aux/bootstrap (scriptversion): New variable.
34889
34890         bootstrap: allow older git
34891         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
34892         older than 1.6.4.  Requested by the libvirt project.
34893
34894 2010-02-23  Eric Blake  <eblake@redhat.com>
34895
34896         warn-on-use: work with old autoconf
34897         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
34898         AS_VAR semantics of autoconf 2.60.
34899         Reported by Bruno Haible.
34900
34901         bootstrap: improve some comments
34902         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
34903         clarification comments.
34904
34905         gettimeofday: provide correct function
34906         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
34907         when replacement is declared, otherwise provide gettimeofday.
34908         Reported by Michael Goffioul.
34909
34910 2010-02-23  Jim Meyering  <meyering@redhat.com>
34911
34912         lib-ignore: relax license to "unlimited", not LGPLv2+
34913         * modules/lib-ignore (License): Relax to "unlimited".
34914
34915 2010-02-23  Jim Meyering  <meyering@redhat.com>
34916
34917         lib-ignore: relax license to LGPLv2+
34918         * modules/lib-ignore (License): Relax to LGPLv2+.
34919
34920 2010-02-22  Eric Blake  <eblake@redhat.com>
34921
34922         lseek: avoid bash 3.2 broken pipe bug
34923         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
34924         warning from bash 3.2.
34925         Reported by Ben Pfaff, with analysis from Bruno Haible.
34926
34927         bootstrap: support non-FSF copyright holder
34928         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
34929         bootstrap.conf override of COPYRIGHT_HOLDER.
34930         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
34931
34932         bootstrap: interoperate with gettext 0.14.1
34933         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
34934
34935         bootstrap: allow for alternate submodule location
34936         * build-aux/bootstrap (gnulib_path): New variable; use instead of
34937         hardcoding submodule location.
34938         (gnulib_mk): Allow direct use of Makefile.am.
34939
34940         bootstrap: use GNULIB_SRCDIR to reduce disk usage
34941         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
34942         rather than reconfiguring where the submodule points.
34943
34944         gettimeofday: restore support for platforms that lack function
34945         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
34946         replacement if function is missing.
34947         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
34948         * modules/sys_time (Makefile.am): Substitute it.
34949         * lib/sys_time.in.h (gettimeofday): Check it.
34950         Reported by Michael Goffioul.
34951
34952 2010-02-21  Bruno Haible  <bruno@clisp.org>
34953
34954         * lib/stdio.in.h (obstack_printf): Fix typo.
34955
34956 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
34957
34958         vc-list-files: use bzr ls's -R option
34959         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
34960         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
34961
34962 2010-02-21  Jim Meyering  <meyering@redhat.com>
34963
34964         init.sh: fix EXEEXT shims to work also for names like test-prog
34965         * tests/init.sh: Re-exec a better shell, when needed.
34966         If the current shell lacks support for posix $(...), an init.sh-using
34967         test will now try to find a shell that supports that.  If EXEEXT is
34968         nonempty, we also require support for hyphen-in-alias-name and shell
34969         substitutions like ${var#glob}.  Failure to find such a shell results
34970         in a skipped test.
34971
34972 2010-02-21  Bruno Haible  <bruno@clisp.org>
34973
34974         Really work around around "broken pipe" error message from bash 3.2.
34975         * gnulib-tool (func_reset_sigpipe): Remove function.
34976         (echo): In bash 3.2, define to a function that uses printf.
34977         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
34978
34979 2010-02-20  Bruno Haible  <bruno@clisp.org>
34980
34981         Restore support for automake 1.9.6 with autoconf 2.61.
34982         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
34983         Reported by James Youngman <jay@gnu.org>.
34984
34985 2010-02-20  Bruno Haible  <bruno@clisp.org>
34986
34987         Improve *printf warning condition.
34988         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
34989         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
34990         and the function is overridden due to SIGPIPE emulation.
34991
34992 2010-02-20  Bruno Haible  <bruno@clisp.org>
34993
34994         * lib/stdio.in.h: Tweak comments.
34995
34996 2010-02-19  Bruno Haible  <bruno@clisp.org>
34997
34998         Make it easier to find modules. New gnulib-tool option '--find'.
34999         * gnulib-tool: New option --find.
35000         (func_usage): Document it.
35001         (func_sanitize_modulelist): New function, extracted from
35002         func_all_modules.
35003         (func_all_modules): Invoke it.
35004         * doc/gnulib-tool.texi (Which modules?): New node.
35005
35006 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35007
35008         * lib/sys_select.in.h: Provide select replacement even if
35009         sys/select.h exists on a system, for Interix.
35010
35011 2010-02-18  Jim Meyering  <meyering@redhat.com>
35012
35013         init.sh: don't use $(...) just yet
35014         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35015         to accommodate e.g., Solaris' /bin/sh.
35016
35017 2010-02-17  Bruno Haible  <bruno@clisp.org>
35018
35019         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35020         Reported by Ludovic Courtès <ludo@gnu.org>.
35021
35022 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35023
35024         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35025         linking with -lintl.
35026
35027 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35028
35029         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35030         if not provided by the system's netdb.h.  Reported by
35031         ludo@gnu.org (Ludovic Courtès).
35032
35033 2010-02-15  Jim Meyering  <meyering@redhat.com>
35034
35035         init.sh: improve portability and efficiency
35036         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35037         "dummy" in a for loop.
35038         Use '!', not '^' to select the complement of a character set used
35039         in a "case" statement.
35040         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35041         Suggestions from Eric Blake.
35042
35043         init.sh: automatically accommodate programs with the .exe suffix
35044         Automatically arrange for an invocation of "prog" to execute the
35045         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35046         may use the simpler "prog", yet still work when built on a system
35047         that requires specifying the added suffix.
35048         Do this by constructing a function named "prog" that invokes
35049         "prog.exe" for each .exe file in selected directories.
35050         * tests/init.sh (find_exe_basenames_): New function.
35051         (create_exe_shim_functions_): New function.
35052         (path_prepend_): Use it.
35053
35054         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35055         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35056         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35057
35058 2010-02-14  Jim Meyering  <meyering@redhat.com>
35059
35060         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35061         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35062         (sc_prohibit_hash_pjw_without_use): New rule.
35063
35064         maint.mk: allow the default upload destination dir to be overridden
35065         * top/maint.mk (upload_dest_dir_): Define with a default that
35066         preserves the status quo.
35067         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35068         Reported by Peter Simons.
35069
35070         maint.mk: prohibit inclusion of "hash.h" without_use
35071         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35072
35073 2010-02-10  Jim Meyering  <meyering@redhat.com>
35074
35075         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35076         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35077
35078 2010-02-09  Eric Blake  <ebb9@byu.net>
35079         and Bruno Haible  <bruno@clisp.org>
35080
35081         obstack-printf-posix: ensure declaration
35082         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35083         extracted from gl_FUNC_OBSTACK_PRINTF.
35084         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35085         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35086         Likewise.
35087         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35088         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35089         0.
35090
35091 2010-02-08  Bruno Haible  <bruno@clisp.org>
35092
35093         gnulib-tool: Fix typo in 2010-02-07 commit.
35094         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35095         Reported by Eric Blake.
35096
35097 2010-02-07  Bruno Haible  <bruno@clisp.org>
35098
35099         gnulib-tool: Fix up caching patches.
35100         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35101         option --no-cache. Use associative arrays when supported by the shell.
35102         (sed_comments): New variable.
35103         (modcache): Renamed from do_cache.
35104         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35105         abbreviate unnecessarily.
35106         (have_associative): New variable.
35107         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35108         way also for ksh and zsh.
35109         (func_init_sed_convert_to_cache_statements): New function, extracted
35110         from func_cache_lookup_module. Add support for associative arrays.
35111         Don't set the c_MODULE_cached variable here. Ignore all lines before
35112         the first field header. Remove only the final newline, not all trailing
35113         newlines. Support empty fields correctly. Limit the use of 'eval' to
35114         assignments.
35115         (func_get_description, func_get_status, func_get_notice,
35116         func_get_applicability, func_get_filelist, func_get_dependencies,
35117         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35118         func_get_automake_snippet, func_get_include_directive,
35119         func_get_link_directive, func_get_license, func_get_maintainer):
35120         Update documentation. List the unoptimized code first. Add support for
35121         associative arrays. Limit the use of 'eval' to assignments.
35122         (func_get_applicability): Undo stylistic pessimisations.
35123         (func_get_automake_snippet, func_get_include_directive): Reduce code
35124         duplication.
35125         (func_modules_transitive_closure, func_modules_add_dummy,
35126         func_modules_notice, func_modules_to_filelist, func_add_file,
35127         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35128         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35129         func_create_testdir, func_create_megatestdir): Update documentation.
35130
35131 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35132
35133         * gnulib-tool (func_cache_lookup_module): Store the module name
35134         belonging to the cache variable; error out if two different
35135         module names map to the same cache variable name.
35136
35137 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35138
35139         gnulib-tool: Make caching optional.
35140         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35141         Update matching short versions of --no-changelog.
35142         (func_usage): Update.
35143         (sed_extract_cache_prog): Renamed from ...
35144         (sed_extract_prog): ... this; revert to old extraction script.
35145         (func_get_description, func_get_status)
35146         (func_get_notice, func_get_applicability, func_get_filelist)
35147         (func_get_dependencies, func_get_autoconf_early_snippet)
35148         (func_get_autoconf_snippet, func_get_automake_snippet)
35149         (func_get_include_directive, func_get_link_directive)
35150         (func_get_license, func_get_maintainer): If $do_cache is false,
35151         use old, non-caching extraction scripts.
35152         Suggestion by Bruno Haible.
35153
35154 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35155
35156         gnulib-tool: cache module metainformation.
35157         * gnulib-tool (sed_extract_prog): Match newline before each
35158         header, and rewrite header to a shell variable suffix.
35159         (func_cache_var, func_cache_lookup_module): New functions,
35160         to turn a module name into a cache variable prefix, and to
35161         look up and cache module metainformation.
35162         (func_get_description, func_get_status)
35163         (func_get_notice, func_get_applicability, func_get_filelist)
35164         (func_get_dependencies, func_get_autoconf_early_snippet)
35165         (func_get_autoconf_snippet, func_get_automake_snippet)
35166         (func_get_include_directive, func_get_link_directive)
35167         (func_get_license, func_get_maintainer): Use
35168         func_cache_lookup_module.
35169
35170 2010-02-07  Bruno Haible  <bruno@clisp.org>
35171
35172         fnctl: Fix missing dependency.
35173         * modules/fcntl (Depends-on): Add getdtablesize.
35174         Reported by John W. Eaton <jwe@gnu.org>.
35175
35176 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35177
35178         Argp: fix recognition of short alias options.
35179
35180         * lib/argp-parse.c (convert_options): Fix improper use of
35181         `|' between character values.
35182         * tests/test-argp.c (group1_option): New alias option
35183         --read (-r).
35184         (group1_parser): Special handling for 'r'.
35185         (test15): New test case.
35186         (test_fun): Add test15.
35187         * tests/test-argp-2.sh: Update expected --help and --usage
35188         outputs.
35189
35190 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35191
35192         * tests/test-argp.c: Fix indentation.
35193
35194 2010-02-04  Eric Blake  <ebb9@byu.net>
35195
35196         gettimeofday: expose type of second argument
35197         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35198         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35199         * tests/test-gettimeofday.c: Use it to silence warning.
35200         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35201         the issue.
35202
35203 2010-02-03  Jim Meyering  <meyering@redhat.com>
35204
35205         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35206         * lib/regcomp.c (TYPE_SIGNED): Define.
35207         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35208
35209         regcomp.c: avoid a new -Wshadow warning
35210         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35211
35212 2010-02-01  Jim Meyering  <meyering@redhat.com>
35213
35214         removing useless parentheses in cpp #define directives
35215         For motivation, see commit c0221df4, "define STREQ(a,b)
35216         consistently, removing useless parentheses"
35217         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35218         * lib/mountlist.c (MNT_IGNORE): Likewise.
35219         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35220
35221 2010-02-01  Eric Blake  <ebb9@byu.net>
35222
35223         sys_time: use link-warning
35224         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35225         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35226         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35227         * modules/sys_time (Depends-on): Add warn-on-use.
35228         (Makefile.am): Always build replacement.
35229         (configure.ac): Update substitutions.
35230         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35231         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35232         bother with SYS_TIME_H.
35233         * modules/gettimeofday (configure.ac): Declare indicator.
35234         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35235         in use.
35236
35237         closein-tests: silence compiler warning
35238         * tests/test-closein.c (main): Ignore fread result.
35239         * modules/closein-tests (Depends-on): Add ignore-value.
35240
35241         tests: silence warning about system return
35242         * tests/test-areadlink-with-size.c (main): Ignore system result.
35243         * tests/test-areadlink.c (main): Likewise.
35244         * tests/test-areadlinkat-with-size.c (main): Likewise.
35245         * tests/test-areadlinkat.c (main): Likewise.
35246         * tests/test-canonicalize-lgpl.c (main): Likewise.
35247         * tests/test-canonicalize.c (main): Likewise.
35248         * tests/test-chown.c (main): Likewise.
35249         * tests/test-fchownat.c (main): Likewise.
35250         * tests/test-fdutimensat.c (main): Likewise.
35251         * tests/test-fstatat.c (main): Likewise.
35252         * tests/test-futimens.c (main): Likewise.
35253         * tests/test-lchown.c (main): Likewise.
35254         * tests/test-link.c (main): Likewise.
35255         * tests/test-linkat.c (main): Likewise.
35256         * tests/test-lstat.c (main): Likewise.
35257         * tests/test-mkdir.c (main): Likewise.
35258         * tests/test-mkdirat.c (main): Likewise.
35259         * tests/test-mkfifo.c (main): Likewise.
35260         * tests/test-mkfifoat.c (main): Likewise.
35261         * tests/test-mknod.c (main): Likewise.
35262         * tests/test-readlink.c (main): Likewise.
35263         * tests/test-remove.c (main): Likewise.
35264         * tests/test-rename.c (main): Likewise.
35265         * tests/test-renameat.c (main): Likewise.
35266         * tests/test-rmdir.c (main): Likewise.
35267         * tests/test-symlink.c (main): Likewise.
35268         * tests/test-symlinkat.c (main): Likewise.
35269         * tests/test-unlink.c (main): Likewise.
35270         * tests/test-unlinkat.c (main): Likewise.
35271         * tests/test-utimens.c (main): Likewise.
35272         * tests/test-utimensat.c (main): Likewise.
35273         * modules/areadlink-tests (Depends-on): Add ignore-value.
35274         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35275         * modules/areadlinkat-tests (Depends-on): Likewise.
35276         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35277         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35278         * modules/canonicalize-tests (Depends-on): Likewise.
35279         * modules/chown-tests (Depends-on): Likewise.
35280         * modules/fdutimensat-tests (Depends-on): Likewise.
35281         * modules/futimens-tests (Depends-on): Likewise.
35282         * modules/lchown-tests (Depends-on): Likewise.
35283         * modules/link-tests (Depends-on): Likewise.
35284         * modules/linkat-tests (Depends-on): Likewise.
35285         * modules/lstat-tests (Depends-on): Likewise.
35286         * modules/mkdir-tests (Depends-on): Likewise.
35287         * modules/mkfifo-tests (Depends-on): Likewise.
35288         * modules/mkfifoat-tests (Depends-on): Likewise.
35289         * modules/mknod-tests (Depends-on): Likewise.
35290         * modules/openat-tests (Depends-on): Likewise.
35291         * modules/readlink-tests (Depends-on): Likewise.
35292         * modules/remove-tests (Depends-on): Likewise.
35293         * modules/rename-tests (Depends-on): Likewise.
35294         * modules/renameat-tests (Depends-on): Likewise.
35295         * modules/rmdir-tests (Depends-on): Likewise.
35296         * modules/symlink-tests (Depends-on): Likewise.
35297         * modules/symlinkat-tests (Depends-on): Likewise.
35298         * modules/unlink-tests (Depends-on): Likewise.
35299         * modules/utimens-tests (Depends-on): Likewise.
35300         * modules/utimensat-tests (Depends-on): Likewise.
35301
35302 2010-01-31  Bruno Haible  <bruno@clisp.org>
35303
35304         Perform the same test for many <math.h> functions.
35305         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35306         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35307         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35308         of gl_MATHFUNC.
35309         * modules/acos (configure.ac): Likewise.
35310         * modules/asin (configure.ac): Likewise.
35311         * modules/atan (configure.ac): Likewise.
35312         * modules/atan2 (configure.ac): Likewise.
35313         * modules/cbrt (configure.ac): Likewise.
35314         * modules/copysign (configure.ac): Likewise.
35315         * modules/cos (configure.ac): Likewise.
35316         * modules/cosh (configure.ac): Likewise.
35317         * modules/erf (configure.ac): Likewise.
35318         * modules/erfc (configure.ac): Likewise.
35319         * modules/exp (configure.ac): Likewise.
35320         * modules/fmod (configure.ac): Likewise.
35321         * modules/hypot (configure.ac): Likewise.
35322         * modules/j0 (configure.ac): Likewise.
35323         * modules/j1 (configure.ac): Likewise.
35324         * modules/jn (configure.ac): Likewise.
35325         * modules/lgamma (configure.ac): Likewise.
35326         * modules/log (configure.ac): Likewise.
35327         * modules/log10 (configure.ac): Likewise.
35328         * modules/log1p (configure.ac): Likewise.
35329         * modules/pow (configure.ac): Likewise.
35330         * modules/remainder (configure.ac): Likewise.
35331         * modules/sin (configure.ac): Likewise.
35332         * modules/sinh (configure.ac): Likewise.
35333         * modules/tan (configure.ac): Likewise.
35334         * modules/tanh (configure.ac): Likewise.
35335         * modules/y0 (configure.ac): Likewise.
35336         * modules/y1 (configure.ac): Likewise.
35337         * modules/yn (configure.ac): Likewise.
35338         Suggested by Paolo Bonzini.
35339
35340 2010-01-31  Bruno Haible  <bruno@clisp.org>
35341
35342         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35343
35344 2010-01-31  Bruno Haible  <bruno@clisp.org>
35345
35346         Work around getdelim() bug on FreeBSD 8.0.
35347         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35348         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35349         not work.
35350         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35351         is 1.
35352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35353         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35354         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35355         a non-zero size.
35356         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35357
35358 2010-01-31  Bruno Haible  <bruno@clisp.org>
35359
35360         Work around getline() bug on FreeBSD 8.0.
35361         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35362         and a non-zero size.
35363         * tests/test-getline.c (main): Likewise.
35364         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35365         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35366
35367 2010-01-28  Eric Blake  <ebb9@byu.net>
35368
35369         regex: fix build failure
35370         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35371         platforms.
35372
35373 2010-01-28  Jim Meyering  <meyering@redhat.com>
35374
35375         regex: do not ignore memory allocation failure
35376         * lib/regex_internal.c (create_cd_newstate): Detect
35377         re_node_set_init_copy failure.   Extracted from glibc commit
35378         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35379
35380         regex: sync more white-space changes from libc
35381         * lib/regex_internal.c: White-space only changes.
35382         * lib/regexec.c: Likewise.
35383
35384         regex: add many uses of __attribute_warn_unused_result__
35385         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35386         * lib/regexec.c: Likewise.
35387         Extracted from a messy glibc commit.
35388
35389         regcomp.c: spelling and merge-artifact from glibc
35390         * lib/regcomp.c: Merge remainder of glibc's
35391         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35392
35393         regcomp.c: sync white-space changes from glibc
35394         * lib/regcomp.c: Merge to accommodate white space
35395         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35396
35397         regcomp.c: do not ignore internal return values
35398         * lib/regcomp.c: Do not ignore internal return values.
35399         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35400         but without its white-space changes and spelling fixes.
35401
35402         regex_internal.h: define __attribute_warn_unused_result__
35403         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35404
35405         maint: add a syntax-check rule to check for vulnerable Makefile.in
35406         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35407
35408 2010-01-27  Jim Meyering  <meyering@redhat.com>
35409
35410         ncftpput-ftp: clean up spaces
35411         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35412         Remove trailing blanks.
35413
35414 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35415
35416         * build-aux/git-version-gen: Fix copyright statement.
35417         * build-aux/gnupload: Likewise.
35418         * tests/test-arcfour.c: Likewise.
35419         * tests/test-arctwo.c: Likewise.
35420         * tests/test-count-one-bits.c: Likewise.
35421         * tests/test-crc.c: Likewise.
35422         * tests/test-des.c: Likewise.
35423         * tests/test-gc-arcfour.c: Likewise.
35424         * tests/test-gc-arctwo.c: Likewise.
35425         * tests/test-gc-des.c: Likewise.
35426         * tests/test-gc-hmac-md5.c: Likewise.
35427         * tests/test-gc-hmac-sha1.c: Likewise.
35428         * tests/test-gc-md2.c: Likewise.
35429         * tests/test-gc-md4.c: Likewise.
35430         * tests/test-gc-md5.c: Likewise.
35431         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35432         * tests/test-gc-rijndael.c: Likewise.
35433         * tests/test-gc-sha1.c: Likewise.
35434         * tests/test-gc.c: Likewise.
35435         * tests/test-gethostname.c: Likewise.
35436         * tests/test-gettimeofday.c: Likewise.
35437         * tests/test-hash.c: Likewise.
35438         * tests/test-hmac-md5.c: Likewise.
35439         * tests/test-hmac-sha1.c: Likewise.
35440         * tests/test-md2.c: Likewise.
35441         * tests/test-md4.c: Likewise.
35442         * tests/test-md5.c: Likewise.
35443         * tests/test-memchr.c: Likewise.
35444         * tests/test-memchr2.c: Likewise.
35445         * tests/test-memcmp.c: Likewise.
35446         * tests/test-memmem.c: Likewise.
35447         * tests/test-memrchr.c: Likewise.
35448         * tests/test-rawmemchr.c: Likewise.
35449         * tests/test-read-file.c: Likewise.
35450         * tests/test-rijndael.c: Likewise.
35451         * tests/test-sockets.c: Likewise.
35452         * tests/test-strchrnul.c: Likewise.
35453         * tests/test-strstr.c: Likewise.
35454         * tests/test-strtod.c: Likewise.
35455         * build-aux/ncftpput-ftp: Likewise.
35456
35457 2010-01-26  Eric Blake  <ebb9@byu.net>
35458
35459         ignore-value: update recommended header name
35460         * modules/ignore-value (Include): Only use <> for headers that
35461         exist in glibc.
35462
35463 2010-01-26  Jim Meyering  <meyering@redhat.com>
35464
35465         test-userspec.c: avoid compiler warnings
35466         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35467         and "initialization discards qualifiers..." warnings.
35468         Put the first "uid" in its own scope, and make char* members "const".
35469
35470 2010-01-25  Bruno Haible  <bruno@clisp.org>
35471
35472         gnulib-tool: Make warning diagnostics consistent.
35473         * gnulib-tool (func_warning): New function.
35474         Use it everywhere where gnulib-tool produces output to stderr and it is
35475         not a fatal error.
35476
35477 2010-01-25  Bruno Haible  <bruno@clisp.org>
35478
35479         Fix test dependencies.
35480         * modules/xstrtol-tests (Depends-on): Add inttypes.
35481         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35482
35483 2010-01-25 Pádraig Brady <P@draigBrady.com>
35484
35485         syntax-check: detect incorrect boolean macro values in config.h
35486         * modules/maintainer-makefile (configure.ac): Parameterize the location
35487         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35488         The logic is from Eric Blake and the location indicated by Jim Meyering.
35489         Note the more natural CONFIG_HEADER name is prohibited by automake
35490         for backwards compatibility reasons.
35491         * top/maint.mk (sc_Wundef_boolean): New rule.
35492
35493 2010-01-25  Jim Meyering  <meyering@redhat.com>
35494
35495         bootstrap: detect MacOS 10.6's shasum, too
35496         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35497         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35498
35499 2010-01-23  Jim Meyering  <meyering@redhat.com>
35500
35501         xstrtoll: new module
35502         * modules/xstrtoll: New file.
35503         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35504         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35505         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35506         ./configure fails if you use this module and lack "long long".
35507         * modules/xstrtoll-tests: New module.
35508         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35509         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35510         new init.sh-based test framework.
35511
35512 2010-01-24  Bruno Haible  <bruno@clisp.org>
35513
35514         Tests for module 'yn'.
35515         * modules/yn-tests: New file.
35516         * tests/test-yn.c: New file.
35517
35518         Tests for module 'y1'.
35519         * modules/y1-tests: New file.
35520         * tests/test-y1.c: New file.
35521
35522         Tests for module 'y0'.
35523         * modules/y0-tests: New file.
35524         * tests/test-y0.c: New file.
35525
35526         Tests for module 'tanh'.
35527         * modules/tanh-tests: New file.
35528         * tests/test-tanh.c: New file.
35529
35530         Tests for module 'tan'.
35531         * modules/tan-tests: New file.
35532         * tests/test-tan.c: New file.
35533
35534         Tests for module 'sqrt'.
35535         * modules/sqrt-tests: New file.
35536         * tests/test-sqrt.c: New file.
35537
35538         Tests for module 'sinh'.
35539         * modules/sinh-tests: New file.
35540         * tests/test-sinh.c: New file.
35541
35542         Tests for module 'sin'.
35543         * modules/sin-tests: New file.
35544         * tests/test-sin.c: New file.
35545
35546         Tests for module 'rint'.
35547         * modules/rint-tests: New file.
35548         * tests/test-rint.c: New file.
35549
35550         Tests for module 'remainder'.
35551         * modules/remainder-tests: New file.
35552         * tests/test-remainder.c: New file.
35553
35554         Tests for module 'pow'.
35555         * modules/pow-tests: New file.
35556         * tests/test-pow.c: New file.
35557
35558         Tests for module 'nextafter'.
35559         * modules/nextafter-tests: New file.
35560         * tests/test-nextafter.c: New file.
35561
35562         Tests for module 'modf'.
35563         * modules/modf-tests: New file.
35564         * tests/test-modf.c: New file.
35565
35566         Tests for module 'logb'.
35567         * modules/logb-tests: New file.
35568         * tests/test-logb.c: New file.
35569
35570         Tests for module 'log1p'.
35571         * modules/log1p-tests: New file.
35572         * tests/test-log1p.c: New file.
35573
35574         Tests for module 'log10'.
35575         * modules/log10-tests: New file.
35576         * tests/test-log10.c: New file.
35577
35578         Tests for module 'log'.
35579         * modules/log-tests: New file.
35580         * tests/test-log.c: New file.
35581
35582         Tests for module 'lgamma'.
35583         * modules/lgamma-tests: New file.
35584         * tests/test-lgamma.c: New file.
35585
35586         Tests for module 'ldexp'.
35587         * modules/ldexp-tests: New file.
35588         * tests/test-ldexp.c: New file.
35589
35590         Tests for module 'jn'.
35591         * modules/jn-tests: New file.
35592         * tests/test-jn.c: New file.
35593
35594         Tests for module 'j1'.
35595         * modules/j1-tests: New file.
35596         * tests/test-j1.c: New file.
35597
35598         Tests for module 'j0'.
35599         * modules/j0-tests: New file.
35600         * tests/test-j0.c: New file.
35601
35602         Tests for module 'hypot'.
35603         * modules/hypot-tests: New file.
35604         * tests/test-hypot.c: New file.
35605
35606         Tests for module 'fmod'.
35607         * modules/fmod-tests: New file.
35608         * tests/test-fmod.c: New file.
35609
35610         Tests for module 'fabs'.
35611         * modules/fabs-tests: New file.
35612         * tests/test-fabs.c: New file.
35613
35614         Tests for module 'exp'.
35615         * modules/exp-tests: New file.
35616         * tests/test-exp.c: New file.
35617
35618         Tests for module 'erfc'.
35619         * modules/erfc-tests: New file.
35620         * tests/test-erfc.c: New file.
35621
35622         Tests for module 'erf'.
35623         * modules/erf-tests: New file.
35624         * tests/test-erf.c: New file.
35625
35626         Tests for module 'cosh'.
35627         * modules/cosh-tests: New file.
35628         * tests/test-cosh.c: New file.
35629
35630         Tests for module 'cos'.
35631         * modules/cos-tests: New file.
35632         * tests/test-cos.c: New file.
35633
35634         Tests for module 'copysign'.
35635         * modules/copysign-tests: New file.
35636         * tests/test-copysign.c: New file.
35637
35638         Tests for module 'cbrt'.
35639         * modules/cbrt-tests: New file.
35640         * tests/test-cbrt.c: New file.
35641
35642         Tests for module 'atan2'.
35643         * modules/atan2-tests: New file.
35644         * tests/test-atan2.c: New file.
35645
35646         Tests for module 'atan'.
35647         * modules/atan-tests: New file.
35648         * tests/test-atan.c: New file.
35649
35650         Tests for module 'asin'.
35651         * modules/asin-tests: New file.
35652         * tests/test-asin.c: New file.
35653
35654         Tests for module 'acos'.
35655         * modules/acos-tests: New file.
35656         * tests/test-acos.c: New file.
35657
35658 2010-01-24  Bruno Haible  <bruno@clisp.org>
35659
35660         Fix tests for common <math.h> functions.
35661         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
35662         code snippet that references the function pointer, rather than merely
35663         calling the function. Substitute the FUNC_LIBM variable.
35664         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
35665         * modules/acos (configure.ac): Likewise.
35666         * modules/asin (configure.ac): Likewise.
35667         * modules/atan (configure.ac): Likewise.
35668         * modules/atan2 (configure.ac): Likewise.
35669         * modules/cbrt (configure.ac): Likewise.
35670         * modules/copysign (configure.ac): Likewise.
35671         * modules/cos (configure.ac): Likewise.
35672         * modules/cosh (configure.ac): Likewise.
35673         * modules/erf (configure.ac): Likewise.
35674         * modules/erfc (configure.ac): Likewise.
35675         * modules/exp (configure.ac): Likewise.
35676         * modules/fabs (configure.ac): Likewise.
35677         * modules/fmod (configure.ac): Likewise.
35678         * modules/hypot (configure.ac): Likewise.
35679         * modules/j0 (configure.ac): Likewise.
35680         * modules/j1 (configure.ac): Likewise.
35681         * modules/jn (configure.ac): Likewise.
35682         * modules/ldexp (configure.ac): Likewise.
35683         * modules/lgamma (configure.ac): Likewise.
35684         * modules/log (configure.ac): Likewise.
35685         * modules/log10 (configure.ac): Likewise.
35686         * modules/log1p (configure.ac): Likewise.
35687         * modules/logb (configure.ac): Likewise.
35688         * modules/modf (configure.ac): Likewise.
35689         * modules/nextafter (configure.ac): Likewise.
35690         * modules/pow (configure.ac): Likewise.
35691         * modules/remainder (configure.ac): Likewise.
35692         * modules/rint (configure.ac): Likewise.
35693         * modules/sin (configure.ac): Likewise.
35694         * modules/sinh (configure.ac): Likewise.
35695         * modules/tan (configure.ac): Likewise.
35696         * modules/tanh (configure.ac): Likewise.
35697         * modules/y0 (configure.ac): Likewise.
35698         * modules/y1 (configure.ac): Likewise.
35699         * modules/yn (configure.ac): Likewise.
35700
35701 2010-01-24  Bruno Haible  <bruno@clisp.org>
35702
35703         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
35704         * tests/test-acosl.c (x): New variable.
35705         (main): Store argument in x and fetch it from x.
35706         * tests/test-asinl.c (x): New variable.
35707         (main): Store argument in x and fetch it from x.
35708         * tests/test-atanl.c (x): New variable.
35709         (main): Store argument in x and fetch it from x.
35710         * tests/test-cosl.c (x): New variable.
35711         (main): Store argument in x and fetch it from x.
35712         * tests/test-expl.c (x): New variable.
35713         (main): Store argument in x and fetch it from x.
35714         * tests/test-logl.c (x): New variable.
35715         (main): Store argument in x and fetch it from x.
35716         * tests/test-sinl.c (x): New variable.
35717         (main): Store argument in x and fetch it from x.
35718         * tests/test-sqrtl.c (x): New variable.
35719         (main): Store argument in x and fetch it from x.
35720         * tests/test-tanl.c (x): New variable.
35721         (main): Store argument in x and fetch it from x.
35722
35723 2010-01-24  Bruno Haible  <bruno@clisp.org>
35724
35725         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
35726         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
35727         assignments to the initial TESTS_ENVIRONMENT.
35728         * doc/gnulib.texi (Unit test modules): Document it.
35729         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
35730         TESTS_ENVIRONMENT.
35731         * modules/btowc-tests (Makefile.am): Likewise.
35732         * modules/c-stack-tests (Makefile.am): Likewise.
35733         * modules/c-strcase-tests (Makefile.am): Likewise.
35734         * modules/copy-file-tests (Makefile.am): Likewise.
35735         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
35736         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
35737         * modules/mbrtowc-tests (Makefile.am): Likewise.
35738         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35739         * modules/mbscasestr-tests (Makefile.am): Likewise.
35740         * modules/mbschr-tests (Makefile.am): Likewise.
35741         * modules/mbscspn-tests (Makefile.am): Likewise.
35742         * modules/mbsinit-tests (Makefile.am): Likewise.
35743         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35744         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
35745         * modules/mbspbrk-tests (Makefile.am): Likewise.
35746         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35747         * modules/mbsrchr-tests (Makefile.am): Likewise.
35748         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
35749         * modules/mbsspn-tests (Makefile.am): Likewise.
35750         * modules/mbsstr-tests (Makefile.am): Likewise.
35751         * modules/nl_langinfo-tests (Makefile.am): Likewise.
35752         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
35753         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35754         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35755         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35756         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35757         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
35758         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35759         * modules/wcrtomb-tests (Makefile.am): Likewise.
35760         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
35761         * modules/wcsrtombs-tests (Makefile.am): Likewise.
35762         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
35763         assignments from TESTS_ENVIRONMENT.
35764         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
35765         augmentation.
35766         * modules/argp-version-etc-tests (Makefile.am): Likewise.
35767         * modules/atexit-tests (Makefile.am): Likewise.
35768         * modules/binary-io-tests (Makefile.am): Likewise.
35769         * modules/closein-tests (Makefile.am): Likewise.
35770         * modules/dprintf-posix-tests (Makefile.am): Likewise.
35771         * modules/exclude-tests (Makefile.am): Likewise.
35772         * modules/fflush-tests (Makefile.am): Likewise.
35773         * modules/fpending-tests (Makefile.am): Likewise.
35774         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35775         * modules/freadahead-tests (Makefile.am): Likewise.
35776         * modules/freadptr-tests (Makefile.am): Likewise.
35777         * modules/freadseek-tests (Makefile.am): Likewise.
35778         * modules/fseek-tests (Makefile.am): Likewise.
35779         * modules/fseeko-tests (Makefile.am): Likewise.
35780         * modules/ftell-tests (Makefile.am): Likewise.
35781         * modules/ftello-tests (Makefile.am): Likewise.
35782         * modules/idpriv-drop-tests (Makefile.am): Likewise.
35783         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
35784         * modules/lseek-tests (Makefile.am): Likewise.
35785         * modules/parse-duration-tests (Makefile.am): Likewise.
35786         * modules/perror-tests (Makefile.am): Likewise.
35787         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
35788         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
35789         * modules/pipe-tests (Makefile.am): Likewise.
35790         * modules/pread-tests (Makefile.am): Likewise.
35791         * modules/printf-posix-tests (Makefile.am): Likewise.
35792         * modules/select-tests (Makefile.am): Likewise.
35793         * modules/sigpipe-tests (Makefile.am): Likewise.
35794         * modules/tsearch-tests (Makefile.am): Likewise.
35795         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
35796         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
35797         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35798         * modules/uniwidth/width-tests (Makefile.am): Likewise.
35799         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
35800         * modules/version-etc-tests (Makefile.am): Likewise.
35801         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35802         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35803         * modules/xalloc-die-tests (Makefile.am): Likewise.
35804         * modules/xprintf-posix-tests (Makefile.am): Likewise.
35805         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35806         * modules/xstrtol-tests (Makefile.am): Likewise.
35807         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35808         * modules/yesno-tests (Makefile.am): Likewise.
35809         Suggested by Jim Meyering.
35810
35811 2010-01-24  Bruno Haible  <bruno@clisp.org>
35812
35813         More documentation.
35814         * doc/gnulib.texi (Writing modules): New chapter.
35815         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
35816         the new chapter.
35817
35818 2010-01-24  Jim Meyering  <meyering@redhat.com>
35819
35820         maint.mk: do not prepend "./" after filtering
35821         * top/maint.mk (_prepend_srcdir_prefix): New variable
35822         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
35823         "./" when $(srcdir) is ".".
35824
35825         define STREQ(a,b) consistently, removing useless parentheses
35826         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
35827         since the only risk is that "a" or "b" contains an unparenthesized
35828         comma, but if either did that, STREQ would have 3 or more arguments.
35829         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
35830         * lib/fts.c (STREQ): Remove unnecessary parentheses.
35831         * lib/hash-triple.c (STREQ): Likewise.
35832         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
35833         * lib/getugroups.c (STREQ): Likewise.
35834
35835 2010-01-23  Jim Meyering  <meyering@redhat.com>
35836
35837         maint.mk: fix syntax-check in a non-srcdir build directory
35838         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
35839         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
35840
35841 2010-01-22  Jim Meyering  <meyering@redhat.com>
35842
35843         userspec: add unit tests
35844         * tests/test-userspec.c: New file.
35845         * modules/userspec-tests: Likewise.
35846
35847 2010-01-21  Jim Meyering  <meyering@redhat.com>
35848
35849         maint.mk: handle source file names containing "." robustly
35850         * top/maint.mk (_dot_escaped_srcdir): Define.
35851         (VC_LIST): Use it in LHS of sed substitution.
35852
35853 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
35854
35855         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
35856         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
35857         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
35858         from a non-srcdir build.
35859
35860 2010-01-20  Eric Blake  <ebb9@byu.net>
35861
35862         warn-on-use: use instead of link-warning
35863         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
35864         * modules/unistd (Depends-on, Makefile.am): Likewise.
35865         * modules/arpa_inet (Depends-on): Replace link-warning with
35866         warn-on-use.
35867         (Makefile.am): Update rules accordingly.
35868         * modules/ctype (Depends-on, Makefile.am): Likewise.
35869         * modules/dirent (Depends-on, Makefile.am): Likewise.
35870         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
35871         * modules/inttypes (Depends-on, Makefile.am): Likewise.
35872         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35873         * modules/locale (Depends-on, Makefile.am): Likewise.
35874         * modules/math (Depends-on, Makefile.am): Likewise.
35875         * modules/search (Depends-on, Makefile.am): Likewise.
35876         * modules/signal (Depends-on, Makefile.am): Likewise.
35877         * modules/spawn (Depends-on, Makefile.am): Likewise.
35878         * modules/stdlib (Depends-on, Makefile.am): Likewise.
35879         * modules/string (Depends-on, Makefile.am): Likewise.
35880         * modules/strings (Depends-on, Makefile.am): Likewise.
35881         * modules/sys_file (Depends-on, Makefile.am): Likewise.
35882         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
35883         * modules/sys_select (Depends-on, Makefile.am): Likewise.
35884         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
35885         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
35886         * modules/sys_times (Depends-on, Makefile.am): Likewise.
35887         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35888         * modules/wchar (Depends-on, Makefile.am): Likewise.
35889         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
35890         should be poisoned.
35891         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
35892         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
35893         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
35894         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35895         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35896         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
35897         * m4/math_h.m4 (gl_MATH_H): Likewise.
35898         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35899         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
35900         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35901         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
35902         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
35903         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
35904         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
35905         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
35906         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
35907         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35908         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35909         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
35910         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35911         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35912         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35913         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35914         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
35915         GL_LINK_WARNING.
35916         * lib/ctype.in.h: Likewise.
35917         * lib/dirent.in.h: Likewise.
35918         * lib/fcntl.in.h: Likewise.
35919         * lib/inttypes.in.h: Likewise.
35920         * lib/langinfo.in.h: Likewise.
35921         * lib/locale.in.h: Likewise.
35922         * lib/math.in.h: Likewise.
35923         * lib/search.in.h: Likewise.
35924         * lib/signal.in.h: Likewise.
35925         * lib/spawn.in.h: Likewise.
35926         * lib/stdio.in.h: Likewise.
35927         * lib/stdlib.in.h: Likewise.
35928         * lib/string.in.h: Likewise.
35929         * lib/strings.in.h: Likewise.
35930         * lib/sys_file.in.h: Likewise.
35931         * lib/sys_ioctl.in.h: Likewise.
35932         * lib/sys_select.in.h: Likewise.
35933         * lib/sys_socket.in.h: Likewise.
35934         * lib/sys_stat.in.h: Likewise.
35935         * lib/sys_times.in.h: Likewise.
35936         * lib/sys_utsname.in.h: Likewise.
35937         * lib/unistd.in.h: Likewise.
35938         * lib/wchar.in.h: Likewise.
35939
35940 2010-01-20  Bruno Haible  <bruno@clisp.org>
35941
35942         Avoid duplicate -lm.
35943         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
35944         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
35945         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
35946         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
35947         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
35948         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
35949         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
35950         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
35951         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
35952         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
35953         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
35954         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
35955         Reported by Paolo Bonzini.
35956
35957 2010-01-19  Bruno Haible  <bruno@clisp.org>
35958
35959         langinfo, nl_langinfo: Relicense under LGPLv2+.
35960         * modules/langinfo (License): Change to LGPLv2+.
35961         * modules/nl_langinfo (License): Likewise.
35962         Patch by David Lutterkort <lutter@redhat.com>.
35963
35964 2010-01-19  Bruno Haible  <bruno@clisp.org>
35965
35966         Avoid compilation error with cc on OSF/1 5.1.
35967         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
35968         statement, not before.
35969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35970
35971 2010-01-18  Bruno Haible  <bruno@clisp.org>
35972
35973         Avoid a link error due to the __printf__ symbol.
35974         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
35975         and 2.6.x.
35976         (__format__, __printf__): Remove definitions.
35977         * lib/argp-fmtstream.h: Likewise.
35978         * lib/argp.h: Likewise.
35979         * lib/error.h: Likewise.
35980         * lib/vasnprintf.h: Likewise.
35981         * lib/xprintf.h: Likewise.
35982         * lib/xvasprintf.h: Likewise.
35983         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35984
35985 2010-01-18  Bruno Haible  <bruno@clisp.org>
35986
35987         Tests for module 'tanl'.
35988         * modules/tanl-tests: New file.
35989         * tests/test-tanl.c: New file.
35990
35991         Tests for module 'sqrtl'.
35992         * modules/sqrtl-tests: New file.
35993         * tests/test-sqrtl.c: New file.
35994
35995         Tests for module 'sinl'.
35996         * modules/sinl-tests: New file.
35997         * tests/test-sinl.c: New file.
35998
35999         Tests for module 'logl'.
36000         * modules/logl-tests: New file.
36001         * tests/test-logl.c: New file.
36002
36003         Tests for module 'expl'.
36004         * modules/expl-tests: New file.
36005         * tests/test-expl.c: New file.
36006
36007         Tests for module 'cosl'.
36008         * modules/cosl-tests: New file.
36009         * tests/test-cosl.c: New file.
36010
36011         Tests for module 'atanl'.
36012         * modules/atanl-tests: New file.
36013         * tests/test-atanl.c: New file.
36014
36015         Tests for module 'asinl'.
36016         * modules/asinl-tests: New file.
36017         * tests/test-asinl.c: New file.
36018
36019         Tests for module 'acosl'.
36020         * modules/acosl-tests: New file.
36021         * tests/test-acosl.c: New file.
36022
36023         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36024         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36025         tanl): Use the standard gnulib idiom.
36026         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36027         * lib/sinl.c: Likewise.
36028         * lib/tanl.c: Don't include trigl.c.
36029         (kernel_tanl): Make static.
36030         * lib/sincosl.c: Include trigl.h first.
36031         * lib/trigl.c: Likewise.
36032         * m4/acosl.m4: New file.
36033         * m4/asinl.m4: New file.
36034         * m4/atanl.m4: New file.
36035         * m4/cosl.m4: New file.
36036         * m4/expl.m4: New file.
36037         * m4/logl.m4: New file.
36038         * m4/sinl.m4: New file.
36039         * m4/sqrtl.m4: New file.
36040         * m4/tanl.m4: New file.
36041         * m4/mathl.m4: Remove file.
36042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36043         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36044         Don't initialize GNULIB_MATHL.
36045         * modules/acosl: New file.
36046         * modules/asinl: New file.
36047         * modules/atanl: New file.
36048         * modules/cosl: New file.
36049         * modules/expl: New file.
36050         * modules/logl: New file.
36051         * modules/sinl: New file.
36052         * modules/sqrtl: New file.
36053         * modules/tanl: New file.
36054         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36055         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36056         substitute GNULIB_MATHL.
36057         * modules/mathl: Rewritten.
36058         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36059         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36060         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36061         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36062         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36063         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36064         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36065         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36066         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36067
36068 2010-01-18  Bruno Haible  <bruno@clisp.org>
36069
36070         sqrt: Make gl_FUNC_SQRT requirable.
36071         * m4/sqrt.m4: New file.
36072         * modules/sqrt (Files): Add it.
36073         (configure.ac): Invoke gl_FUNC_SQRT.
36074
36075 2010-01-18  Bruno Haible  <bruno@clisp.org>
36076
36077         New modules for common <math.h> functions.
36078         * m4/mathfunc.m4: New file.
36079         * modules/acos: New file.
36080         * modules/asin: New file.
36081         * modules/atan: New file.
36082         * modules/atan2: New file.
36083         * modules/cbrt: New file.
36084         * modules/copysign: New file.
36085         * modules/cos: New file.
36086         * modules/cosh: New file.
36087         * modules/erf: New file.
36088         * modules/erfc: New file.
36089         * modules/exp: New file.
36090         * modules/fabs: New file.
36091         * modules/fmod: New file.
36092         * modules/hypot: New file.
36093         * modules/j0: New file.
36094         * modules/j1: New file.
36095         * modules/jn: New file.
36096         * modules/ldexp: New file.
36097         * modules/lgamma: New file.
36098         * modules/log: New file.
36099         * modules/log10: New file.
36100         * modules/log1p: New file.
36101         * modules/logb: New file.
36102         * modules/modf: New file.
36103         * modules/nextafter: New file.
36104         * modules/pow: New file.
36105         * modules/remainder: New file.
36106         * modules/rint: New file.
36107         * modules/sin: New file.
36108         * modules/sinh: New file.
36109         * modules/sqrt: New file.
36110         * modules/tan: New file.
36111         * modules/tanh: New file.
36112         * modules/y0: New file.
36113         * modules/y1: New file.
36114         * modules/yn: New file.
36115         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36116         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36117         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36118         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36119         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36120         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36121         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36122         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36123         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36124         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36125         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36126         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36127         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36128         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36129         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36130         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36131         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36132         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36133         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36134         * doc/posix-functions/log.texi: Mention the 'log' module.
36135         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36136         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36137         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36138         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36139         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36140         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36141         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36142         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36143         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36144         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36145         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36146         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36147         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36148         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36149         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36150         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36151
36152 2010-01-18  Jim Meyering  <meyering@redhat.com>
36153
36154         ignore-value: relax license to LGPLv2+
36155         * modules/ignore-value (License): Relax to LGPLv2+.
36156
36157         getdate: don't leak when TZ contains two or more '"'s
36158         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36159         double quote in TZ after the first one.
36160
36161         readtokens: do not leak internal token_lengths buffer
36162         * lib/readtokens.c (readtokens): Free the local, lengths,
36163         when the supplied "token_lengths" parameter is NULL.
36164
36165 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36166
36167         Fix a couple of missing LIBTHREAD link failures on AIX.
36168         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36169         $(LIBTHREAD).
36170         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36171
36172         Link test-poll against INET_PTON_LIB.
36173         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36174         for inet_pton on Solaris 10.
36175
36176 2010-01-17  Bruno Haible  <bruno@clisp.org>
36177
36178         unistdio/*-sprintf: Fix typo in module description.
36179         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36180         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36181         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36182         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36183         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36184         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36185         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36187
36188 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36189
36190         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36191         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36192         variables in shell case patterns, for AIX and HP-UX ksh.
36193
36194         Split large sed scripts, for HP-UX sed.
36195         * modules/stdio: Split sed scripts around 50 sed commands,
36196         to avoid HP-UX limit of 99 commands, in the near future.
36197         * modules/string: Likewise.
36198         * modules/unistd: Likewise.
36199
36200         gnulib-tool: avoid writing in the current directory.
36201         * gnulib-tool (func_emit_lib_Makefile_am)
36202         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36203         not in the current directory, so concurrent gnulib-tool
36204         instances do not interfere.
36205
36206 2010-01-16  Jim Meyering  <meyering@redhat.com>
36207
36208         doc: update users.txt
36209         * users.txt: Add grep.
36210         (diffutils, gzip): Update URLs.
36211
36212 2010-01-12  Bruno Haible  <bruno@clisp.org>
36213
36214         posix_spawn: Avoid test failure on Cygwin.
36215         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36216         characters.
36217         Reported by Simon Josefsson.
36218
36219 2010-01-12  Bruno Haible  <bruno@clisp.org>
36220
36221         * tests/test-cond.c (main): When skipping the test, show the reason.
36222
36223 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36224
36225         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36226
36227 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36228
36229         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36230         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36231
36232 2010-01-12  Eric Blake  <ebb9@byu.net>
36233
36234         build: guarantee AS_VAR_IF
36235         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36236         (gl_AS_VAR_IF): Move...
36237         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36238         Reported by Simon Josefsson.
36239
36240 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36241
36242         * lib/stdio.in.h: Fix typo.
36243
36244 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36245
36246         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36247         libgpg-error.
36248
36249 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36250
36251         * tests/test-xalloc-die.sh: Use $EXEEXT.
36252
36253 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36254             Bruno Haible  <bruno@clisp.org>
36255
36256         getlogin, getlogin_r: Avoid test failure.
36257         * tests/test-getlogin.c: Include <stdio.h>.
36258         (main): Skip the test when the function fails because stdin is not a
36259         tty.
36260         * tests/test-getlogin_r.c: Include <stdio.h>.
36261         (main): Skip the test when the function fails because stdin is not a
36262         tty.
36263
36264 2010-01-11  Eric Blake  <ebb9@byu.net>
36265
36266         tests: avoid more large file warnings
36267         * tests/test-fflush.c: Avoid warning about ftell use.
36268         * tests/test-fseek.c: Avoid warning about fseek use.
36269
36270 2010-01-10  Bruno Haible  <bruno@clisp.org>
36271
36272         nproc: Work better on Linux when /proc and /sys are not mounted.
36273         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36274         as lower bound when, on glibc/Linux systems,
36275         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36276         Suggested by Pádraig Brady <P@draigbrady.com>.
36277         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36278
36279         nproc: Refactor.
36280         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36281         extracted from num_processors.
36282         (num_processors): Call it.
36283
36284 2010-01-11  Jim Meyering  <meyering@redhat.com>
36285
36286         utimecmp: avoid new warning from upcoming gcc-4.5.0
36287         * lib/utimecmp.c (BILLION): Define using #define rather than an
36288         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36289
36290 2010-01-11  Eric Blake  <ebb9@byu.net>
36291
36292         math: add portability warnings for classification macros
36293         * modules/math (Depends-on): Add warn-on-use.
36294         (Makefile.am): Provide new substitutions.
36295         * m4/math_h.m4 (gl_MATH_H): Require inline.
36296         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36297         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36298         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36299         implement warnings.
36300
36301         unistd: warn on use of environ without module
36302         * modules/unistd (Depends-on): Add warn-on-use.
36303         (Makefile.am): Provide new substitutions.
36304         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36305         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36306
36307         stdio: warn on suspicious uses
36308         * modules/stdio (Depends-on): Add warn-on-use.
36309         (Makefile.am): Provide new substitutions.
36310         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36311         fseeko.
36312         * lib/stdio.in.h (gets): Always warn on use.
36313         (fseek, ftell): Adjust when warnings are issued, and honor
36314         _GL_NO_LARGE_FILES as a way to silence the warning.
36315         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36316         any warning about large file offsets.
36317         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36318         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36319         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36320         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36321         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36322         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36323         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36324         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36325
36326         warn-on-use: new module
36327         * modules/warn-on-use: New file.
36328         * build-aux/warn-on-use.h: Likewise.
36329         * m4/warn-on-use.m4: Likewise.
36330         * MODULES.html.sh (Support for building): Mention it.
36331
36332 2010-01-10  Bruno Haible  <bruno@clisp.org>
36333
36334         Tests for module 'unistr/u32-strdup'.
36335         * modules/unistr/u32-strdup-tests: New file.
36336         * tests/unistr/test-u32-strdup.c: New file.
36337
36338         Tests for module 'unistr/u16-strdup'.
36339         * modules/unistr/u16-strdup-tests: New file.
36340         * tests/unistr/test-u16-strdup.c: New file.
36341
36342         Tests for module 'unistr/u8-strdup'.
36343         * modules/unistr/u8-strdup-tests: New file.
36344         * tests/unistr/test-u8-strdup.c: New file.
36345         * tests/unistr/test-strdup.h: New file.
36346
36347         Tests for module 'unistr/u32-strncmp'.
36348         * modules/unistr/u32-strncmp-tests: New file.
36349         * tests/unistr/test-u32-strncmp.c: New file.
36350
36351         Tests for module 'unistr/u16-strncmp'.
36352         * modules/unistr/u16-strncmp-tests: New file.
36353         * tests/unistr/test-u16-strncmp.c: New file.
36354
36355         Tests for module 'unistr/u8-strncmp'.
36356         * modules/unistr/u8-strncmp-tests: New file.
36357         * tests/unistr/test-u8-strncmp.c: New file.
36358         * tests/unistr/test-strncmp.h: New file.
36359
36360         Tests for module 'unistr/u32-strcoll'.
36361         * modules/unistr/u32-strcoll-tests: New file.
36362         * tests/unistr/test-u32-strcoll.c: New file.
36363
36364         Tests for module 'unistr/u16-strcoll'.
36365         * modules/unistr/u16-strcoll-tests: New file.
36366         * tests/unistr/test-u16-strcoll.c: New file.
36367
36368         Tests for module 'unistr/u8-strcoll'.
36369         * modules/unistr/u8-strcoll-tests: New file.
36370         * tests/unistr/test-u8-strcoll.c: New file.
36371
36372         Tests for module 'unistr/u32-strcmp'.
36373         * modules/unistr/u32-strcmp-tests: New file.
36374         * tests/unistr/test-u32-strcmp.c: New file.
36375         * tests/unistr/test-u32-strcmp.h: New file.
36376
36377         Tests for module 'unistr/u16-strcmp'.
36378         * modules/unistr/u16-strcmp-tests: New file.
36379         * tests/unistr/test-u16-strcmp.c: New file.
36380         * tests/unistr/test-u16-strcmp.h: New file.
36381
36382         Tests for module 'unistr/u8-strcmp'.
36383         * modules/unistr/u8-strcmp-tests: New file.
36384         * tests/unistr/test-u8-strcmp.c: New file.
36385         * tests/unistr/test-u8-strcmp.h: New file.
36386         * tests/unistr/test-strcmp.h: New file.
36387
36388         Tests for module 'unistr/u32-strncat'.
36389         * modules/unistr/u32-strncat-tests: New file.
36390         * tests/unistr/test-u32-strncat.c: New file.
36391
36392         Tests for module 'unistr/u16-strncat'.
36393         * modules/unistr/u16-strncat-tests: New file.
36394         * tests/unistr/test-u16-strncat.c: New file.
36395
36396         Tests for module 'unistr/u8-strncat'.
36397         * modules/unistr/u8-strncat-tests: New file.
36398         * tests/unistr/test-u8-strncat.c: New file.
36399         * tests/unistr/test-strncat.h: New file.
36400
36401         Tests for module 'unistr/u32-strcat'.
36402         * modules/unistr/u32-strcat-tests: New file.
36403         * tests/unistr/test-u32-strcat.c: New file.
36404
36405         Tests for module 'unistr/u16-strcat'.
36406         * modules/unistr/u16-strcat-tests: New file.
36407         * tests/unistr/test-u16-strcat.c: New file.
36408
36409         Tests for module 'unistr/u8-strcat'.
36410         * modules/unistr/u8-strcat-tests: New file.
36411         * tests/unistr/test-u8-strcat.c: New file.
36412         * tests/unistr/test-strcat.h: New file.
36413
36414         Tests for module 'unistr/u32-stpncpy'.
36415         * modules/unistr/u32-stpncpy-tests: New file.
36416         * tests/unistr/test-u32-stpncpy.c: New file.
36417
36418         Tests for module 'unistr/u16-stpncpy'.
36419         * modules/unistr/u16-stpncpy-tests: New file.
36420         * tests/unistr/test-u16-stpncpy.c: New file.
36421
36422         Tests for module 'unistr/u8-stpncpy'.
36423         * modules/unistr/u8-stpncpy-tests: New file.
36424         * tests/unistr/test-u8-stpncpy.c: New file.
36425         * tests/unistr/test-stpncpy.h: New file.
36426
36427         Tests for module 'unistr/u32-strncpy'.
36428         * modules/unistr/u32-strncpy-tests: New file.
36429         * tests/unistr/test-u32-strncpy.c: New file.
36430
36431         Tests for module 'unistr/u16-strncpy'.
36432         * modules/unistr/u16-strncpy-tests: New file.
36433         * tests/unistr/test-u16-strncpy.c: New file.
36434
36435         Tests for module 'unistr/u8-strncpy'.
36436         * modules/unistr/u8-strncpy-tests: New file.
36437         * tests/unistr/test-u8-strncpy.c: New file.
36438         * tests/unistr/test-strncpy.h: New file.
36439
36440         Tests for module 'unistr/u32-stpcpy'.
36441         * modules/unistr/u32-stpcpy-tests: New file.
36442         * tests/unistr/test-u32-stpcpy.c: New file.
36443
36444         Tests for module 'unistr/u16-stpcpy'.
36445         * modules/unistr/u16-stpcpy-tests: New file.
36446         * tests/unistr/test-u16-stpcpy.c: New file.
36447
36448         Tests for module 'unistr/u8-stpcpy'.
36449         * modules/unistr/u8-stpcpy-tests: New file.
36450         * tests/unistr/test-u8-stpcpy.c: New file.
36451         * tests/unistr/test-stpcpy.h: New file.
36452
36453         Tests for module 'unistr/u32-strcpy'.
36454         * modules/unistr/u32-strcpy-tests: New file.
36455         * tests/unistr/test-u32-strcpy.c: New file.
36456
36457         Tests for module 'unistr/u16-strcpy'.
36458         * modules/unistr/u16-strcpy-tests: New file.
36459         * tests/unistr/test-u16-strcpy.c: New file.
36460
36461         Tests for module 'unistr/u8-strcpy'.
36462         * modules/unistr/u8-strcpy-tests: New file.
36463         * tests/unistr/test-u8-strcpy.c: New file.
36464         * tests/unistr/test-strcpy.h: New file.
36465
36466         Tests for module 'unistr/u32-strnlen'.
36467         * modules/unistr/u32-strnlen-tests: New file.
36468         * tests/unistr/test-u32-strnlen.c: New file.
36469
36470         Tests for module 'unistr/u16-strnlen'.
36471         * modules/unistr/u16-strnlen-tests: New file.
36472         * tests/unistr/test-u16-strnlen.c: New file.
36473
36474         Tests for module 'unistr/u8-strnlen'.
36475         * modules/unistr/u8-strnlen-tests: New file.
36476         * tests/unistr/test-u8-strnlen.c: New file.
36477         * tests/unistr/test-strnlen.h: New file.
36478
36479         Tests for module 'unistr/u32-strlen'.
36480         * modules/unistr/u32-strlen-tests: New file.
36481         * tests/unistr/test-u32-strlen.c: New file.
36482
36483         Tests for module 'unistr/u16-strlen'.
36484         * modules/unistr/u16-strlen-tests: New file.
36485         * tests/unistr/test-u16-strlen.c: New file.
36486
36487         Tests for module 'unistr/u8-strlen'.
36488         * modules/unistr/u8-strlen-tests: New file.
36489         * tests/unistr/test-u8-strlen.c: New file.
36490
36491         Tests for module 'unistr/u32-prev'.
36492         * modules/unistr/u32-prev-tests: New file.
36493         * tests/unistr/test-u32-prev.c: New file.
36494
36495         Tests for module 'unistr/u16-prev'.
36496         * modules/unistr/u16-prev-tests: New file.
36497         * tests/unistr/test-u16-prev.c: New file.
36498
36499         Tests for module 'unistr/u8-prev'.
36500         * modules/unistr/u8-prev-tests: New file.
36501         * tests/unistr/test-u8-prev.c: New file.
36502
36503         Tests for module 'unistr/u32-next'.
36504         * modules/unistr/u32-next-tests: New file.
36505         * tests/unistr/test-u32-next.c: New file.
36506
36507         Tests for module 'unistr/u16-next'.
36508         * modules/unistr/u16-next-tests: New file.
36509         * tests/unistr/test-u16-next.c: New file.
36510
36511         Tests for module 'unistr/u8-next'.
36512         * modules/unistr/u8-next-tests: New file.
36513         * tests/unistr/test-u8-next.c: New file.
36514
36515         Tests for module 'unistr/u32-strmbtouc'.
36516         * modules/unistr/u32-strmbtouc-tests: New file.
36517         * tests/unistr/test-u32-strmbtouc.c: New file.
36518
36519         Tests for module 'unistr/u16-strmbtouc'.
36520         * modules/unistr/u16-strmbtouc-tests: New file.
36521         * tests/unistr/test-u16-strmbtouc.c: New file.
36522
36523         Tests for module 'unistr/u8-strmbtouc'.
36524         * modules/unistr/u8-strmbtouc-tests: New file.
36525         * tests/unistr/test-u8-strmbtouc.c: New file.
36526
36527         Tests for module 'unistr/u32-strmblen'.
36528         * modules/unistr/u32-strmblen-tests: New file.
36529         * tests/unistr/test-u32-strmblen.c: New file.
36530
36531         Tests for module 'unistr/u16-strmblen'.
36532         * modules/unistr/u16-strmblen-tests: New file.
36533         * tests/unistr/test-u16-strmblen.c: New file.
36534
36535         Tests for module 'unistr/u8-strmblen'.
36536         * modules/unistr/u8-strmblen-tests: New file.
36537         * tests/unistr/test-u8-strmblen.c: New file.
36538
36539         Tests for module 'unistr/u32-cpy-alloc'.
36540         * modules/unistr/u32-cpy-alloc-tests: New file.
36541         * tests/unistr/test-u32-cpy-alloc.c: New file.
36542
36543         Tests for module 'unistr/u16-cpy-alloc'.
36544         * modules/unistr/u16-cpy-alloc-tests: New file.
36545         * tests/unistr/test-u16-cpy-alloc.c: New file.
36546
36547         Tests for module 'unistr/u8-cpy-alloc'.
36548         * modules/unistr/u8-cpy-alloc-tests: New file.
36549         * tests/unistr/test-u8-cpy-alloc.c: New file.
36550         * tests/unistr/test-cpy-alloc.h: New file.
36551
36552         Tests for module 'unistr/u32-mbsnlen'.
36553         * modules/unistr/u32-mbsnlen-tests: New file.
36554         * tests/unistr/test-u32-mbsnlen.c: New file.
36555
36556         Tests for module 'unistr/u16-mbsnlen'.
36557         * modules/unistr/u16-mbsnlen-tests: New file.
36558         * tests/unistr/test-u16-mbsnlen.c: New file.
36559
36560         Tests for module 'unistr/u8-mbsnlen'.
36561         * modules/unistr/u8-mbsnlen-tests: New file.
36562         * tests/unistr/test-u8-mbsnlen.c: New file.
36563
36564         Tests for module 'unistr/u32-chr'.
36565         * modules/unistr/u32-chr-tests: New file.
36566         * tests/unistr/test-u32-chr.c: New file.
36567
36568         Tests for module 'unistr/u16-chr'.
36569         * modules/unistr/u16-chr-tests: New file.
36570         * tests/unistr/test-u16-chr.c: New file.
36571
36572         Tests for module 'unistr/u8-chr'.
36573         * modules/unistr/u8-chr-tests: New file.
36574         * tests/unistr/test-u8-chr.c: New file.
36575         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
36576
36577         Tests for module 'unistr/u32-cmp2'.
36578         * modules/unistr/u32-cmp2-tests: New file.
36579         * tests/unistr/test-u32-cmp2.c: New file.
36580
36581         Tests for module 'unistr/u16-cmp2'.
36582         * modules/unistr/u16-cmp2-tests: New file.
36583         * tests/unistr/test-u16-cmp2.c: New file.
36584
36585         Tests for module 'unistr/u8-cmp2'.
36586         * modules/unistr/u8-cmp2-tests: New file.
36587         * tests/unistr/test-u8-cmp2.c: New file.
36588         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
36589
36590         Tests for module 'unistr/u32-cmp'.
36591         * modules/unistr/u32-cmp-tests: New file.
36592         * tests/unistr/test-u32-cmp.c: New file.
36593
36594         Tests for module 'unistr/u16-cmp'.
36595         * modules/unistr/u16-cmp-tests: New file.
36596         * tests/unistr/test-u16-cmp.c: New file.
36597
36598         Tests for module 'unistr/u8-cmp'.
36599         * modules/unistr/u8-cmp-tests: New file.
36600         * tests/unistr/test-u8-cmp.c: New file.
36601         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
36602
36603         Tests for module 'unistr/u32-set'.
36604         * modules/unistr/u32-set-tests: New file.
36605         * tests/unistr/test-u32-set.c: New file.
36606
36607         Tests for module 'unistr/u16-set'.
36608         * modules/unistr/u16-set-tests: New file.
36609         * tests/unistr/test-u16-set.c: New file.
36610
36611         Tests for module 'unistr/u8-set'.
36612         * modules/unistr/u8-set-tests: New file.
36613         * tests/unistr/test-u8-set.c: New file.
36614         * tests/unistr/test-set.h: New file.
36615
36616         Tests for module 'unistr/u32-move'.
36617         * modules/unistr/u32-move-tests: New file.
36618         * tests/unistr/test-u32-move.c: New file.
36619
36620         Tests for module 'unistr/u16-move'.
36621         * modules/unistr/u16-move-tests: New file.
36622         * tests/unistr/test-u16-move.c: New file.
36623
36624         Tests for module 'unistr/u8-move'.
36625         * modules/unistr/u8-move-tests: New file.
36626         * tests/unistr/test-u8-move.c: New file.
36627         * tests/unistr/test-move.h: New file.
36628
36629         Tests for module 'unistr/u32-cpy'.
36630         * modules/unistr/u32-cpy-tests: New file.
36631         * tests/unistr/test-u32-cpy.c: New file.
36632
36633         Tests for module 'unistr/u16-cpy'.
36634         * modules/unistr/u16-cpy-tests: New file.
36635         * tests/unistr/test-u16-cpy.c: New file.
36636
36637         Tests for module 'unistr/u8-cpy'.
36638         * modules/unistr/u8-cpy-tests: New file.
36639         * tests/unistr/test-u8-cpy.c: New file.
36640         * tests/unistr/test-cpy.h: New file.
36641
36642 2010-01-09  Bruno Haible  <bruno@clisp.org>
36643
36644         Tests for module 'unistr/u32-uctomb'.
36645         * modules/unistr/u32-uctomb-tests: New file.
36646         * tests/unistr/test-u32-uctomb.c: New file.
36647
36648         Tests for module 'unistr/u16-uctomb'.
36649         * modules/unistr/u16-uctomb-tests: New file.
36650         * tests/unistr/test-u16-uctomb.c: New file.
36651
36652         Tests for module 'unistr/u8-uctomb'.
36653         * modules/unistr/u8-uctomb-tests: New file.
36654         * tests/unistr/test-u8-uctomb.c: New file.
36655
36656         Tests for module 'unistr/u32-mbtoucr'.
36657         * modules/unistr/u32-mbtoucr-tests: New file.
36658         * tests/unistr/test-u32-mbtoucr.c: New file.
36659
36660         Tests for module 'unistr/u16-mbtoucr'.
36661         * modules/unistr/u16-mbtoucr-tests: New file.
36662         * tests/unistr/test-u16-mbtoucr.c: New file.
36663
36664         Tests for module 'unistr/u8-mbtoucr'.
36665         * modules/unistr/u8-mbtoucr-tests: New file.
36666         * tests/unistr/test-u8-mbtoucr.c: New file.
36667
36668         Tests for module 'unistr/u32-mbtouc'.
36669         * modules/unistr/u32-mbtouc-tests: New file.
36670         * tests/unistr/test-u32-mbtouc.c: New file.
36671
36672         Tests for module 'unistr/u16-mbtouc'.
36673         * modules/unistr/u16-mbtouc-tests: New file.
36674         * tests/unistr/test-u16-mbtouc.c: New file.
36675
36676         Tests for module 'unistr/u8-mbtouc'.
36677         * modules/unistr/u8-mbtouc-tests: New file.
36678         * tests/unistr/test-u8-mbtouc.c: New file.
36679
36680         Tests for module 'unistr/u32-mbtouc-unsafe'.
36681         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
36682         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
36683         * tests/unistr/test-u32-mbtouc.h: New file.
36684
36685         Tests for module 'unistr/u16-mbtouc-unsafe'.
36686         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
36687         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
36688         * tests/unistr/test-u16-mbtouc.h: New file.
36689
36690         Tests for module 'unistr/u8-mbtouc-unsafe'.
36691         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
36692         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
36693         * tests/unistr/test-u8-mbtouc.h: New file.
36694
36695         Tests for module 'unistr/u32-mblen'.
36696         * modules/unistr/u32-mblen-tests: New file.
36697         * tests/unistr/test-u32-mblen.c: New file.
36698
36699         Tests for module 'unistr/u16-mblen'.
36700         * modules/unistr/u16-mblen-tests: New file.
36701         * tests/unistr/test-u16-mblen.c: New file.
36702
36703         Tests for module 'unistr/u8-mblen'.
36704         * modules/unistr/u8-mblen-tests: New file.
36705         * tests/unistr/test-u8-mblen.c: New file.
36706
36707         Tests for module 'unistr/u32-to-u16'.
36708         * modules/unistr/u32-to-u16-tests: New file.
36709         * tests/unistr/test-u32-to-u16.c: New file.
36710
36711         Tests for module 'unistr/u32-to-u8'.
36712         * modules/unistr/u32-to-u8-tests: New file.
36713         * tests/unistr/test-u32-to-u8.c: New file.
36714
36715         Tests for module 'unistr/u16-to-u32'.
36716         * modules/unistr/u16-to-u32-tests: New file.
36717         * tests/unistr/test-u16-to-u32.c: New file.
36718
36719         Tests for module 'unistr/u16-to-u8'.
36720         * modules/unistr/u16-to-u8-tests: New file.
36721         * tests/unistr/test-u16-to-u8.c: New file.
36722
36723         Tests for module 'unistr/u8-to-u32'.
36724         * modules/unistr/u8-to-u32-tests: New file.
36725         * tests/unistr/test-u8-to-u32.c: New file.
36726
36727         Tests for module 'unistr/u8-to-u16'.
36728         * modules/unistr/u8-to-u16-tests: New file.
36729         * tests/unistr/test-u8-to-u16.c: New file.
36730
36731         Tests for module 'unistr/u32-check'.
36732         * modules/unistr/u32-check-tests: New file.
36733         * tests/unistr/test-u32-check.c: New file.
36734
36735         Tests for module 'unistr/u16-check'.
36736         * modules/unistr/u16-check-tests: New file.
36737         * tests/unistr/test-u16-check.c: New file.
36738
36739         Tests for module 'unistr/u8-check'.
36740         * modules/unistr/u8-check-tests: New file.
36741         * tests/unistr/test-u8-check.c: New file.
36742
36743         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
36744         (category_equals): New function.
36745         (main): Add more tests.
36746         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
36747
36748         * tests/unictype/test-bidi_byname.c (main): Add more tests.
36749
36750 2010-01-10  Bruno Haible  <bruno@clisp.org>
36751
36752         unistr/u*-strcoll: Try harder to distinguish different strings.
36753         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
36754         compare s1 and s2 to see if they are different.
36755
36756 2010-01-10  Bruno Haible  <bruno@clisp.org>
36757
36758         unistr/u*-stpncpy: Fix the return value.
36759         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
36760         description of the return value consistent with stpncpy in glibc.
36761         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
36762         written non-NUL unit.
36763
36764 2010-01-10  Bruno Haible  <bruno@clisp.org>
36765
36766         unistr/u*-next: Add missing dependencies.
36767         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
36768         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
36769         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
36770
36771 2010-01-10  Bruno Haible  <bruno@clisp.org>
36772
36773         unistr/u8-mbsnlen: Fix return value for incomplete character.
36774         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
36775         u8_mblen.
36776         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
36777         Remove unistr/u8-mblen.
36778         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
36779         u16_mblen.
36780         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
36781         Remove unistr/u16-mblen.
36782
36783 2010-01-10  Bruno Haible  <bruno@clisp.org>
36784
36785         wchar: Fix compilation error when <wchar.h> is used from coreutils.
36786         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
36787         Reported by Brian Gough <bjg@gnu.org> and
36788         Chris Clayton <chris2553@googlemail.com> via
36789         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
36790
36791 2010-01-09  Bruno Haible  <bruno@clisp.org>
36792
36793         unistr/u16-to-u32: Reject invalid input.
36794         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
36795         u16_mbtouc.
36796         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
36797         Remove unistr/u16-mbtouc.
36798
36799         unistr/u16-to-u8: Reject invalid input.
36800         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
36801         u16_mbtouc.
36802         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
36803         Remove unistr/u16-mbtouc.
36804
36805         unistr/u8-to-u32: Reject invalid input.
36806         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
36807         u8_mbtouc.
36808         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
36809         Remove unistr/u8-mbtouc.
36810
36811         unistr/u8-to-u16: Reject invalid input.
36812         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
36813         u8_mbtouc.
36814         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
36815         Remove unistr/u8-mbtouc.
36816
36817 2010-01-09  Bruno Haible  <bruno@clisp.org>
36818
36819         Tests for module 'getlogin'.
36820         * modules/getlogin-tests: New file.
36821         * tests/test-getlogin.c: New file.
36822
36823         New module 'getlogin'.
36824         * lib/unistd.in.h (getlogin): New declaration.
36825         * lib/getlogin.c: New file.
36826         * m4/getlogin.m4: New file.
36827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
36828         HAVE_GETLOGIN.
36829         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
36830         HAVE_GETLOGIN.
36831         * modules/getlogin: New file.
36832         * doc/posix-functions/getlogin.texi: Mention the new module.
36833         Reported by John W. Eaton <jwe@gnu.org>.
36834
36835 2010-01-09  Bruno Haible  <bruno@clisp.org>
36836
36837         getlogin_r: Support for native Windows.
36838         * lib/getlogin_r.c: Include <windows.h>
36839         (getlogin_r): Implement for native Windows.
36840         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
36841         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
36842         via John W. Eaton <jwe@gnu.org>.
36843
36844 2010-01-09  Bruno Haible  <bruno@clisp.org>
36845
36846         getlogin_r: Small fixes.
36847         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
36848         succeeds.
36849         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
36850         before testing whether getlogin_r is declared. No need to set
36851         HAVE_DECL_GETLOGIN_R to 1.
36852         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
36853
36854 2010-01-09  Bruno Haible  <bruno@clisp.org>
36855
36856         * lib/unistd.in.h (getlogin_r): Add comment.
36857
36858 2010-01-09  Bruno Haible  <bruno@clisp.org>
36859
36860         Tests for module 'getlogin_r'.
36861         * modules/getlogin_r-tests: New file.
36862         * tests/test-getlogin_r.c: New file.
36863
36864 2010-01-09  Jim Meyering  <meyering@redhat.com>
36865
36866         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
36867         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
36868         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
36869
36870 2010-01-08  Simon Josefsson  <simon@josefsson.org>
36871
36872         * lib/dup2.c (rpl_dup2): Improve comment.
36873
36874 2010-01-08  Eric Blake  <ebb9@byu.net>
36875
36876         maint.mk: allow packages to add makefile @@ exceptions
36877         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
36878         (sc_makefile_check): Rename...
36879         (sc_makefile_at_at_check): ...to this, and use hook.
36880
36881         dup2: work around mingw bug
36882         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
36883         Reported by Simon Josefsson.
36884
36885 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
36886
36887         glob: Fix C++ compilation.
36888         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
36889         C++.
36890
36891 2010-01-07  Bruno Haible  <bruno@clisp.org>
36892
36893         Fix indentation of wctype.in.h, broken since 2007-01-06.
36894         * lib/wctype.in.h: Fix indentation of preprocessor directives.
36895
36896 2010-01-07  Bruno Haible  <bruno@clisp.org>
36897
36898         mbslen: Avoid collision with system function.
36899         * lib/string.in.h [MirBSD]: Include <wchar.h>.
36900         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
36901         * m4/mbslen.m4: New file.
36902         * modules/mbslen (Files): Add it.
36903         (configure.ac): Invoke gl_MBSLEN.
36904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
36905         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
36906         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
36907         via Ian Beckwith <ianb@erislabs.net>.
36908
36909 2010-01-07  Bruno Haible  <bruno@clisp.org>
36910
36911         dirent: Document the last fix.
36912         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
36913
36914 2010-01-07  Bruno Haible  <bruno@clisp.org>
36915
36916         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
36917         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
36918         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
36919         va_list are defined.
36920         * doc/posix-headers/stdio.texi: Document the bug of missing types.
36921         Reported by Eric Blake.
36922
36923 2010-01-07  Bruno Haible  <bruno@clisp.org>
36924
36925         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
36926         * modules/xlist (Depends-on): Add 'list',
36927         * modules/xoset (Depends-on): Add 'oset'.
36928         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36929
36930 2010-01-07  Bruno Haible  <bruno@clisp.org>
36931
36932         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
36933         * doc/posix-functions/strncasecmp.texi: Likewise.
36934
36935 2010-01-07  Bruno Haible  <bruno@clisp.org>
36936
36937         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
36938
36939 2010-01-07  John W. Eaton  <jwe@octave.org>
36940
36941         wctype: allow C++ use
36942         * lib/wctype.in.h: Add extern "C" block for C++.
36943
36944 2010-01-06  Eric Blake  <ebb9@byu.net>
36945
36946         maint.mk: detect incorrect GFDL usage
36947         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
36948
36949 2010-01-06  Jim Meyering  <meyering@redhat.com>
36950         and Eric Blake  <ebb9@byu.net>
36951
36952         maint.mk: ignore multi-line copyright in NEWS
36953         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
36954
36955 2010-01-06  Eric Blake  <ebb9@byu.net>
36956
36957         select: add missing dependency
36958         * modules/select-tests (Depends-on): Move sockets dependency...
36959         * modules/select (Depends-on): ...here.
36960         Reported by Ian Beckwith.
36961
36962         doc: regenerate INSTALL
36963         * doc/INSTALL: Reflect recent autoconf update.
36964         * doc/INSTALL.ISO: Likewise.
36965         * doc/INSTALL.UTF-8: Likewise.
36966
36967         pread: fix compilation on glibc
36968         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
36969         Reported by Ralf Wildenhues.
36970
36971         dirent: fix test failure
36972         * lib/dirent.in.h (includes): Guarantee ino_t.
36973         Reported by Ralf Wildenhues.
36974
36975 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
36976
36977         linkat, renameat: avoid bad free
36978         * lib/at-func2.c (at_func2): Fix typo.
36979         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
36980
36981 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36982
36983         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
36984         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
36985         to avoid failure of symlink test later.
36986
36987 2010-01-06  Eric Blake  <ebb9@byu.net>
36988
36989         stdio, unistd: guarantee ssize_t
36990         * lib/unistd.in.h (includes): Ensure that types required by POSIX
36991         2008 are exposed when needed.
36992         * lib/stdio.in.h (includes): Likewise.
36993         Reported by Ralf Wildenhues.
36994
36995 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
36996
36997         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
36998         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
36999         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37000
37001 2010-01-06  Jim Meyering  <meyering@redhat.com>
37002
37003         readtokens: this module *does* require xalloc.h
37004         It uses only functions that were omitted by the old syntax-check rule.
37005         * lib/readtokens.c: Include "xalloc.h" once again.
37006         * modules/readtokens (Depends-on): Add xalloc.
37007         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37008
37009 2010-01-05  Eric Blake  <ebb9@byu.net>
37010
37011         maint: support 'make announcement' from a VPATH build
37012         * top/maint.mk (announcement): Look for correct NEWS file.
37013
37014 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37015
37016         utimens (fdutimens): ignore a negative FD, per contract
37017         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37018         when we have a valid file descriptor.  Otherwise, using a brand
37019         new glibc (with just-patched futimens that now fails with EBADF)
37020         would cause this function to fail with ENOSYS.
37021         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37022         See also http://bugzilla.redhat.com/552320.
37023
37024 2010-01-05  Eric Blake  <ebb9@byu.net>
37025
37026         strcase: document what it provides
37027         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37028         gnulib module.
37029         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37030         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37031
37032 2010-01-05  Jim Meyering  <meyering@redhat.com>
37033
37034         maint: remove useless inclusions of "xalloc.h"
37035         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37036         * lib/readtokens.c: Likewise.
37037         * lib/same.c: Likewise.
37038         * modules/getloadavg (Depends-on): Remove xalloc.
37039         * modules/readtokens: Likewise.
37040         * modules/same: Likewise.
37041
37042         maint.mk: include 4 more function names in alloca.h-checking regexp
37043         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37044         regexp.  Before, we would give a false-positive (saying alloca.h
37045         is included unnecessarily) when the only uses involved omitted symbols.
37046
37047         xalloc.h: use consistent formatting
37048         * lib/xalloc.h: Move declarations to start in the first column.
37049
37050 2010-01-05  Eric Blake  <ebb9@byu.net>
37051
37052         mkdir: avoid xalloc
37053         * lib/mkdir.c (includes): Drop unused header.
37054         Reported by John W. Eaton.
37055
37056 2010-01-04  Jim Meyering  <meyering@redhat.com>
37057
37058         nl_langinfo: avoid configure-time syntax error
37059         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37060         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37061         the empty string.  Don't let that provoke a shell syntax error.
37062
37063         regcomp, regexec, fnmatch: avoid array bounds read error
37064         * lib/regcomp.c (build_equiv_class): From glibc:
37065         Use only the low 24 bits of a findidx return value as an index
37066         into the weights array.  Patch by Ulrich Drepper:
37067         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37068         * lib/regexec.c (check_node_accept_bytes): Likewise.
37069         * lib/fnmatch_loop.c (FCT): Likewise.
37070
37071         regcomp: skip collseq lookup when there are no rules
37072         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37073         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37074
37075         regcomp: recognize ill-formed { } expressions
37076         * lib/regcomp.c (parse_dup_op): From glibc:
37077         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37078
37079         regcomp: fix typo in comment
37080         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37081         s/satisfy/satisfies/.
37082
37083         regcomp: sync from glibc: remove dead store
37084         * lib/regcomp.c (duplicate_node_closure): Remove useless
37085         search_duplicated_node call and dead store.
37086
37087         regcomp: sync from glibc; always use nl_langinfo
37088         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37089         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37090         * modules/regex (Depends-on): Add nl_langinfo.
37091
37092 2010-01-04  Eric Blake  <ebb9@byu.net>
37093
37094         fdopendir: fix configure test
37095         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37096
37097 2010-01-01  Bruno Haible  <bruno@clisp.org>
37098
37099         wchar: Remove unused configure check.
37100         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37101
37102 2010-01-01  Eric Blake  <ebb9@byu.net>
37103
37104         headers: make check of system header explicit
37105         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37106         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37107         ourselves.
37108         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37109         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37110         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37111         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37112         internals.
37113         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37114         missing.
37115         Suggested by Bruno Haible.
37116
37117 2010-01-01  Jim Meyering  <meyering@redhat.com>
37118
37119         ChangeLog: tweak to eliminate unnecessary copyright line
37120         * ChangeLog: Remove a copyright line that was mistakenly updated
37121         by today's update-copyright run.  Reported by Eric Blake.
37122
37123         test-update-copyright: don't let envvar setting cause test failure
37124         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37125
37126 2010-01-01  Bruno Haible  <bruno@clisp.org>
37127
37128         localename: Avoid gcc warning.
37129         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37130         function if it is not used.
37131
37132 2010-01-01  Jim Meyering  <meyering@redhat.com>
37133
37134         update nearly all FSF copyright year lists to include 2010
37135         Use the same procedure as for 2009, outlined in
37136         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37137
37138         version-etc: set COPYRIGHT_YEAR to 2010
37139         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37140
37141 2009-12-31  Eric Blake  <ebb9@byu.net>
37142
37143         doc: correct availability of cygwin 1.5.x getopt
37144         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37145         variables.
37146         * doc/posix-functions/opterr.texi (opterr): Likewise.
37147         * doc/posix-functions/optind.texi (optind): Likewise.
37148         * doc/posix-functions/optopt.texi (optopt): Likewise.
37149         * doc/posix-functions/tzname.texi (tzname): Likewise.
37150
37151         openat: update maintainer
37152         * modules/openat (Maintainer): Add myself.
37153
37154         utimens: avoid shadowing warning
37155         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37156         buffers into one, to avoid shadowing, as well as avoiding a
37157         redundant stat.
37158         Reported by Jim Meyering.
37159
37160         test-dup2: avoid compiler warning
37161         * tests/test-dup2.c (is_inheritable): Only define if used.
37162
37163 2010-01-01  Bruno Haible  <bruno@clisp.org>
37164
37165         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37166         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37167         defined, use wctomb instead of wcrtomb.
37168
37169 2010-01-01  Bruno Haible  <bruno@clisp.org>
37170
37171         iconv: Reject native Solaris iconv.
37172         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37173         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37174
37175 2009-12-31  Bruno Haible  <bruno@clisp.org>
37176
37177         * tests/test-signal.c (main): Remove test of 'SIG'.
37178
37179 2009-12-31  Bruno Haible  <bruno@clisp.org>
37180
37181         spawn: Fix incomplete fix.
37182         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37183         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37184         warnings for GNULIB_POSIXCHECK again.
37185         Reported by Eric Blake.
37186
37187 2009-12-31  Bruno Haible  <bruno@clisp.org>
37188
37189         Avoid namespace pollution on glibc systems.
37190         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37191         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37192         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37193         glibc systems.
37194
37195 2009-12-31  Bruno Haible  <bruno@clisp.org>
37196
37197         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37198         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37199         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37200         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37201         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37202         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37203         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37204
37205 2009-12-31  Bruno Haible  <bruno@clisp.org>
37206
37207         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37208         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37209         afterwards.
37210
37211 2009-12-31  Bruno Haible  <bruno@clisp.org>
37212
37213         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37214         SYS_UTSNAME_H.
37215
37216 2009-12-31  Bruno Haible  <bruno@clisp.org>
37217
37218         spawn: Fix misapplied patch.
37219         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37220         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37221         warnings for GNULIB_POSIXCHECK.
37222
37223 2009-12-31  Bruno Haible  <bruno@clisp.org>
37224
37225         times: Update after sys_times changed.
37226         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37227         * modules/times (Files): Add it.
37228         (configure.ac): Invoke gl_FUNC_TIMES.
37229
37230 2009-12-31  Bruno Haible  <bruno@clisp.org>
37231
37232         Use AC_C_INLINE where necessary.
37233         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37234         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37235         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37236         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37237         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37238         * m4/mbiter.m4 (gl_MBITER): Likewise.
37239         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37240         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37241         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37242         * modules/u64 (configure.ac): Likewise.
37243
37244 2009-12-31  Bruno Haible  <bruno@clisp.org>
37245
37246         Use AC_C_INLINE instead of module 'inline' where possible.
37247         * modules/inline (Description): Clarify purpose.
37248         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37249         * modules/count-one-bits (Depends-on): Remove inline.
37250         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37251         * modules/openat (Depends-on): Remove inline.
37252         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37253         instead of depending on module 'inline'.
37254         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37255         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37256         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37257         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37258         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37259         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37260         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37261         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37262         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37263         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37264         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37265         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37266         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37267         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37268         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37269         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37270         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37271         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37272         Likewise.
37273         * modules/unictype/property-ascii-hex-digit (Depends-on,
37274         configure.ac): Likewise.
37275         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37276         configure.ac): Likewise.
37277         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37278         configure.ac): Likewise.
37279         * modules/unictype/property-bidi-block-separator (Depends-on,
37280         configure.ac): Likewise.
37281         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37282         configure.ac): Likewise.
37283         * modules/unictype/property-bidi-common-separator (Depends-on,
37284         configure.ac): Likewise.
37285         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37286         Likewise.
37287         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37288         configure.ac): Likewise.
37289         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37290         configure.ac): Likewise.
37291         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37292         configure.ac): Likewise.
37293         * modules/unictype/property-bidi-european-digit (Depends-on,
37294         configure.ac): Likewise.
37295         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37296         configure.ac): Likewise.
37297         * modules/unictype/property-bidi-left-to-right (Depends-on,
37298         configure.ac): Likewise.
37299         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37300         configure.ac): Likewise.
37301         * modules/unictype/property-bidi-other-neutral (Depends-on,
37302         configure.ac): Likewise.
37303         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37304         Likewise.
37305         * modules/unictype/property-bidi-segment-separator (Depends-on,
37306         configure.ac): Likewise.
37307         * modules/unictype/property-bidi-whitespace (Depends-on,
37308         configure.ac): Likewise.
37309         * modules/unictype/property-combining (Depends-on, configure.ac):
37310         Likewise.
37311         * modules/unictype/property-composite (Depends-on, configure.ac):
37312         Likewise.
37313         * modules/unictype/property-currency-symbol (Depends-on,
37314         configure.ac): Likewise.
37315         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37316         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37317         Likewise.
37318         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37319         configure.ac): Likewise.
37320         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37321         Likewise.
37322         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37323         Likewise.
37324         * modules/unictype/property-extender (Depends-on, configure.ac):
37325         Likewise.
37326         * modules/unictype/property-format-control (Depends-on, configure.ac):
37327         Likewise.
37328         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37329         Likewise.
37330         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37331         Likewise.
37332         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37333         Likewise.
37334         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37335         Likewise.
37336         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37337         Likewise.
37338         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37339         Likewise.
37340         * modules/unictype/property-id-start (Depends-on, configure.ac):
37341         Likewise.
37342         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37343         Likewise.
37344         * modules/unictype/property-ids-binary-operator (Depends-on,
37345         configure.ac): Likewise.
37346         * modules/unictype/property-ids-trinary-operator (Depends-on,
37347         configure.ac): Likewise.
37348         * modules/unictype/property-ignorable-control (Depends-on,
37349         configure.ac): Likewise.
37350         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37351         Likewise.
37352         * modules/unictype/property-join-control (Depends-on, configure.ac):
37353         Likewise.
37354         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37355         Likewise.
37356         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37357         Likewise.
37358         * modules/unictype/property-logical-order-exception (Depends-on,
37359         configure.ac): Likewise.
37360         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37361         Likewise.
37362         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37363         * modules/unictype/property-non-break (Depends-on, configure.ac):
37364         Likewise.
37365         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37366         Likewise.
37367         * modules/unictype/property-numeric (Depends-on, configure.ac):
37368         Likewise.
37369         * modules/unictype/property-other-alphabetic (Depends-on,
37370         configure.ac): Likewise.
37371         * modules/unictype/property-other-default-ignorable-code-point
37372         (Depends-on, configure.ac): Likewise.
37373         * modules/unictype/property-other-grapheme-extend (Depends-on,
37374         configure.ac): Likewise.
37375         * modules/unictype/property-other-id-continue (Depends-on,
37376         configure.ac): Likewise.
37377         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37378         Likewise.
37379         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37380         Likewise.
37381         * modules/unictype/property-other-math (Depends-on, configure.ac):
37382         Likewise.
37383         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37384         Likewise.
37385         * modules/unictype/property-paired-punctuation (Depends-on,
37386         configure.ac): Likewise.
37387         * modules/unictype/property-paragraph-separator (Depends-on,
37388         configure.ac): Likewise.
37389         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37390         Likewise.
37391         * modules/unictype/property-pattern-white-space (Depends-on,
37392         configure.ac): Likewise.
37393         * modules/unictype/property-private-use (Depends-on, configure.ac):
37394         Likewise.
37395         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37396         Likewise.
37397         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37398         Likewise.
37399         * modules/unictype/property-radical (Depends-on, configure.ac):
37400         Likewise.
37401         * modules/unictype/property-sentence-terminal (Depends-on,
37402         configure.ac): Likewise.
37403         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37404         Likewise.
37405         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37406         * modules/unictype/property-terminal-punctuation (Depends-on,
37407         configure.ac): Likewise.
37408         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37409         Likewise.
37410         * modules/unictype/property-unassigned-code-value (Depends-on,
37411         configure.ac): Likewise.
37412         * modules/unictype/property-unified-ideograph (Depends-on,
37413         configure.ac): Likewise.
37414         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37415         Likewise.
37416         * modules/unictype/property-variation-selector (Depends-on,
37417         configure.ac): Likewise.
37418         * modules/unictype/property-white-space (Depends-on, configure.ac):
37419         Likewise.
37420         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37421         Likewise.
37422         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37423         Likewise.
37424         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37425         Likewise.
37426         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37427         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37428         Likewise.
37429
37430 2009-12-31  Bruno Haible  <bruno@clisp.org>
37431
37432         Remove unnecessary AC_C_INLINE invocation.
37433         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37434         since 2009-08-21.
37435
37436 2009-12-31  Jim Meyering  <meyering@redhat.com>
37437
37438         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37439         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37440         With this change, we can all remove the gpg_key_ID = ... definition
37441         from our respective cfg.mk files.
37442
37443         maint.mk: create announcement template in ~/, not in /tmp
37444         * top/maint.mk (emit_upload_commands): Adjust.
37445         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37446         Remove temporary file, .ci-msg.
37447
37448 2009-12-31  Eric Blake  <ebb9@byu.net>
37449
37450         link-warning: always build headers with link warnings
37451         * modules/arpa_inet (Makefile.am): Always build replacement
37452         header.
37453         * modules/ctype (Makefile.am): Likewise.
37454         * modules/dirent (Makefile.am): Likewise.
37455         * modules/inttypes (Makefile.am): Likewise.
37456         * modules/langinfo (Makefile.am): Likewise.
37457         * modules/locale (Makefile.am): Likewise.
37458         * modules/spawn (Makefile.am): Likewise.
37459         * modules/sys_file (Makefile.am): Likewise.
37460         * modules/sys_ioctl (Makefile.am): Likewise.
37461         * modules/sys_select (Makefile.am): Likewise.
37462         * modules/sys_socket (Makefile.am): Likewise.
37463         * modules/sys_times (Makefile.am): Likewise.
37464         * modules/sys_utsname (Makefile.am): Likewise.
37465         * modules/sys_wait (Makefile.am): Likewise.
37466         * modules/wchar (Makefile.am): Likewise.
37467         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37468         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37469         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37470         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37471         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37472         Likewise.
37473         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37474         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37475         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37476         Likewise.
37477         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37478         Likewise.
37479         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37480         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37481         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37482         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37483         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37484         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37485         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37486         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37487         (gl_WCHAR_H_DEFAULTS): Likewise.
37488
37489 2009-12-31  Eric Blake  <ebb9@byu.net>
37490
37491         signal, spawn: use link warnings
37492         * lib/signal.in.h (sigset_t): Make unconditional.
37493         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37494         (sigpending, sigprocmask, sigaction): Add link warnings.
37495         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37496         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37497         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37498         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37499         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37500         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37501         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37502         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37503         (posix_spawn_file_actions_destroy)
37504         (posix_spawn_file_actions_addopen)
37505         (posix_spawn_file_actions_addclose)
37506         (posix_spawn_file_actions_adddup2): Likewise.
37507         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37508         * tests/test-signal.c (main): Enhance test.
37509
37510         spawn: improve wrapper support
37511         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37512         (gl_SPAWN_H_DEFAULTS): New defaults.
37513         * modules/spawn (Makefile.am): Substitute them.
37514         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37515         Only declare if missing or broken.
37516
37517         sys_times, sys_utsname: use include_next
37518         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37519         header.
37520         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37521         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37522         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37523         * modules/sys_times (Depends-on): Add include_next.
37524         (Makefile.am): Substitute additional values.
37525         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37526         * lib/sys_times.in.h (includes): Include native header, if
37527         available.
37528         * lib/sys_utsname.in.h (includes): Likewise.
37529         * tests/test-sys_times.c (main): Enhance test.
37530
37531         fdutimensat: revert prior patch
37532         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
37533         utimens.h.
37534         Reported by Bruno Haible.
37535
37536 2009-12-30  Eric Blake  <ebb9@byu.net>
37537
37538         sys_wait: drop link-warning dependency
37539         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
37540         link-warning efforts.
37541         * lib/sys_wait.in.h: Likewise.
37542
37543         fdutimensat: remove bogus dependency
37544         * modules/fdutimensat (Depends-on): Drop inline.
37545
37546         unistd: fix typo
37547         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
37548
37549 2009-12-30  Bruno Haible  <bruno@clisp.org>
37550
37551         Fix compilation error with Solaris cc.
37552         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
37553         * lib/unicase/u16-is-invariant.c: Likewise.
37554         * lib/unicase/u32-is-invariant.c: Likewise.
37555         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37556
37557 2009-12-30  Bruno Haible  <bruno@clisp.org>
37558
37559         Fix test crash.
37560         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
37561         locales.
37562         Reported by Simon Josefsson <simon@josefsson.org>.
37563
37564 2009-12-30  Bruno Haible  <bruno@clisp.org>
37565
37566         Fix compilation error on most platforms.
37567         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
37568         Reported by Simon Josefsson <simon@josefsson.org>
37569         and Nelson H. F. Beebe <beebe@math.utah.edu>.
37570
37571 2009-12-30  Eric Blake  <ebb9@byu.net>
37572
37573         futimens, utimensat: work around ntfs-3g bug
37574         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
37575         a ctime bug is present, and expand workaround to cover ntfs-3g.
37576         * lib/utimens.c (fdutimens, lutimens): Likewise.
37577         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
37578         (validate_timespec): Adjust return value.
37579         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
37580         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37581         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
37582
37583 2009-12-29  Eric Blake  <ebb9@byu.net>
37584
37585         link-warning: make usage consistent
37586         * modules/ctype (Depends-on): Add link-warning.
37587         (Makefile.am): Update rules accordingly.
37588         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37589         * modules/locale (Depends-on, Makefile.am): Likewise.
37590         * modules/sys_file (Makefile.am): Likewise.
37591         * modules/getopt-posix (Makefile.am): Delete unused link warning
37592         efforts.
37593         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
37594         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
37595         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
37596         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
37597
37598         stdio: remove unused variables
37599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
37600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
37601         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
37602
37603         tests: test more substitute headers
37604         * modules/ctype-tests: New file.
37605         * modules/dirent-tests: Likewise.
37606         * modules/spawn-tests: Likewise.
37607         * modules/sys_file-tests: Likewise.
37608         * modules/sys_ioctl-tests: Likewise.
37609         * modules/sys_wait-tests: Likewise.
37610         * tests/test-ctype.c: Likewise.
37611         * tests/test-dirent.c: Likewise.
37612         * tests/test-spawn.c: Likewise.
37613         * tests/test-sys_file.c: Likewise.
37614         * tests/test-sys_ioctl.c: Likewise.
37615         * tests/test-sys_wait.c: Likewise.
37616         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
37617         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
37618         whether or not flock is in use.
37619
37620         tests: remove License section from module
37621         * modules/arpa_inet-tests: Remove unneeded section.
37622         * modules/byteswap-tests: Likewise.
37623         * modules/ceilf-tests: Likewise.
37624         * modules/ceill-tests: Likewise.
37625         * modules/crypto/des-tests: Likewise.
37626         * modules/crypto/gc-arcfour-tests: Likewise.
37627         * modules/crypto/gc-arctwo-tests: Likewise.
37628         * modules/crypto/gc-des-tests: Likewise.
37629         * modules/crypto/gc-hmac-md5-tests: Likewise.
37630         * modules/crypto/gc-hmac-sha1-tests: Likewise.
37631         * modules/crypto/gc-md2-tests: Likewise.
37632         * modules/crypto/gc-md4-tests: Likewise.
37633         * modules/crypto/gc-md5-tests: Likewise.
37634         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
37635         * modules/crypto/gc-rijndael-tests: Likewise.
37636         * modules/crypto/gc-sha1-tests: Likewise.
37637         * modules/crypto/gc-tests: Likewise.
37638         * modules/crypto/md2-tests: Likewise.
37639         * modules/crypto/md4-tests: Likewise.
37640         * modules/fcntl-h-tests: Likewise.
37641         * modules/floorf-tests: Likewise.
37642         * modules/floorl-tests: Likewise.
37643         * modules/frexp-nolibm-tests: Likewise.
37644         * modules/frexp-tests: Likewise.
37645         * modules/frexpl-nolibm-tests: Likewise.
37646         * modules/frexpl-tests: Likewise.
37647         * modules/getaddrinfo-tests: Likewise.
37648         * modules/inttypes-tests: Likewise.
37649         * modules/isfinite-tests: Likewise.
37650         * modules/isinf-tests: Likewise.
37651         * modules/ldexpl-tests: Likewise.
37652         * modules/locale-tests: Likewise.
37653         * modules/math-tests: Likewise.
37654         * modules/netdb-tests: Likewise.
37655         * modules/netinet_in-tests: Likewise.
37656         * modules/printf-frexp-tests: Likewise.
37657         * modules/printf-frexpl-tests: Likewise.
37658         * modules/priv-set-tests: Likewise.
37659         * modules/random_r-tests: Likewise.
37660         * modules/round-tests: Likewise.
37661         * modules/roundf-tests: Likewise.
37662         * modules/roundl-tests: Likewise.
37663         * modules/search-tests: Likewise.
37664         * modules/select-tests: Likewise.
37665         * modules/signal-tests: Likewise.
37666         * modules/stdbool-tests: Likewise.
37667         * modules/stddef-tests: Likewise.
37668         * modules/stdint-tests: Likewise.
37669         * modules/stdio-tests: Likewise.
37670         * modules/stdlib-tests: Likewise.
37671         * modules/string-tests: Likewise.
37672         * modules/strings-tests: Likewise.
37673         * modules/sys_select-tests: Likewise.
37674         * modules/sys_socket-tests: Likewise.
37675         * modules/sys_stat-tests: Likewise.
37676         * modules/sys_time-tests: Likewise.
37677         * modules/sys_utsname-tests: Likewise.
37678         * modules/sysexits-tests: Likewise.
37679         * modules/time-tests: Likewise.
37680         * modules/trunc-tests: Likewise.
37681         * modules/truncf-tests: Likewise.
37682         * modules/truncl-tests: Likewise.
37683         * modules/tsearch-tests: Likewise.
37684         * modules/unistd-tests: Likewise.
37685         * modules/wchar-tests: Likewise.
37686         * modules/wctype-tests: Likewise.
37687
37688         tests: fix license on several tests
37689         * tests/test-des.c: Update to GPLv3+.
37690         * tests/test-flock.c: Likewise.
37691         * tests/test-fsync.c: Likewise.
37692         * tests/test-futimens.h: Likewise.
37693         * tests/test-gc-arcfour.c: Likewise.
37694         * tests/test-gc-arctwo.c: Likewise.
37695         * tests/test-gc-des.c: Likewise.
37696         * tests/test-gc-hmac-md5.c: Likewise.
37697         * tests/test-gc-hmac-sha1.c: Likewise.
37698         * tests/test-gc-md2.c: Likewise.
37699         * tests/test-gc-md4.c: Likewise.
37700         * tests/test-gc-md5.c: Likewise.
37701         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37702         * tests/test-gc-rijndael.c: Likewise.
37703         * tests/test-gc-sha1.c: Likewise.
37704         * tests/test-gc.c: Likewise.
37705         * tests/test-getcwd.c: Likewise.
37706         * tests/test-link.c: Likewise.
37707         * tests/test-link.h: Likewise.
37708         * tests/test-lutimens.h: Likewise.
37709         * tests/test-md2.c: Likewise.
37710         * tests/test-md4.c: Likewise.
37711         * tests/test-mkdir.h: Likewise.
37712         * tests/test-rename.c: Likewise.
37713         * tests/test-rename.h: Likewise.
37714         * tests/test-safe-alloc.c: Likewise.
37715         * tests/test-utimens-common.h: Likewise.
37716         * tests/test-utimens.h: Likewise.
37717
37718         maint: sync license texts
37719         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
37720         * doc/gpl-3.0.texi: Revert copyright year update.
37721         * doc/lgpl-3.0.texi: Likewise.
37722
37723 2009-12-29  Jim Meyering  <meyering@redhat.com>
37724
37725         update nearly all FSF copyright year lists to include 2009
37726         The files named by the following are exempted:
37727             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
37728               test -f "$dst" && { echo "$dst"; continue; }
37729               test -d "$dst" || continue
37730               echo "$dst"/$(basename "$src")
37731             done > exempt
37732             git ls-files tests/unictype >> exempt
37733         In the remaining files, convert to all-interval notation if
37734         - there is already at least one year interval like 2000-2003
37735         - the file is maintained by me
37736         - the file is in lib/uni*/, where that style already prevails
37737         Otherwise, use update-copyright's default.
37738
37739 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37740         and Eric Blake  <ebb9@byu.net>
37741
37742         tests: don't require debug system() to pass
37743         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
37744         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37745         * tests/test-unlink.h (test_unlink_func): Likewise.
37746         * tests/test-fstatat.c (main): ...into callers.
37747         * tests/test-lstat.c (main): Likewise.
37748         * tests/test-rmdir.c (main): Likewise.
37749         * tests/test-unlink.c (main): Likewise.
37750         * tests/test-unlinkat.c (main): Likewise.
37751         * tests/test-areadlink-with-size.c (main): Don't require a
37752         debug-only system call to pass, aiding cross-testing to mingw.
37753         * tests/test-areadlink.c (main): Likewise.
37754         * tests/test-areadlinkat-with-size.c (main): Likewise.
37755         * tests/test-areadlinkat.c (main): Likewise.
37756         * tests/test-canonicalize-lgpl.c (main): Likewise.
37757         * tests/test-canonicalize.c (main): Likewise.
37758         * tests/test-chown.c (main): Likewise.
37759         * tests/test-fchownat.c (main): Likewise.
37760         * tests/test-lchown.c (main): Likewise.
37761         * tests/test-fdutimensat.c (main): Likewise.
37762         * tests/test-futimens.c (main): Likewise.
37763         * tests/test-link.c (main): Likewise.
37764         * tests/test-linkat.c (main): Likewise.
37765         * tests/test-mkdir.c (main): Likewise.
37766         * tests/test-mkdirat.c (main): Likewise.
37767         * tests/test-mkfifo.c (main): Likewise.
37768         * tests/test-mkfifoat.c (main): Likewise.
37769         * tests/test-mknod.c (main): Likewise.
37770         * tests/test-readlink.c (main): Likewise.
37771         * tests/test-remove.c (main): Likewise.
37772         * tests/test-rename.c (main): Likewise.
37773         * tests/test-renameat.c (main): Likewise.
37774         * tests/test-symlink.c (main): Likewise.
37775         * tests/test-symlinkat.c (main): Likewise.
37776         * tests/test-utimens.c (main): Likewise.
37777         * tests/test-utimensat.c (main): Likewise.
37778
37779 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37780
37781         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
37782         on $(UNUSED_PARAMETER_H) to avoid build failure.
37783
37784 2009-12-28  Jim Meyering  <meyering@redhat.com>
37785
37786         update-copyright: you may specify a max. line length other than 72
37787         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37788
37789         maint: use consistent FSF copyright line syntax
37790         * lib/posixtm.c: Add missing comma in FSF copyright line.
37791         * lib/posixtm.h: Likewise.
37792         * lib/getugroups.c: Add missing ", Inc.".
37793
37794         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
37795         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
37796         FSF copyright line.  Remove trailing blanks.
37797
37798 2009-12-28  Eric Blake  <ebb9@byu.net>
37799
37800         test-dup2: reduce dependencies
37801         * modules/cloexec (Configure.ac): Set witness.
37802         * modules/dup2-tests (Depends-on): Drop cloexec.
37803         * tests/test-dup2.c (main): Skip portion of test if cloexec module
37804         not present.
37805         Suggested by Bruno Haible.
37806
37807 2009-12-26  Bruno Haible  <bruno@clisp.org>
37808
37809         Remove an unneeded dependency.
37810         * modules/fseterr (Depends-on): Remove dup2.
37811
37812 2009-12-26  Eric Blake  <ebb9@byu.net>
37813
37814         tests: use macros.h in more places
37815         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
37816         (ASSERT_STREAM): Provide default of stderr.
37817         * tests/test-dirent-safer.c: Include macros.h, using alternate
37818         stream for assertions.
37819         * tests/test-dup-safer.c: Likewise.
37820         * tests/test-freopen-safer.c: Likewise.
37821         * tests/test-getopt.c: Likewise.
37822         * tests/test-openat-safer.c: Likewise.
37823         * tests/test-pipe.c: Likewise.
37824         * tests/test-popen-safer.c: Likewise.
37825         * modules/dirent-safer-tests (Files): Include macros.h.
37826         * modules/unistd-safer-tests (Files): Likewise.
37827         * modules/freopen-safer-tests (Files): Likewise.
37828         * modules/getopt-posix-tests (Files): Likewise.
37829         * modules/openat-safer-tests (Files): Likewise.
37830         * modules/pipe-tests (Files): Likewise.
37831
37832 2009-12-26  Bruno Haible  <bruno@clisp.org>
37833
37834         javacomp: Portability fix.
37835         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
37836         that it also works on Solaris.
37837
37838 2009-12-26  Bruno Haible  <bruno@clisp.org>
37839
37840         localename: Fix storage allocation of gl_locale_name_thread's result.
37841         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
37842         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
37843         all platforms that have 'uselocale'.
37844         (gl_locale_name_thread_unsafe): New function, extracted from
37845         gl_locale_name_thread.
37846         (gl_locale_name_thread): Call struniq on all platforms that have
37847         'uselocale'.
37848         * tests/test-localename.c (test_locale_name_thread): Check that the
37849         resulting strings are permanently allocated.
37850         * modules/localename-tests (Depends-on): Add strdup.
37851
37852 2009-12-26  Bruno Haible  <bruno@clisp.org>
37853
37854         * tests/test-localename.c (categories): Fill in the strings.
37855
37856 2009-12-26  Jim Meyering  <meyering@redhat.com>
37857
37858         isdir: complete the removal of m4/isdir.m4
37859         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
37860
37861         isdir: clean up, since at least grep still uses it
37862         * lib/isdir.c: Include "isdir.h".
37863         (S_ISDIR): Remove now-unneeded definition.
37864         * modules/isdir (Files): Add lib/isdir.h.
37865         * lib/isdir.h: New file, with declaration.
37866         * m4/isdir.m4: Remove file -- unneeded.
37867
37868 2009-12-25  Bruno Haible  <bruno@clisp.org>
37869
37870         selinux-h: Make generated .h files standalone.
37871         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
37872         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
37873         * lib/se-selinux.in.h: Likewise.
37874         * modules/selinux-h (Depends-on): Add unused-parameter.
37875         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
37876         selinux/selinux.h and selinux/context.h.
37877         Suggested by Eric Blake.
37878
37879 2009-12-25  Bruno Haible  <bruno@clisp.org>
37880
37881         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
37882         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
37883         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
37884         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
37885         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
37886
37887 2009-12-24  Bruno Haible  <bruno@clisp.org>
37888
37889         openat: Fix warning.
37890         * lib/openat-proc.c: Include <unistd.h>.
37891
37892 2009-12-24  Bruno Haible  <bruno@clisp.org>
37893
37894         New module 'unused-parameter'.
37895         * build-aux/unused-parameter.h: New file, extracted from earlier
37896         gnulib-common.m4.
37897         * modules/unused-parameter: New file.
37898         * lib/unistr.h: Include unused-parameter.h.
37899         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
37900         _GL_UNUSED.
37901         * modules/unistr/base (Depends-on): Add unused-parameter.
37902
37903 2009-12-24  Bruno Haible  <bruno@clisp.org>
37904
37905         Add missing dependencies to 'extensions' module.
37906         * m4/extensions.m4: Add comment.
37907         * modules/accept4 (Depends-on): Add extensions.
37908         * modules/dup3 (Depends-on): Likewise.
37909         * modules/fcntl (Depends-on): Likewise.
37910         * modules/futimens (Depends-on): Likewise.
37911         * modules/mknod (Depends-on): Likewise.
37912         * modules/pipe2 (Depends-on): Likewise.
37913         * modules/stat-time (Depends-on): Likewise.
37914         * modules/strcasestr-simple (Depends-on): Likewise.
37915         * modules/strsignal (Depends-on): Likewise.
37916         * modules/utimensat (Depends-on): Likewise.
37917         * modules/localcharset (Depends-on): Likewise. Needed because of
37918         gl_FCNTL_O_FLAGS.
37919         * modules/wcrtomb (Depends-on): Likewise. Needed because of
37920         AC_TYPE_MBSTATE_T.
37921         * modules/wcsnrtombs (Depends-on): Likewise.
37922         * modules/wcsrtombs (Depends-on): Likewise.
37923
37924 2009-12-24  Bruno Haible  <bruno@clisp.org>
37925
37926         binary-io: Avoid gcc warning due to SET_BINARY.
37927         * lib/binary-io.h (SET_BINARY): Cast the result to void.
37928         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
37929
37930 2009-12-24  Bruno Haible  <bruno@clisp.org>
37931
37932         Avoid future namespace pollution on glibc systems.
37933         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
37934         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
37935         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
37936         glibc systems.
37937
37938 2009-12-24  Bruno Haible  <bruno@clisp.org>
37939
37940         Refactor common macros used in tests.
37941         * tests/macros.h: New file.
37942         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
37943         and/or <stdlib.h>, if appropriate.
37944         (ASSERT, SIZEOF): Remove macros.
37945         * tests/test-areadlink-with-size.c: Likewise.
37946         * tests/test-areadlinkat.c: Likewise.
37947         * tests/test-areadlinkat-with-size.c: Likewise.
37948         * tests/test-argmatch.c: Likewise.
37949         * tests/test-argv-iter.c: Likewise.
37950         * tests/test-array-mergesort.c: Likewise.
37951         * tests/test-array_list.c: Likewise.
37952         * tests/test-array_oset.c: Likewise.
37953         * tests/test-avltree_list.c: Likewise.
37954         * tests/test-avltree_oset.c: Likewise.
37955         * tests/test-avltreehash_list.c: Likewise.
37956         * tests/test-base64.c: Likewise.
37957         * tests/test-binary-io.c: Likewise.
37958         * tests/test-bitrotate.c: Likewise.
37959         * tests/test-btowc.c: Likewise.
37960         * tests/test-byteswap.c: Likewise.
37961         * tests/test-c-ctype.c: Likewise.
37962         * tests/test-c-stack.c: Likewise.
37963         * tests/test-c-strcasecmp.c: Likewise.
37964         * tests/test-c-strcasestr.c: Likewise.
37965         * tests/test-c-strncasecmp.c: Likewise.
37966         * tests/test-c-strstr.c: Likewise.
37967         * tests/test-canonicalize-lgpl.c: Likewise.
37968         * tests/test-canonicalize.c: Likewise.
37969         * tests/test-carray_list.c: Likewise.
37970         * tests/test-ceilf1.c: Likewise.
37971         * tests/test-ceilf2.c: Likewise.
37972         * tests/test-ceill.c: Likewise.
37973         * tests/test-chown.c: Likewise.
37974         * tests/test-cloexec.c: Likewise.
37975         * tests/test-copy-acl.c: Likewise.
37976         * tests/test-copy-file.c: Likewise.
37977         * tests/test-count-one-bits.c: Likewise.
37978         * tests/test-dprintf-posix.c: Likewise.
37979         * tests/test-dup2.c: Likewise.
37980         * tests/test-dup3.c: Likewise.
37981         * tests/test-duplocale.c: Likewise.
37982         * tests/test-fbufmode.c: Likewise.
37983         * tests/test-fchdir.c: Likewise.
37984         * tests/test-fchownat.c: Likewise.
37985         * tests/test-fcntl-safer.c: Likewise.
37986         * tests/test-fcntl.c: Likewise.
37987         * tests/test-fdopendir.c: Likewise.
37988         * tests/test-fdutimensat.c: Likewise.
37989         * tests/test-fflush2.c: Likewise.
37990         * tests/test-file-has-acl.c: Likewise.
37991         * tests/test-filevercmp.c: Likewise.
37992         * tests/test-flock.c: Likewise.
37993         * tests/test-floorf1.c: Likewise.
37994         * tests/test-floorf2.c: Likewise.
37995         * tests/test-floorl.c: Likewise.
37996         * tests/test-fnmatch.c: Likewise.
37997         * tests/test-fopen.h: Likewise.
37998         * tests/test-fpending.c: Likewise.
37999         * tests/test-fprintf-posix.c: Likewise.
38000         * tests/test-fpurge.c: Likewise.
38001         * tests/test-freadable.c: Likewise.
38002         * tests/test-freadahead.c: Likewise.
38003         * tests/test-freading.c: Likewise.
38004         * tests/test-freadptr.c: Likewise.
38005         * tests/test-freadptr2.c: Likewise.
38006         * tests/test-freadseek.c: Likewise.
38007         * tests/test-freopen.c: Likewise.
38008         * tests/test-frexp.c: Likewise.
38009         * tests/test-frexpl.c: Likewise.
38010         * tests/test-fseek.c: Likewise.
38011         * tests/test-fseeko.c: Likewise.
38012         * tests/test-fstatat.c: Likewise.
38013         * tests/test-fstrcmp.c: Likewise.
38014         * tests/test-fsync.c: Likewise.
38015         * tests/test-ftell.c: Likewise.
38016         * tests/test-ftello.c: Likewise.
38017         * tests/test-func.c: Likewise.
38018         * tests/test-futimens.c: Likewise.
38019         * tests/test-fwritable.c: Likewise.
38020         * tests/test-fwriting.c: Likewise.
38021         * tests/test-getcwd.c: Likewise.
38022         * tests/test-getdate.c: Likewise.
38023         * tests/test-getdelim.c: Likewise.
38024         * tests/test-getdtablesize.c: Likewise.
38025         * tests/test-getgroups.c: Likewise.
38026         * tests/test-getline.c: Likewise.
38027         * tests/test-getndelim2.c: Likewise.
38028         * tests/test-glob.c: Likewise.
38029         * tests/test-hash.c: Likewise.
38030         * tests/test-i-ring.c: Likewise.
38031         * tests/test-iconv-utf.c: Likewise.
38032         * tests/test-iconv.c: Likewise.
38033         * tests/test-idpriv-drop.c: Likewise.
38034         * tests/test-idpriv-droptemp.c: Likewise.
38035         * tests/test-inet_ntop.c: Likewise.
38036         * tests/test-inet_pton.c: Likewise.
38037         * tests/test-isblank.c: Likewise.
38038         * tests/test-isfinite.c: Likewise.
38039         * tests/test-isinf.c: Likewise.
38040         * tests/test-isnan.c: Likewise.
38041         * tests/test-isnand.h: Likewise.
38042         * tests/test-isnanf.h: Likewise.
38043         * tests/test-isnanl.h: Likewise.
38044         * tests/test-lchown.c: Likewise.
38045         * tests/test-ldexpl.c: Likewise.
38046         * tests/test-link.c: Likewise.
38047         * tests/test-linkat.c: Likewise.
38048         * tests/test-linked_list.c: Likewise.
38049         * tests/test-linkedhash_list.c: Likewise.
38050         * tests/test-localename.c: Likewise.
38051         * tests/test-lseek.c: Likewise.
38052         * tests/test-lstat.c: Likewise.
38053         * tests/test-mbmemcasecmp.c: Likewise.
38054         * tests/test-mbmemcasecoll.c: Likewise.
38055         * tests/test-mbrtowc.c: Likewise.
38056         * tests/test-mbscasecmp.c: Likewise.
38057         * tests/test-mbscasestr1.c: Likewise.
38058         * tests/test-mbscasestr2.c: Likewise.
38059         * tests/test-mbscasestr3.c: Likewise.
38060         * tests/test-mbscasestr4.c: Likewise.
38061         * tests/test-mbschr.c: Likewise.
38062         * tests/test-mbscspn.c: Likewise.
38063         * tests/test-mbsinit.c: Likewise.
38064         * tests/test-mbsncasecmp.c: Likewise.
38065         * tests/test-mbsnrtowcs.c: Likewise.
38066         * tests/test-mbspbrk.c: Likewise.
38067         * tests/test-mbspcasecmp.c: Likewise.
38068         * tests/test-mbsrchr.c: Likewise.
38069         * tests/test-mbsrtowcs.c: Likewise.
38070         * tests/test-mbsspn.c: Likewise.
38071         * tests/test-mbsstr1.c: Likewise.
38072         * tests/test-mbsstr2.c: Likewise.
38073         * tests/test-mbsstr3.c: Likewise.
38074         * tests/test-memchr.c: Likewise.
38075         * tests/test-memchr2.c: Likewise.
38076         * tests/test-memcmp.c: Likewise.
38077         * tests/test-memmem.c: Likewise.
38078         * tests/test-memrchr.c: Likewise.
38079         * tests/test-mkdir.c: Likewise.
38080         * tests/test-mkdirat.c: Likewise.
38081         * tests/test-mkfifo.c: Likewise.
38082         * tests/test-mkfifoat.c: Likewise.
38083         * tests/test-mknod.c: Likewise.
38084         * tests/test-nanosleep.c: Likewise.
38085         * tests/test-nl_langinfo.c: Likewise.
38086         * tests/test-obstack-printf.c: Likewise.
38087         * tests/test-open.c: Likewise.
38088         * tests/test-openat.c: Likewise.
38089         * tests/test-pipe-filter-gi1.c: Likewise.
38090         * tests/test-pipe-filter-gi2-main.c: Likewise.
38091         * tests/test-pipe-filter-ii1.c: Likewise.
38092         * tests/test-pipe-filter-ii2-main.c: Likewise.
38093         * tests/test-pipe2.c: Likewise.
38094         * tests/test-popen.h: Likewise.
38095         * tests/test-posixtm.c: Likewise.
38096         * tests/test-pread.c: Likewise.
38097         * tests/test-printf-frexp.c: Likewise.
38098         * tests/test-printf-frexpl.c: Likewise.
38099         * tests/test-printf-posix.c: Likewise.
38100         * tests/test-priv-set.c: Likewise.
38101         * tests/test-quotearg.c: Likewise.
38102         * tests/test-random_r.c: Likewise.
38103         * tests/test-rawmemchr.c: Likewise.
38104         * tests/test-rbtree_list.c: Likewise.
38105         * tests/test-rbtree_oset.c: Likewise.
38106         * tests/test-rbtreehash_list.c: Likewise.
38107         * tests/test-readlink.c: Likewise.
38108         * tests/test-remove.c: Likewise.
38109         * tests/test-rename.c: Likewise.
38110         * tests/test-renameat.c: Likewise.
38111         * tests/test-rmdir.c: Likewise.
38112         * tests/test-round1.c: Likewise.
38113         * tests/test-roundf1.c: Likewise.
38114         * tests/test-roundl.c: Likewise.
38115         * tests/test-safe-alloc.c: Likewise.
38116         * tests/test-sameacls.c: Likewise.
38117         * tests/test-set-mode-acl.c: Likewise.
38118         * tests/test-setenv.c: Likewise.
38119         * tests/test-sigaction.c: Likewise.
38120         * tests/test-signbit.c: Likewise.
38121         * tests/test-sleep.c: Likewise.
38122         * tests/test-snprintf-posix.c: Likewise.
38123         * tests/test-snprintf.c: Likewise.
38124         * tests/test-sprintf-posix.c: Likewise.
38125         * tests/test-stat-time.c: Likewise.
38126         * tests/test-stat.c: Likewise.
38127         * tests/test-strcasestr.c: Likewise.
38128         * tests/test-strchrnul.c: Likewise.
38129         * tests/test-strerror.c: Likewise.
38130         * tests/test-striconv.c: Likewise.
38131         * tests/test-striconveh.c: Likewise.
38132         * tests/test-striconveha.c: Likewise.
38133         * tests/test-strsignal.c: Likewise.
38134         * tests/test-strstr.c: Likewise.
38135         * tests/test-strtod.c: Likewise.
38136         * tests/test-strverscmp.c: Likewise.
38137         * tests/test-symlink.c: Likewise.
38138         * tests/test-symlinkat.c: Likewise.
38139         * tests/test-trunc1.c: Likewise.
38140         * tests/test-trunc2.c: Likewise.
38141         * tests/test-truncf1.c: Likewise.
38142         * tests/test-truncf2.c: Likewise.
38143         * tests/test-truncl.c: Likewise.
38144         * tests/test-uname.c: Likewise.
38145         * tests/test-unlink.c: Likewise.
38146         * tests/test-unlinkat.c: Likewise.
38147         * tests/test-unsetenv.c: Likewise.
38148         * tests/test-usleep.c: Likewise.
38149         * tests/test-utimens.c: Likewise.
38150         * tests/test-utimensat.c: Likewise.
38151         * tests/test-vasnprintf-posix.c: Likewise.
38152         * tests/test-vasnprintf-posix2.c: Likewise.
38153         * tests/test-vasnprintf.c: Likewise.
38154         * tests/test-vasprintf-posix.c: Likewise.
38155         * tests/test-vasprintf.c: Likewise.
38156         * tests/test-vdprintf-posix.c: Likewise.
38157         * tests/test-vfprintf-posix.c: Likewise.
38158         * tests/test-vprintf-posix.c: Likewise.
38159         * tests/test-vsnprintf-posix.c: Likewise.
38160         * tests/test-vsnprintf.c: Likewise.
38161         * tests/test-vsprintf-posix.c: Likewise.
38162         * tests/test-wcrtomb.c: Likewise.
38163         * tests/test-wcsnrtombs.c: Likewise.
38164         * tests/test-wcsrtombs.c: Likewise.
38165         * tests/test-wctype.c: Likewise.
38166         * tests/test-wcwidth.c: Likewise.
38167         * tests/test-xfprintf-posix.c: Likewise.
38168         * tests/test-xmemdup0.c: Likewise.
38169         * tests/test-xprintf-posix.c: Likewise.
38170         * tests/test-xvasprintf.c: Likewise.
38171         * tests/unicase/test-locale-language.c: Likewise.
38172         * tests/unicase/test-mapping-part1.h: Likewise.
38173         * tests/unicase/test-predicate-part1.h: Likewise.
38174         * tests/unicase/test-u8-casecmp.c: Likewise.
38175         * tests/unicase/test-u8-casecoll.c: Likewise.
38176         * tests/unicase/test-u8-casefold.c: Likewise.
38177         * tests/unicase/test-u8-is-cased.c: Likewise.
38178         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38179         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38180         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38181         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38182         * tests/unicase/test-u8-tolower.c: Likewise.
38183         * tests/unicase/test-u8-totitle.c: Likewise.
38184         * tests/unicase/test-u8-toupper.c: Likewise.
38185         * tests/unicase/test-u16-casecmp.c: Likewise.
38186         * tests/unicase/test-u16-casecoll.c: Likewise.
38187         * tests/unicase/test-u16-casefold.c: Likewise.
38188         * tests/unicase/test-u16-is-cased.c: Likewise.
38189         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38190         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38191         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38192         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38193         * tests/unicase/test-u16-tolower.c: Likewise.
38194         * tests/unicase/test-u16-totitle.c: Likewise.
38195         * tests/unicase/test-u16-toupper.c: Likewise.
38196         * tests/unicase/test-u32-casecmp.c: Likewise.
38197         * tests/unicase/test-u32-casecoll.c: Likewise.
38198         * tests/unicase/test-u32-casefold.c: Likewise.
38199         * tests/unicase/test-u32-is-cased.c: Likewise.
38200         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38201         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38202         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38203         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38204         * tests/unicase/test-u32-tolower.c: Likewise.
38205         * tests/unicase/test-u32-totitle.c: Likewise.
38206         * tests/unicase/test-u32-toupper.c: Likewise.
38207         * tests/unicase/test-ulc-casecmp.c: Likewise.
38208         * tests/unicase/test-ulc-casecoll.c: Likewise.
38209         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38210         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38211         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38212         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38213         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38214         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38215         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38216         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38217         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38218         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38219         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38220         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38221         * tests/unictype/test-bidi_byname.c: Likewise.
38222         * tests/unictype/test-bidi_name.c: Likewise.
38223         * tests/unictype/test-bidi_of.c: Likewise.
38224         * tests/unictype/test-bidi_test.c: Likewise.
38225         * tests/unictype/test-block_list.c: Likewise.
38226         * tests/unictype/test-block_of.c: Likewise.
38227         * tests/unictype/test-block_test.c: Likewise.
38228         * tests/unictype/test-categ_and.c: Likewise.
38229         * tests/unictype/test-categ_and_not.c: Likewise.
38230         * tests/unictype/test-categ_byname.c: Likewise.
38231         * tests/unictype/test-categ_name.c: Likewise.
38232         * tests/unictype/test-categ_none.c: Likewise.
38233         * tests/unictype/test-categ_of.c: Likewise.
38234         * tests/unictype/test-categ_or.c: Likewise.
38235         * tests/unictype/test-categ_test_withtable.c: Likewise.
38236         * tests/unictype/test-combining.c: Likewise.
38237         * tests/unictype/test-decdigit.c: Likewise.
38238         * tests/unictype/test-digit.c: Likewise.
38239         * tests/unictype/test-mirror.c: Likewise.
38240         * tests/unictype/test-numeric.c: Likewise.
38241         * tests/unictype/test-pr_byname.c: Likewise.
38242         * tests/unictype/test-pr_test.c: Likewise.
38243         * tests/unictype/test-predicate-part1.h: Likewise.
38244         * tests/unictype/test-scripts.c: Likewise.
38245         * tests/unictype/test-sy_c_ident.c: Likewise.
38246         * tests/unictype/test-sy_java_ident.c: Likewise.
38247         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38248         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38249         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38250         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38251         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38252         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38253         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38254         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38255         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38256         * tests/uninorm/test-compat-decomposition.c: Likewise.
38257         * tests/uninorm/test-composition.c: Likewise.
38258         * tests/uninorm/test-decomposing-form.c: Likewise.
38259         * tests/uninorm/test-decomposition.c: Likewise.
38260         * tests/uninorm/test-u8-nfc.c: Likewise.
38261         * tests/uninorm/test-u8-nfd.c: Likewise.
38262         * tests/uninorm/test-u8-nfkc.c: Likewise.
38263         * tests/uninorm/test-u8-nfkd.c: Likewise.
38264         * tests/uninorm/test-u8-normcmp.c: Likewise.
38265         * tests/uninorm/test-u8-normcoll.c: Likewise.
38266         * tests/uninorm/test-u16-nfc.c: Likewise.
38267         * tests/uninorm/test-u16-nfd.c: Likewise.
38268         * tests/uninorm/test-u16-nfkc.c: Likewise.
38269         * tests/uninorm/test-u16-nfkd.c: Likewise.
38270         * tests/uninorm/test-u16-normcmp.c: Likewise.
38271         * tests/uninorm/test-u16-normcoll.c: Likewise.
38272         * tests/uninorm/test-u32-nfc.c: Likewise.
38273         * tests/uninorm/test-u32-nfd.c: Likewise.
38274         * tests/uninorm/test-u32-nfkc.c: Likewise.
38275         * tests/uninorm/test-u32-nfkd.c: Likewise.
38276         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38277         * tests/uninorm/test-u32-normcmp.c: Likewise.
38278         * tests/uninorm/test-u32-normcoll.c: Likewise.
38279         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38280         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38281         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38282         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38283         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38284         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38285         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38286         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38287         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38288         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38289         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38290         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38291         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38292         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38293         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38294         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38295         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38296         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38297         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38298         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38299         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38300         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38301         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38302         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38303         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38304         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38305         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38306         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38307         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38308         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38309         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38310         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38311         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38312         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38313         * tests/uniwidth/test-u8-width.c: Likewise.
38314         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38315         * tests/uniwidth/test-u16-width.c: Likewise.
38316         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38317         * tests/uniwidth/test-u32-width.c: Likewise.
38318         * tests/uniwidth/test-uc_width.c: Likewise.
38319         * tests/uniwidth/test-uc_width2.c: Likewise.
38320         * modules/acl-tests (Files): Add tests/macros.h.
38321         * modules/areadlink-tests (Files): Likewise.
38322         * modules/areadlink-with-size-tests (Files): Likewise.
38323         * modules/areadlinkat-tests (Files): Likewise.
38324         * modules/areadlinkat-with-size-tests (Files): Likewise.
38325         * modules/argmatch-tests (Files): Likewise.
38326         * modules/argv-iter-tests (Files): Likewise.
38327         * modules/array-list-tests (Files): Likewise.
38328         * modules/array-mergesort-tests (Files): Likewise.
38329         * modules/array-oset-tests (Files): Likewise.
38330         * modules/avltree-list-tests (Files): Likewise.
38331         * modules/avltree-oset-tests (Files): Likewise.
38332         * modules/avltreehash-list-tests (Files): Likewise.
38333         * modules/base64-tests (Files): Likewise.
38334         * modules/binary-io-tests (Files): Likewise.
38335         * modules/bitrotate-tests (Files): Likewise.
38336         * modules/btowc-tests (Files): Likewise.
38337         * modules/byteswap-tests (Files): Likewise.
38338         * modules/c-ctype-tests (Files): Likewise.
38339         * modules/c-stack-tests (Files): Likewise.
38340         * modules/c-strcase-tests (Files): Likewise.
38341         * modules/c-strcasestr-tests (Files): Likewise.
38342         * modules/c-strstr-tests (Files): Likewise.
38343         * modules/canonicalize-lgpl-tests (Files): Likewise.
38344         * modules/canonicalize-tests (Files): Likewise.
38345         * modules/carray-list-tests (Files): Likewise.
38346         * modules/ceilf-tests (Files): Likewise.
38347         * modules/ceill-tests (Files): Likewise.
38348         * modules/chown-tests (Files): Likewise.
38349         * modules/cloexec-tests (Files): Likewise.
38350         * modules/copy-file-tests (Files): Likewise.
38351         * modules/count-one-bits-tests (Files): Likewise.
38352         * modules/dprintf-posix-tests (Files): Likewise.
38353         * modules/dup2-tests (Files): Likewise.
38354         * modules/dup3-tests (Files): Likewise.
38355         * modules/duplocale-tests (Files): Likewise.
38356         * modules/fbufmode-tests (Files): Likewise.
38357         * modules/fchdir-tests (Files): Likewise.
38358         * modules/fcntl-safer-tests (Files): Likewise.
38359         * modules/fcntl-tests (Files): Likewise.
38360         * modules/fdopendir-tests (Files): Likewise.
38361         * modules/fdutimensat-tests (Files): Likewise.
38362         * modules/fflush-tests (Files): Likewise.
38363         * modules/filevercmp-tests (Files): Likewise.
38364         * modules/flock-tests (Files): Likewise.
38365         * modules/floorf-tests (Files): Likewise.
38366         * modules/floorl-tests (Files): Likewise.
38367         * modules/fnmatch-tests (Files): Likewise.
38368         * modules/fopen-safer-tests (Files): Likewise.
38369         * modules/fopen-tests (Files): Likewise.
38370         * modules/fpending-tests (Files): Likewise.
38371         * modules/fprintf-posix-tests (Files): Likewise.
38372         * modules/fpurge-tests (Files): Likewise.
38373         * modules/freadable-tests (Files): Likewise.
38374         * modules/freadahead-tests (Files): Likewise.
38375         * modules/freading-tests (Files): Likewise.
38376         * modules/freadptr-tests (Files): Likewise.
38377         * modules/freadseek-tests (Files): Likewise.
38378         * modules/freopen-tests (Files): Likewise.
38379         * modules/frexp-nolibm-tests (Files): Likewise.
38380         * modules/frexp-tests (Files): Likewise.
38381         * modules/frexpl-nolibm-tests (Files): Likewise.
38382         * modules/frexpl-tests (Files): Likewise.
38383         * modules/fseek-tests (Files): Likewise.
38384         * modules/fseeko-tests (Files): Likewise.
38385         * modules/fstrcmp-tests (Files): Likewise.
38386         * modules/fsync-tests (Files): Likewise.
38387         * modules/ftell-tests (Files): Likewise.
38388         * modules/ftello-tests (Files): Likewise.
38389         * modules/func-tests (Files): Likewise.
38390         * modules/futimens-tests (Files): Likewise.
38391         * modules/fwritable-tests (Files): Likewise.
38392         * modules/fwriting-tests (Files): Likewise.
38393         * modules/getcwd-tests (Files): Likewise.
38394         * modules/getdate-tests (Files): Likewise.
38395         * modules/getdelim-tests (Files): Likewise.
38396         * modules/getdtablesize-tests (Files): Likewise.
38397         * modules/getgroups-tests (Files): Likewise.
38398         * modules/getline-tests (Files): Likewise.
38399         * modules/getndelim2-tests (Files): Likewise.
38400         * modules/glob-tests (Files): Likewise.
38401         * modules/hash-tests (Files): Likewise.
38402         * modules/i-ring-tests (Files): Likewise.
38403         * modules/iconv-tests (Files): Likewise.
38404         * modules/iconv_open-utf-tests (Files): Likewise.
38405         * modules/idpriv-drop-tests (Files): Likewise.
38406         * modules/idpriv-droptemp-tests (Files): Likewise.
38407         * modules/inet_ntop-tests (Files): Likewise.
38408         * modules/inet_pton-tests (Files): Likewise.
38409         * modules/isblank-tests (Files): Likewise.
38410         * modules/isfinite-tests (Files): Likewise.
38411         * modules/isinf-tests (Files): Likewise.
38412         * modules/isnan-tests (Files): Likewise.
38413         * modules/isnand-nolibm-tests (Files): Likewise.
38414         * modules/isnand-tests (Files): Likewise.
38415         * modules/isnanf-nolibm-tests (Files): Likewise.
38416         * modules/isnanf-tests (Files): Likewise.
38417         * modules/isnanl-nolibm-tests (Files): Likewise.
38418         * modules/isnanl-tests (Files): Likewise.
38419         * modules/lchown-tests (Files): Likewise.
38420         * modules/ldexpl-tests (Files): Likewise.
38421         * modules/link-tests (Files): Likewise.
38422         * modules/linkat-tests (Files): Likewise.
38423         * modules/linked-list-tests (Files): Likewise.
38424         * modules/linkedhash-list-tests (Files): Likewise.
38425         * modules/localename-tests (Files): Likewise.
38426         * modules/lseek-tests (Files): Likewise.
38427         * modules/lstat-tests (Files): Likewise.
38428         * modules/mbmemcasecmp-tests (Files): Likewise.
38429         * modules/mbmemcasecoll-tests (Files): Likewise.
38430         * modules/mbrtowc-tests (Files): Likewise.
38431         * modules/mbscasecmp-tests (Files): Likewise.
38432         * modules/mbscasestr-tests (Files): Likewise.
38433         * modules/mbschr-tests (Files): Likewise.
38434         * modules/mbscspn-tests (Files): Likewise.
38435         * modules/mbsinit-tests (Files): Likewise.
38436         * modules/mbsncasecmp-tests (Files): Likewise.
38437         * modules/mbsnrtowcs-tests (Files): Likewise.
38438         * modules/mbspbrk-tests (Files): Likewise.
38439         * modules/mbspcasecmp-tests (Files): Likewise.
38440         * modules/mbsrchr-tests (Files): Likewise.
38441         * modules/mbsrtowcs-tests (Files): Likewise.
38442         * modules/mbsspn-tests (Files): Likewise.
38443         * modules/mbsstr-tests (Files): Likewise.
38444         * modules/memchr-tests (Files): Likewise.
38445         * modules/memchr2-tests (Files): Likewise.
38446         * modules/memcmp-tests (Files): Likewise.
38447         * modules/memmem-tests (Files): Likewise.
38448         * modules/memrchr-tests (Files): Likewise.
38449         * modules/mkdir-tests (Files): Likewise.
38450         * modules/mkfifo-tests (Files): Likewise.
38451         * modules/mkfifoat-tests (Files): Likewise.
38452         * modules/mknod-tests (Files): Likewise.
38453         * modules/nanosleep-tests (Files): Likewise.
38454         * modules/nl_langinfo-tests (Files): Likewise.
38455         * modules/obstack-printf-tests (Files): Likewise.
38456         * modules/open-tests (Files): Likewise.
38457         * modules/openat-tests (Files): Likewise.
38458         * modules/pipe-filter-gi-tests (Files): Likewise.
38459         * modules/pipe-filter-ii-tests (Files): Likewise.
38460         * modules/pipe2-tests (Files): Likewise.
38461         * modules/popen-safer-tests (Files): Likewise.
38462         * modules/popen-tests (Files): Likewise.
38463         * modules/posixtm-tests (Files): Likewise.
38464         * modules/pread-tests (Files): Likewise.
38465         * modules/printf-frexp-tests (Files): Likewise.
38466         * modules/printf-frexpl-tests (Files): Likewise.
38467         * modules/printf-posix-tests (Files): Likewise.
38468         * modules/priv-set-tests (Files): Likewise.
38469         * modules/quotearg-tests (Files): Likewise.
38470         * modules/random_r-tests (Files): Likewise.
38471         * modules/rawmemchr-tests (Files): Likewise.
38472         * modules/rbtree-list-tests (Files): Likewise.
38473         * modules/rbtree-oset-tests (Files): Likewise.
38474         * modules/rbtreehash-list-tests (Files): Likewise.
38475         * modules/readlink-tests (Files): Likewise.
38476         * modules/remove-tests (Files): Likewise.
38477         * modules/rename-tests (Files): Likewise.
38478         * modules/renameat-tests (Files): Likewise.
38479         * modules/rmdir-tests (Files): Likewise.
38480         * modules/round-tests (Files): Likewise.
38481         * modules/roundf-tests (Files): Likewise.
38482         * modules/roundl-tests (Files): Likewise.
38483         * modules/safe-alloc-tests (Files): Likewise.
38484         * modules/setenv-tests (Files): Likewise.
38485         * modules/sigaction-tests (Files): Likewise.
38486         * modules/signbit-tests (Files): Likewise.
38487         * modules/sleep-tests (Files): Likewise.
38488         * modules/snprintf-posix-tests (Files): Likewise.
38489         * modules/snprintf-tests (Files): Likewise.
38490         * modules/sprintf-posix-tests (Files): Likewise.
38491         * modules/stat-tests (Files): Likewise.
38492         * modules/stat-time-tests (Files): Likewise.
38493         * modules/strcasestr-tests (Files): Likewise.
38494         * modules/strchrnul-tests (Files): Likewise.
38495         * modules/strerror-tests (Files): Likewise.
38496         * modules/striconv-tests (Files): Likewise.
38497         * modules/striconveh-tests (Files): Likewise.
38498         * modules/striconveha-tests (Files): Likewise.
38499         * modules/strsignal-tests (Files): Likewise.
38500         * modules/strstr-tests (Files): Likewise.
38501         * modules/strtod-tests (Files): Likewise.
38502         * modules/strverscmp-tests (Files): Likewise.
38503         * modules/symlink-tests (Files): Likewise.
38504         * modules/symlinkat-tests (Files): Likewise.
38505         * modules/trunc-tests (Files): Likewise.
38506         * modules/truncf-tests (Files): Likewise.
38507         * modules/truncl-tests (Files): Likewise.
38508         * modules/uname-tests (Files): Likewise.
38509         * modules/unicase/cased-tests (Files): Likewise.
38510         * modules/unicase/ignorable-tests (Files): Likewise.
38511         * modules/unicase/locale-language-tests (Files): Likewise.
38512         * modules/unicase/tolower-tests (Files): Likewise.
38513         * modules/unicase/totitle-tests (Files): Likewise.
38514         * modules/unicase/toupper-tests (Files): Likewise.
38515         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38516         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38517         * modules/unicase/u8-casefold-tests (Files): Likewise.
38518         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38519         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38520         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38521         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38522         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38523         * modules/unicase/u8-tolower-tests (Files): Likewise.
38524         * modules/unicase/u8-totitle-tests (Files): Likewise.
38525         * modules/unicase/u8-toupper-tests (Files): Likewise.
38526         * modules/unicase/u16-casecmp-tests (Files): Likewise.
38527         * modules/unicase/u16-casecoll-tests (Files): Likewise.
38528         * modules/unicase/u16-casefold-tests (Files): Likewise.
38529         * modules/unicase/u16-is-cased-tests (Files): Likewise.
38530         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
38531         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
38532         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
38533         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
38534         * modules/unicase/u16-tolower-tests (Files): Likewise.
38535         * modules/unicase/u16-totitle-tests (Files): Likewise.
38536         * modules/unicase/u16-toupper-tests (Files): Likewise.
38537         * modules/unicase/u32-casecmp-tests (Files): Likewise.
38538         * modules/unicase/u32-casecoll-tests (Files): Likewise.
38539         * modules/unicase/u32-casefold-tests (Files): Likewise.
38540         * modules/unicase/u32-is-cased-tests (Files): Likewise.
38541         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
38542         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
38543         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
38544         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
38545         * modules/unicase/u32-tolower-tests (Files): Likewise.
38546         * modules/unicase/u32-totitle-tests (Files): Likewise.
38547         * modules/unicase/u32-toupper-tests (Files): Likewise.
38548         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
38549         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
38550         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
38551         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
38552         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
38553         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
38554         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
38555         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
38556         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
38557         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
38558         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
38559         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
38560         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
38561         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
38562         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
38563         * modules/unictype/bidicategory-name-tests (Files): Likewise.
38564         * modules/unictype/bidicategory-of-tests (Files): Likewise.
38565         * modules/unictype/bidicategory-test-tests (Files): Likewise.
38566         * modules/unictype/block-list-tests (Files): Likewise.
38567         * modules/unictype/block-of-tests (Files): Likewise.
38568         * modules/unictype/block-test-tests (Files): Likewise.
38569         * modules/unictype/category-C-tests (Files): Likewise.
38570         * modules/unictype/category-Cc-tests (Files): Likewise.
38571         * modules/unictype/category-Cf-tests (Files): Likewise.
38572         * modules/unictype/category-Cn-tests (Files): Likewise.
38573         * modules/unictype/category-Co-tests (Files): Likewise.
38574         * modules/unictype/category-Cs-tests (Files): Likewise.
38575         * modules/unictype/category-L-tests (Files): Likewise.
38576         * modules/unictype/category-Ll-tests (Files): Likewise.
38577         * modules/unictype/category-Lm-tests (Files): Likewise.
38578         * modules/unictype/category-Lo-tests (Files): Likewise.
38579         * modules/unictype/category-Lt-tests (Files): Likewise.
38580         * modules/unictype/category-Lu-tests (Files): Likewise.
38581         * modules/unictype/category-M-tests (Files): Likewise.
38582         * modules/unictype/category-Mc-tests (Files): Likewise.
38583         * modules/unictype/category-Me-tests (Files): Likewise.
38584         * modules/unictype/category-Mn-tests (Files): Likewise.
38585         * modules/unictype/category-N-tests (Files): Likewise.
38586         * modules/unictype/category-Nd-tests (Files): Likewise.
38587         * modules/unictype/category-Nl-tests (Files): Likewise.
38588         * modules/unictype/category-No-tests (Files): Likewise.
38589         * modules/unictype/category-P-tests (Files): Likewise.
38590         * modules/unictype/category-Pc-tests (Files): Likewise.
38591         * modules/unictype/category-Pd-tests (Files): Likewise.
38592         * modules/unictype/category-Pe-tests (Files): Likewise.
38593         * modules/unictype/category-Pf-tests (Files): Likewise.
38594         * modules/unictype/category-Pi-tests (Files): Likewise.
38595         * modules/unictype/category-Po-tests (Files): Likewise.
38596         * modules/unictype/category-Ps-tests (Files): Likewise.
38597         * modules/unictype/category-S-tests (Files): Likewise.
38598         * modules/unictype/category-Sc-tests (Files): Likewise.
38599         * modules/unictype/category-Sk-tests (Files): Likewise.
38600         * modules/unictype/category-Sm-tests (Files): Likewise.
38601         * modules/unictype/category-So-tests (Files): Likewise.
38602         * modules/unictype/category-Z-tests (Files): Likewise.
38603         * modules/unictype/category-Zl-tests (Files): Likewise.
38604         * modules/unictype/category-Zp-tests (Files): Likewise.
38605         * modules/unictype/category-Zs-tests (Files): Likewise.
38606         * modules/unictype/category-and-not-tests (Files): Likewise.
38607         * modules/unictype/category-and-tests (Files): Likewise.
38608         * modules/unictype/category-byname-tests (Files): Likewise.
38609         * modules/unictype/category-name-tests (Files): Likewise.
38610         * modules/unictype/category-none-tests (Files): Likewise.
38611         * modules/unictype/category-of-tests (Files): Likewise.
38612         * modules/unictype/category-or-tests (Files): Likewise.
38613         * modules/unictype/category-test-withtable-tests (Files): Likewise.
38614         * modules/unictype/combining-class-tests (Files): Likewise.
38615         * modules/unictype/ctype-alnum-tests (Files): Likewise.
38616         * modules/unictype/ctype-alpha-tests (Files): Likewise.
38617         * modules/unictype/ctype-blank-tests (Files): Likewise.
38618         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
38619         * modules/unictype/ctype-digit-tests (Files): Likewise.
38620         * modules/unictype/ctype-graph-tests (Files): Likewise.
38621         * modules/unictype/ctype-lower-tests (Files): Likewise.
38622         * modules/unictype/ctype-print-tests (Files): Likewise.
38623         * modules/unictype/ctype-punct-tests (Files): Likewise.
38624         * modules/unictype/ctype-space-tests (Files): Likewise.
38625         * modules/unictype/ctype-upper-tests (Files): Likewise.
38626         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
38627         * modules/unictype/decimal-digit-tests (Files): Likewise.
38628         * modules/unictype/digit-tests (Files): Likewise.
38629         * modules/unictype/mirror-tests (Files): Likewise.
38630         * modules/unictype/numeric-tests (Files): Likewise.
38631         * modules/unictype/property-alphabetic-tests (Files): Likewise.
38632         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
38633         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
38634         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
38635         Likewise.
38636         * modules/unictype/property-bidi-block-separator-tests (Files):
38637         Likewise.
38638         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
38639         Likewise.
38640         * modules/unictype/property-bidi-common-separator-tests (Files):
38641         Likewise.
38642         * modules/unictype/property-bidi-control-tests (Files): Likewise.
38643         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
38644         Likewise.
38645         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
38646         Likewise.
38647         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
38648         Likewise.
38649         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
38650         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
38651         Likewise.
38652         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
38653         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
38654         Likewise.
38655         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
38656         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
38657         * modules/unictype/property-bidi-segment-separator-tests (Files):
38658         Likewise.
38659         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
38660         * modules/unictype/property-byname-tests (Files): Likewise.
38661         * modules/unictype/property-combining-tests (Files): Likewise.
38662         * modules/unictype/property-composite-tests (Files): Likewise.
38663         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
38664         * modules/unictype/property-dash-tests (Files): Likewise.
38665         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
38666         * modules/unictype/property-default-ignorable-code-point-tests (Files):
38667         Likewise.
38668         * modules/unictype/property-deprecated-tests (Files): Likewise.
38669         * modules/unictype/property-diacritic-tests (Files): Likewise.
38670         * modules/unictype/property-extender-tests (Files): Likewise.
38671         * modules/unictype/property-format-control-tests (Files): Likewise.
38672         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
38673         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
38674         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
38675         * modules/unictype/property-hex-digit-tests (Files): Likewise.
38676         * modules/unictype/property-hyphen-tests (Files): Likewise.
38677         * modules/unictype/property-id-continue-tests (Files): Likewise.
38678         * modules/unictype/property-id-start-tests (Files): Likewise.
38679         * modules/unictype/property-ideographic-tests (Files): Likewise.
38680         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
38681         * modules/unictype/property-ids-trinary-operator-tests (Files):
38682         Likewise.
38683         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
38684         * modules/unictype/property-iso-control-tests (Files): Likewise.
38685         * modules/unictype/property-join-control-tests (Files): Likewise.
38686         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
38687         * modules/unictype/property-line-separator-tests (Files): Likewise.
38688         * modules/unictype/property-logical-order-exception-tests (Files):
38689         Likewise.
38690         * modules/unictype/property-lowercase-tests (Files): Likewise.
38691         * modules/unictype/property-math-tests (Files): Likewise.
38692         * modules/unictype/property-non-break-tests (Files): Likewise.
38693         * modules/unictype/property-not-a-character-tests (Files): Likewise.
38694         * modules/unictype/property-numeric-tests (Files): Likewise.
38695         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
38696         * modules/unictype/property-other-default-ignorable-code-point-tests
38697         (Files): Likewise.
38698         * modules/unictype/property-other-grapheme-extend-tests (Files):
38699         Likewise.
38700         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
38701         * modules/unictype/property-other-id-start-tests (Files): Likewise.
38702         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
38703         * modules/unictype/property-other-math-tests (Files): Likewise.
38704         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
38705         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
38706         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
38707         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
38708         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
38709         * modules/unictype/property-private-use-tests (Files): Likewise.
38710         * modules/unictype/property-punctuation-tests (Files): Likewise.
38711         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
38712         * modules/unictype/property-radical-tests (Files): Likewise.
38713         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
38714         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
38715         * modules/unictype/property-space-tests (Files): Likewise.
38716         * modules/unictype/property-terminal-punctuation-tests (Files):
38717         Likewise.
38718         * modules/unictype/property-test-tests (Files): Likewise.
38719         * modules/unictype/property-titlecase-tests (Files): Likewise.
38720         * modules/unictype/property-unassigned-code-value-tests (Files):
38721         Likewise.
38722         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
38723         * modules/unictype/property-uppercase-tests (Files): Likewise.
38724         * modules/unictype/property-variation-selector-tests (Files): Likewise.
38725         * modules/unictype/property-white-space-tests (Files): Likewise.
38726         * modules/unictype/property-xid-continue-tests (Files): Likewise.
38727         * modules/unictype/property-xid-start-tests (Files): Likewise.
38728         * modules/unictype/property-zero-width-tests (Files): Likewise.
38729         * modules/unictype/scripts-tests (Files): Likewise.
38730         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
38731         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
38732         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
38733         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
38734         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
38735         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
38736         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
38737         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
38738         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
38739         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
38740         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
38741         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
38742         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
38743         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
38744         * modules/uninorm/composition-tests (Files): Likewise.
38745         * modules/uninorm/decomposing-form-tests (Files): Likewise.
38746         * modules/uninorm/decomposition-tests (Files): Likewise.
38747         * modules/uninorm/filter-tests (Files): Likewise.
38748         * modules/uninorm/nfc-tests (Files): Likewise.
38749         * modules/uninorm/nfd-tests (Files): Likewise.
38750         * modules/uninorm/nfkc-tests (Files): Likewise.
38751         * modules/uninorm/nfkd-tests (Files): Likewise.
38752         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
38753         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
38754         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
38755         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
38756         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
38757         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
38758         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
38759         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38760         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
38761         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
38762         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
38763         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
38764         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38765         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
38766         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
38767         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
38768         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
38769         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38770         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
38771         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
38772         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
38773         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
38774         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38775         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
38776         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
38777         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
38778         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
38779         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
38780         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
38781         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
38782         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
38783         * modules/uniwidth/u8-width-tests (Files): Likewise.
38784         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
38785         * modules/uniwidth/u16-width-tests (Files): Likewise.
38786         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
38787         * modules/uniwidth/u32-width-tests (Files): Likewise.
38788         * modules/uniwidth/width-tests (Files): Likewise.
38789         * modules/unlink-tests (Files): Likewise.
38790         * modules/unsetenv-tests (Files): Likewise.
38791         * modules/usleep-tests (Files): Likewise.
38792         * modules/utimens-tests (Files): Likewise.
38793         * modules/utimensat-tests (Files): Likewise.
38794         * modules/vasnprintf-posix-tests (Files): Likewise.
38795         * modules/vasnprintf-tests (Files): Likewise.
38796         * modules/vasprintf-posix-tests (Files): Likewise.
38797         * modules/vasprintf-tests (Files): Likewise.
38798         * modules/vdprintf-posix-tests (Files): Likewise.
38799         * modules/vfprintf-posix-tests (Files): Likewise.
38800         * modules/vprintf-posix-tests (Files): Likewise.
38801         * modules/vsnprintf-posix-tests (Files): Likewise.
38802         * modules/vsnprintf-tests (Files): Likewise.
38803         * modules/vsprintf-posix-tests (Files): Likewise.
38804         * modules/wcrtomb-tests (Files): Likewise.
38805         * modules/wcsnrtombs-tests (Files): Likewise.
38806         * modules/wcsrtombs-tests (Files): Likewise.
38807         * modules/wctype-tests (Files): Likewise.
38808         * modules/wcwidth-tests (Files): Likewise.
38809         * modules/xmemdup0-tests (Files): Likewise.
38810         * modules/xprintf-posix-tests (Files): Likewise.
38811         * modules/xvasprintf-tests (Files): Likewise.
38812
38813 2009-12-24  Eric Blake  <ebb9@byu.net>
38814
38815         test-nanosleep: fix typo
38816         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
38817         patch.
38818         Reported by Bruno Haible.
38819
38820 2009-12-24  Bruno Haible  <bruno@clisp.org>
38821
38822         Reduce namespace pollution on glibc systems.
38823         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
38824         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
38825         systems.
38826         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
38827         <getopt.h> on glibc systems.
38828         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
38829         systems.
38830         * lib/fcntl.c: Include <unistd.h> here instead.
38831
38832 2009-12-24  Bruno Haible  <bruno@clisp.org>
38833
38834         * lib/stdlib.in.h (includes): Fix typo in today's commit.
38835
38836 2009-12-24  Eric Blake  <ebb9@byu.net>
38837
38838         tests: add signature checks
38839         * tests/signature.h (SIGNATURE_CHECK): New file.
38840         * modules/atexit-tests (Files): Use it.
38841         * modules/btowc-tests (Files): Likewise.
38842         * modules/canonicalize-lgpl-tests (Files): Likewise.
38843         * modules/ceilf-tests (Files): Likewise.
38844         * modules/ceill-tests (Files): Likewise.
38845         * modules/chown-tests (Files): Likewise.
38846         * modules/dprintf-posix-tests (Files): Likewise.
38847         * modules/dup2-tests (Files): Likewise.
38848         * modules/dup3-tests (Files): Likewise.
38849         * modules/duplocale-tests (Files): Likewise.
38850         * modules/fchdir-tests (Files): Likewise.
38851         * modules/fcntl-tests (Files): Likewise.
38852         * modules/fdopendir-tests (Files): Likewise.
38853         * modules/fflush-tests (Files): Likewise.
38854         * modules/flock-tests (Files): Likewise.
38855         * modules/floorf-tests (Files): Likewise.
38856         * modules/floorl-tests (Files): Likewise.
38857         * modules/fnmatch-tests (Files): Likewise.
38858         * modules/fopen-tests (Files): Likewise.
38859         * modules/fprintf-posix-tests (Files): Likewise.
38860         * modules/freopen-tests (Files): Likewise.
38861         * modules/frexp-nolibm-tests (Files): Likewise.
38862         * modules/frexp-tests (Files): Likewise.
38863         * modules/frexpl-nolibm-tests (Files): Likewise.
38864         * modules/frexpl-tests (Files): Likewise.
38865         * modules/fseek-tests (Files): Likewise.
38866         * modules/fseeko-tests (Files): Likewise.
38867         * modules/fsync-tests (Files): Likewise.
38868         * modules/ftell-tests (Files): Likewise.
38869         * modules/ftello-tests (Files): Likewise.
38870         * modules/futimens-tests (Files): Likewise.
38871         * modules/getaddrinfo-tests (Files): Likewise.
38872         * modules/getcwd-tests (Files): Likewise.
38873         * modules/getdelim-tests (Files): Likewise.
38874         * modules/getdtablesize-tests (Files): Likewise.
38875         * modules/getgroups-tests (Files): Likewise.
38876         * modules/gethostname-tests (Files): Likewise.
38877         * modules/getline-tests (Files): Likewise.
38878         * modules/getopt-posix-tests (Files): Likewise.
38879         * modules/gettimeofday-tests (Files): Likewise.
38880         * modules/glob-tests (Files): Likewise.
38881         * modules/iconv-tests (Files): Likewise.
38882         * modules/inet_ntop-tests (Files): Likewise.
38883         * modules/inet_pton-tests (Files): Likewise.
38884         * modules/isblank-tests (Files): Likewise.
38885         * modules/lchown-tests (Files): Likewise.
38886         * modules/ldexpl-tests (Files): Likewise.
38887         * modules/link-tests (Files): Likewise.
38888         * modules/linkat-tests (Files): Likewise.
38889         * modules/lseek-tests (Files): Likewise.
38890         * modules/lstat-tests (Files): Likewise.
38891         * modules/mbrtowc-tests (Files): Likewise.
38892         * modules/mbsinit-tests (Files): Likewise.
38893         * modules/mbsnrtowcs-tests (Files): Likewise.
38894         * modules/mbsrtowcs-tests (Files): Likewise.
38895         * modules/memchr-tests (Files): Likewise.
38896         * modules/memcmp-tests (Files): Likewise.
38897         * modules/memmem-tests (Files): Likewise.
38898         * modules/memrchr-tests (Files): Likewise.
38899         * modules/mkdir-tests (Files): Likewise.
38900         * modules/mkfifo-tests (Files): Likewise.
38901         * modules/mkfifoat-tests (Files): Likewise.
38902         * modules/mknod-tests (Files): Likewise.
38903         * modules/nanosleep-tests (Files): Likewise.
38904         * modules/nl_langinfo-tests (Files): Likewise.
38905         * modules/obstack-printf-tests (Files): Likewise.
38906         * modules/open-tests (Files): Likewise.
38907         * modules/openat-tests (Files): Likewise.
38908         * modules/perror-tests (Files): Likewise.
38909         * modules/pipe2-tests (Files): Likewise.
38910         * modules/poll-tests (Files): Likewise.
38911         * modules/popen-tests (Files): Likewise.
38912         * modules/posix_spawn-tests (Files): Likewise.
38913         * modules/posix_spawnp-tests (Files): Likewise.
38914         * modules/pread-tests (Files): Likewise.
38915         * modules/printf-posix-tests (Files): Likewise.
38916         * modules/pty-tests (Files): Likewise.
38917         * modules/random_r-tests (Files): Likewise.
38918         * modules/rawmemchr-tests (Files): Likewise.
38919         * modules/readlink-tests (Files): Likewise.
38920         * modules/remove-tests (Files): Likewise.
38921         * modules/rename-tests (Files): Likewise.
38922         * modules/renameat-tests (Files): Likewise.
38923         * modules/rmdir-tests (Files): Likewise.
38924         * modules/round-tests (Files): Likewise.
38925         * modules/roundf-tests (Files): Likewise.
38926         * modules/roundl-tests (Files): Likewise.
38927         * modules/select-tests (Files): Likewise.
38928         * modules/setenv-tests (Files): Likewise.
38929         * modules/sigaction-tests (Files): Likewise.
38930         * modules/sleep-tests (Files): Likewise.
38931         * modules/snprintf-posix-tests (Files): Likewise.
38932         * modules/snprintf-tests (Files): Likewise.
38933         * modules/sprintf-posix-tests (Files): Likewise.
38934         * modules/stat-tests (Files): Likewise.
38935         * modules/strcasestr-tests (Files): Likewise.
38936         * modules/strchrnul-tests (Files): Likewise.
38937         * modules/strerror-tests (Files): Likewise.
38938         * modules/strsignal-tests (Files): Likewise.
38939         * modules/strstr-tests (Files): Likewise.
38940         * modules/strtod-tests (Files): Likewise.
38941         * modules/strverscmp-tests (Files): Likewise.
38942         * modules/symlink-tests (Files): Likewise.
38943         * modules/symlinkat-tests (Files): Likewise.
38944         * modules/times-tests (Files): Likewise.
38945         * modules/trunc-tests (Files): Likewise.
38946         * modules/truncf-tests (Files): Likewise.
38947         * modules/truncl-tests (Files): Likewise.
38948         * modules/tsearch-tests (Files): Likewise.
38949         * modules/uname-tests (Files): Likewise.
38950         * modules/unlink-tests (Files): Likewise.
38951         * modules/unsetenv-tests (Files): Likewise.
38952         * modules/usleep-tests (Files): Likewise.
38953         * modules/utimensat-tests (Files): Likewise.
38954         * modules/vasprintf-tests (Files): Likewise.
38955         * modules/vdprintf-posix-tests (Files): Likewise.
38956         * modules/vfprintf-posix-tests (Files): Likewise.
38957         * modules/vprintf-posix-tests (Files): Likewise.
38958         * modules/vsnprintf-posix-tests (Files): Likewise.
38959         * modules/vsnprintf-tests (Files): Likewise.
38960         * modules/vsprintf-posix-tests (Files): Likewise.
38961         * modules/wcrtomb-tests (Files): Likewise.
38962         * modules/wcsnrtombs-tests (Files): Likewise.
38963         * modules/wcsrtombs-tests (Files): Likewise.
38964         * modules/wcwidth-tests (Files): Likewise.
38965         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
38966         * tests/test-isinf.c (isinf): Likewise.
38967         * tests/test-isnan.c (isnan): Likewise.
38968         * tests/test-signbit.c (signbit): Likewise.
38969         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
38970         declaration, either as macro or with correct signature.
38971         (select): Ensure function under test is declared with correct
38972         signature in correct header.
38973         * tests/test-atexit.c (atexit): Likewise.
38974         * tests/test-btowc.c (btowc): Likewise.
38975         * tests/test-canonicalize-lgpl.c (realpath)
38976         (canonicalize_file_name): Likewise.
38977         * tests/test-ceilf1.c (ceilf): Likewise.
38978         * tests/test-ceill.c (ceill): Likewise.
38979         * tests/test-chown.c (chown): Likewise.
38980         * tests/test-dprintf-posix.c (dprintf): Likewise.
38981         * tests/test-dup2.c (dup2): Likewise.
38982         * tests/test-dup3.c (dup3): Likewise.
38983         * tests/test-duplocale.c (duplocale): Likewise.
38984         * tests/test-fchdir.c (fchdir): Likewise.
38985         * tests/test-fchownat.c (fchownat): Likewise.
38986         * tests/test-fcntl.c (fcntl): Likewise.
38987         * tests/test-fdopendir.c (fdopendir): Likewise.
38988         * tests/test-fflush.c (fflush): Likewise.
38989         * tests/test-flock.c (flock): Likewise.
38990         * tests/test-floorf1.c (floorf): Likewise.
38991         * tests/test-floorl.c (floorl): Likewise.
38992         * tests/test-fnmatch.c (fnmatch): Likewise.
38993         * tests/test-fopen.c (fopen): Likewise.
38994         * tests/test-fprintf-posix.c (fprintf): Likewise.
38995         * tests/test-freopen.c (freopen): Likewise.
38996         * tests/test-frexp.c (frexp): Likewise.
38997         * tests/test-frexpl.c (frexpl): Likewise.
38998         * tests/test-fseek.c (fseek): Likewise.
38999         * tests/test-fseeko.c (fseeko): Likewise.
39000         * tests/test-fstatat.c (fstatat): Likewise.
39001         * tests/test-fsync.c (fsync): Likewise.
39002         * tests/test-ftell.c (ftell): Likewise.
39003         * tests/test-ftello.c (ftello): Likewise.
39004         * tests/test-futimens.c (futimens): Likewise.
39005         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39006         (gai_strerror): Likewise.
39007         * tests/test-getcwd.c (getcwd): Likewise.
39008         * tests/test-getdelim.c (getdelim): Likewise.
39009         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39010         * tests/test-getgroups.c (getgroups): Likewise.
39011         * tests/test-gethostname.c (gethostname): Likewise.
39012         * tests/test-getline.c (getline): Likewise.
39013         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39014         Likewise.
39015         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39016         * tests/test-glob.c (glob, globfree): Likewise.
39017         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39018         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39019         * tests/test-inet_pton.c (inet_pton): Likewise.
39020         * tests/test-isblank.c (isblank): Likewise.
39021         * tests/test-lchown.c (lchown): Likewise.
39022         * tests/test-ldexpl.c (ldexpl): Likewise.
39023         * tests/test-link.c (link): Likewise.
39024         * tests/test-linkat.c (linkat): Likewise.
39025         * tests/test-lseek.c (lseek): Likewise.
39026         * tests/test-lstat.c (lstat): Likewise.
39027         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39028         * tests/test-mbsinit.c (mbsinit): Likewise.
39029         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39030         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39031         * tests/test-memchr.c (memchr): Likewise.
39032         * tests/test-memcmp.c (memcmp): Likewise.
39033         * tests/test-memmem.c (memmem): Likewise.
39034         * tests/test-memrchr.c (memrchr): Likewise.
39035         * tests/test-mkdir.c (mkdir): Likewise.
39036         * tests/test-mkdirat.c (mkdirat): Likewise.
39037         * tests/test-mkfifo.c (mkfifo): Likewise.
39038         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39039         * tests/test-mknod.c (mknod): Likewise.
39040         * tests/test-nanosleep.c (nanosleep): Likewise.
39041         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39042         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39043         Likewise.
39044         * tests/test-open.c (open): Likewise.
39045         * tests/test-openat.c (openat): Likewise.
39046         * tests/test-perror.c (perror): Likewise.
39047         * tests/test-pipe2.c (pipe2): Likewise.
39048         * tests/test-poll.c (poll): Likewise.
39049         * tests/test-popen.c (popen, pclose): Likewise.
39050         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39051         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39052         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39053         (posix_spawn_file_actions_destroy)
39054         (posix_spawn_file_actions_addclose)
39055         (posix_spawn_file_actions_addopen)
39056         (posix_spawn_file_actions_adddup2): Likewise.
39057         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39058         * tests/test-pread.c (pread): Likewise.
39059         * tests/test-printf-posix.c (printf): Likewise.
39060         * tests/test-pty.c (openpty, forkpty): Likewise.
39061         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39062         (random_r): Likewise.
39063         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39064         * tests/test-readlink.c (readlink): Likewise.
39065         * tests/test-remove.c (remove): Likewise.
39066         * tests/test-rename.c (rename): Likewise.
39067         * tests/test-renameat.c (renameat): Likewise.
39068         * tests/test-rmdir.c (rmdir): Likewise.
39069         * tests/test-round1.c (round): Likewise.
39070         * tests/test-roundf1.c (roundf): Likewise.
39071         * tests/test-roundl.c (roundl): Likewise.
39072         * tests/test-setenv.c (setenv): Likewise.
39073         * tests/test-sigaction.c (sigaction): Likewise.
39074         * tests/test-sleep.c (sleep): Likewise.
39075         * tests/test-snprintf.c (snprintf): Likewise.
39076         * tests/test-sprintf-posix.c (sprintf): Likewise.
39077         * tests/test-stat.c (stat): Likewise.
39078         * tests/test-stpncpy.c (stpncpy): Likewise.
39079         * tests/test-strcasestr.c (strcasestr): Likewise.
39080         * tests/test-strchrnul.c (strchrnul): Likewise.
39081         * tests/test-strerror.c (strerror): Likewise.
39082         * tests/test-strsignal.c (strsignal): Likewise.
39083         * tests/test-strstr.c (strstr): Likewise.
39084         * tests/test-strtod.c (strtod): Likewise.
39085         * tests/test-strverscmp.c (strverscmp): Likewise.
39086         * tests/test-symlink.c (symlink): Likewise.
39087         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39088         * tests/test-times.c (times): Likewise.
39089         * tests/test-trunc1.c (trunc): Likewise.
39090         * tests/test-truncf1.c (truncf): Likewise.
39091         * tests/test-truncl.c (truncl): Likewise.
39092         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39093         Likewise.
39094         * tests/test-uname.c (uname): Likewise.
39095         * tests/test-unlink.c (unlink): Likewise.
39096         * tests/test-unlinkat.c (unlinkat): Likewise.
39097         * tests/test-unsetenv.c (unsetenv): Likewise.
39098         * tests/test-usleep.c (usleep): Likewise.
39099         * tests/test-utimensat.c (utimensat): Likewise.
39100         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39101         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39102         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39103         * tests/test-vprintf-posix.c (vprintf): Likewise.
39104         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39105         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39106         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39107         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39108         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39109         * tests/test-wcwidth.c (wcwidth): Likewise.
39110
39111         build: pull in conditional headers during GNULIB_POSIXCHECK
39112         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39113         definitions from any conditionally-included headers.
39114         * lib/stdlib.in.h (includes): Likewise.
39115         * lib/unistd.in.h (includes): Likewise.
39116
39117 2009-12-24  Bruno Haible  <bruno@clisp.org>
39118
39119         * tests/test-argv-iter.c: Include header file being tested immediately
39120         after config.h.
39121         * tests/test-base64.c: Likewise.
39122         * tests/test-flock.c: Likewise.
39123         * tests/test-fsync.c: Likewise.
39124         * tests/test-getdate.c: Likewise.
39125         * tests/test-getndelim2.c: Likewise.
39126         * tests/test-isfinite.c: Likewise.
39127         * tests/test-isinf.c: Likewise.
39128         * tests/test-strerror.c: Likewise.
39129         * tests/test-strsignal.c: Likewise.
39130
39131 2009-12-23  Eric Blake  <ebb9@byu.net>
39132
39133         unistd: work around cygwin bug
39134         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39135         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39136         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39137
39138 2009-12-23  Bruno Haible  <bruno@clisp.org>
39139
39140         localename: More tests.
39141         * tests/test-localename.c (SIZEOF): New macro.
39142         (categories): New variable.
39143         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39144         test_locale_name_default): Add test w.r.t. thread locale.
39145         (test_locale_name_thread): New function.
39146         (main): Invoke it.
39147
39148         localename: Make aware of thread locale.
39149         * lib/localename.h (gl_locale_name_thread): New declaration.
39150         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39151         behaviour with respect to thread locale.
39152         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39153         <langinfo.h>, glthread/lock.h.
39154         (SIZE_BITS): New macro.
39155         (string_hash): New function.
39156         (struct hash_node): New type.
39157         (HASH_TABLE_SIZE): New macro.
39158         (struniq_hash_table, struniq_lock): New variables.
39159         (struniq): New function.
39160         (gl_locale_name_thread): New function.
39161         (gl_locale_name): Invoke it.
39162         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39163         * modules/localename (Depends-on): Add lock.
39164         Reported by Mike Gran <spk121@yahoo.com>.
39165
39166 2009-12-23  Eric Blake  <ebb9@byu.net>
39167
39168         va-args: new module
39169         * modules/va-args: New file.
39170         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39171         * MODULES.html.sh (Core language properties): Mention it.
39172
39173         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39174         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39175         named alias for __attribute__((__unused__)).
39176         * lib/chown.c: Update client.
39177         * lib/fchmodat.c: Likewise.
39178         * lib/fts.c: Likewise.
39179         * lib/getdate.y: Likewise.
39180         * lib/getgroups.c: Likewise.
39181         * lib/getopt.c: Likewise.
39182         * lib/getugroups.c: Likewise.
39183         * lib/mkdir.c: Likewise.
39184         * lib/mkfifo.c: Likewise.
39185         * lib/mkfifoat.c: Likewise.
39186         * lib/mknod.c: Likewise.
39187         * lib/mknodat.c: Likewise.
39188         * lib/readlink.c: Likewise.
39189         * lib/se-context.in.h: Likewise.
39190         * lib/se-selinux.in.h: Likewise.
39191         * lib/sockets.c: Likewise.
39192         * lib/symlink.c: Likewise.
39193         * lib/symlinkat.c: Likewise.
39194         * lib/unicodeio.c: Likewise.
39195         * lib/unistr.h: Likewise.
39196         * tests/test-areadlink.c: Likewise.
39197         * tests/test-areadlinkat.c: Likewise.
39198         * tests/test-filenamecat.c: Likewise.
39199         * tests/test-fseeko.c: Likewise.
39200         * tests/test-ftello.c: Likewise.
39201         * tests/test-getdate.c: Likewise.
39202         * tests/test-getgroups.c: Likewise.
39203         * tests/test-gethostname.c: Likewise.
39204         * tests/test-quotearg.c: Likewise.
39205         * tests/test-version-etc.c: Likewise.
39206         * tests/test-xalloc-die.c: Likewise.
39207         * tests/test-xfprintf-posix.c: Likewise.
39208         * tests/test-xprintf-posix.c: Likewise.
39209         * tests/test-xvasprintf.c: Likewise.
39210
39211         tests: avoid compiler warnings
39212         * tests/test-fcntl.c (main): Delete unused parameters.
39213         * tests/test-freopen-safer.c (main): Likewise.
39214         * tests/test-xalloc-die.c (main): Mark unused parameters.
39215         * tests/test-fseeko.c (main): Likewise.
39216         * tests/test-ftello.c (main): Likewise.
39217         * tests/test-nanosleep.c (main): Avoid declaration warning.
39218         * tests/test-sleep.c (main): Likewise.
39219         * tests/test-unsetenv.c (main): Silence warning about string
39220         literal.
39221         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39222
39223 2009-12-23  Bruno Haible  <bruno@clisp.org>
39224
39225         * tests/test-localename.c (test_locale_name): New function, extracted
39226         from main. Also test mixed situations.
39227         (test_locale_name_posix, test_locale_name_environ,
39228         test_locale_name_default): New functions.
39229         (main): Invoke them all.
39230         * modules/localename-tests (configure.ac): Test for newlocale.
39231
39232 2009-12-23  Bruno Haible  <bruno@clisp.org>
39233
39234         unistd: Ensure getcwd gets declared before being overridden.
39235         * lib/unistd.in.h: Conditionally include <io.h>.
39236
39237 2009-12-22  Bruno Haible  <bruno@clisp.org>
39238
39239         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39240         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39241         (gl_WCHAR_H): Invoke it.
39242         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39243         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39244         Reported by Karl Berry <karl@freefriends.org>.
39245
39246 2009-12-22  Eric Blake  <ebb9@byu.net>
39247
39248         math, unistd: avoid redundant includes
39249         * lib/math.in.h (isnan): No need to re-include <math.h>.
39250         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39251
39252         getsubopt: work around cygwin bug
39253         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39254         avoid conflicting with system getsubopt.
39255         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39256         bug.
39257
39258         getopt: synchronize from glibc
39259         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39260         parameter order.  Adjust all callers.
39261         (_getopt_internal_r, main): Adjust quoting in error messages.
39262         Drop considerations for outdated POSIX 1003.2 error message.
39263         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39264         callers.
39265         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39266
39267         test-getopt: test stderr behavior
39268         * modules/getopt-posix-tests (Depends-on): Add dup2.
39269         * tests/test-getopt.c (ASSERT): Avoid stderr.
39270         (main): Move stderr to a temporary file.
39271         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39272         Instead, add parameter to inform caller if output occurred.
39273         (test_getopt): Adjust all existing tests to expect silence, and
39274         add new tests of leading ":".
39275         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39276         glibc shortcomings with leading "-:" or "+:" in optstring.
39277         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39278         Likewise.
39279         * doc/posix-functions/getopt.texi (getopt): Likewise.
39280
39281         test-getopt: enhance test
39282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39283         supports optind=0.
39284         * tests/test-getopt.c (OPTIND_MIN): Move...
39285         * tests/test-getopt.h (OPTIND_MIN): ...here.
39286         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39287         Require that optind=0 works, since modern BSD supports it in
39288         addition to optreset, and since coreutils expects it.
39289         (test_getopt_long_only): New test.
39290         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39291         glibc shortcomings with 'W;', and enforcement of optind=0.
39292         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39293         Likewise.
39294
39295 2009-12-21  Bruno Haible  <bruno@clisp.org>
39296
39297         localename: Improvements for MacOS X and Cygwin.
39298         * lib/localename.h (gl_locale_name_environ): New declaration.
39299         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39300         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39301         (gl_locale_name_posix): Invoke it.
39302         (gl_locale_name_default): Add comments. Use Windows native API also on
39303         Cygwin.
39304
39305 2009-12-21  Bruno Haible  <bruno@clisp.org>
39306
39307         Update list of Win32 locale ids.
39308         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39309         (LANG_SAMI): Renamed from LANG_SAAMI.
39310         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39311         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39312         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39313         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39314         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39315         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39316         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39317         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39318         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39319         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39320         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39321         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39322         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39323         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39324         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39325         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39326         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39327         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39328         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39329         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39330         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39331         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39332         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39333         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39334         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39335         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39336         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39337         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39338         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39339         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39340         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39341         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39342         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39343         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39344         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39345         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39346         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39347         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39348         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39349         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39350         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39351         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39352         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39353         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39354         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39355         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39356         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39357         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39358         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39359         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39360         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39361         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39362         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39363         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39364         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39365         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39366         Add more languages and countries for Sami, Sorbian. Add more countries
39367         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39368         for Pashto. Change country for Syriac, Tswana.
39369
39370 2009-12-21  Eric Blake  <ebb9@byu.net>
39371
39372         test-utimens: avoid spurious failure
39373         * tests/test-chown.h (nap): Factor...
39374         * tests/nap.h: ...into new file.
39375         * tests/test-lchown.h (nap): Avoid duplication.
39376         * tests/test-utimens-common.h (nap): Use shared implementation,
39377         necessary on file systems with 1-second resolution.
39378         * modules/chown-tests (Files): Include new file.
39379         * modules/fdutimensat-tests (Files): Likewise.
39380         * modules/futimens-tests (Files): Likewise.
39381         * modules/lchown-tests (Files): Likewise.
39382         * modules/openat-tests (Files): Likewise.
39383         * modules/utimens-tests (Files): Likewise.
39384         * modules/utimensat-tests (Files): Likewise.
39385
39386 2009-12-19  Eric Blake  <ebb9@byu.net>
39387
39388         futimens, utimensat: work around Linux bug
39389         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39390         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39391         * lib/utimensat.c (rpl_utimensat): Work around it.
39392         * lib/futimens.c (rpl_futimens): Adjust comment.
39393
39394         utimens: work around Linux ctime bug
39395         * lib/utimens.c (detect_ctime_bug): New helper function.
39396         (update_timespec): Differentiate between workaround needed for
39397         this bug vs. what is needed for systems that lack utimensat.
39398         (fdutimens, lutimens): Work around bug.
39399
39400         utimens: check for ctime update
39401         * tests/test-utimens-common.h (check_ctime): Define.
39402         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39403         * tests/test-futimens.h (test_futimens): Likewise.
39404         * tests/test-lutimens.h (test_lutimens): Likewise.
39405         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39406         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39407
39408 2009-12-19  Bruno Haible  <bruno@clisp.org>
39409
39410         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39411         * tests/test-dprintf-posix2.sh: New file.
39412         * tests/test-dprintf-posix2.c: New file.
39413         * modules/dprintf-posix-tests (Files): Add them.
39414         (configure.ac): Check for getrlimit and setrlimit.
39415         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39416
39417 2009-12-19  Bruno Haible  <bruno@clisp.org>
39418
39419         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39420         * tests/test-fprintf-posix3.sh: New file.
39421         * tests/test-fprintf-posix3.c: New file.
39422         * modules/fprintf-posix-tests (Files): Add them.
39423         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39424
39425 2009-12-19  Eric Blake  <ebb9@byu.net>
39426
39427         dirfd: fix prototype
39428         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39429         * lib/dirfd.c (dirfd): Likewise.
39430
39431         canonicalize: reduce memory usage
39432         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39433         allocation to size.
39434         Reported by Solar Designer <solar@openwall.com>.
39435
39436 2009-12-19  Bruno Haible  <bruno@clisp.org>
39437
39438         New module attribute 'Applicability'.
39439         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39440         * gnulib-tool: New option --extract-applicability.
39441         (func_usage): Document it.
39442         (sed_extract_prog): Recognize it.
39443         (func_get_applicability): New function.
39444         (func_import): Generalize handling of 'link-warning' module.
39445         * modules/link-warning (Applicability): New section.
39446         * modules/arg-nonnull (Applicability): New section.
39447         Repoted by Simon Josefsson <simon@josefsson.org>.
39448
39449 2009-12-19  Bruno Haible  <bruno@clisp.org>
39450
39451         fflush: tweak
39452         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39453         * lib/fseeko.c (rpl_fseeko): Likewise.
39454
39455 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39456
39457         * lib/gl_list.h: Fix typo in comment.
39458
39459 2009-12-16  Eric Blake  <ebb9@byu.net>
39460
39461         fcntl: use to simplify other modules
39462         * modules/cloexec (Depends-on): Add fcntl.
39463         * modules/fchdir (Depends-on): Likewise.
39464         * modules/fd-safer-flag (Depends-on): Likewise.
39465         * modules/unistd-safer (Depends-on): Likewise.
39466         * modules/dup3 (configure.ac): Set module indicator.
39467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39468         missing.
39469         * lib/fchdir.c (_gl_register_dup): Fix comment.
39470         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39471         * lib/dup-safer.c (dup_safer): Likewise.
39472         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39473         * lib/dup3.c (dup3): Likewise.
39474         * tests/test-fchdir.c (main): Enhance test.
39475         Fixes a dup_cloexec bug reported by Ondřej Vašík.
39476
39477         fcntl: port portions of fcntl to mingw
39478         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39479         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39480         replacement for mingw.
39481         * modules/fcntl (Description): Update.
39482         (Depends-on): Add dup2.
39483         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39484         * modules/fcntl-h (Makefile.am): Substitute it.
39485         * lib/fcntl.in.h (fcntl): Update declaration.
39486         (F_DUPFD, F_GETFD): New macros, when needed.
39487         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39488         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39489         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39490         we now guarantee.
39491
39492         fcntl: work around cygwin bug in F_DUPFD
39493         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39494         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39495         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39496         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39497         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39498
39499         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39500         * modules/fcntl (Files): List new files.
39501         (configure.ac): Run a test.
39502         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39503         * lib/fcntl.c (rpl_fcntl): Likewise.
39504         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39505         (gl_FCNTL_H): Always replace fcntl.h.
39506         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39507         * lib/fcntl.in.h (fcntl): Declare replacement.
39508         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39509         needed, plus a witness.
39510         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39511         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39512         * tests/test-fcntl.c: New file.
39513         * modules/fcntl-tests: Likewise.
39514
39515         binary-io: avoid potential compilation warning
39516         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39517         directives.
39518
39519         fflush: avoid compilation error on NetBSD
39520         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39521         between off_t and fpos_t, since the latter is sometimes a struct.
39522         * lib/fseeko.c (rpl_fseeko): Likewise.
39523         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39524
39525 2009-12-15  Eric Blake  <ebb9@byu.net>
39526
39527         fcntl-h, stdio, sys_ioctl: fix declarations
39528         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
39529         function must not take arguments.
39530         * lib/sys_ioctl.in.h (ioctl): Likewise.
39531         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
39532         (open): Add a link warning.
39533
39534 2009-12-15  Jim Meyering  <meyering@redhat.com>
39535
39536         areadlink, areadlink-with-size: relax license to LGPLv2+
39537         * modules/areadlink (License): Relax to LGPLv2+.
39538         * modules/areadlink-with-size (License): Likewise.
39539
39540 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
39541             Bruno Haible  <bruno@clisp.org>
39542
39543         *printf: Fix memory leak.
39544         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
39545         * lib/vfprintf.c (vfprintf): Likewise.
39546         * lib/dprintf.c (dprintf): Likewise.
39547         * lib/vdprintf.c (vdprintf): Likewise.
39548
39549 2009-12-14  Eric Blake  <ebb9@byu.net>
39550
39551         accept4: adjust module dependencies
39552         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
39553
39554         utimens: one more try at avoiding compiler warning
39555         * lib/utimens.c (lutimens): Lower scope of result.
39556
39557 2009-12-13  Bruno Haible  <bruno@clisp.org>
39558
39559         Move the malloc checking from module 'list' to new module 'xlist'.
39560         * modules/xlist: New file.
39561         * lib/gl_xlist.h: New file.
39562         * lib/gl_xlist.c: New file.
39563         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
39564         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
39565         gl_list_add_last, gl_list_add_before, gl_list_add_after,
39566         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
39567         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
39568         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
39569         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
39570         gl_sortedlist_nx_add): New declarations.
39571         (struct gl_list_implementation): Rename and change methods accordingly.
39572         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
39573         (gl_list_nx_create): Renamed from gl_list_create.
39574         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39575         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39576         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39577         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39578         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39579         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39580         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39581         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39582         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
39583         gl_list_create_empty.
39584         (gl_list_nx_create): Renamed from gl_list_create.
39585         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39586         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39587         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39588         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39589         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39590         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39591         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39592         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39593         * lib/gl_array_list.c: Don't include xalloc.h.
39594         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
39595         NULL upon out-of-memory.
39596         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
39597         out-of-memory.
39598         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
39599         Change return type to 'int'.
39600         (gl_array_nx_set_at): Renamed from gl_array_set_at.
39601         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39602         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
39603         upon out-of-memory.
39604         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
39605         upon out-of-memory.
39606         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
39607         upon out-of-memory.
39608         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
39609         upon out-of-memory.
39610         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
39611         out-of-memory.
39612         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
39613         Update.
39614         (gl_array_list_implementation): Update.
39615         * lib/gl_carray_list.c: Don't include xalloc.h.
39616         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
39617         Return NULL upon out-of-memory.
39618         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
39619         out-of-memory.
39620         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
39621         Change return type to 'int'.
39622         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
39623         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39624         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
39625         upon out-of-memory.
39626         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
39627         upon out-of-memory.
39628         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
39629         out-of-memory.
39630         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
39631         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
39632         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
39633         Update.
39634         (gl_carray_list_implementation): Update.
39635         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
39636         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
39637         gl_linked_create_empty. Return NULL upon out-of-memory.
39638         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
39639         out-of-memory.
39640         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
39641         Change return type to 'int'. Return -1 upon out-of-memory.
39642         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
39643         out-of-memory.
39644         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
39645         upon out-of-memory.
39646         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
39647         upon out-of-memory.
39648         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
39649         NULL upon out-of-memory.
39650         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
39651         upon out-of-memory.
39652         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
39653         out-of-memory.
39654         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
39655         Update.
39656         * lib/gl_linked_list.c: Don't include xalloc.h.
39657         (gl_linked_list_implementation): Update.
39658         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
39659         (add_to_bucket): Change return type to 'int'.
39660         (gl_linkedhash_list_implementation): Update.
39661         * lib/gl_anytree_list1.h (free_subtree): New function.
39662         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
39663         gl_tree_create_empty. Return NULL upon out-of-memory.
39664         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
39665         Change return type to 'int'. Return -1 upon out-of-memory.
39666         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
39667         out-of-memory.
39668         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
39669         (gl_tree_remove_node): New function, moved here from
39670         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
39671         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
39672         Update.
39673         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
39674         malloc, not xmalloc. Return NULL upon out-of-memory.
39675         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39676         out-of-memory.
39677         (gl_tree_remove_node_from_tree): New function, extracted from
39678         gl_tree_remove_node.
39679         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39680         upon out-of-memory.
39681         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39682         out-of-memory.
39683         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39684         upon out-of-memory.
39685         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39686         upon out-of-memory.
39687         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39688         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
39689         not xmalloc. Return NULL upon out-of-memory.
39690         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39691         out-of-memory.
39692         (gl_tree_remove_node_from_tree): New function, extracted from
39693         gl_tree_remove_node.
39694         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39695         upon out-of-memory.
39696         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39697         out-of-memory.
39698         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39699         upon out-of-memory.
39700         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39701         upon out-of-memory.
39702         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39703         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
39704         gl_anytree_list1.h before gl_anyavltree_list2.h.
39705         (gl_avltree_list_implementation): Update.
39706         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
39707         gl_anytree_list1.h before gl_anyavltree_list2.h.
39708         (gl_rbtree_list_implementation): Update.
39709         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
39710         Change return type to 'int'. Return -1 upon out-of-memory. Use
39711         __builtin_expect.
39712         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
39713         (gl_avltreehash_list_implementation): Update.
39714         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
39715         (gl_rbtreehash_list_implementation): Update.
39716         * modules/array-list (Depends-on): Remove xalloc.
39717         * modules/carray-list (Depends-on): Likewise.
39718         * modules/linked-list (Depends-on): Likewise.
39719         * modules/linkedhash-list (Depends-on): Likewise.
39720         * modules/avltree-list (Depends-on): Likewise.
39721         * modules/rbtree-list (Depends-on): Likewise.
39722         * modules/avltreehash-list (Depends-on): Likewise.
39723         * modules/rbtreehash-list (Depends-on): Likewise.
39724
39725         * modules/xsublist: New file.
39726         * lib/gl_xsublist.h: New file.
39727         * lib/gl_xsublist.c: New file.
39728         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
39729         (gl_sublist_nx_create): New declaration.
39730         * lib/gl_sublist.c: Don't include xalloc.h.
39731         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
39732         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
39733         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
39734         Change return type to 'int'. Return -1 upon out-of-memory.
39735         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
39736         upon out-of-memory.
39737         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
39738         NULL upon out-of-memory.
39739         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
39740         upon out-of-memory.
39741         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
39742         NULL upon out-of-memory.
39743         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
39744         NULL upon out-of-memory.
39745         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
39746         upon out-of-memory.
39747         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
39748         (gl_sublist_list_implementation): Update.
39749         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
39750         upon out-of-memory.
39751         * modules/sublist (Depends-on): Remove xalloc.
39752
39753         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
39754         * tests/test-carray_list.c: Likewise.
39755         * tests/test-linked_list.c: Likewise.
39756         * tests/test-linkedhash_list.c: Likewise.
39757         * tests/test-avltree_list.c: Likewise.
39758         * tests/test-rbtree_list.c: Likewise.
39759         * tests/test-avltreehash_list.c: Likewise.
39760         * tests/test-rbtreehash_list.c: Likewise.
39761         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
39762         * modules/carray-list-tests (Makefile.am): Likewise.
39763         * modules/linked-list-tests (Makefile.am): Likewise.
39764         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39765         * modules/avltree-list-tests (Makefile.am): Likewise.
39766         * modules/rbtree-list-tests (Makefile.am): Likewise.
39767         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39768         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39769
39770         * NEWS: Mention the changes.
39771
39772         * lib/clean-temp.c: Include gl_xlist.h.
39773         * modules/clean-temp (Depends-on): Add xlist.
39774
39775         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
39776         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
39777
39778         * tests/test-array_oset.c: Include gl_xlist.h.
39779         * modules/array-oset-tests (Depends-on): Add xlist.
39780
39781         Reported by José E. Marchesi <jemarch@gnu.org>.
39782
39783 2009-12-13  Bruno Haible  <bruno@clisp.org>
39784
39785         Move the malloc checking from module 'oset' to new module 'xoset'.
39786         * modules/xoset: New file.
39787         * lib/gl_xoset.h: New file.
39788         * lib/gl_xoset.c: New file.
39789         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
39790         declarations.
39791         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
39792         (struct gl_oset_implementation): Rename and change methods accordingly.
39793         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
39794         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39795         'int'. Mark as __warn_unused_result__.
39796         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
39797         gl_oset_create_empty.
39798         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39799         'int'.
39800         * lib/gl_array_oset.c: Don't include xalloc.h.
39801         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
39802         malloc, not xmalloc.
39803         (grow): Change return type to 'int'. Don't call xalloc_die.
39804         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
39805         to 'int'.
39806         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
39807         'int'.
39808         (gl_array_oset_implementation): Update.
39809         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
39810         gl_tree_create_empty.
39811         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
39812         'int'.
39813         * lib/gl_avltree_oset.c: Don't include xalloc.h.
39814         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39815         xmalloc.
39816         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39817         not xmalloc.
39818         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39819         xmalloc.
39820         (gl_avltree_oset_implementation): Update.
39821         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
39822         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39823         xmalloc.
39824         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39825         not xmalloc.
39826         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39827         xmalloc.
39828         (gl_rbtree_oset_implementation): Update.
39829         * modules/array-oset (Depends-on): Remove xalloc.
39830         * modules/avltree-oset (Depends-on): Likewise.
39831         * modules/rbtree-oset (Depends-on): Likewise.
39832         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
39833         * tests/test-avltree_oset.c: Likewise.
39834         * tests/test-rbtree_oset.c: Likewise.
39835         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39836         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
39837         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39838         * NEWS: Mention the change.
39839
39840 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
39841
39842         maint.mk: allow a project to override release-prep commands
39843         * top/maint.mk (alpha, beta, stable): Move release-preparatory
39844         commands into a new rule.
39845         (release-prep): New rule.
39846         (release-prep-hook): New overridable variable.
39847
39848 2009-12-13  Bruno Haible  <bruno@clisp.org>
39849
39850         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
39851
39852 2009-12-13  Jim Meyering  <meyering@redhat.com>
39853
39854         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
39855         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
39856
39857 2009-12-12  Bruno Haible  <bruno@clisp.org>
39858
39859         duplocale: Tweak.
39860         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
39861
39862 2009-12-12  Karl Berry  <karl@gnu.org>
39863
39864         * config/srclist.txt (strtoll.c): tab changes, no more sync.
39865
39866 2009-12-12  Bruno Haible  <bruno@clisp.org>
39867
39868         * m4/po.m4: Undo incorrect untabification.
39869
39870 2009-12-12  Bruno Haible  <bruno@clisp.org>
39871
39872         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
39873         * modules/c-strtod (Depends-on): Add locale.
39874         * modules/c-strtold (Depends-on): Likewise.
39875
39876 2009-12-12  Bruno Haible  <bruno@clisp.org>
39877
39878         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
39879
39880 2009-12-11  Eric Blake  <ebb9@byu.net>
39881
39882         setenv: relax requirement in light of POSIX ruling
39883         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
39884         not NULL.
39885         * tests/test-setenv.c (main): Relax test.
39886         * tests/test-unsetenv.c (main): Likewise.
39887         * doc/posix-functions/setenv.texi (setenv): Document this.
39888         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39889
39890 2009-12-11  Bruno Haible  <bruno@clisp.org>
39891
39892         New module 'fd-safer-flag'.
39893         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
39894         * lib/dup-safer.c (dup_safer_flag): Remove function.
39895         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
39896         * lib/fd-safer.c (fd_safer_flag): Remove function.
39897         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
39898         * modules/cloexec (configure.ac): Drop indicator macro.
39899         * modules/fd-safer-flag: New file.
39900         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
39901         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
39902         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
39903
39904 2009-12-11  Bruno Haible  <bruno@clisp.org>
39905
39906         Tests for module 'nl_langinfo'.
39907         * modules/nl_langinfo-tests: New file.
39908         * tests/test-nl_langinfo.sh: New file.
39909         * tests/test-nl_langinfo.c: New file.
39910
39911         New module 'nl_langinfo'.
39912         * lib/nl_langinfo.c: New file.
39913         * m4/nl_langinfo.m4: New file.
39914         * modules/nl_langinfo: New file.
39915         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
39916
39917 2009-12-11  Bruno Haible  <bruno@clisp.org>
39918
39919         Tests for module 'langinfo'.
39920         * modules/langinfo-tests: New file.
39921         * tests/test-langinfo.c: New file.
39922
39923         New module 'langinfo'.
39924         * lib/langinfo.in.h: New file.
39925         * m4/langinfo_h.m4: New file.
39926         * modules/langinfo: New file.
39927         * doc/posix-headers/langinfo.texi: Mention the new module.
39928
39929 2009-12-11  Bruno Haible  <bruno@clisp.org>
39930
39931         * lib/config.charset: Untabify.
39932
39933 2009-12-11  Bruno Haible  <bruno@clisp.org>
39934
39935         * modules/unistd-safer (configure.ac): Drop indicator macro.
39936
39937 2009-12-11  Bruno Haible  <bruno@clisp.org>
39938
39939         Move pipe2-safer code to its own file.
39940         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
39941         * lib/pipe-safer.c (pipe2_safer): Remove function.
39942         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
39943         (Makefile.am): Add it to lib_SOURCES.
39944
39945 2009-12-10  Bruno Haible  <bruno@clisp.org>
39946
39947         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
39948
39949 2009-12-10  Bruno Haible  <bruno@clisp.org>
39950
39951         Declare which arguments expect non-NULL values, for GCC and clang.
39952         * build-aux/arg-nonnull.h: New file.
39953         * modules/arg-nonnull: New file.
39954         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
39955         (inet_ntop, inet_pton): Use it.
39956         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
39957         (closedir, dirfd, opendir, scandir, alphasort): Use it.
39958         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
39959         (open, openat): Use it.
39960         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
39961         (fnmatch): Use it.
39962         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
39963         (getopt, getopt_long, getopt_long_only): Use it.
39964         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
39965         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
39966         Use it.
39967         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
39968         (iconv_open): Use it.
39969         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
39970         (strtoimax, strtoumax): Use it.
39971         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
39972         (duplocale): Use it.
39973         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
39974         (frexp, frexpl): Use it.
39975         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
39976         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
39977         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
39978         (tsearch, tfind, tdelete, twalk): Use it.
39979         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
39980         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
39981         sigpending): Use it.
39982         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
39983         (posix_spawn, posix_spawnp, posix_spawnattr_init,
39984         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
39985         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
39986         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
39987         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
39988         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
39989         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
39990         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
39991         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
39992         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
39993         Use it.
39994         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
39995         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
39996         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
39997         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
39998         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
39999         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40000         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40001         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40002         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40003         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40004         strtoull, unsetenv): Use it.
40005         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40006         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40007         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40008         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40009         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40010         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40011         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40012         (strcasecmp, strncasecmp): Use it.
40013         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40014         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40015         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40016         rpl_setsockopt): Use it.
40017         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40018         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40019         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40020         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40021         (gettimeofday): Use it.
40022         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40023         (times): Use it.
40024         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40025         (uname): Use it.
40026         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40027         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40028         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40029         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40030         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40031         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40032         unlinkat, write): Use it.
40033         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40034         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40035         * lib/argv-iter.h: Include arg-nonnull.h.
40036         (_ATTRIBUTE_NONNULL_): Remove macro.
40037         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40038         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40039         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40040         optimization.
40041         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40042         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40043         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40044         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40045         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40046         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40047         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40048         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40049         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40050         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40051         * modules/dirent (Depends-on): Add arg-nonnull.
40052         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40053         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40054         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40055         * modules/fnmatch (Depends-on): Add arg-nonnull.
40056         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40057         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40058         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40059         * modules/glob (Depends-on): Add arg-nonnull.
40060         (Makefile.am): Insert arg-nonnull.h into glob.h.
40061         * modules/iconv_open (Depends-on): Add arg-nonnull.
40062         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40063         * modules/inttypes (Depends-on): Add arg-nonnull.
40064         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40065         * modules/locale (Depends-on): Add arg-nonnull.
40066         (Makefile.am): Insert arg-nonnull.h into locale.h.
40067         * modules/math (Depends-on): Add arg-nonnull.
40068         (Makefile.am): Insert arg-nonnull.h into math.h.
40069         * modules/netdb (Depends-on): Add arg-nonnull.
40070         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40071         * modules/search (Depends-on): Add arg-nonnull.
40072         (Makefile.am): Insert arg-nonnull.h into search.h.
40073         * modules/signal (Depends-on): Add arg-nonnull.
40074         (Makefile.am): Insert arg-nonnull.h into signal.h.
40075         * modules/spawn (Depends-on): Add arg-nonnull.
40076         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40077         * modules/stdio (Depends-on): Add arg-nonnull.
40078         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40079         * modules/stdlib (Depends-on): Add arg-nonnull.
40080         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40081         * modules/string (Depends-on): Add arg-nonnull.
40082         (Makefile.am): Insert arg-nonnull.h into string.h.
40083         * modules/strings (Depends-on): Add arg-nonnull.
40084         (Makefile.am): Insert arg-nonnull.h into strings.h.
40085         * modules/sys_socket (Depends-on): Add arg-nonnull.
40086         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40087         * modules/sys_stat (Depends-on): Add arg-nonnull.
40088         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40089         * modules/sys_time (Depends-on): Add arg-nonnull.
40090         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40091         * modules/sys_times (Depends-on): Add arg-nonnull.
40092         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40093         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40094         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40095         * modules/time (Depends-on): Add arg-nonnull.
40096         (Makefile.am): Insert arg-nonnull.h into time.h.
40097         * modules/unistd (Depends-on): Add arg-nonnull.
40098         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40099         * modules/wchar (Depends-on): Add arg-nonnull.
40100         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40101         * modules/argv-iter (Depends-on): Add arg-nonnull.
40102         * tests/test-canonicalize.c (null_ptr): New function.
40103         (main): Use it.
40104         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40105         (main): Use it.
40106         * tests/test-memmem.c (null_ptr): New function.
40107         (main): Use it.
40108         Reported by Jim Meyering.
40109
40110 2009-12-10  Bruno Haible  <bruno@clisp.org>
40111
40112         Use spaces for indentation, not tabs.
40113         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40114         * m4/*.m4: Untabify.
40115         * build-aux/*.h: Untabify.
40116         * tests/**/*.[hc]: Untabify.
40117         * README: New section "Indent with spaces, not TABs", based on
40118         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40119         * NEWS: Mention the change.
40120
40121 2009-12-10  Bruno Haible  <bruno@clisp.org>
40122
40123         pty test: Fix link error.
40124         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40125         test_pty_LDADD.
40126
40127 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40128
40129         * modules/pty: New file.
40130         * modules/pty-tests: New file.
40131         * m4/pty.m4: New file.
40132         * tests/test-pty.c: New file.
40133         * doc/glibc-headers/pty.texi: Modified.
40134         * doc/glibc-functions/forkpty.texi: Modified.
40135         * doc/glibc-functions/openpty.texi: Modified.
40136
40137 2009-12-10  Bruno Haible  <bruno@clisp.org>
40138
40139         Avoid syntax error in C++ mode.
40140         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40141
40142 2009-12-10  Bruno Haible  <bruno@clisp.org>
40143
40144         Use sed with option -e.
40145         * gnulib-tool (func_version, func_emit_copyright_notice,
40146         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40147         option -e to sed.
40148         * modules/link-warning (Makefile.am): Likewise.
40149
40150 2009-12-10  Jim Meyering  <meyering@redhat.com>
40151
40152         mgetgroups: do not write bytes beyond end of malloc'd buffer
40153         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40154         username, we call getgroups with a one-element-shorter buffer,
40155         but still told it the length was original, max_n_groups.
40156
40157 2009-12-09  Eric Blake  <ebb9@byu.net>
40158
40159         cloexec: relax license
40160         * modules/cloexec (Maintainer): Add myself.
40161         (License): Use LGPL, not GPL.
40162
40163         link-warning: optimize generation
40164         * modules/link-warning (Makefile.am): Reduce process usage.
40165
40166 2009-12-09  Bruno Haible  <bruno@clisp.org>
40167
40168         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40169         workaround was added on 2009-11-17.
40170
40171 2009-12-09  Jim Meyering  <meyering@redhat.com>
40172             Bruno Haible  <bruno@clisp.org>
40173
40174         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40175         * modules/link-warning (Makefile.am): Make the comment-removing sed
40176         command more robust in the face of bootstrap-prepended comment lines.
40177
40178 2009-12-09  Bruno Haible  <bruno@clisp.org>
40179
40180         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40181         most one group.
40182
40183 2009-12-09  Simon Josefsson <simon@josefsson.org>
40184             Bruno Haible  <bruno@clisp.org>
40185
40186         * build-aux/link-warning.h: Add copyright notice.
40187         * modules/link-warning (Makefile.am): Generate link-warning.h from
40188         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40189         * NEWS: Mention change in link-warning module.
40190         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40191         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40192         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40193         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40194         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40195         * modules/math (Makefile.am): Add dependency to math.h.
40196         * modules/search (Makefile.am): Add dependency to search.h.
40197         * modules/signal (Makefile.am): Add dependency to signal.h.
40198         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40199         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40200         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40201         * modules/string (Makefile.am): Add dependency to string.h.
40202         * modules/strings (Makefile.am): Add dependency to strings.h.
40203         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40204         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40205         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40206         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40207         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40208         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40209         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40210         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40211         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40212
40213 2009-12-09  Bruno Haible  <bruno@clisp.org>
40214
40215         fchdir: Optimize away rpl_fstat when possible.
40216         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40217         REPLACE_OPEN_DIRECTORY.
40218         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40219
40220 2009-12-09  Bruno Haible  <bruno@clisp.org>
40221
40222         * lib/fchdir.c: Update comment.
40223
40224 2009-12-09  Bruno Haible  <bruno@clisp.org>
40225
40226         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40227
40228 2009-12-08  Eric Blake  <ebb9@byu.net>
40229
40230         fchdir: avoid memory leak on re-registration.
40231         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40232
40233 2009-12-08  Jim Meyering  <meyering@redhat.com>
40234
40235         init.sh: avoid Solaris 10 /bin/sh portability problem
40236         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40237         sourced script:
40238           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40239           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40240           bar
40241         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40242         and two tests used that idiom.
40243         * tests/init.sh: Update suggested usage comments.
40244         (path_prepend_): New function, to be used in place
40245         of the --src-path=DIR option.
40246         (setup_): Move PATH-prepending code into path_prepend_.
40247         * tests/test-pread.sh: Adapt to new usage.
40248         * tests/test-xalloc-die.sh: Likewise.
40249
40250 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40251
40252         * doc/gnulib.texi (Glibc pty.h): Add.
40253         * doc/glibc-functions/forkpty.texi: Add.
40254         * doc/glibc-functions/openpty.texi: Add.
40255         Suggested by Bruno Haible.
40256
40257 2009-12-08  Eric Blake  <ebb9@byu.net>
40258
40259         fchdir: fix logic bugs
40260         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40261         * tests/test-fchdir.c (main): Enhance test.
40262         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40263         is in use.
40264
40265         dup2: fix logic bugs
40266         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40267         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40268         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40269         exists.
40270         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40271
40272 2009-12-07  Eric Blake  <ebb9@byu.net>
40273
40274         unlink: fix m4 detection
40275         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40276
40277         unistd-safer: add unit test
40278         * modules/unistd-safer-tests: New file.
40279         * tests/test-dup-safer.c: Likewise.
40280         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40281         * tests/test-dup2.c (setmode): Likewise.
40282         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40283
40284         cloexec: preserve text vs. binary across dup_cloexec
40285         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40286         mode.
40287         * modules/dup2-tests (Depends-on): Add binary-io.
40288         * modules/cloexec-tests (Depends-on): Likewise.
40289         * tests/test-dup2.c (setmode, is_mode): New helpers.
40290         (main): Add tests that translation mode is preserved.
40291         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40292         Reported by Bruno Haible.
40293
40294         mgetgroups: reduce duplicate listings
40295         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40296         resulting array.
40297         * tests/test-chown.h (test_chown): Simplify client.
40298         * tests/test-lchown.h (test_lchown): Likewise.
40299
40300 2009-12-06  Bruno Haible  <bruno@clisp.org>
40301
40302         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40303         value.
40304
40305 2009-12-06  Bruno Haible  <bruno@clisp.org>
40306
40307         * lib/progname.c: Include stdio.h, stdlib.h.
40308         (set_program_name): Reject a NULL argument.
40309
40310 2009-12-05  Eric Blake  <ebb9@byu.net>
40311
40312         pipe2-safer: new module
40313         * modules/pipe2-safer: New file.
40314         * lib/unistd-safer.h (pipe2_safer): New prototype.
40315         * lib/unistd--.h (pipe2): New wrapper.
40316         * lib/pipe-safer.c (pipe2_safer): New function.
40317         * modules/pipe (Depends-on): Add pipe2-safer.
40318         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40319
40320         stdlib-safer: preserve cloexec flag for mkostemp[s]
40321         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40322         fd_safer_flag.
40323
40324         unistd-safer: allow preservation of cloexec status via flag
40325         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40326         prototypes.
40327         * lib/dup-safer.c (dup_safer_flag): New function.
40328         * lib/fd-safer.c (fd_safer_flag): Likewise.
40329         * modules/cloexec (configure.ac): Set witness.
40330
40331         test-dup2: enhance test
40332         * modules/dup2-tests (Depends-on): Add cloexec.
40333         * tests/test-dup2.c (main): Enhance test.
40334
40335         cloexec: add dup_cloexec
40336         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40337         header and comments.
40338         * lib/cloexec.c (set_cloexec_flag): Add comments.
40339         (dup_cloexec): New function, with mingw implementation borrowed
40340         from...
40341         * lib/w32spawn.h (dup_noinherit): ...here.
40342         * modules/execute (Depends-on): Add cloexec.
40343         * modules/pipe (Depends-on): Likewise.
40344         * modules/cloexec (Depends-on): Add dup2.
40345         * modules/cloexec-tests (Files): New file.
40346         * tests/test-cloexec.c: Likewise.
40347
40348         test-xalloc-die: fix test for mingw
40349         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40350         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40351         directory and .exe suffix off argv[0] output.
40352
40353         test-fseeko: fix test for mingw
40354         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40355         than undefining fseek, so test will pass on mingw.
40356
40357 2009-12-05  Bruno Haible  <bruno@clisp.org>
40358
40359         * lib/progname.h (set_program_name): Clarify specification.
40360         * lib/progname.c (set_program_name): Likewise.
40361         Reported by Jim Meyering.
40362
40363 2009-12-05  Jim Meyering  <meyering@redhat.com>
40364
40365         maint.mk: backslash-escape parens in default regexp
40366         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40367         backslash-escape the literal parentheses.
40368
40369         maint.mk: news-date-check: use grep -E
40370         * top/maint.mk (today): Define a Make variable, not a...
40371         (news-date-check): ...shell variable.
40372         (news-date-regexp): Use the Make variable.
40373         Use grep's -E option.  Change the failing diagnostic to mention
40374         the variable, $(news-date-regexp).
40375
40376 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40377
40378         maintainer-makefile: allow customization of NEWS entry format
40379         * top/maint.mk (news-date-regexp): New overridable variable.
40380         (news-date-check): Use it.
40381
40382 2009-12-04  Eric Blake  <ebb9@byu.net>
40383
40384         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40385         * lib/mgetgroups.h (xgetgroups): New prototype.
40386         * lib/mgetgroups.c (xgetgroups): New wrapper.
40387         (mgetgroups): Handle ENOSYS.
40388         * modules/mgetgroups (Depends-on): Add realloc.
40389         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40390
40391         mgetgroups: avoid argument promotion issues with -1
40392         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40393         for invalid gid_t.
40394         * tests/test-chown.h (getegid, test_chown): Likewise.
40395         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40396
40397 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40398
40399         exclude: Fix header file problems.
40400         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40401
40402 2009-12-01  Jim Meyering  <meyering@redhat.com>
40403
40404         fts: fts_open: do not let an empty string cause immediate failure
40405         This is required in support of GNU rm, for which the command
40406         "rm A '' B" must process and remove both A and B, in spite of
40407         the empty string argument.
40408         * lib/fts.c (fts_open): Do not let the presence of an empty string
40409         cause fts_open to fail immediately.  Most fts-using tools must be
40410         able to process all arguments, in order, and can be expected to
40411         diagnose such arguments themselves.
40412
40413 2009-11-30  Eric Blake  <ebb9@byu.net>
40414
40415         utimens: fix compilation error
40416         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40417         Declare variable at right scope.
40418
40419 2009-11-29  Jim Meyering  <meyering@redhat.com>
40420
40421         bootstrap: handle perl-5.11's changed --version output
40422         * build-aux/bootstrap (get_version): Handle perl separately,
40423         since perl-5.11's --version output is different.
40424
40425 2009-11-28  Jim Meyering  <meyering@redhat.com>
40426
40427         userspec: depend on the inttostr module, too
40428         * modules/userspec (Depends-on): Add inttostr.
40429
40430         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40431         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40432         number of MAXUID when it evaluates to (uid_t) -1.
40433         Likewise for group ID.  Reported by Matt McCutchen in
40434         <http://savannah.gnu.org/bugs/?28113>
40435
40436         userspec: reformat to use spaces, not TABs
40437         * lib/userspec.c: Expand TABs to spaces.
40438         Add Emacs' "indent-tabs-mode: nil" hint.
40439
40440 2009-11-27  Eric Blake  <ebb9@byu.net>
40441
40442         getopt-gnu: flush out another BSD bug
40443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40444         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40445         flush out BSD bug.
40446         * tests/test-getopt.h (test_getopt): End lists with NULL.
40447         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40448         (test_getopt_long_posix): Enhance test.
40449         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40450         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40451         getopt-gnu.
40452         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40453         Likewise.
40454
40455 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40456
40457         * modules/idpriv-droptemp-tests (Notice): Fix text.
40458
40459 2009-11-27  Jim Meyering  <meyering@redhat.com>
40460
40461         test-xalloc-die: avoid spurious failure due to libtool argv difference
40462         In a libtool-enabled project, this test would fail due to a difference
40463         in the emitted program name, e.g.,
40464         -test-xalloc-die: memory exhausted
40465         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40466         Use program to avoid that.
40467         * modules/xalloc-die-tests (Depends-on): Add progname.
40468         * tests/test-xalloc-die.c: Include progname.h".
40469         (program_name): Remove decl.
40470         (main): Call set_program_name.
40471         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40472
40473 2009-11-26  Richard Jones  <rjones@redhat.com>
40474
40475         w32sock: leave win32 error in place.
40476         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40477
40478 2009-11-26  Eric Blake  <ebb9@byu.net>
40479
40480         init.sh: suggest to use skip_ and fail_ functions in comments
40481         * tests/init.sh: Add a sentence.
40482
40483 2009-11-25  Bruno Haible  <bruno@clisp.org>
40484
40485         init.sh: add documentation in comments
40486         * tests/init.sh: Add some developer and user documentation.
40487
40488 2009-11-26  Jim Meyering  <meyering@redhat.com>
40489
40490         init.sh: accommodate even those who specify bogus srcdir manually
40491         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40492         configure-time tests to be sanitized, so that there is no need to
40493         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40494         (with no double quotes) suffices.  However, since tests may be
40495         invoked manually, and since you may explicitly set srcdir to the
40496         name of a directory containing spaces, do quote its uses here.
40497         * tests/test-pread.sh: Likewise.
40498         Suggested by Bruno Haible.
40499
40500         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40501         * tests/test-pread.sh: Write no data into the pipe, because
40502         test-pread actually reads none.  This avoids a diagnostic,
40503         "bash: echo: write error: Broken pipe", that arises in the unusual
40504         event something is ignoring SIGPIPE, and might be interpreted
40505         as some sort of failure.  Reported by Bruno Haible.
40506
40507 2009-11-25  Jim Meyering  <meyering@redhat.com>
40508
40509         test-pread: cover failure with ESPIPE and EINVAL
40510         * tests/test-pread.c (main): Test for failure, too.
40511         * tests/test-pread.sh: Invoke with stdin on a pipe.
40512         Suggested by Eric Blake.
40513
40514         pread: improvement and fix
40515         * modules/pread (Depends-on): Depend on lseek, for portability to
40516         e.g., mingw.  Suggested by Eric Blake.
40517         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40518
40519         unistd.in.h: correct declaration of pread
40520         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40521         Reported by Richard W.M. Jones.
40522
40523         test-pread.sh: distribute the test script
40524         * modules/pread-tests (Files): Include test-pread.sh.
40525
40526         test-pread.sh: clean up
40527         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
40528         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
40529         That is unnecessary, since it's always ".".
40530         Suggestion from Eric Blake.
40531
40532         test-pread.sh: make executable
40533         * tests/test-pread.sh: Set executable bit.
40534         Reported by Eric Blake.
40535
40536         correct typo in test-pread.sh
40537         * tests/test-pread.sh: Add #! line.
40538
40539         test pread
40540         * tests/test-pread.c: New file.
40541         * tests/test-pread.sh: Likewise.
40542         * modules/pread-tests: Likewise.
40543
40544         pread: new module
40545         * modules/pread: New file.
40546         * lib/unistd.in.h (pread): Define/declare.
40547         * lib/pread.c (pread): New file.
40548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
40549         * modules/unistd (Makefile.am): Substitute witnesses.
40550         * doc/posix-functions/pread.texi (pread): Update.
40551         * MODULES.html.sh: Add pread.
40552
40553 2009-11-25  Jim Meyering  <meyering@redhat.com>
40554
40555         tests/init.sh: new file to be used via most *.sh tests
40556         * tests/init.sh: New file.
40557
40558 2009-11-25  Eric Blake  <ebb9@byu.net>
40559
40560         utimens: work around older Linux failure with symlinks
40561         * lib/utimens.c (lutimensat_works_really): New variable.
40562         (fdutimens, lutimens): Use it to manage kernels that support
40563         nanosecond times on files, but not on symlinks.
40564         Reported by Ondřej Vašík.
40565
40566         utimes: fix configure grammar
40567         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
40568
40569 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
40570
40571         regex: Fix fastmap for multibyte character ranges.
40572         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
40573         characters when a multibyte character range is included.
40574
40575 2009-11-22  Andy Wingo  <wingo@pobox.com>
40576
40577         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
40578         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
40579
40580 2009-11-24  Bruno Haible  <bruno@clisp.org>
40581
40582         doc: Most *_l functions exist in MacOS X 10.5.
40583         * doc/posix-functions/duplocale.texi: Update platforms list.
40584         * doc/posix-functions/freelocale.texi: Likewise.
40585         * doc/posix-functions/newlocale.texi: Likewise.
40586         * doc/posix-functions/uselocale.texi: Likewise.
40587         * doc/posix-functions/isalnum_l.texi: Likewise.
40588         * doc/posix-functions/isalpha_l.texi: Likewise.
40589         * doc/posix-functions/isblank_l.texi: Likewise.
40590         * doc/posix-functions/iscntrl_l.texi: Likewise.
40591         * doc/posix-functions/isdigit_l.texi: Likewise.
40592         * doc/posix-functions/isgraph_l.texi: Likewise.
40593         * doc/posix-functions/islower_l.texi: Likewise.
40594         * doc/posix-functions/isprint_l.texi: Likewise.
40595         * doc/posix-functions/ispunct_l.texi: Likewise.
40596         * doc/posix-functions/isspace_l.texi: Likewise.
40597         * doc/posix-functions/isupper_l.texi: Likewise.
40598         * doc/posix-functions/iswalnum_l.texi: Likewise.
40599         * doc/posix-functions/iswalpha_l.texi: Likewise.
40600         * doc/posix-functions/iswblank_l.texi: Likewise.
40601         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40602         * doc/posix-functions/iswctype_l.texi: Likewise.
40603         * doc/posix-functions/iswdigit_l.texi: Likewise.
40604         * doc/posix-functions/iswgraph_l.texi: Likewise.
40605         * doc/posix-functions/iswlower_l.texi: Likewise.
40606         * doc/posix-functions/iswprint_l.texi: Likewise.
40607         * doc/posix-functions/iswpunct_l.texi: Likewise.
40608         * doc/posix-functions/iswspace_l.texi: Likewise.
40609         * doc/posix-functions/iswupper_l.texi: Likewise.
40610         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40611         * doc/posix-functions/isxdigit_l.texi: Likewise.
40612         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
40613         * doc/posix-functions/strcasecmp_l.texi: Likewise.
40614         * doc/posix-functions/strcoll_l.texi: Likewise.
40615         * doc/posix-functions/strfmon_l.texi: Likewise.
40616         * doc/posix-functions/strftime_l.texi: Likewise.
40617         * doc/posix-functions/strncasecmp_l.texi: Likewise.
40618         * doc/posix-functions/strxfrm_l.texi: Likewise.
40619         * doc/posix-functions/tolower_l.texi: Likewise.
40620         * doc/posix-functions/toupper_l.texi: Likewise.
40621         * doc/posix-functions/towctrans_l.texi: Likewise.
40622         * doc/posix-functions/towlower_l.texi: Likewise.
40623         * doc/posix-functions/towupper_l.texi: Likewise.
40624         * doc/posix-functions/wcscoll_l.texi: Likewise.
40625         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40626         * doc/posix-functions/wctrans_l.texi: Likewise.
40627         * doc/posix-functions/wctype_l.texi: Likewise.
40628         * doc/glibc-functions/strptime_l.texi: Likewise.
40629         * doc/glibc-functions/strtod_l.texi: Likewise.
40630         * doc/glibc-functions/strtof_l.texi: Likewise.
40631         * doc/glibc-functions/strtol_l.texi: Likewise.
40632         * doc/glibc-functions/strtold_l.texi: Likewise.
40633         * doc/glibc-functions/strtoll_l.texi: Likewise.
40634         * doc/glibc-functions/strtoul_l.texi: Likewise.
40635         * doc/glibc-functions/strtoull_l.texi: Likewise.
40636         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40637         * doc/glibc-functions/wcstod_l.texi: Likewise.
40638         * doc/glibc-functions/wcstof_l.texi: Likewise.
40639         * doc/glibc-functions/wcstol_l.texi: Likewise.
40640         * doc/glibc-functions/wcstold_l.texi: Likewise.
40641         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40642         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40643         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40644
40645 2009-11-24  Bruno Haible  <bruno@clisp.org>
40646
40647         duplocale: Fix logic bug.
40648         * lib/duplocale.c: Don't include <langinfo.h>.
40649         (_NL_LOCALE_NAME): Remove macro.
40650         (rpl_duplocale): Use setlocale instead of nl_langinfo.
40651         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
40652
40653 2009-11-23  Jim Meyering  <meyering@redhat.com>
40654
40655         test-update-copyright: don't hard-code /usr/bin/perl
40656         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
40657         perl to print the current year.  Gilles Espinasse reported that
40658         the replaced use of perl was hard-coded as /usr/bin/perl.
40659
40660 2009-11-23  Bruno Haible  <bruno@clisp.org>
40661
40662         duplocale: Add support for glibc 2.3.x.
40663         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
40664
40665 2009-11-22  Bruno Haible  <bruno@clisp.org>
40666
40667         vasnprintf: Tiny optimization.
40668         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
40669         MacOS X.
40670
40671 2009-11-22  Bruno Haible  <bruno@clisp.org>
40672
40673         Tests for module 'duplocale'.
40674         * modules/duplocale-tests: New file.
40675         * tests/test-duplocale.c: New file.
40676
40677         New module 'duplocale'.
40678         * m4/duplocale.m4: New file.
40679         * lib/locale.in.h (duplocale): New declaration.
40680         * lib/duplocale.c: New file.
40681         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
40682         gl_LOCALE_H_DEFAULTS): New macros.
40683         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
40684         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
40685         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
40686         REPLACE_DUPLOCALE.
40687         * modules/duplocale: New file.
40688         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
40689
40690 2009-11-22  Bruno Haible  <bruno@clisp.org>
40691
40692         * modules/locale-tests (configure.ac): Test for newlocale function.
40693         * tests/test-locale.c: When the system has extended locale functions,
40694         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
40695
40696         locale: Make locale_t available when possible.
40697         * lib/locale.in.h: Include <xlocale.h> when it exists.
40698         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
40699         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
40700         * modules/locale (Depends-on): Add extensions.
40701         (Makefile.am): Also substitute HAVE_XLOCALE_H.
40702         * doc/posix-headers/locale.texi: Document the problem with locale_t.
40703
40704 2009-11-22  Bruno Haible  <bruno@clisp.org>
40705
40706         Add comments.
40707         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
40708         invocation.
40709         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40710         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40711         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40712
40713 2009-11-22  Bruno Haible  <bruno@clisp.org>
40714
40715         error: account for the possibility of freopen (stdout).
40716         * lib/error.c: Include <unistd.h>.
40717         (flush_stdout): New function, extracted from error and error_at_line.
40718         Determine stdout's fd dynamically.
40719         (error, error_at_line): Invoke flush_stdout.
40720         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
40721         * modules/error (Depends-on): Add unistd.
40722
40723 2009-11-22  Bruno Haible  <bruno@clisp.org>
40724
40725         diffseq: Add comment.
40726         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
40727
40728 2009-11-22  Jim Meyering  <meyering@redhat.com>
40729
40730         c-stack: avoid defining an unused static function
40731         * lib/c-stack.c (find_stack_direction): Do not define this function
40732         when it will not be used.
40733
40734         diffseq: avoid spurious gcc warnings
40735         * lib/diffseq.h (IF_LINT2): Define.
40736         (compareseq): Use it to initialize two members of "part".
40737         This avoids two used-uninitialized warnings.
40738
40739 2009-11-21  Jim Meyering  <meyering@redhat.com>
40740
40741         c-stack: avoid "ignoring return value of `write'" warning
40742         * lib/c-stack.c: Include "ignore-value.h".
40743         (die): Explicitly ignore each write return value.
40744         * modules/c-stack (Depends-on): Add ignore-value.
40745
40746 2009-11-21  Bruno Haible  <bruno@clisp.org>
40747
40748         diffseq: reduce scope of variable 'best'.
40749         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
40750         variable, earlier used for two different purposes.
40751
40752 2009-11-21  Jim Meyering  <meyering@redhat.com>
40753
40754         diffseq: remove useless assignment to "best"
40755         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
40756         assignment.  At that point "best" is already guaranteed to be zero.
40757
40758 2009-11-20  Eric Blake  <ebb9@byu.net>
40759
40760         build: mention ftp redirector in release announcements
40761         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
40762         values that used to come from cfg.mk; mention FTP redirect URL.
40763         * build-aux/announce-gen: Mention the mirror list.
40764         Suggested by Karl Berry.
40765
40766         nanosleep: improve port to mingw
40767         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
40768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
40769         LIB_NANOSLEEP, but only when needed.
40770         * modules/select (Link): Document LIBSOCKET.
40771         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
40772         enough.
40773
40774         nanosleep: work around cygwin bug
40775         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
40776         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
40777         bug.
40778         (getnow): Delete, not needed.
40779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
40780         LIB_CLOCK_GETTIME.
40781         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
40782         clock-time, gettime.
40783         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
40784         bug.
40785         * modules/nanosleep-tests: New test.
40786         * tests/test-nanosleep.c: New file.
40787
40788         sleep: work around cygwin bug
40789         * lib/sleep.c (rpl_sleep): Work around the bug.
40790         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
40791         (gl_PREREQ_SLEEP): Delete unused macro.
40792         * modules/sleep (Depends-on): Add verify.
40793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40794         * modules/unistd (Makefile.am): Substitute witness.
40795         * lib/unistd.in.h (sleep): Update prototype.
40796         * doc/posix-functions/sleep.texi (sleep): Document the bug.
40797         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
40798         * modules/sleep-tests (Depends-on): Check for alarm.
40799
40800 2009-11-20  Jim Meyering  <meyering@redhat.com>
40801
40802         maint.mk: improve sc_prohibit_magic_number_exit
40803         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
40804         so it does not match uses like System.exit(1).
40805         Add comments showing how to correct all offenders.
40806
40807 2009-11-19  Eric Blake  <ebb9@byu.net>
40808
40809         xalloc-die-tests: add missing library
40810         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
40811
40812         test-xvasprintf: silence compiler warnings
40813         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
40814         empty string from gcc.
40815
40816 2009-11-19  Jim Meyering  <meyering@redhat.com>
40817
40818         xfreopen: new module, from coreutils
40819         * modules/xfreopen: New module.
40820         * lib/xfreopen.c: New file.
40821         * lib/xfreopen.h: New file.
40822         * MODULES.html.sh (File stream based Input/Output"): Add it.
40823
40824 2009-11-19  Eric Blake  <ebb9@byu.net>
40825
40826         manywarnings: depend on warnings
40827         * modules/manywarnings (Depends-on): Add warnings.
40828
40829         build: avoid compiler warnings
40830         * lib/select.c (rpl_select): Delete unused variable.
40831         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
40832
40833 2009-11-18  Eric Blake  <ebb9@byu.net>
40834
40835         tests: avoid false negative with --with-packager
40836         * tests/test-version-etc.sh: Discard packager information.
40837         * tests/test-argp-version-etc-1.sh: Likewise.
40838         Reported by Mike Frysinger.
40839
40840         utimens: fix regression on Solaris
40841         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
40842         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
40843         can only change fd timestamps via futimesat.  Instead, use an
40844         additional witness macro to avoid BSD bug.
40845         Reported by Jim Meyering.
40846
40847 2009-11-17  Eric Blake  <ebb9@byu.net>
40848
40849         usleep: use it to simplify tests
40850         * modules/stat-time-tests (Depends-on): Add usleep.
40851         (configure.ac): Drop usleep check.
40852         * modules/chown-tests (Depends-on, configure.ac): Likewise.
40853         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
40854         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
40855         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
40856         * modules/openat-tests (Depends-on, configure.ac): Likewise.
40857         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
40858         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
40859         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
40860         Likewise.
40861         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
40862         * tests/test-lchown.h (nap): Likewise.
40863         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
40864         * tests/test-stat-time.c (nap): Likewise.
40865         * tests/test-utimens-common.h (nap): Update comments.
40866
40867         usleep: new module
40868         * modules/usleep: New file.
40869         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
40870         * lib/usleep.c (usleep): Likewise.
40871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40872         * modules/unistd (Makefile.am): Substitute witnesses.
40873         * lib/unistd.in.h (usleep): Add declaration.
40874         * doc/pastposix-functions/usleep.texi (usleep): Document this.
40875         * MODULES.html.sh (Date and time): Likewise.
40876         * modules/usleep-tests (Depends-on): New test.
40877         * tests/test-usleep.c: New file.
40878
40879         chown: work around OpenBSD bug
40880         * lib/chown.c (rpl_chown): Work around the bug.
40881         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
40882         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
40883         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
40884         * modules/chown (Depends-on): Add stdbool.
40885         * modules/lchown (Depends-on): Likewise.
40886         * doc/posix-functions/chown.texi (chown): Document the bug.
40887         * doc/posix-functions/lchown.texi (lchown): Likewise.
40888         * tests/test-lchown.h (test_chown): Relax test.
40889
40890         mkstemp: avoid conflict with C++ keyword template
40891         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
40892         * lib/mkostemp.c (mkostemp): Likewise.
40893         * lib/mkostemps.c (mkostemps): Likewise.
40894         * lib/mkstemp.c (mkstemp): Likewise.
40895         * lib/mkstemps.c (mkstemps): Likewise.
40896
40897         xalloc-die-tests: optimize
40898         * tests/test-xalloc-die.sh: Reduce number of processes.
40899
40900 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40901
40902         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
40903         patch from ludo@gnu.org (Ludovic Courtès).
40904
40905 2009-11-17  Jim Meyering  <meyering@redhat.com>
40906
40907         version-etc: use proper license string
40908         * modules/version-etc (License): Use LGPL, not LGPLv3+.
40909         * modules/version-etc-fsf: Likewise.
40910
40911 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40912
40913         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
40914         printed to stdout.  Deal with EOL differences.
40915
40916 2009-11-17  Eric Blake  <ebb9@byu.net>
40917
40918         unsetenv: work around Solaris bug
40919         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
40920         * lib/unsetenv.c (rpl_unsetenv): Work around it.
40921         Reported by Jim Meyering.
40922
40923         vasnprintf: avoid compiler warnings
40924         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
40925         variables.
40926         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
40927
40928 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40929
40930         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
40931         settings since xalloc-die is no longer the self test,
40932         xalloc-die.sh is.
40933
40934 2009-11-17  Jim Meyering  <meyering@redhat.com>
40935
40936         test-xalloc-die.sh: make the code agree with the commit log
40937         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
40938         at the end, just in case you happen to have a test-xalloc-die
40939         program in some other PATH directory.
40940
40941         test-xalloc-die.sh: fix a portability bug
40942         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
40943         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
40944         Otherwise, argv[0] (as often seen in diagnostics) would be too
40945         system-dependent, sometimes with, and sometimes without the leading "./".
40946
40947         version-etc-fsf: relax license to LGPLv3+
40948         * modules/version-etc-fsf (License): Relax license.
40949
40950 2009-11-16  Eric Blake  <ebb9@byu.net>
40951
40952         xalloc-die-tests: avoid printing null pointer
40953         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
40954         shell script.
40955         * tests/test-xalloc-die.c (program_name): Declare.
40956         * tests/test-xalloc-die.sh (tmpfiles): New file.
40957
40958         setenv, unsetenv: work around various bugs
40959         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
40960         (setenv) [HAVE_SETENV]: Work around bugs.
40961         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
40962         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
40963         for bugs.
40964         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
40965         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
40966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
40967         * modules/stdlib (Makefile.am): Update substitutions.
40968         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
40969         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
40970         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40971         * modules/setenv-tests: New test.
40972         * modules/unsetenv-tests: Likewise.
40973         * tests/test-setenv.c: New file.
40974         * tests/test-unsetenv.c: Likewise.
40975
40976 2009-11-16  Jim Meyering  <meyering@redhat.com>
40977
40978         version-etc: relax license to LGPLv3+
40979         * modules/version-etc (License): Relax license.
40980
40981         better AC_REQUIRE expanded-before-required-warning avoidance
40982         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
40983         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
40984         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
40985         which is no longer needed.
40986
40987 2009-11-16  Eric Blake  <ebb9@byu.net>
40988
40989         test-freading: clean up temporary file
40990         * tests/test-freading.c (main): Remove file on success, and use
40991         ASSERT more liberally.
40992         Reported by Jim Meyering.
40993
40994 2009-11-16  Jim Meyering  <meyering@redhat.com>
40995
40996         avoid new AC_REQUIRE expanded-before-required warnings
40997         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
40998         merely using it.
40999         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41000         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41001
41002 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41003
41004         * tests/test-xalloc-die.c: New file.
41005         * modules/xalloc-die-tests: New file.
41006         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41007         XFAIL_TESTS so it can be appended by modules.
41008
41009 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41010
41011         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41012         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41013
41014 2009-11-14  Eric Blake  <ebb9@byu.net>
41015
41016         fnmatch: avoid compiler warning
41017         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41018         to silence compiler warning about mismatch signedness in ?:.
41019         Reported by Robert Millan.
41020
41021         intprops: add double-inclusion guard
41022         * lib/intprops.h: Allow idempotent includes.
41023         Suggested by Bruce Korb.
41024
41025         openat: detect Solaris fchownat bug
41026         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41027         penalizing glibc chownat when only lchownat is broken.
41028         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41029         trailing slash bugs.
41030         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41031         * modules/openat-tests (Files): Include more files.
41032         (Depends-on): Add mgetgroups, sleep, stat-time.
41033         (configure.ac): Add additional checks.
41034         (Makefile.am): Build new test.
41035         * tests/test-fchownat.c: New file.
41036
41037         lchown: detect Solaris and FreeBSD bug
41038         * lib/lchown.c (rpl_lchown): Work around bug.
41039         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41041         * modules/unistd (Makefile.am): Populate it.
41042         * lib/unistd.in.h (lchown): Update declaration.
41043         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41044         * modules/lchown-tests: New file.
41045         * tests/test-lchown.h (test_lchown): Likewise.
41046         * tests/test-lchown.c (main): Likewise.
41047
41048         chown: detect Solaris and FreeBSD bug
41049         * lib/chown.c (rpl_chown): Work around bug.
41050         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41051         (gl_PREREQ_CHOWN): Delete.
41052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41053         * modules/unistd (Makefile.am): Populate it.
41054         * lib/unistd.in.h (chown): Update declaration.
41055         * lib/lchown.c (chown): Update client.
41056         * modules/lchown (Depends-on): Add lstat.
41057         * doc/posix-functions/chown.texi (chown): Document the bug.
41058         * doc/posix-functions/getgroups.texi (getgroups): Document
41059         getgroups pitfall.
41060         * modules/chown-tests: New file.
41061         * tests/test-chown.h (test_chown): Likewise.
41062         * tests/test-chown.c (main): Likewise.
41063
41064 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41065
41066         gnulib-tool: correctly detect absence of m4 directories
41067         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41068
41069 2009-11-14  Jim Meyering  <meyering@redhat.com>
41070
41071         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41072         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41073
41074 2009-11-14  John W. Eaton  <jwe@gnu.org>
41075
41076         strftime.h: wrap function declaration in extern "C" block
41077         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41078
41079 2009-11-13  Eric Blake  <ebb9@byu.net>
41080
41081         getgroups: avoid compiler warning
41082         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41083
41084         getgroups: work around FreeBSD bug
41085         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41086         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41087         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41088         * tests/test-getgroups.c (main): Fix buffer overrun.
41089
41090         getgroups: avoid compilation failure
41091         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41092         * modules/getgroups (Depends-on): Add stdint.
41093
41094 2009-11-13  Jim Meyering  <meyering@redhat.com>
41095
41096         test-getgroups: avoid compilation failure
41097         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41098
41099 2009-11-13  Eric Blake  <ebb9@byu.net>
41100
41101         mgetgroups: new module, taken from coreutils
41102         * modules/mgetgroups: New file.
41103         * lib/mgetgroups.h: Likewise.
41104         * lib/mgetgroups.c (mgetgroups): Likewise.
41105         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41106         * MODULES.html.sh (Users and groups): Mention it.
41107
41108         getgroups: don't expose GETGROUPS_T to user
41109         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41110         an element at a time if GETGROUPS_T is wrong size.
41111         * lib/getugroups.h (getugroups): Change signature.
41112         * lib/unistd.in.h (getgroups): Likewise.
41113         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41114         signature needs fixing.
41115         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41116         AC_TYPE_GETGROUPS.
41117         * modules/group-member (Depends-on): Add getgroups.
41118         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41119         (group_member): Rely on getgroups replacement.
41120         * lib/getugroups.c (getugroups): Use gid_t.
41121         * tests/test-getgroups.c (main): Likewise.
41122         * NEWS: Mention the signature change.
41123         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41124         problem with signature.
41125         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41126         GETGROUPS_T is still useful for setgroups.
41127
41128         getgroups, getugroups: provide stubs for mingw
41129         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41130         * lib/getugroups.c (getugroups): Likewise.
41131         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41132         function.  Modernize replacement scheme.
41133         (gl_PREREQ_GETGROUPS): Delete.
41134         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41135         * modules/getgroups (configure.ac): Declare witness.
41136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41137         * modules/unistd (Depends-on): Substitute witness.
41138         * lib/unistd.in.h (getgroups): Declare replacement.
41139
41140         getgroups: avoid calling exit
41141         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41142         drop xalloc.
41143         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41144         dependencies.
41145         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41146         exiting, in the rare case of malloc failure.
41147
41148         getgroups: fix logic error
41149         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41150         has more than 20 groups.
41151         * modules/getgroups-tests: New test.
41152         * tests/test-getgroups.c: New file.
41153
41154 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41155
41156         * tests/test-base64.c: Improve.
41157
41158 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41159
41160         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41161         Blake <ebb9@byu.net>.
41162
41163 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41164
41165         * tests/test-xvasprintf.c: Add %s%s related checks.
41166
41167 2009-11-12  Eric Blake  <ebb9@byu.net>
41168
41169         version-etc: match standards.texi style
41170         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41171         and use <> only for URLs.
41172
41173 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41174
41175         fts: do not fail on a submount during traversal
41176         * lib/fts.c (fts_build): Read the stat info again after opening
41177         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41178         Original report at http://bugzilla.redhat.com/501848.
41179
41180 2009-11-12  Jim Meyering  <meyering@redhat.com>
41181
41182         bootstrap: sync from coreutils
41183         * build-aux/bootstrap (bootstrap_epilogue): New function.
41184         Use git_modules_config in one more place.  This make bootstrap's
41185         --gnulib-srcdir option more useful for testing.
41186
41187         bootstrap: generalize autoheader check
41188         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41189         AC_CONFIG_HEADERS.
41190
41191 2009-11-11  Eric Blake  <ebb9@byu.net>
41192
41193         mkfifoat: use new modules for Solaris and BSD bugs
41194         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41195         * lib/mkfifoat.c (mknodat): Split...
41196         * lib/mknodat.c (mknodat): ...into new file.
41197         * modules/mkfifoat (Files): Ship new file.
41198         (Depends-on): Add mkfifo, mknod.
41199         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41200         (Depends-on): Add symlink.
41201         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41202         redundant with test_mkfifo.h.
41203         (do_mkfifoat, do_mknodat): New helpers.
41204
41205         mknod: new module
41206         * modules/mknod: New file.
41207         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41208         * lib/mknod.c (mknod): Likewise.
41209         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41210         defaults.
41211         * modules/sys_stat (Makefile.am): Substitute them.
41212         * lib/sys_stat.in.h (mknod): Declare replacement.
41213         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41214         Document it.
41215         * doc/posix-functions/mknod.texi (mknod): Likewise.
41216         * modules/mknod-tests: New test.
41217         * tests/test-mknod.c: Likewise.
41218
41219         mkfifo: new module
41220         * modules/mkfifo: New file.
41221         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41222         * lib/mkfifo.c (mkfifo): Likewise.
41223         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41224         defaults.
41225         * modules/sys_stat (Makefile.am): Substitute them.
41226         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41227         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41228         Document it.
41229         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41230         * modules/mkfifo-tests: New test.
41231         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41232         from test-mkfifoat.c.
41233         * tests/test-mkfifo.c: New file.
41234
41235         readlink: detect FreeBSD bug
41236         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41237         slash on symlink.
41238         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41239         * tests/test-readlink.h (test_readlink): Enhance test.
41240
41241         symlink: detect FreeBSD bug
41242         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41243         slash on symlink.
41244         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41245         * tests/test-symlink.h (test_symlink): Enhance test.
41246
41247 2009-11-10  Eric Blake  <ebb9@byu.net>
41248
41249         link: detect FreeBSD bug
41250         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41251         symlink.
41252         * doc/posix-functions/link.texi (link): Document the bug.
41253         * tests/test-link.h (test_link): Enhance test.
41254         * tests/test-linkat.c (main): Update caller.
41255
41256         unlink, remove: detect FreeBSD bug
41257         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41258         slash on symlink.
41259         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41260         * doc/posix-functions/remove.texi (remove): Likewise.
41261         * tests/test-unlink.h (test_unlink): Enhance test.
41262         * tests/test-remove.c (main): Likewise.
41263
41264 2009-11-09  Eric Blake  <ebb9@byu.net>
41265
41266         rename: detect FreeBSD bug
41267         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41268         slash on symlink.
41269         * modules/renameat-tests (Depends-on): Add filenamecat.
41270         * tests/test-rename.h (test_rename): Allow one more errno.
41271         * tests/test-renameat.c (main): Likewise.
41272         * doc/posix-functions/rename.texi (rename): Document the bug.
41273
41274         open: detect FreeBSD bug
41275         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41276         symlink.
41277         * doc/posix-functions/open.texi (open): Document the bug.
41278         * doc/posix-functions/utimes.texi (utimes): Likewise.
41279         * tests/test-open.h (test_open): Add parameters, and test symlink
41280         handling.
41281         * tests/test-open.c (main): Adjust caller.
41282         * tests/test-fcntl-safer.c (main): Likewise.
41283         * modules/open-tests (Depends-on): Add stdbool, symlink.
41284         * modules/fcntl-safer-tests (Depends-on): Likewise.
41285         * tests/test-openat.c (main): Add test-open tests.
41286
41287         stat: detect FreeBSD bug
41288         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41289         symlink.
41290         * doc/posix-functions/stat.texi (stat): Document the bug.
41291         * tests/test-stat.h (test_stat_func): Add argument.
41292         * tests/test-stat.c (main): Adjust caller.
41293         * tests/test-fstatat.c (main): Likewise.
41294         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41295         Reported by Jim Meyering.
41296
41297 2009-11-09  James Youngman  <jay@gnu.org>
41298
41299         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41300         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41301
41302 2009-11-08  Jim Meyering  <meyering@redhat.com>
41303
41304         utimens: remove invalid futimesat call
41305         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41306         It used the file descriptor of the target file as the DIR_FD
41307         parameter and NULL as the file name.  That caused failure with
41308         errno == EFAULT on FreeBSD-8.0-rc2
41309
41310 2009-11-07  Eric Blake  <ebb9@byu.net>
41311
41312         fflush, freadseek: use fseeko, not fseek
41313         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41314         (clear_ungetc_buffer): Avoid potential problems on large files.
41315         * lib/freadseek.c (freadseek): Likewise.
41316         * modules/freadseek (Depends-on): Add fseeko.
41317         * modules/fseek (configure.ac): Set a witness.
41318         * tests/test-fflush.c (main): Use fseeko.
41319         * tests/test-fpurge.c (fseek): Disable link warning.
41320         * tests/test-freadable.c (fseek): Likewise.
41321         * tests/test-freading.c (fseek): Likewise.
41322         * tests/test-fseeko.c (fseek): Likewise.
41323         * tests/test-ftell.c (fseek): Likewise.
41324         * tests/test-ftello.c (fseek): Likewise.
41325         * tests/test-fwritable.c (fseek): Likewise.
41326         * tests/test-fwriting.c (fseek): Likewise.
41327
41328 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41329
41330         * modules/memchr (Depends-on): Drop getpagesize dependency.
41331
41332 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41333
41334         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41335         Reported by Ludovic Courtès.
41336         * build-aux/pmccabe2html: Improve example usage.
41337         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41338
41339 2009-11-06  Jim Meyering  <meyering@redhat.com>
41340
41341         do-release-commit-and-tag: New module.
41342         Automate the release-commit and tag process.
41343         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41344         * modules/do-release-commit-and-tag: New file.
41345         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41346
41347 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41348
41349         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41350         because test-select.c uses inet_pton.
41351
41352 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41353
41354         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41355         GETADDRINFO_LIB.  Bump serial number.
41356         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41357         Suggested by Eric Blake <ebb9@byu.net>.
41358
41359 2009-11-05  Eric Blake  <ebb9@byu.net>
41360
41361         strtod: detect darwin bug
41362         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41363         Reported by Leo Davis.
41364
41365         freopen-safer: new module
41366         * modules/freopen-safer: New module.
41367         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41368         * lib/freopen-safer.c (freopen_safer): New file.
41369         * lib/stdio-safer.h (freopen_safer): New declaration.
41370         * lib/stdio--.h (freopen): New override.
41371         * MODULES.html.sh (File stream based Input/Output): Mention it.
41372         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41373         freopen-safer module.
41374         * doc/posix-functions/stderr.texi (stderr): Likewise.
41375         * doc/posix-functions/stdin.texi (stdin): Likewise.
41376         * doc/posix-functions/stdout.texi (stdout): Likewise.
41377         * modules/freopen-safer-tests: New test.
41378         * tests/test-reopen-safer.c: New file.
41379
41380 2009-11-05  Jim Meyering  <meyering@redhat.com>
41381
41382         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41383         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41384
41385 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41386
41387         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41388
41389 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41390
41391         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41392
41393 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41394
41395         Fix link error.
41396         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41397         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41398
41399 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41400
41401         * tests/test-func.c: Also test value of __func__.
41402
41403 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41404
41405         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41406         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41407
41408 2009-11-05  Bruno Haible  <bruno@clisp.org>
41409
41410         Fix link error.
41411         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41412         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41413         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41414
41415 2009-11-05  Bruno Haible  <bruno@clisp.org>
41416
41417         Tests for module 'inet_pton'.
41418         * modules/inet_pton-tests: New file.
41419         * tests/test-inet_pton.c: New file.
41420
41421 2009-11-05  Bruno Haible  <bruno@clisp.org>
41422
41423         Tests for module 'inet_ntop'.
41424         * modules/inet_ntop-tests: New file.
41425         * tests/test-inet_ntop.c: New file.
41426
41427 2009-11-04  Eric Blake  <ebb9@byu.net>
41428
41429         stdlib-safer: wrap all mkstemp variants
41430         * modules/mkostemp (configure.ac): Set witness.
41431         * modules/mkostemps (configure.ac): Likewise.
41432         * modules/mkstemps (configure.ac): Likewise.
41433         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41434         (mkstemps_safer): Wrap more functions.
41435         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41436         wrapping.
41437         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41438         (mkstemps_safer): Implement the wrappers.
41439
41440         mkstemps, mkostemps: new modules
41441         * modules/mkostemps: New module.
41442         * modules/mkstemps: Likewise.
41443         * lib/mkostemps.c (mkostemps): New file.
41444         * lib/mkstemps.c (mkstemps): Likewise.
41445         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41446         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41448         * modules/stdlib (Makefile.am): Substitute them.
41449         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41450         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41451         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41452         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41453         * MODULES.html.sh (File system functions): Mention them.
41454
41455         tempname: resync from glibc
41456         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41457         same values for __GT_FILE as glibc.  Abort even when assertions
41458         are disabled.
41459         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41460         match its value otherwise.  Allow idempotent inclusion.
41461         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41462         * lib/mkostemp.c (mkostemp): Likewise.
41463         * lib/mkstemp.c (mkstemp): Likewise.
41464         * lib/tmpfile.c (tmpfile): Likewise.
41465         * NEWS: Document this.
41466
41467         utimens: fix use of futimens on older Linux
41468         * lib/utimens.c (fdutimens): Use updated, rather than original,
41469         timespec to avoid bug in older Linux kernel.
41470         Reported by Simon Josefsson.
41471
41472 2009-11-04  Bruno Haible  <bruno@clisp.org>
41473
41474         Make num_processors more flexible and consistent.
41475         * lib/nproc.h (enum nproc_query): New type.
41476         (num_processors): Add a 'query' argument.
41477         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41478         (num_processors): Add a 'query' argument. Test the value of the
41479         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41480         mingw, count the number of CPUs available for the current process.
41481         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41482         Check for sched_getaffinity and sched_getaffinity_np.
41483         * modules/nproc (Depends-on): Add c-ctype, extensions.
41484         * NEWS: Mention the change.
41485
41486 2009-11-03  Bruno Haible  <bruno@clisp.org>
41487
41488         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41489
41490 2009-11-03  Jim Meyering  <meyering@redhat.com>
41491
41492         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41493         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41494         if it is defined.
41495
41496 2009-11-02  Eric Blake  <ebb9@byu.net>
41497
41498         mktime, timegm: share common declaration
41499         * lib/mktime-internal.h: New file.
41500         * lib/mktime.c: Use it rather than open-coding a declaration.
41501         * lib/timegm.c: Likewise.
41502         * modules/mktime (Files): Ship it.
41503         * modules/timegm (Files): Likewise.
41504         Suggested by Bruno Haible.
41505
41506         test-update-copyright: update test to match script changes
41507         * tests/test-update-copyright.sh: Avoid hard-coding perl
41508         location.  Don't update *.bak created by earlier runs.
41509
41510 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41511             Simon Josefsson  <simon@josefsson.org>
41512             Bruno Haible  <bruno@clisp.org>
41513
41514         Fix link error on Solaris 8.
41515         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41516         also in libnsl. Define also INET_PTON_LIB.
41517         * modules/inet_pton (Link): New section.
41518
41519 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41520             Bruno Haible  <bruno@clisp.org>
41521
41522         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41523         * modules/inet_ntop (Link): New section.
41524         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41525
41526 2009-11-02  Eric Blake  <ebb9@byu.net>
41527
41528         maint: avoid compiler warnings in m4 macros
41529         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
41530         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
41531
41532 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41533
41534         * m4/pmccabe2html.m4: Remove file.
41535         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
41536         function.  Change maintainer.
41537         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
41538         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
41539         Courtès).
41540
41541 2009-10-31  Eric Blake  <ebb9@byu.net>
41542
41543         fseeko: fix m4 regression
41544         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
41545         regression from 2009-10-27.
41546         Reported by Ralf Wildenhues.
41547
41548 2009-10-31  Jim Meyering  <meyering@redhat.com>
41549
41550         inttostr: aesthetics and improved (compile-time) safety
41551         Define inttype_is_signed rather than inttype_is_unsigned,
41552         since the sole use is via "#if inttype_is_signed".
41553         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
41554         inttype_is_unsigned.
41555         * lib/offtostr.c (inttype_is_signed): Likewise.
41556         * lib/uinttostr.c (inttype_is_signed): Likewise.
41557         * lib/umaxtostr.c (inttype_is_signed): Likewise.
41558         * lib/inttostr.c (inttostr): Use verify to cross-check the
41559         inttype_is_signed value and the signedness of the actual type.
41560         * modules/inttostr (Depends-on): Add verify.
41561
41562 2009-10-30  Eric Blake  <ebb9@byu.net>
41563
41564         build: avoid compiler warnings
41565         * lib/fchmodat.c (lchmod): Mark unused variables.
41566         * lib/getopt.c (_getopt_initialize): Likewise.
41567         * lib/mktime.c (__mktime_internal): Provide prototype.
41568         * lib/inttostr.c (inttostr): Avoid compiler warning even with
41569         older gcc that do not understand #pragma GCC diagnostic.
41570         * lib/uinttostr.c (inttype_is_unsigned): Define.
41571         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
41572
41573 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
41574
41575         stat: fix compilation on AIX
41576         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
41577         only see struct stat64.
41578
41579 2009-10-30  Eric Blake  <ebb9@byu.net>
41580
41581         exclude: make more robust
41582         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
41583         rather than masking a coding bug.
41584         Suggested by Bruno Haible.
41585
41586 2009-10-30  Jim Meyering  <meyering@redhat.com>
41587
41588         perl scripts: remove #!/usr/bin/perl in favor of more portable...
41589         Rather than putting #!/usr/bin/perl on the first line,
41590         start with a variant of what's recommended by "man perlrun" that
41591         invokes the first "perl" program from your shell's search path.
41592         * build-aux/gitlog-to-changelog: Replace #!... as above.
41593         Add a "Local Variables" perl mode setting.
41594         Prompted by a patch from Ludovic Courtès.
41595         Improved by Eric Blake.
41596         * build-aux/useless-if-before-free: Likewise.
41597         * build-aux/announce-gen: Likewise.
41598         * build-aux/update-copyright: Likewise.
41599
41600 2009-10-29  Eric Blake  <ebb9@byu.net>
41601
41602         filenamecat-lgpl: adjust clients
41603         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
41604         filenamecat.
41605         * modules/renameat (Depends-on): Likewise.
41606
41607         filenamecat: split into filenamecat-lgpl
41608         * modules/filenamecat-lgpl: New module.
41609         * modules/filenamecat (Files): Move library-safe files into
41610         filenamecat-lgpl.
41611         (Depends-on): Add filenamecat-lgpl.
41612         (configure.ac): Declare witness.
41613         * lib/filenamecat.h (file_name_concat): Only declare when using
41614         GPL module.
41615         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
41616         Move...
41617         * lib/filenamecat-lgpl.c: ...into new file.
41618         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
41619         (gl_FILE_NAME_CONCAT): Use it.
41620         * MODULES.html.sh (File system functions): Mention new module.
41621
41622         argp: avoid memory leak
41623         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
41624         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
41625         base_name, since the latter malloc()s and can call exit().
41626         Leak introduced 2006-07-03.
41627
41628         dirname-lgpl: adjust clients that don't need full dirname
41629         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
41630         * modules/filenamecat (Depends-on): Likewise.
41631         * modules/linkat (Depends-on): Likewise.
41632         * modules/mkancesdirs (Depends-on): Likewise.
41633         * modules/mkdir (Depends-on): Likewise.
41634         * modules/openat (Depends-on): Likewise.
41635         * modules/savewd (Depends-on): Likewise.
41636         * modules/rename (Depends-on): Likewise.
41637         (License): Relax license.
41638         * modules/mkdir-tests (Depends-on): Drop progname.
41639         (Makefile.am): Delete unneeded LDADD.
41640         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
41641
41642         dirname: split into dirname-lgpl
41643         * modules/dirname-lgpl: New module.
41644         * modules/dirname (Files): Move library-safe files into
41645         dirname-lgpl.
41646         (Depends-on): Add dirname-lgpl.
41647         (configure.ac): Declare witness.
41648         * modules/double-slash-root (License): Relax license.
41649         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
41650         module.
41651         * lib/dirname.c (dir_len, mdir_name): Move...
41652         * lib/dirname-lgpl.c: ...into new file.
41653         * lib/basename.c (last_component, base_len): Move...
41654         * lib/basename-lgpl.c: ...into new file.
41655         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
41656         (gl_DIRNAME): Use it.
41657         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
41658         Mention new module.
41659         * modules/dirname-tests (Depends-on): Add progname.
41660         * tests/test-dirname.c (program_name): Delete.
41661
41662         mkdir: make safe for libraries
41663         * modules/mkdir (Depends-on): Drop xalloc.
41664         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
41665         exit.
41666
41667         tests: avoid some compiler warnings
41668         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
41669         literals.
41670         * tests/test-memchr.c (main): Avoid type mismatch.
41671         * tests/test-arpa_inet.c (main): Avoid unused parameters.
41672         * tests/test-base64.c (main): Likewise.
41673         * tests/test-getdelim.c (main): Likewise.
41674         * tests/test-gethostname.c (main): Likewise.
41675         * tests/test-getline.c (main): Likewise.
41676         * tests/test-netinet_in.c (main): Likewise.
41677         * tests/test-select.c (open_server_socket, main): Likewise.
41678         * tests/test-select-stdin.c (main): Likewise.
41679         * tests/test-sockets.c (main): Likewise.
41680         * tests/test-strsignal.c (main): Likewise.
41681         * tests/test-sys_select.c (main): Likewise.
41682         * tests/test-sys_socket.c (main): Likewise.
41683         * tests/test-u64.c (main): Likewise.
41684         * tests/test-xfprintf-posix.c (main): Likewise.
41685         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
41686
41687         sockets: avoid compiler warning
41688         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
41689
41690         maint: detect usage(1) and other suspicious exits
41691         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
41692
41693 2009-10-29  Jim Meyering  <meyering@redhat.com>
41694
41695         timespec: long-to-int truncation could make timespec_cmp malfunction
41696         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
41697         a multiple of 2^32 nanoseconds as no difference.
41698
41699 2009-10-28  Jim Meyering  <meyering@redhat.com>
41700
41701         fprintftime: wrap macro code argument in "do {...} while(0)"
41702         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
41703         cpy macro must be a statement that can be followed by a semicolon.
41704         Now that the else clause contains a comment and is hence longer
41705         than one line, I require curly braces.  That in turn requires
41706         that we wrap this code block in the standard do...while(0).
41707
41708         fprintftime: remove stray semicolon from previous change
41709         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
41710
41711         fprintftime: avoid a warning about ignored fwrite return value
41712         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
41713         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
41714         that is unsafe.
41715         * modules/fprintftime (Depends-on): Add ignore-value.
41716
41717         exclude: avoid an unwarranted warning
41718         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
41719
41720 2009-10-27  Eric Blake  <ebb9@byu.net>
41721
41722         fseek: avoid compilation failure when fflush is replaced
41723         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
41724         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
41725         module is in use.
41726         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
41727         module is not in use; since REPLACE_FSEEK worked otherwise.
41728         (GNULIB_FTELLO): Likewise for ftell.
41729         Reported by Ian Beckwith and others.
41730
41731 2009-10-27  Bruno Haible  <bruno@clisp.org>
41732
41733         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
41734         Reported by Jim Meyering.
41735
41736 2009-10-27  Jim Meyering  <jim@meyering.net>
41737             Bruno Haible  <bruno@clisp.org>
41738
41739         Avoid warning despite dropping the return value of fwrite.
41740         * lib/unicodeio.c: Include ignore-value.h.
41741         (fwrite_success_callback): Explicitly ignore fwrite's return value.
41742         * modules/unicodeio (Depends-on): Add ignore-value.
41743
41744 2009-10-26  Eric Blake  <ebb9@byu.net>
41745
41746         areadlinkat: fix fallback path
41747         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
41748         pointer and zero.
41749
41750 2009-10-22  Pádraig Brady  <P@draigBrady.com>
41751
41752         Use a better IO block size for modern systems
41753         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
41754         * lib/md2.c: Likewise.
41755         * lib/md4.c: Likewise.
41756         * lib/md5.c: Likewise.
41757         * lib/sha1.c: Likewise.
41758         * lib/sha256.c: Likewise.
41759         * lib/sha512.c: Likewise.
41760
41761 2009-10-22  Eric Blake  <ebb9@byu.net>
41762
41763         tests: avoid several compiler warnings
41764         * tests/test-getcwd.c (main): Avoid buffer underflow.
41765         * tests/test-getdate.c (main): String literals are not safe with
41766         putenv, so use setenv.  Declare unused argument.
41767         * modules/getdate-tests (Depends-on): Add setenv.
41768         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
41769         problems with string literals in char *.
41770         * tests/test-hash.c (main): Avoid shadowing declaration.
41771         (insert_new): Treat string literals as char const *.
41772         * tests/test-getopt.h (test_getopt): Likewise.
41773         (getopt_loop): Alter types to minimize casting elsewhere.
41774         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
41775         (test_getopt_long_posix): Likewise.
41776         (do_getopt_long): Add wrapper to minimize casting.
41777         * tests/test-atexit.c (clear_temp_file): Use void.
41778         * tests/test-areadlink-with-size.c (main): Declare unused
41779         arguments.
41780         * tests/test-areadlink.c (main): Likewise.
41781         * tests/test-areadlinkat-with-size.c (main): Likewise.
41782         * tests/test-areadlinkat.c (main): Likewise.
41783         * tests/test-canonicalize-lgpl.c (main): Likewise.
41784         * tests/test-canonicalize.c (main): Likewise.
41785         * tests/test-dirent-safer.c (main): Likewise.
41786         * tests/test-dirname.c (main): Likewise.
41787         * tests/test-dup2.c (main): Likewise.
41788         * tests/test-fchdir.c (main): Likewise.
41789         * tests/test-fcntl-h.c (main): Likewise.
41790         * tests/test-fcntl-safer.c (main): Likewise.
41791         * tests/test-fdopendir.c (main): Likewise.
41792         * tests/test-fdutimensat.c (main): Likewise.
41793         * tests/test-fflush.c (main): Likewise.
41794         * tests/test-filenamecat.c (main): Likewise.
41795         * tests/test-filevercmp.c (main): Likewise.
41796         * tests/test-fopen-safer.c (main): Likewise.
41797         * tests/test-fopen.c (main): Likewise.
41798         * tests/test-fpending.c (main): Likewise.
41799         * tests/test-fpurge.c (main): Likewise.
41800         * tests/test-freading.c (main): Likewise.
41801         * tests/test-fstatat.c (main): Likewise.
41802         * tests/test-fsync.c (main): Likewise.
41803         * tests/test-futimens.c (main): Likewise.
41804         * tests/test-getndelim2.c (main): Likewise.
41805         * tests/test-gettimeofday.c (main): Likewise.
41806         * tests/test-getopt.c (main): Likewise.
41807         * tests/test-i-ring.c (main): Likewise.
41808         * tests/test-inttypes.c (main): Likewise.
41809         * tests/test-link.c (main): Likewise.
41810         * tests/test-lstat.c (main): Likewise.
41811         * tests/test-math.c (main): Likewise.
41812         * tests/test-md5.c (main): Likewise.
41813         * tests/test-memchr2.c (main): Likewise.
41814         * tests/test-memrchr.c (main): Likewise.
41815         * tests/test-mkdir.c (main): Likewise.
41816         * tests/test-mkdirat.c (main): Likewise.
41817         * tests/test-mkfifoat.c (main): Likewise.
41818         * tests/test-open.c (main): Likewise.
41819         * tests/test-openat-safer.c (main): Likewise.
41820         * tests/test-openat.c (main): Likewise.
41821         * tests/test-quotearg.c (main): Likewise.
41822         * tests/test-rawmemchr.c (main): Likewise.
41823         * tests/test-readlink.c (main): Likewise.
41824         * tests/test-remove.c (main): Likewise.
41825         * tests/test-rename.c (main): Likewise.
41826         * tests/test-renameat.c (main): Likewise.
41827         * tests/test-rmdir.c (main): Likewise.
41828         * tests/test-sha1.c (main): Likewise.
41829         * tests/test-signal.c (main): Likewise.
41830         * tests/test-sigaction.c (main): Likewise.
41831         * tests/test-stat.c (main): Likewise.
41832         * tests/test-stat-time.c (main): Likewise.
41833         * tests/test-stddef.c (main): Likewise.
41834         * tests/test-stdint.c (main): Likewise.
41835         * tests/test-stdio.c (main): Likewise.
41836         * tests/test-stdlib.c (main): Likewise.
41837         * tests/test-strchrnul.c (main): Likewise.
41838         * tests/test-strerror.c (main): Likewise.
41839         * tests/test-string.c (main): Likewise.
41840         * tests/test-strtod.c (main): Likewise.
41841         * tests/test-strverscmp.c (main): Likewise.
41842         * tests/test-symlink.c (main): Likewise.
41843         * tests/test-symlinkat.c (main): Likewise.
41844         * tests/test-sys_stat.c (main): Likewise.
41845         * tests/test-sys_time.c (main): Likewise.
41846         * tests/test-time.c (main): Likewise.
41847         * tests/test-unistd.c (main): Likewise.
41848         * tests/test-unlink.c (main): Likewise.
41849         * tests/test-unlinkat.c (main): Likewise.
41850         * tests/test-utimens.c (main): Likewise.
41851         * tests/test-utimensat.c (main): Likewise.
41852         * tests/test-version-etc.c (main): Likewise.
41853         * tests/test-wchar.c (main): Likewise.
41854         * tests/test-wctype.c (main): Likewise.
41855         * tests/test-xprintf-posix.c (main): Likewise.
41856         * tests/test-posixtm.c (main): Likewise.
41857         (STREQ): Delete unused macro.
41858         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
41859         shadowed variables.
41860         * tests/test-memchr.c (main): Likewise.
41861
41862 2009-10-21  Eric Blake  <ebb9@byu.net>
41863
41864         areadlinkat: avoid failure on older glibc
41865         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
41866         rather than mis-comparing 0 against FUNC_RESULT of char*.
41867
41868 2009-10-21  Bruno Haible  <bruno@clisp.org>
41869
41870         * modules/stpncpy (License): Relicense under LGPLv2+.
41871         Reported by David Lutterkort <lutter@redhat.com>.
41872
41873 2009-10-20  Eric Blake  <ebb9@byu.net>
41874
41875         utimensat: work around Solaris 9 bug
41876         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
41877         has trailing slash bugs.
41878         * tests/test-lutimens.h (test_lutimens): Enhance test.
41879         * tests/test-utimens.h (test_utimens): Likewise.
41880         * doc/posix-functions/utime.texi (utime): Enhance documentation.
41881         * doc/posix-functions/utimes.texi (utimes): Likewise.
41882         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41883         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
41884         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
41885         * doc/posix-functions/futimens.texi (futimens): Likewise.
41886
41887         fdutimensat: new module
41888         * modules/fdutimensat: New file.
41889         * lib/fdutimensat.c (fdutimensat): Likewise.
41890         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
41891         * MODULES.html.sh (File system functions): Mention module.
41892         * modules/fdutimensat-tests: New test.
41893         * tests/test-fdutimensat.c: Likewise.
41894
41895         doc: regenerate INSTALL
41896         * doc/INSTALL: Reflect recent autoconf update.
41897         * doc/INSTALL.ISO: Likewise.
41898         * doc/INSTALL.UTF-8: Likewise.
41899
41900 2009-10-20  Pádraig Brady  <P@draigBrady.com>
41901
41902         acl: warn if ACL support is not detected
41903         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
41904
41905 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
41906
41907         * lib/nproc.h: Add extern "C" block for C++.
41908
41909 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
41910             Bruno Haible  <bruno@clisp.org>
41911
41912         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
41913         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
41914         * doc/posix-functions/isalpha.texi: Likewise.
41915         * doc/posix-functions/isblank.texi: Likewise.
41916         * doc/posix-functions/iscntrl.texi: Likewise.
41917         * doc/posix-functions/isdigit.texi: Likewise.
41918         * doc/posix-functions/isgraph.texi: Likewise.
41919         * doc/posix-functions/islower.texi: Likewise.
41920         * doc/posix-functions/isprint.texi: Likewise.
41921         * doc/posix-functions/ispunct.texi: Likewise.
41922         * doc/posix-functions/isspace.texi: Likewise.
41923         * doc/posix-functions/isupper.texi: Likewise.
41924         * doc/posix-functions/isxdigit.texi: Likewise.
41925
41926 2009-10-18  Bruno Haible  <bruno@clisp.org>
41927
41928         Tests for module 'isblank'.
41929         * modules/isblank-tests: New file.
41930         * tests/test-isblank.c: New file.
41931
41932         New module 'isblank'.
41933         * lib/isblank.c: New file.
41934         * m4/isblank.m4: New file.
41935         * modules/isblank: New file.
41936         * doc/posix-functions/isblank.texi: Mention the new module.
41937
41938 2009-10-18  Bruno Haible  <bruno@clisp.org>
41939
41940         New module 'ctype'.
41941         * lib/ctype.in.h: New file.
41942         * m4/ctype.m4: New file.
41943         * modules/ctype: New file.
41944         * doc/posix-headers/ctype.texi: Mention the new module.
41945
41946 2009-10-18  Jim Meyering  <meyering@redhat.com>
41947
41948         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
41949         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
41950         right after its initialization, rather than farther down.
41951         Keeping these in close proximity makes it easier to ensure
41952         that each such variable is initialized.  E.g.,
41953
41954             LIB_CLOCK_GETTIME=
41955             AC_SUBST([LIB_CLOCK_GETTIME])
41956
41957         This change also increments these serial numbers.
41958         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
41959         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41961
41962 2009-10-18  Bruno Haible  <bruno@clisp.org>
41963
41964         Don't let environment variables perturb build.
41965         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
41966         (gl_PREREQ_GETHRXTIME): ... not here.
41967
41968 2009-10-18  Bruno Haible  <bruno@clisp.org>
41969
41970         Avoid symlink attack in localcharset module.
41971         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
41972         (O_NOFOLLOW): Define fallback.
41973         (get_charset_aliases): Don't open the file if it is a symbolic link.
41974         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
41975         gl_FCNTL_H.
41976         (gl_FCNTL_H): Require it.
41977         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
41978         * modules/localcharset (Files): Add m4/fcntl_h.m4.
41979         Reported by Fergal Glynn <fglynn@veracode.com>.
41980
41981 2009-10-18  Bruno Haible  <bruno@clisp.org>
41982
41983         Implement nproc for mingw.
41984         * lib/nproc.c: Include <windows.h>
41985         (num_processors): On native Windows platforms, try GetSystemInfo.
41986
41987 2009-10-18  Bruno Haible  <bruno@clisp.org>
41988
41989         Implement nproc for IRIX.
41990         * lib/nproc.c: Include <sys/sysmp.h>.
41991         (num_processors): On IRIX systems, try sysmp.
41992         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
41993
41994 2009-10-18  Bruno Haible  <bruno@clisp.org>
41995
41996         Implement nproc for HP-UX.
41997         * lib/nproc.c: Include <sys/pstat.h>
41998         (num_processors): On HP-UX systems, try pstat_getdynamic.
41999         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42000         pstat_getdynamic.
42001
42002 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42003             Bruno Haible  <bruno@clisp.org>
42004
42005         Implement nproc for NetBSD, OpenBSD.
42006         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42007         (ARRAY_SIZE): New macro.
42008         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42009         * m4/nproc.m4: New file.
42010         * modules/nproc (Files): Add m4/nproc.m4.
42011         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42012         (Makefile.am): Instead, augment lib_SOURCES.
42013
42014 2009-10-18  Bruno Haible  <bruno@clisp.org>
42015
42016         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42017         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42018         sys/param.h.
42019
42020 2009-10-16  Eric Blake  <ebb9@byu.net>
42021
42022         utimensat: new module
42023         * modules/utimensat: New file.
42024         * lib/utimensat.c (utimensat): Likewise.
42025         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42026         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42027         so we can work around Linux bugs.
42028         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42029         * modules/sys_stat (Makefile.am): Substitute them.
42030         * lib/sys_stat.in.h (utimensat): Declare it.
42031         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42032         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42033         * modules/utimensat-tests: New test.
42034         * tests/test-utimensat.c: Likewise.
42035
42036         utimens: let lutimens work on non-symlinks
42037         * lib/utimens.c (lutimens): Fall back to utimens rather than
42038         failing with ENOSYS, when file is not a symlink.
42039         (utimens): Reduce redirection.
42040         * tests/test-lutimens.h (test_lutimens): Update test to cover
42041         non-symlinks.
42042         * tests/test-utimens.h (test_utimens): Update test to cover
42043         symlinks.
42044         * tests/test-utimens.c (main): Update caller.
42045
42046         utimens: cache whether utimensat syscall works
42047         * lib/utimens.c (utimensat_works_really): New cache variable.
42048         (fdutimens, lutimens): Use it to avoid failing syscall.
42049
42050         test-stat-time, test-utimens: improve portability
42051         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42052         ext4 on alpha, and for cygwin.
42053         * tests/test-utimens-common.h: New file.
42054         (nap): Factor delays into single function.
42055         * tests/test-lutimens.h (test_lutimens): Use new header.
42056         * tests/test-futimens.h (test_futimens): Likewise.
42057         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42058         timestamps to occur from same machine, as was done previously for
42059         test_utimens.
42060         * modules/utimens-tests (Files): Ship new file.
42061         * modules/futimens-tests (Files): Likewise.
42062         Reported in part by Jim Meyering.
42063
42064         sys_stat: sort replacement declarations
42065         * lib/sys_stat.in.h: Sort declarations.
42066         * lib/futimens.c (futimens): Fix typo.
42067
42068 2009-10-15  Jim Meyering  <meyering@redhat.com>
42069
42070         don't let environment settings perturb build
42071         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42072         could cause a configure-time and/or build-time malfunction.
42073         Typically, a configure-time function-in-library test is performed
42074         via code like this:
42075
42076           LIB_VAR=
42077           AC_SUBST([LIB_VAR])
42078           prefix_saved_LIBS=$LIBS
42079             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42080                        [test "$ac_cv_search_FUNC" = "none required" ||
42081                         LIB_VAR=$ac_cv_search_FUNC])
42082           LIBS=$prefix_saved_LIBS
42083
42084         However, in each of the files affected by this change, the LIB_VAR=
42085         initialization was omitted.  Thus, when set in the environment, its
42086         value would propagate into generated Makefiles when FUNC is not found
42087         in LIB_NAME.
42088         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42089         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42091
42092 2009-10-14  Eric Blake  <ebb9@byu.net>
42093
42094         fchdir: avoid infinite recursion in mingw
42095         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42096         recursing.
42097
42098         test-stat-time: port to mingw
42099         * tests/test-stat-time.c (force_unlink): Return a value.
42100         (test_ctime) [W32]: Fix compilation error.
42101         (nap): Don't call usleep with too large an argument.  Use
42102         force_unlink.
42103         * doc/pastposix-functions/usleep.texi (usleep): Document the
42104         portability issue.
42105
42106 2009-10-13  Jim Meyering  <meyering@redhat.com>
42107
42108         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42109         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42110         * modules/pipe-filter-ii: Likewise.
42111         * modules/sys_socket-tests: Likewise.
42112         * modules/tsearch-tests: Likewise.
42113         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42114         (check): Depend on it.
42115
42116 2009-10-12  Eric Blake  <ebb9@byu.net>
42117
42118         utimens-tests: port to NFS file systems
42119         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42120         comparisons to avoid spurious failures from timestamp drift
42121         between NFS machines.
42122
42123 2009-10-12  Eric Blake  <ebb9@byu.net>
42124
42125         stat-time-tests: minor cleanups
42126         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42127         * tests/test-stat-time.c (nap): Separate assignment from call.
42128         Suggested by Paolo Bonzini and Bruno Haible.
42129
42130         sys_stat: guarantee struct timespec
42131         * lib/sys_stat.in.h (includes): Always include <time.h>
42132         * modules/sys_stat (Depends-on): Add time.
42133         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42134         mode_t permission values.
42135         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42136         get at subsecond timestamps.
42137
42138 2009-10-10  Eric Blake  <ebb9@byu.net>
42139
42140         futimens: new module
42141         * modules/futimens: New file.
42142         * lib/futimens.c (futimens): Likewise.
42143         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42144         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42145         we can work around Linux bugs.
42146         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42147         * modules/sys_stat (Makefile.am): Substitute them.
42148         * lib/sys_stat.in.h (futimens): Declare it.
42149         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42150         * doc/posix-functions/futimens.texi (futimens): Likewise.
42151         * modules/futimens-tests: New test.
42152         * tests/test-futimens.c: Likewise.
42153
42154         utimens: introduce fdutimens
42155         * lib/utimens.h (fdutimens): New prototype.
42156         * lib/utimens.c (gl_futimens): Move guts...
42157         (fdutimens): ...to new interface.
42158         * tests/test-utimens.c (do_fdutimens): Use it.
42159
42160         utimens: add UTIME_NOW and UTIME_OMIT support
42161         * lib/utimens.c (validate_timespec, update_timespec): New helper
42162         functions.
42163         (gl_futimens, lutimens): Use them.
42164         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42165         stdbool, sys_stat.
42166         (Link): Mention resulting library dependency.
42167         * modules/utimecmp (Link): Likewise.
42168         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42169         (Makefile.am): Pick up library dependency.
42170         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42171         definition.
42172         * tests/test-sys_stat.c: Test the definitions.
42173         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42174         * NEWS: Document library dependency.
42175
42176         utimecmp: support symlink timestamps
42177         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42178         hashing when possible.  Use pathconf when available.
42179         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42180         * modules/utimecmp (Depends-on): Add lstat.
42181
42182         utimens: add lutimens interface
42183         * lib/utimens.c (lutimens): New function.
42184         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42185         * lib/utimens.h (lutimens): Declare new interface.
42186         * tests/test-utimens.c (main): Enhance test.
42187         * tests/test-lutimens.h (test_lutimens): New file.
42188         * modules/utimens-tests (Files): Distribute it.
42189         (Depends-on): Add symlink.
42190         (configure.ac): Check for usleep.
42191
42192         utimens: validate futimens usage
42193         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42194         fewer syscalls on failure later on.  Avoid compiler warning on
42195         mingw.
42196         * modules/utimens (Depends-on): Add dup2.
42197
42198         utimens: add test
42199         * modules/utimens-tests: New test.
42200         * tests/test-utimens.h: New file.
42201         * tests/test-futimens.h: Likewise.
42202         * tests/test-utimens.c: Likewise.
42203
42204         doc: mention timestamp portability issues
42205         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42206         instead.
42207         * doc/posix-functions/utime.texi (utime): Likewise.
42208         * doc/posix-functions/utimes.texi (utimes): Likewise.
42209         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42210         instead.
42211         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42212         module.
42213         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42214         Mention weakness with symlink timestamps.
42215         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42216         to utimensat/futimens instead.
42217         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42218
42219         test-dup2: enhance test
42220         * tests/test-dup2.c (main): Also check AT_FDCWD.
42221
42222         test-stat-time: avoid more spurious failures
42223         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42224         xfs; and avoid race if the two timestamps cross quantization edge.
42225
42226         relocatable: prefer 'file system' over 'filesystem'
42227         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42228         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42229         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42230         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42231         * lib/relocatable.c (compute_curr_prefix): Likewise.
42232
42233 2009-10-10  Jim Meyering  <meyering@redhat.com>
42234
42235         stat-time-tests: check for the usleep function
42236         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42237
42238 2009-10-10  Bruno Haible  <bruno@clisp.org>
42239
42240         * modules/xnanosleep: Put the Link section after the Include section.
42241
42242 2009-10-09  Eric Blake  <ebb9@byu.net>
42243
42244         dup2: work around FreeBSD 6.1 bug
42245         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42246         * doc/posix-functions/dup2.texi (dup2): Document it.
42247         Reported by Nelson H. F. Beebe and Jim Meyering.
42248
42249         test-stat-time: port to buggy NFS clients
42250         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42251         (test_ctime): Also skip test if mtime and ctime are skewed.
42252
42253         maint: prefer 'file system' over 'filesystem'
42254         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42255         * doc/posix-functions/lstat.texi (lstat): Likewise.
42256         * lib/file-has-acl.c (file_has_acl): Likewise.
42257         * lib/fwriteerror.c [TEST]: Likewise.
42258         * tests/test-areadlink.h (test_areadlink): Likewise.
42259         * tests/test-areadlinkat-with-size.c (main): Likewise.
42260         * tests/test-areadlinkat.c (main): Likewise.
42261         * tests/test-canonicalize-lgpl.c (main): Likewise.
42262         * tests/test-canonicalize.c (main): Likewise.
42263         * tests/test-fstatat.c (main): Likewise.
42264         * tests/test-linkat.c (main): Likewise.
42265         * tests/test-lstat.h (test_lstat_func): Likewise.
42266         * tests/test-mkdir.h (test_mkdir): Likewise.
42267         * tests/test-readlink.h (test_readlink): Likewise.
42268         * tests/test-remove.c (main): Likewise.
42269         * tests/test-rename.h (test_rename): Likewise.
42270         * tests/test-renameat.c (main): Likewise.
42271         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42272         * tests/test-symlink.h (test_symlink): Likewise.
42273         * tests/test-symlinkat.c (main): Likewise.
42274         * tests/test-unlink.h (test_unlink_func): Likewise.
42275         * tests/test-unlinkat.c (main): Likewise.
42276
42277         maint: make realtime library usage explicit
42278         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42279         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42280         * modules/settime (Link): Likewise.
42281         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42282
42283         test-stat-time: speed up execution
42284         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42285         warning on mingw.
42286         (nap): New helper function.
42287         (prepare_test): Use it to reduce sleep time.
42288         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42289         execution.
42290         * modules/stat-time-tests (configure.ac): Check for usleep.
42291
42292 2009-10-09  Jim Meyering  <meyering@redhat.com>
42293
42294         selinux-h: always use getfilecon wrappers
42295         * lib/getfilecon.c: New file.
42296         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42297         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42298         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42299         (fgetfilecon): Provide a stub.
42300         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42301         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42302         file unconditionally.
42303         When <selinux/selinux.h> is found, arrange to use wrappers.
42304         * modules/selinux-h (Files): Add getfilecon.c.
42305         (Makefile.am): Substitute include-next-related bits
42306         into the now-always-generated selinux/selinux.h file.
42307         * doc/glibc-functions/lgetfilecon.texi: New file.
42308         * doc/glibc-functions/fgetfilecon.texi: New file.
42309         * doc/glibc-functions/getfilecon.texi: New file.
42310         * doc/glibc-functions/getfilecon-desc.texi: New file.
42311         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42312         which to pull in the new files.
42313         * MODULES.html.sh (Misc): Add selinux-h.
42314
42315 2009-10-08  Jim Meyering  <meyering@redhat.com>
42316
42317         unistd: fix comment typo
42318         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42319
42320 2009-10-08  Eric Blake  <ebb9@byu.net>
42321
42322         areadlink: use SIZE_MAX consistently
42323         * modules/areadlink (Depends-on): Add stdint.
42324         * modules/areadlink-with-size (Depends-on): Likewise.
42325         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42326         gives NULL; drop sys/types, since unistd gives size_t; and add
42327         stdint for SIZE_MAX.
42328         (SIZE_MAX): Rely on headers.
42329         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42330         and add stdint.
42331         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42332         (SIZE_MAX): Likewise.
42333         (INITIAL_BUF_SIZE): Turn into enum.
42334         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42335
42336 2009-10-08  Jim Meyering  <meyering@redhat.com>
42337
42338         areadlinkat: avoid compilation failure
42339         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42340         Fix typo in comment.
42341
42342 2009-10-07  Eric Blake  <ebb9@byu.net>
42343
42344         areadlinkat-with-size: new module
42345         * modules/areadlinkat-with-size: New module.
42346         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42347         * lib/areadlink.h (areadlinkat): Declare it.
42348         * MODULES.html.sh (File system functions): Mention it.
42349         * modules/areadlinkat-with-size-tests: New test.
42350         * tests/test-areadlinkat-with-size.c: New file.
42351
42352         xreadlinkat: new module
42353         * modules/xreadlinkat: New module.
42354         * lib/xreadlinkat.c (xreadlinkat): New file.
42355         * lib/xreadlink.h (xreadlinkat): Declare it.
42356         * MODULES.html.sh (File system functions): Mention it.
42357
42358         areadlinkat: new module
42359         * lib/at-func.c (FUNC_FAIL): New define.
42360         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42361         * modules/areadlinkat: New module.
42362         * lib/linkat.c (areadlinkat): Move...
42363         * lib/areadlinkat.c (areadlinkat): ...to new file.
42364         * lib/areadlink.h (areadlinkat): Declare it.
42365         * modules/linkat (Depends-on): Add areadlinkat.
42366         * MODULES.html.sh (File system functions): Mention it.
42367         * modules/areadlinkat-tests: New test.
42368         * tests/test-areadlinkat.c: New file.
42369
42370         areadlink, areadlink-with-size: add tests
42371         * modules/areadlink-tests: New test.
42372         * modules/areadlink-with-size-tests: Likewise.
42373         * tests/test-areadlink.h: New file.
42374         * tests/test-areadlink.c: Likewise.
42375         * tests/test-areadlink-with-size.c: Likewise.
42376
42377         maint: minor cleanups
42378         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42379         _UNUSED_PARAMETER_ instead.
42380         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42381         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42382         * modules/linkat-tests (Files): Distribute test-link.h.
42383
42384         openat, utimens: whitespace cleanup
42385         * lib/openat.c: Prefer space throughout, rather than mix of 8
42386         spaces vs. tabs.
42387         * lib/at-func.c: Likewise.
42388         * lib/utimens.c: Likewise.
42389
42390         openat: avoid using wrong fd
42391         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42392         working directory chooses same fd.
42393         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42394
42395         mkdir, mkdirat: fix cygwin 1.5.x bug
42396         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42397         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42398         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42399         bug.
42400         (gl_PREREQ_MKDIR): Delete unused macro.
42401         * modules/mkdir (Files): Track file rename.
42402         (configure.ac): Update macro name.
42403         * modules/openat (Depends-on): Add mkdir.
42404         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42405
42406         mkdir, mkdirat: add tests
42407         * modules/mkdir-tests: New test.
42408         * tests/test-mkdir.h: New file.
42409         * tests/test-mkdir.c: Likewise.
42410         * tests/test-mkdirat.c: Likewise.
42411         * modules/openat-tests (Files): Add new files.
42412         (Makefile.am): Run new test.
42413
42414 2009-10-06  Eric Blake  <ebb9@byu.net>
42415
42416         doc: tweak *at function documentation
42417         * doc/posix-functions/faccessat.texi (faccessat): Mention
42418         known issue with replacement.
42419         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42420         * doc/posix-functions/linkat.texi (linkat): Likewise.
42421         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42422         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42423         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42424         * doc/posix-functions/renameat.texi (renameat): Likewise.
42425         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42426
42427         openat: fix GNU/Hurd bug in unlinkat
42428         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42429         broken.
42430         * doc/posix-functions/unlink.texi (unlink): Document this.
42431         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42432
42433         fdopendir: fix GNU/Hurd bug
42434         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42435         allowing non-directory fds.
42436         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42437         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42438         * modules/dirent (Makefile.am): Substitute it.
42439         * lib/dirent.in.h (fdopendir): Declare replacement.
42440         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42441         * tests/test-fdopendir.c (main): Test something other than
42442         /dev/null, since on Hurd that behaves like a directory.
42443
42444         test-symlink: port to GNU/Hurd
42445         * tests/test-symlink.h (test_symlink): Relax expected errno.
42446
42447         doc: tweak more cygwin information
42448         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42449         now compatible with glibc.
42450         * doc/posix-functions/getopt.texi (getopt): Likewise.
42451
42452         getopt-gnu: add another test
42453         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42454         guarantee behavior relied on by m4.
42455         * tests/test-getopt.c (main): Use it.
42456         * modules/getopt-posix-tests (Depends-on): Add setenv.
42457         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42458
42459         getopt: fix compilation on darwin
42460         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42461         include.
42462         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42463         Reported by Ludovic Courtès.
42464
42465 2009-10-06  Bruno Haible  <bruno@clisp.org>
42466
42467         * modules/size_max (Description): Discourage its use.
42468         Reported by Simon Josefsson.
42469
42470 2009-10-06  Jim Meyering  <meyering@redhat.com>
42471
42472         linkat: avoid compilation failure
42473         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42474
42475 2009-10-05  Eric Blake  <ebb9@byu.net>
42476
42477         linkat: support Linux 2.6.17
42478         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42479         linkat on Linux, but allow cache variable override.
42480         * lib/linkat.c (rpl_linkat): Define override.
42481         * modules/linkat (Depends-on): Add symlinkat.
42482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42483         * modules/unistd (Makefile.am): Substitute it.
42484         * lib/unistd.in.h (linkat): Declare replacement.
42485         Reported by Pádraig Brady.
42486
42487         quotearg: port test to systems with C.UTF-8 locale
42488         * tests/test-quotearg.c (struct result_strings): Add another
42489         member, differentiating between C.ASCII and C.UTF-8 handling.
42490         (compare_strings): Add parameter.
42491         (main): Adjust all callers.
42492
42493         getopt: avoid clash with FreeBSD _getopt_internal
42494         * lib/getopt.in.h (_getopt_internal): Override the name.
42495         * lib/getopt_int.h (includes): Pick up any overrides.
42496         Reported by Reuben Thomas.
42497
42498         hash: allow C89 compilation
42499         * lib/hash.c (check_tuning): Move declaration before statement.
42500         Reported by Reuben Thomas.
42501
42502 2009-10-05  Karl Berry  <karl@gnu.org>
42503
42504         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42505
42506 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42507             Bruno Haible  <bruno@clisp.org>
42508
42509         * lib/uname.c (uname): Use a table-driven algorithm to compute
42510         Windows NT versions.
42511
42512 2009-10-04  Bruno Haible  <bruno@clisp.org>
42513
42514         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42515         program_invocation_short_name.
42516         * modules/progname (configure.ac): Test for presence of
42517         program_invocation_short_name.
42518         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42519
42520 2009-10-04  Bruno Haible  <bruno@clisp.org>
42521
42522         * lib/progname.c (set_program_name): Fix comment.
42523         Reported by Jim Meyering.
42524
42525 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42526             Bruno Haible  <bruno@clisp.org>
42527
42528         * lib/uname.c: Include <string.h>.
42529         (uname): Do only one call to GetVersionEx in the common case.
42530
42531 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42532             Bruno Haible  <bruno@clisp.org>
42533
42534         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
42535         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
42536         (uname): Add support for Windows CE and various non-x86 CPU types.
42537
42538 2009-10-03  Bruno Haible  <bruno@clisp.org>
42539
42540         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
42541         invocation to tests/configure.ac.
42542         Reported by Ian Beckwith <ianb@erislabs.net>.
42543
42544 2009-10-02  Eric Blake  <ebb9@byu.net>
42545
42546         fchdir: avoid compiler warning
42547         * lib/fchdir.c (canonicalize_file_name)
42548         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
42549
42550         test-open: support mingw errno values
42551         * tests/test-open.h (test_open): Relax test.
42552         * tests/test-fopen.h (test_fopen): Likewise.
42553         * tests/test-openat-safer.c (main): Likewise.
42554
42555         open: fix opening directory on mingw
42556         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
42557
42558         test-open: on GNU/Hurd, /dev/null is a directory
42559         * tests/test-fopen.h (main): Rename...
42560         (test_fopen): ...to this.  Use a guaranteed non-directory when
42561         confirming open behavior on trailing slash.
42562         * tests/test-openat-safer.c (main): Likewise.
42563         * tests/test-open.h (main): Likewise....
42564         (test_open): ...to this.
42565         * tests/test-fopen.c (main): Adjust caller.
42566         * tests/test-fopen-safer.c (main): Likewise.
42567         * tests/test-open.c (main): Likewise.
42568         * tests/test-fcntl-safer.c (main): Likewise.
42569         Reported by Samuel Thibault.
42570
42571         rename, fchdir: don't ignore chdir failure
42572         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
42573         * lib/rename.c (rpl_rename) [W32]: Likewise.
42574         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
42575         an empty destination directory if source cannot be renamed,
42576         although there is still possibility for failure.
42577         * doc/posix-functions/rename.texi (rename): Document the race.
42578         Reported by Jim Meyering.
42579
42580         maint: cleanup whitespace in recent commits
42581         * lib/rename.c (rpl_rename): Remove tabs.
42582         * tests/test-link.h (test_link): Likewise.
42583         * lib/fchdir.c (get_name): Likewise.
42584         Reported by Jim Meyering.
42585
42586 2009-10-02  Ben Pfaff  <blp@gnu.org>
42587
42588         relocatable-prog-wrapper: Add missing dependency on
42589         double-slash-root.
42590         * modules/relocatable-prog-wrapper: Add dependency.
42591         Reported by Ian Beckwith <ianb@erislabs.net>.
42592
42593 2009-10-02  Eric Blake  <ebb9@byu.net>
42594
42595         renameat: fix Solaris bugs
42596         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
42597         needed fixing.
42598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
42599         * modules/stdio (Makefile.am): Substitute it.
42600         * lib/stdio.in.h (renameat): Declare replacement.
42601         * lib/renameat.c (rpl_renameat): Implement fix.
42602
42603         renameat: new module
42604         * modules/renameat: New file.
42605         * lib/renameat.c (renameat): Likewise.
42606         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
42607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42608         * modules/stdio (Makefile.am): Substitute them.
42609         * lib/stdio.in.h (renameat): Declare it.
42610         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42611         * doc/posix-functions/renameat.texi (renameat): Likewise.
42612         * modules/renameat-tests: New test.
42613         * tests/test-renameat.c: Likewise.
42614
42615         rename: fix mingw bugs
42616         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
42617         directory overwrite bugs.
42618
42619         rename: fix another cygwin 1.5 bug
42620         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
42621         checks.
42622         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
42623         unnecessary cygwin workarounds.  Also work around bug with moving
42624         full directory onto an empty one.
42625         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
42626
42627         rename-dest-slash: merge into rename module
42628         * modules/rename-dest-slash (Status): Mark obsolete.
42629         (Depends-on): Add rename.
42630         (Files): Let rename do it all.
42631         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
42632         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
42633         * m4/rename-dest-slash.m4: ...so this file can be deleted.
42634         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
42635         * lib/rename.c (rpl_rename): Update comments.
42636
42637         rename: fix cygwin 1.5.x bugs
42638         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
42639         * lib/rename.c (rpl_rename): Work around them.
42640         * modules/rename (Depends-on): Add same-inode.
42641
42642         rename: fix Solaris 10 bug
42643         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42644         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
42645         was the only bug.
42646
42647         rename: fix Solaris 9 bug
42648         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
42649         on non-directory.  Avoid calling exit.
42650         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
42651         strdup.
42652         * modules/rename-tests (Depends-on): Drop lstat.
42653         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42654         (gl_PREREQ_RENAME): Delete unused macro.
42655
42656         rename-dest-slash: fix NetBSD bug
42657         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
42658         links.
42659         * modules/rename-dest-slash (Depends-on): Add same-inode.
42660
42661         rename-tests: new test, exposes several platform bugs
42662         * modules/rename-tests: New file.
42663         * tests/test-rename.h: Likewise.
42664         * tests/test-rename.c: Likewise.
42665         * doc/posix-functions/rename.texi (rename): Improve documentation,
42666         including bugs that will eventually be fixed in gnulib.
42667
42668 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
42669
42670         * lib/uname.c: Include <stdlib.h>
42671         (uname): Assume version info is available.
42672
42673 2009-10-02  Jim Meyering  <meyering@redhat.com>
42674
42675         gnu-web-doc-update: correct --help output
42676         * build-aux/gnu-web-doc-update: Make --help output relevant.
42677
42678         gnu-web-doc-update: add standard options
42679         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
42680
42681         gnu-web-doc-update: New module.
42682         Use this script to automatically update the on-line web documentation
42683         for your GNU project at http://www.gnu.org/software/$pkg/manual/
42684         * modules/gnu-web-doc-update: New file, from coreutils.
42685         * build-aux/gnu-web-doc-update: New script.
42686
42687 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
42688
42689         link: LoadLibrary is not needed.
42690         * lib/link.c: Use GetModuleHandle.
42691
42692 2009-10-01  Eric Blake  <ebb9@byu.net>
42693
42694         getopt: bump serial number
42695         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
42696         change.
42697
42698         tests: tighten link, rmdir, and remove tests
42699         * tests/test-link.h (includes): No need to use <config.h> here.
42700         Clean up if directory hard link was created, otherwise test for
42701         trailing '.'.
42702         * tests/test-linkat.c (main): Simplify.
42703         * tests/test-remove.c (main): Enhance test for trailing '.'.
42704         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42705
42706 2009-10-01  Jim Meyering  <meyering@redhat.com>
42707
42708         maint.mk: requiring "make major" was annoying, for a "minor" release.
42709         What is intended is "stable", to contrast with alpha and beta,
42710         so require "make stable", not "make major".
42711         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
42712         (get_tool_versions): Likewise.
42713         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
42714
42715 2009-09-30  Ben Pfaff  <blp@gnu.org>
42716
42717         Fix broken build of replacement for Windows tmpfile().
42718         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
42719         flags argument added along with the 'mkostemp' module.
42720
42721 2009-09-28  Bruno Haible  <bruno@clisp.org>
42722
42723         Avoid identifier clash with POSIX function 'remove' defined as a macro.
42724         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
42725         to 'remove_elt'.
42726         (gl_list_remove): Update.
42727         * lib/gl_list.c (gl_list_remove): Update.
42728         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
42729         to 'remove_elt'.
42730         (gl_oset_remove): Update.
42731         * lib/gl_list.c (gl_oset_remove): Update.
42732         Reported by Eric Blake.
42733
42734 2009-09-28  Eric Blake  <ebb9@byu.net>
42735
42736         doc: mention yet more cygwin 1.7 status
42737         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
42738         cygwin.
42739         * doc/glibc-functions/execvpe.texi (execvpe): New file.
42740         * doc/gnulib.texi (Glibc unistd.h): Mention it.
42741
42742         argp: fix test failure
42743         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
42744         that are not upper-case.  Pass correct range to tolower.
42745
42746 2009-09-27  Jim Meyering  <meyering@redhat.com>
42747
42748         test-yesno: work around sparc-dash here-document infelicity
42749         Without this change, the literal \177 byte in a here document
42750         would make dash 0.5.5.1-3 access uninitialized memory.
42751         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
42752         Instead, use a marker, "@", and filter through tr to create the desired
42753         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
42754
42755 2009-09-27  Bruno Haible  <bruno@clisp.org>
42756
42757         Disable untested support for new flavours of ACLs on AIX.
42758         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
42759         progress.
42760         * lib/set-mode-acl.c (qset_acl): Likewise.
42761
42762 2008-12-07  Bruno Haible  <bruno@clisp.org>
42763
42764         Add support for new flavours of ACLs on AIX. (Untested.)
42765         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
42766         (file_has_acl): Add support for newer AIX.
42767         * lib/set-mode-acl.c (qset_acl): Likewise.
42768         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
42769         Rainer Tammer <tammer@tammer.net>.
42770
42771 2009-09-26  Eric Blake  <ebb9@byu.net>
42772
42773         argp: fix compilation of getopt
42774         * lib/getopt.in.h (includes): Use different guard than glibc.
42775         Reported by Sergey Poznyakoff.
42776
42777         doc: mention more cygwin 1.7 status
42778         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
42779         bug.
42780         * doc/posix-functions/execl.texi (execl): Likewise.
42781         * doc/posix-functions/execle.texi (execle): Likewise.
42782         * doc/posix-functions/execlp.texi (execlp): Likewise.
42783         * doc/posix-functions/execv.texi (execv): Likewise.
42784         * doc/posix-functions/execve.texi (execve): Likewise.
42785         * doc/posix-functions/execvp.texi (execvp): Likewise.
42786         * doc/glibc-functions/canonicalize_file_name.texi
42787         (canonicalize_file_name): Cygwin 1.7 now provides this.
42788         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
42789         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
42790         on AT_SYMLINK_NOFOLLOW.
42791
42792 2009-09-24  Eric Blake  <ebb9@byu.net>
42793
42794         test-linkat: make test more robust
42795         * tests/test-linkat.c (main): Avoid collision with EEXIST.
42796
42797         getopt: fix inclusion guards for cygwin
42798         * modules/getopt-posix (Depends-on): Add include-next.
42799         (Makefile.am): Substitute more items in replacement header.
42800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
42801         <getopt.h>.
42802         * lib/getopt.in.h (includes): Use split inclusion guard, and
42803         prefer <getopt.h> over include <unistd.h> when one is present.
42804         (option): Also override name of 'struct option'.
42805
42806         same-inode: revert prior change; it is not yet ready
42807         * NEWS: Undo mention of this change.
42808         * lib/same-inode.h (same-inode.h): Undo tri-state change.
42809         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42810         * lib/cycle-check.c (cycle_check): Likewise.
42811         * lib/same.c (same_name): Likewise.
42812         * lib/at-func2.c (at_func2): Likewise.
42813
42814 2009-09-23  Eric Blake  <ebb9@byu.net>
42815
42816         linkat: new module
42817         * modules/linkat: New file.
42818         * lib/at-func2.c (at_func2): Likewise.
42819         * lib/linkat.c (linkat): Likewise.
42820         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42821         * lib/openat-priv.h (at_func2): Add declaration.
42822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42823         * modules/unistd (Makefile.am): Substitute them.
42824         * lib/unistd.in.h (linkat): Declare it.
42825         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42826         * doc/posix-functions/linkat.texi (linkat): Likewise.
42827         * doc/posix-functions/link.texi (link): Tweak wording.
42828         * tests/test-link.c (main): Move guts...
42829         * tests/test-link.h (test_link): ...into new file.
42830         * modules/linkat-tests: New test.
42831         * tests/test-linkat.c: Likewise.
42832         * modules/link-tests (Files): Ship new file.
42833         (Depends-on): Add stdbool.
42834
42835         dirname: add library-safe mdir_name
42836         * lib/dirname.h (mdir_name): New prototype.
42837         * lib/dirname.c (dir_name): Move guts...
42838         (mdir_name): ...to new function that avoids xalloc_die.
42839
42840         fchdir: another mingw fix
42841         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
42842         * lib/fchdir.c (get_name): New helper method; skips canonicalize
42843         on mingw (where it has not yet been ported), and make it optional
42844         elsewhere.
42845         (_gl_register_fd): Use it.
42846
42847         same-inode: make SAME_INODE tri-state, to port to mingw
42848         * NEWS: Mention this change.
42849         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
42850         st_ino always being 0.
42851         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42852         * lib/cycle-check.c (cycle_check): Likewise.
42853         * lib/same.c (same_name): Likewise.
42854
42855         lstat: avoid mingw compilation error
42856         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
42857         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
42858         lstat ourselves.
42859         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
42860         was adequate.
42861         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
42862         the checks for lstat.
42863         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
42864
42865         link: fix test failure on Solaris 9
42866         * lib/link.c (rpl_link): Don't assume link will catch bogus
42867         trailing slash on source.
42868
42869         test-symlinkat: enhance test
42870         * tests/test-readlink.c (main): Move guts...
42871         * tests/test-readlink.h (test_readlink): ...into new file.
42872         * tests/test-symlink.c (main): Move guts...
42873         * tests/test-symlink.h (test_symlink): ...into new file.
42874         * tests/test-symlinkat.c (main): Use new files for further
42875         coverage.
42876         (do_symlink, do_readlink): New helper functions.
42877         * modules/symlink-tests (Files): Ship new file.
42878         (Depends-on): Add stdbool.
42879         * modules/readlink-tests (Files): Ship new file.
42880         (Depends-on): Add stdbool.
42881         * modules/symlinkat-tests (Files): Use new files.
42882
42883 2009-09-23  Eric Blake  <ebb9@byu.net>
42884
42885         readlink: document portability issue with symlink length
42886         * doc/posix-functions/lstat.texi (lstat): Mention that some file
42887         systems have bogus st_size on symlinks, and mention the
42888         areadlink-with-size module.
42889         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42890         * doc/posix-functions/readlink.texi (readlink): Mention the
42891         areadlink module, and ERANGE failure.
42892         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42893         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
42894
42895         readlink: fix Solaris 9 bug with trailing slash
42896         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
42897         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
42898         * doc/posix-functions/readlink.texi (readlink): Document this.
42899         * modules/readlink-tests: New test.
42900         * tests/test-readlink.c: Likewise.
42901
42902         readlink: fix cygwin 1.5.x bug with return type
42903         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
42904         * lib/unistd.in.h (readlink): Use ssize_t.
42905         * lib/readlink.c (readlink): Likewise.
42906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42907         * modules/unistd (Makefile.am): Substitute it.
42908         * lib/unistd.in.h (readlink): Declare replacement.
42909         * doc/posix-functions/readlink.texi (readlink): Document this.
42910
42911         symlink: use throughout gnulib
42912         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
42913         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
42914         symlink is not used.
42915         * modules/symlinkat (Depends-on): Add symlink.
42916         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42917         * modules/canonicalize-tests (Depends-on): Likewise.
42918         * modules/lstat-tests (Depends-on): Likewise.
42919         * modules/openat-tests (Depends-on): Likewise.
42920         * modules/remove-tests (Depends-on): Likewise.
42921         * modules/rmdir-tests (Depends-on): Likewise.
42922         * modules/unlink-tests (Depends-on): Likewise.
42923         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
42924         * tests/test-canonicalize.c (symlink): Likewise.
42925         * tests/test-fstatat.c (symlink): Likewise.
42926         * tests/test-lstat.c (symlink): Likewise.
42927         * tests/test-remove.c (symlink): Likewise.
42928         * tests/test-rmdir.c (symlink): Likewise.
42929         * tests/test-unlink.c (symlink): Likewise.
42930         * tests/test-unlinkat.c (symlink): Likewise.
42931
42932         symlink: new module, for Solaris 9 bug
42933         * modules/symlink: New file.
42934         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42935         * lib/symlink.c: Likewise.
42936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42937         * modules/unistd (Makefile.am): Substitute them.
42938         * lib/unistd.in.h (symlink): Declare replacement.
42939         * MODULES.html.sh (File system functions): Mention it.
42940         * doc/posix-functions/symlink.texi (symlink): Likewise.
42941         * modules/symlink-tests: New test.
42942         * tests/test-symlink.c: Likewise.
42943
42944 2009-09-23  Bruno Haible  <bruno@clisp.org>
42945
42946         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
42947         when needed.
42948         Test case: gnulib-tool --import --with-tests atexit inttypes.
42949         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
42950
42951 2009-09-23  Bruno Haible  <bruno@clisp.org>
42952
42953         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
42954         subcommand, not in a subshell.
42955
42956 2009-09-22  Eric Blake  <ebb9@byu.net>
42957
42958         unistd: sort replacement declarations
42959         * lib/unistd.in.h: Sort declarations.
42960
42961         open, openat: minor optimization
42962         * lib/open.c (open): If open succeeded, len is non-zero.
42963         * lib/openat.c (rpl_openat): Likewise.
42964
42965         link-follow: ensure correct result
42966         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
42967         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
42968         distinguish between possible failures.
42969
42970 2009-09-21  Eric Blake  <ebb9@byu.net>
42971
42972         fts: avoid compiler warning
42973         * lib/fts.c (dirent_inode_sort_may_be_useful)
42974         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
42975
42976 2009-09-19  Bruno Haible  <bruno@clisp.org>
42977
42978         * lib/progreloc.c (canonicalize_file_name): New declaration.
42979
42980 2009-09-19  Eric Blake  <ebb9@byu.net>
42981
42982         link: fix quoting
42983         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
42984
42985         openat: fix openat bugs on Solaris 9
42986         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
42987         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
42988         * modules/openat (Depends-on): Add open.
42989         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
42990         * modules/fcntl-h (Makefile.am): Substitute it.
42991         * lib/fcntl.in.h (openat): Declare replacement.
42992         * doc/posix-functions/openat.texi (openat): Document this.
42993
42994         openat: move fstatat and unlinkat into correct files
42995         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
42996         compiled.
42997         * lib/openat.c (fstatat, unlinkat): Move...
42998         * lib/fstatat.c (fstatat): ...into correct files.
42999         * lib/unlinkat.c (unlinkat): Likewise.
43000
43001         openat: fix unlinkat bugs on Solaris 9
43002         * lib/unlinkat.c (unlinkat): New file.
43003         * modules/openat (Depends-on): Add unlink.
43004         (Files): Distribute it.
43005         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43006         trailing slash behavior is broken.
43007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43008         * modules/unistd (Makefile.am): Substitute it.
43009         * lib/unistd.in.h (unlinkat): Declare replacement.
43010         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43011
43012         openat: fix fstatat bugs on Solaris 9
43013         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43014         stat.
43015         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43016
43017         test-unlinkat: enhance test, to expose Solaris 9 bug
43018         * tests/test-unlink.c (main): Factor guts...
43019         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43020         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43021         * tests/test-rmdir.c (main): Adjust caller.
43022         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43023         (unlinker): New helper function.
43024         (rmdirat): Enhance check.
43025         * modules/rmdir-tests (Depends-on): Add stdbool.
43026         * modules/unlink-tests (Depends-on): Likewise.
43027         (Files): Add test-unlink.h.
43028         * modules/openat-tests (Files): Likewise.
43029         (Depends-on): Add unlinkdir.
43030
43031         test-fstatat: new test, to expose Solaris 9 bugs
43032         * tests/test-stat.c (main): Factor guts...
43033         * tests/test-stat.h (test_stat_func): ...into new file.
43034         * tests/test-lstat.c (main): Factor guts...
43035         * tests/test-lstat.h (test_lstat_func): ...into new file.
43036         * tests/test-fstatat.c: New file.
43037         * modules/stat-tests (Files): Add test-stat.h.
43038         * modules/lstat-tests (Files): Add test-lstat.h.
43039         (Depends-on): Add stdbool.
43040         * modules/openat-tests (Depends-on): Add pathmax.
43041         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43042         (Makefile.am): Run new test.
43043
43044         remove: new module, for mingw and Solaris 9 bugs
43045         * modules/remove: New file.
43046         * lib/remove.c: Likewise.
43047         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43049         * modules/stdio (Makefile.am): Use them.
43050         * lib/stdio.in.h (remove): Declare replacement.
43051         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43052         * doc/posix-functions/remove.texi (remove): Likewise.
43053         * modules/remove-tests: New test.
43054         * tests/test-remove.c: Likewise.
43055
43056         unlink: new module, for Solaris 9 bug
43057         * modules/unlink: New file.
43058         * lib/unlink.c: Likewise.
43059         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43061         * modules/unistd (Makefile.am): Use them.
43062         * lib/unistd.in.h (stat): Declare replacement.
43063         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43064         * doc/posix-functions/unlink.texi (unlink): Likewise.
43065         * modules/unlink-tests: New test.
43066         * tests/test-unlink.c: Likewise.
43067
43068         lstat: fix Solaris 9 bug
43069         * lib/lstat.c (lstat): Also check for trailing slash on
43070         non-symlink, non-directories.  Use stat module to simplify logic.
43071         * doc/posix-functions/lstat.texi (lstat): Document it.
43072         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43073         (configure.ac): Check for symlink.
43074         * tests/test-lstat.c (main): Add more tests.
43075
43076         stat: add as dependency to other modules
43077         * modules/chown (Depends-on): Add stat.
43078         * modules/euidaccess (Depends-on): Likewise.
43079         * modules/fchdir (Depends-on): Likewise.
43080         * modules/isdir (Depends-on): Likewise.
43081         * modules/link (Depends-on): Likewise.
43082         * modules/lstat (Depends-on): Likewise.
43083         * modules/mkdir-p (Depends-on): Likewise.
43084         * modules/modechange (Depends-on): Likewise.
43085         * modules/open (Depends-on): Likewise.
43086         * modules/readlink (Depends-on): Likewise.
43087         * modules/same (Depends-on): Likewise.
43088
43089         stat: fix Solaris 9 bug
43090         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43091         slash.
43092         * lib/stat.c (rpl_stat): Work around it.
43093         * doc/posix-functions/stat.texi (stat): Update documentation.
43094
43095         stat: new module, for mingw bug
43096         * modules/stat: New file.
43097         * lib/stat.c: Likewise.
43098         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43099         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43100         * modules/sys_stat (Makefile.am): Use them.
43101         * lib/sys_stat.in.h (stat): Declare replacement.
43102         * lib/openat.c (fstatat): Deal with lstat and stat being function
43103         macros.
43104         * modules/openat (Depends-on): Add inline.
43105         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43106         * doc/posix-functions/stat.texi (stat): Likewise.
43107         * modules/stat-tests: New test.
43108         * tests/test-stat.c: Likewise.
43109
43110 2009-09-19  Jim Meyering  <meyering@redhat.com>
43111
43112         syntax-check: detect unnecessary inclusion of canonicalize.h
43113         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43114
43115 2009-09-19  Eric Blake  <ebb9@byu.net>
43116
43117         canonicalize-lgpl: adjust clients to use correct header
43118         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43119         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43120         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43121         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43122         * lib/progreloc.c (includes): Likewise.
43123
43124 2009-09-19  Jim Meyering  <meyering@redhat.com>
43125
43126         test-posixtm.c: correct a comment
43127         * tests/test-posixtm.c: Correct first-line comment.
43128         Spotted by Eric Blake.
43129
43130 2009-09-16  Jim Meyering  <meyering@redhat.com>
43131
43132         posixtm-tests: make T const-correct; add a test case
43133         * tests/test-posixtm.c (T): Declare const.
43134         Add a test for -(2^31+1).
43135         Remove useless can-succeed-only-in-2002 test.
43136
43137         posixtm-tests: adjust the sole failing test
43138         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43139         expected output matches what mktime now produces.  Cross-checked via
43140         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43141
43142         posixtm: move #ifdef'd tests into a new module
43143         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43144         * tests/test-posixtm.c: ... this new file.
43145         * modules/posixtm-tests: New module.
43146
43147 2009-09-19  Eric Blake  <ebb9@byu.net>
43148
43149         openat: simplify use of at-func.c
43150         * lib/at-func.c (includes): Include prerequisites here, to
43151         simplify requirements on client files.
43152         * lib/openat-priv.h: Add double-inclusion guard.
43153         * lib/faccessat.c (includes): Simplify.
43154         * lib/fchmodat.c (includes): Likewise.
43155         * lib/fchownat.c (includes): Likewise.
43156         * lib/mkdirat.c (includes): Likewise.
43157         * lib/mkfifoat.c (includes): Likewise.
43158         * lib/symlinkat.c (includes): Likewise.
43159
43160         openat: allow return of fd 0
43161         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43162         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43163         unistd-safer.
43164         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43165         <fcntl.h>; this module does not leak fds.
43166         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43167         must be allowed to return 0, leaving openat_safer to add the
43168         safety.
43169         (openat_permissive): Avoid writing to just-opened fd 2 if
43170         restoring the current directory fails.
43171         * lib/openat-die.c (openat_restore_fail): Add comment.
43172         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43173         (save_cwd): Guarantee safe fd, but without use of open_safer.
43174         * tests/test-openat.c: New test.
43175         * modules/openat-tests (Files, Makefile.am): Distribute and build
43176         new file.
43177
43178         relocatable-prog-wrapper: fix build
43179         * modules/relocatable-prog-wrapper (Files): Update name of
43180         canonicalize m4 file, broken on 2009-09-17.
43181         Reported by emad hajjar <aleppos@hotmail.com>.
43182
43183 2009-09-19  Bruno Haible  <bruno@clisp.org>
43184
43185         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43186         * lib/safe-alloc.c: Likewise.
43187         Reported by Ian Beckwith <ianb@erislabs.net>.
43188
43189 2009-09-18  Bruno Haible  <bruno@clisp.org>
43190
43191         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43192         Reported by <erobles@sensacd.com.mx>.
43193
43194 2009-09-17  Eric Blake  <ebb9@byu.net>
43195
43196         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43197         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43198         slashes when checking if last component is missing.
43199         * tests/test-canonicalize.c (main): Test this.
43200
43201         canonicalize, canonicalize-lgpl: honor // if distinct from /
43202         * modules/canonicalize (Files): Add double-slash-root.m4.
43203         * modules/canonicalize-lgpl (Files): Likewise.
43204         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43205         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43206         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43207         fallback definition.
43208         (canonicalize_filename_mode): Use it to protect //.
43209         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43210         (__realpath): Likewise.
43211         * tests/test-canonicalize.c (main): Test this.
43212         * tests/test-canonicalize-lgpl.c (main): Likewise.
43213         * modules/canonicalize-tests (Depends-on): Add same-inode.
43214         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43215
43216         canonicalize-lgpl: fix glibc bug with trailing slash
43217         * m4/canonicalize-lgpl.m4: Move contents...
43218         * m4/canonicalize.m4: ...here.
43219         (gl_CANONICALIZE_LGPL): Factor realpath check...
43220         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43221         glibc 2.3.5 bug, fixed 2005-04-27.
43222         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43223         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43224         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43225         * modules/canonicalize-lgpl (Files): Manage file rename.
43226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43227         * modules/stdlib (Makefile.am): Substitute witness.
43228         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43229         is needed.
43230         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43231         replacement is required.
43232         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43233         * doc/glibc-functions/canonicalize_file_name.texi
43234         (canonicalize_file_name): Document this.
43235         * doc/posix-functions/realpath.texi (realpath): Likewise.
43236
43237         canonicalize-lgpl: reject non-directory with trailing slash
43238         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43239         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43240         catches failures in glibc 2.3.5.
43241         * tests/test-canonicalize.c (main): Likewise.
43242
43243         canonicalize-lgpl: use native realpath if it works
43244         * lib/canonicalize-lgpl.c (realpath): Guard with
43245         FUNC_REALPATH_WORKS.
43246         * lib/stdlib.in.h (realpath): Make declaration optional based on
43247         HAVE_REALPATH.
43248         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43249         native realpath works.
43250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43251         * modules/stdlib (Makefile.am): Substitute witness.
43252
43253         canonicalize, canonicalize-lgpl: use <stdlib.h>
43254         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43255         (Include): Mention <stdlib.h>.
43256         (configure.ac): Mention functions we provide.
43257         * modules/canonicalize (configure.ac): Likewise.
43258         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43259         realpath if canonicalize_file_name is missing.
43260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43261         * modules/stdlib (Makefile.am): Substitute witnesses.
43262         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43263         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43264         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43265         * NEWS: Document this.
43266         * doc/glibc-functions/canonicalize_file_name.texi
43267         (canonicalize_file_name): Likewise.
43268         * doc/posix-functions/realpath.texi (realpath): Likewise.
43269         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43270
43271         test-canonicalize: consolidate into single C program
43272         * tests/test-canonicalize.sh: Delete; move setup into...
43273         * tests/test-canonicalize.c (main): ...the program, making it
43274         easier to run in debugger.  Add some tests.
43275         * modules/canonicalize-tests (Files): Remove unused file.
43276         (Depends-on): Add progname.
43277         (configure.ac, Makefile.am): Simplify.
43278
43279         test-canonicalize-lgpl: consolidate into single C program
43280         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43281         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43282         easier to run in debugger.  Add some tests.
43283         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43284         (configure.ac, Makefile.am): Simplify.
43285
43286         canonicalize: avoid resolvepath
43287         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43288         unnecessary checks.
43289         * lib/canonicalize.c (includes): Simplify.
43290         (canonicalize_file_name): Drop resolvepath implementation.
43291         * modules/canonicalize (Depends-on): Drop filenamecat.
43292
43293         canonicalize: don't lose errno
43294         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43295         over calls to free.
43296
43297         canonicalize: simplify errno handling
43298         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43299         assignment.
43300
43301         canonicalize, canonicalize-lgpl: update module dependencies
43302         * modules/canonicalize (Depends-on): Add extensions, lstat,
43303         pathmax, stdlib.
43304         (Files): Drop pathmax.h.
43305         (configure.ac): Adjust macro name.
43306         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43307         lstat, stdlib, sys_stat.
43308         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43309         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43310         extensions.
43311         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43312         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43313         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43314         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43315         declaration, if available.
43316         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43317         we can rely on the readlink module.
43318         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43319         (includes): Use <unistd.h> unconditionally.
43320
43321 2009-09-17  Eric Blake  <ebb9@byu.net>
43322
43323         maint: make Include sections of modules consistent
43324         * modules/alloca: Use only header name; no need to list #include.
43325         * modules/alloca-opt: Likewise.
43326         * modules/arpa_inet: Likewise.
43327         * modules/canon-host: Likewise.
43328         * modules/configmake: Likewise.
43329         * modules/dirent: Likewise.
43330         * modules/eealloc: Likewise.
43331         * modules/environ: Likewise.
43332         * modules/fchdir: Likewise.
43333         * modules/fcntl: Likewise.
43334         * modules/fcntl-h: Likewise.
43335         * modules/gethrxtime: Likewise.
43336         * modules/gettime: Likewise.
43337         * modules/ignore-value: Likewise.
43338         * modules/inet_ntop: Likewise.
43339         * modules/inet_pton: Likewise.
43340         * modules/inttypes: Likewise.
43341         * modules/isnand-nolibm: Likewise.
43342         * modules/isnanf-nolibm: Likewise.
43343         * modules/mbchar: Likewise.
43344         * modules/mbfile: Likewise.
43345         * modules/mbiter: Likewise.
43346         * modules/mbuiter: Likewise.
43347         * modules/netdb: Likewise.
43348         * modules/netinet_in: Likewise.
43349         * modules/nproc: Likewise.
43350         * modules/pagealign_alloc: Likewise.
43351         * modules/poll: Likewise.
43352         * modules/printf-frexp: Likewise.
43353         * modules/pthread: Likewise.
43354         * modules/putenv: Likewise.
43355         * modules/random_r: Likewise.
43356         * modules/relocatable-prog: Likewise.
43357         * modules/search: Likewise.
43358         * modules/select: Likewise.
43359         * modules/selinux-h: Likewise.
43360         * modules/settime: Likewise.
43361         * modules/signal: Likewise.
43362         * modules/size_max: Likewise.
43363         * modules/socklen: Likewise.
43364         * modules/ssize_t: Likewise.
43365         * modules/stdarg: Likewise.
43366         * modules/stdbool: Likewise.
43367         * modules/stddef: Likewise.
43368         * modules/stdint: Likewise.
43369         * modules/stdio: Likewise.
43370         * modules/stdlib: Likewise.
43371         * modules/string: Likewise.
43372         * modules/strings: Likewise.
43373         * modules/sys_file: Likewise.
43374         * modules/sys_ioctl: Likewise.
43375         * modules/sys_select: Likewise.
43376         * modules/sys_socket: Likewise.
43377         * modules/sys_stat: Likewise.
43378         * modules/sys_time: Likewise.
43379         * modules/sys_times: Likewise.
43380         * modules/sys_utsname: Likewise.
43381         * modules/sys_wait: Likewise.
43382         * modules/sysexits: Likewise.
43383         * modules/time: Likewise.
43384         * modules/times: Likewise.
43385         * modules/tmpfile: Likewise.
43386         * modules/trim: Likewise.
43387         * modules/unistd: Likewise.
43388         * modules/wchar: Likewise.
43389         * modules/wctype: Likewise.
43390
43391 2009-09-17  Bruno Haible  <bruno@clisp.org>
43392
43393         Make getdate.y compile on QNX and NetBSD 5 / i386.
43394         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43395         TIME_T_FITS_IN_LONG_INT.
43396         * lib/getdate.y (long_time_t): New type.
43397         (relative_time): Change type of 'seconds' field to long_time_t.
43398         (get_date): Update types of local variables. Check against overflow
43399         during conversion from long_time_t to time_t.
43400         Reported by Matt Kraai <kraai@ftbfs.org>
43401         and Hasso Tepper <hasso@netbsd.org>.
43402
43403 2009-09-17  Bruno Haible  <bruno@clisp.org>
43404
43405         * modules/COPYING: Update copyright years.
43406         * modules/README: Likeiwse.
43407         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43408         Reported by Ian Beckwith <ianb@erislabs.net>.
43409
43410 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43411
43412         * users.txt: Update references for gnuit package.
43413
43414 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43415
43416         * m4/getdelim.m4: Fix typo in copyright line.
43417
43418 2009-09-17  Bruno Haible  <bruno@clisp.org>
43419
43420         * lib/atoll.c: Use the standard header with GPL copyright.
43421         * lib/argz.in.h: Likewise.
43422         * lib/glob.c: Likewise.
43423         * lib/glob-libc.h: Likewise.
43424         * lib/random_r.c: Likewise.
43425         * lib/siglist.h: Likewise.
43426         * lib/strsignal.c: Likewise.
43427         Reported by Ian Beckwith <ianb@erislabs.net>.
43428
43429 2009-09-17  Eric Blake  <ebb9@byu.net>
43430
43431         rmdir: ensure correct dependency order
43432         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43433
43434 2009-09-17  Bruno Haible  <bruno@clisp.org>
43435
43436         Disable assertion that fails on NetBSD 5 / i386.
43437         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43438         Reported by Sam Steingold <sds@gnu.org>
43439         and Hasso Tepper <hasso@netbsd.org>.
43440
43441 2009-09-16  Eric Blake  <ebb9@byu.net>
43442
43443         unlinkdir: port to mingw
43444         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43445         on which no one can unlink a directory.
43446
43447         stdlib: sort witness names
43448         * modules/stdlib (Makefile.am): Sort replacements.
43449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43450         * lib/stdlib.in.h: Likewise.
43451
43452         parse-duration-tests: avoid link failure
43453         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43454         LIBINTL.
43455         Reported by Tom G. Christensen.
43456
43457         openat-tests: ensure unlinkat behaves like rmdir
43458         * tests/test-rmdir.c (main): Factor guts...
43459         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43460         * modules/rmdir-tests (Files): Ship new file.
43461         * modules/openat-tests: New test.
43462         * tests/test-unlinkat.c: Likewise.
43463
43464         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43465         * modules/rmdir-errno (Status, Notice): Now obsolete.
43466
43467         rmdir: work around cygwin 1.5.x and mingw bugs
43468         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43469         * lib/rmdir.c (rmdir): Work around it.
43470         * modules/rmdir (Status, Notice): No longer obsolete.
43471         (Files): Add dos.m4.
43472         (Depends-on): Add unistd.
43473         (configure.ac): Set witnesses.
43474         (License): Relax to LGPLv2+.
43475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43476         * modules/unistd (Makefile.am): Substitute witnesses.
43477         * lib/unistd.in.h (rmdir): Declare replacement.
43478         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43479         * modules/rmdir-tests: New tests.
43480         * tests/test-rmdir.c: Likewise.
43481
43482 2009-09-15  Eric Blake  <ebb9@byu.net>
43483
43484         fchdir: improve use of replacement functions
43485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43486         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43487         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43488         REPLACE_CLOSEDIR.
43489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43490         * modules/sys_stat (Makefile.am): Substitute correct witness.
43491         * modules/dirent (Makefile.am): Likewise.
43492         * modules/unistd (Makefile.am): Likewise.
43493         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43494         * lib/unistd.in.h (dup): Likewise.
43495         * lib/sys_stat.in.h (fstat): Likewise.
43496
43497         maint: ignore gnulib-tool temp files
43498         * .gitignore: Ignore files created during gnulib-tool --test.
43499
43500 2009-09-13  Jim Meyering  <meyering@redhat.com>
43501
43502         posixtm: don't reject a time that specify "60" as the number of seconds
43503         * lib/posixtm.c (posixtime): The code to reject invalid dates
43504         would also reject a time specified with the .60 suffix.
43505         But POSIX allows that, in order to accommodate leap seconds.
43506         So don't reject it.
43507         (main): Adjust tests accordingly.
43508         * modules/posixtm (Depends-on): Add stpcpy.
43509
43510 2009-09-11  Jim Meyering  <meyering@redhat.com>
43511
43512         announce-gen: include [$release_type] in emitted Subject:
43513         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43514         e.g., [stable] in the emitted Subject: line.
43515
43516 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43517
43518         Remove obsolete macros from several modules.
43519         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43520         obsolete Autoconf macros with their modern counterparts.
43521         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43522         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43523         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43524         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43525         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
43526         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43528         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43529         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43530         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
43531         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43533         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43534         * m4/sockets.m4 (gl_SOCKETS): Likewise.
43535         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
43536         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
43537         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43538         * m4/time_r.m4 (gl_TIME_R): Likewise.
43539         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43540         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
43541         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43542
43543         Fix copyright header in build-aux scripts.
43544         * build-aux/git-version-gen: Fix copyright header to match GPLv3
43545         recommendation.
43546         * build-aux/ncftpput-ftp: Likewise.
43547         * build-aux/update-copyright: Likewise.
43548
43549 2009-09-09  Eric Blake  <ebb9@byu.net>
43550
43551         test-link: allow Linux choice of errno
43552         * tests/test-link.c (main): Relax test for alternate error.
43553
43554         strndup: fix improper m4 caching
43555         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
43556         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
43557         (gl_PREREQ_STRNDUP): Delete.
43558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
43559         * modules/string (Makefile.am): Substitute it.
43560         * lib/string.in.h (strndup): Modernize prototype.
43561
43562         getcwd: port to mingw
43563         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
43564         different from the POSIX assumptions made throughout the getcwd
43565         module; fortunately, the mingw getcwd does not need replacement.
43566         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
43567         * modules/getcwd-tests: New test.
43568         * tests/test-getcwd.c: Likewise.
43569
43570         link: fix platform bugs
43571         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
43572         * lib/link.c (link): Work around them.  Fix related mingw bug.
43573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
43574         * modules/unistd (Makefile.am): Substitute it.
43575         * lib/unistd.in.h (link): Declare replacement.
43576         * doc/posix-functions/link.texi (link): Document this.
43577         * modules/link (Depends-on): Add strdup-posix, sys_stat.
43578
43579         test-link: consolidate into single C program, test more cases
43580         * tests/test-link.sh: Delete.
43581         * tests/test-link.c: Test more error conditions.  Exposes bugs on
43582         at least Cygwin and Solaris.
43583         * modules/link-tests (Files): Remove unused file.
43584         (Depends-on): Add errno, sys_stat.
43585         (Makefile.am): Simplify.
43586
43587 2009-09-08  Bruno Haible  <bruno@clisp.org>
43588
43589         Work around towlower, towupper bug on mingw.
43590         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
43591         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
43592         * doc/posix-functions/towlower.texi: Mention the mingw bug.
43593         * doc/posix-functions/towupper.texi: Likewise.
43594         Reported by Eric Blake.
43595
43596 2009-09-08  Jim Meyering  <meyering@redhat.com>
43597
43598         build: don't try to run autoheader if we don't use it
43599         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
43600         is not used in configure.ac.
43601
43602 2009-09-08  Eric Blake  <ebb9@byu.net>
43603
43604         euidaccess: fix compilation error
43605         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
43606
43607         rawmemchr: relax license
43608         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
43609         okay.
43610         Reported by Jim Meyering.
43611
43612         mkfifoat: new module
43613         * modules/mkfifoat: New file.
43614         * lib/mkfifoat.c: Likewise.
43615         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
43616         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43617         * modules/sys_stat (Makefile.am): Use them.
43618         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
43619         * MODULES.html.sh (File system functions): Mention module.
43620         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43621         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43622         * modules/mkfifoat-tests: New test.
43623         * tests/test-mkfifoat.c: Likewise.
43624
43625         strchrnul: relax license
43626         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
43627         okay.
43628         Reported by Jim Meyering.
43629
43630 2009-09-08  Eric Blake  <ebb9@byu.net>
43631
43632         fstatat: fix compilation on Solaris
43633         * lib/fstatat.c (includes): Add fcntl.h.
43634         Reported by Pádraig Brady.
43635
43636 2009-09-07  Eric Blake  <ebb9@byu.net>
43637
43638         rename: modernize replacement
43639         * modules/rename (Depends-on): Add stdio.
43640         (configure.ac): Declare witness.
43641         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
43642         stdio take care of replacement.
43643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
43644         * modules/stdio (Makefile.am): Substitute them.
43645         * lib/stdio.in.h (rename): Declare replacement.
43646         * lib/rename.c (includes): Allow cross-compilation to non-windows
43647         machines.
43648         * doc/posix-functions/rename.texi (rename): Improve
43649         documentation.
43650
43651         stdio: sort witness names
43652         * modules/stdio (Makefile.am): Sort replacements.
43653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43654         * lib/stdio.in.h: Likewise.
43655
43656         getcwd: minor cleanups
43657         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
43658         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
43659
43660         openat: provide more convenience names
43661         * modules/faccessat (configure.ac): Add C witness.
43662         * lib/unistd.in.h (readlinkat): Fix typo.
43663         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
43664         convenience wrappers.
43665         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
43666         wrappers in syntax checks.
43667
43668 2009-09-06  Eric Blake  <ebb9@byu.net>
43669
43670         doc: fix comments in recent patches
43671         * lib/faccessat.c: Mention correct function.
43672         * lib/fchmodat.c: Likewise.
43673         * lib/fchownat.c: Likewise.
43674         * lib/symlinkat.c: Likewise.
43675         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
43676         constants.
43677
43678         faccessat, symlinkat: continue cleanup of previous patch
43679         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
43680         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43681         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
43682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
43683         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
43684         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
43685         set.
43686
43687 2009-09-06  Bruno Haible  <bruno@clisp.org>
43688
43689         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
43690         (fstatat): Declare if GNULIB_FSTATAT is set.
43691         (mkdirat): Declare if GNULIB_MKDIRAT is set.
43692         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
43693         (unlinkat): Declare if GNULIB_UNLINKAT is set.
43694         * modules/fcntl-h (Files): Remove m4/openat.m4.
43695         * modules/sys_stat (Files): Remove m4/openat.m4.
43696         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
43697         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
43698         * modules/unistd (Files): Remove m4/openat.m4.
43699         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
43700         GNULIB_OPENAT.
43701         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
43702         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
43703         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
43704         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
43705         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
43706         gl_OPENAT_DEFAULTS.
43707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
43708         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
43709         Don't require gl_OPENAT_DEFAULTS.
43710         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
43711         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
43712         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
43713         (gl_OPENAT_DEFAULTS): Remove macro.
43714
43715 2009-09-06  Bruno Haible  <bruno@clisp.org>
43716
43717         * modules/openat (configure.ac): Remove unneeded witness.
43718
43719 2009-09-06  Bruno Haible  <bruno@clisp.org>
43720
43721         Set errno to ENOSYS when a function is entirely unsupported.
43722         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
43723         EOPNOTSUPP.
43724         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43725         * modules/chown (Depends-on): Remove errno.
43726
43727 2009-09-06  Bruno Haible  <bruno@clisp.org>
43728
43729         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
43730
43731 2009-09-06  Bruno Haible  <bruno@clisp.org>
43732
43733         * lib/sys_stat.in.h: Fix preprocessor command indentation.
43734
43735 2009-09-06  Ben Pfaff  <blp@gnu.org>
43736             Bruno Haible  <bruno@clisp.org>
43737
43738         Work around a glibc bug in strtok_r.
43739         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
43740         Undefine if UNDEFINE_STRTOK_R is set.
43741         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
43742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43743         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
43744         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
43745         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
43746         UNDEFINE_STRTOK_R.
43747         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
43748
43749 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43750
43751         exclude: minor fix
43752         * lib/exclude.c: Include wctype.h
43753
43754 2009-09-06  Akim Demaille  <demaille@gostai.com>
43755
43756         bootstrap: improve error message
43757         * build-aux/bootstrap (find_tool): Upon failure, report the list
43758         of candidates.
43759         Honor the initial value of the envvar.
43760
43761 2009-09-05  Eric Blake  <ebb9@byu.net>
43762
43763         symlinkat: new module
43764         * modules/symlinkat: New file.
43765         * lib/symlinkat.c: Likewise.
43766         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
43767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43768         * modules/unistd (Makefile.am): Use them.
43769         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
43770         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
43771         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
43772         * MODULES.html.sh (File system functions): Mention module.
43773         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43774         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43775         * modules/symlinkat-tests: New test.
43776         * tests/test-symlinkat.c: Likewise.
43777
43778         test-openat-safer: add more checks
43779         * tests/test-openat-safer.c (main): Check more code paths.
43780
43781 2009-09-05  Jim Meyering  <meyering@redhat.com>
43782
43783         syntax-check: detect unnecessary inclusion of openat.h
43784         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
43785
43786 2009-09-05  Bruno Haible  <bruno@clisp.org>
43787
43788         Support towlower, towupper.
43789         * doc/posix-functions/towlower.texi: Mention module wctype.
43790         * doc/posix-functions/towupper.texi: Likewise.
43791         * lib/wctype.in.h (towlower, towupper): New functions.
43792         * tests/test-wctype.c: Include stdio.h, stdlib.h.
43793         (ASSERT): New macro.
43794         (e): New variable.
43795         (main): Test also towlower, towupper. Test WEOF argument.
43796         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43797
43798 2009-09-05  Bruno Haible  <bruno@clisp.org>
43799
43800         Fix conversion behaviour when the input is invalid.
43801         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
43802         mark occurring in first pass of indirect conversion.
43803         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
43804         input.
43805         Found by clang's static analyzer.
43806
43807 2009-09-05  Bruno Haible  <bruno@clisp.org>
43808
43809         * tests/test-striconveh.c (main): Test indirect conversion on platforms
43810         where direct conversion is possible.
43811
43812 2009-09-04  Eric Blake  <ebb9@byu.net>
43813
43814         openat: fail with ENOENT on empty name
43815         * lib/openat-proc.c (openat_proc_name): Special-case the empty
43816         buffer.
43817
43818         link-follow: fix logic bug in prior patch
43819         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
43820         reversed sense of yes and no in prior patch.  Avoid confusing
43821         compilation failure with desired semantics.
43822
43823         link-follow: accommodate mingw and cross-compilation
43824         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
43825         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
43826         cross-compilation results to -1, to make linkat easier to
43827         implement when cross-compiling.  Trivially support mingw.
43828         * modules/link-follow (configure.ac): Call new name.
43829         * NEWS: Mention this.
43830
43831 2009-09-03  Eric Blake  <ebb9@byu.net>
43832
43833         faccessat: compile replacement
43834         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
43835         needed.
43836
43837         fts: fix compilation error
43838         * lib/fts.c (includes): Re-add "openat.h", for
43839         openat_needs_fchdir.
43840
43841         faccessat: new module
43842         * modules/faccessat: New file.
43843         * lib/faccessat.c: Likewise.
43844         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43846         * modules/unistd (Makefile.am): Use it.
43847         * lib/unistd.in.h (faccessat): Declare it.
43848         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
43849         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
43850         * MODULES.html.sh (File system functions): Mention it.
43851         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
43852         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
43853
43854         euidaccess: prefer POSIX over non-standard implementation
43855         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
43856         * lib/euidaccess.c (euidaccess): Use it if available.
43857
43858         openat: make template easier to use
43859         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
43860         AT_FUNC_F2 to be undefined.
43861         (VALIDATE_FLAG): New macro; use it to reject bad flags.
43862         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
43863         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
43864         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
43865         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
43866         Likewise.
43867         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
43868         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
43869         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
43870         Likewise.
43871
43872         openat: declare in POSIX headers
43873         * NEWS: Mention this.
43874         * modules/openat (configure.ac): Declare witnesses.
43875         (Depends-on): Add fcntl-h, sys_stat, unistd.
43876         (Include): Mention correct headers.
43877         * modules/fcntl-h (Depends-on): Add link-warning.
43878         (Files): Add openat.m4.
43879         (Makefile.am): Substitute witnesses.
43880         * modules/sys_stat (Files, Makefile.am): Likewise.
43881         * modules/unistd (Files, Makefile.am): Likewise.
43882         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
43883         (gl_OPENAT_DEFAULTS): New macro.
43884         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
43885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
43886         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
43887         (SYS_STAT_H): Remove unused variable.
43888         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
43889         * lib/fcntl--.h (includes): Remove unneeded header.
43890         * lib/openat-safer.c (includes): Likewise.
43891         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
43892         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
43893         appropriate headers.
43894         (__OPENAT_PREFIX): Delete.
43895         * lib/fcntl.in.h (openat): Provide declaration.
43896         (AT_FDCWD): Fix Solaris bug.
43897         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
43898         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
43899         * lib/fchmodat.c (includes):  Adjust to find declaration.
43900         * lib/fchownat.c (includes): Likewise.
43901         * lib/mkdirat.c (includes): Likewise.
43902         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
43903         still visible.
43904
43905 2009-09-02  Eric Blake  <ebb9@byu.net>
43906
43907         errno: use consistently
43908         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
43909         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
43910         * lib/canonicalize.c (ELOOP): Likewise.
43911         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
43912         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
43913         * lib/lchown.c (EOPNOTSUPP): Likewise.
43914         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
43915         * lib/savewd.c (ESTALE): Likewise.
43916         * lib/settime.c (ENOSYS): Likewise.
43917         * lib/utimens.c (ENOSYS): Likewise.
43918         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
43919         * lib/chdir-safer.c (ELOOP): Likewise.
43920         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
43921         * modules/c-stack (Depends-on): Add errno.
43922         * modules/canonicalize (Depends-on): Likewise.
43923         * modules/chdir-safer (Depends-on): Likewise.
43924         * modules/fdopendir (Depends-on): Likewise.
43925         * modules/inet_ntop (Depends-on): Likewise.
43926         * modules/inet_pton (Depends-on): Likewise.
43927         * modules/lchown (Depends-on): Likewise.
43928         * modules/openat (Depends-on): Likewise.
43929         * modules/savewd (Depends-on): Likewise.
43930         * modules/settime (Depends-on): Likewise.
43931         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
43932
43933         fts: avoid leaking fds
43934         * modules/fts (Depends-on): Add cloexec.
43935         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
43936         flag.
43937
43938         fts: make directory fds more robust
43939         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
43940         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
43941
43942         backupfile, chdir-long, fts, savedir: make safer
43943         * lib/backupfile.c (includes): Use "dirent--.h", since
43944         numbered_backup can write to stderr during readdir.
43945         * lib/savedir.c (includes): Likewise.
43946         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
43947         emulation can write to stderr on failure.
43948         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
43949         * lib/getcwd.c: Document why opendir_safer is unused.
43950         * lib/glob.c: Likewise.
43951         * lib/scandir.c: Likewise.
43952         * lib/openat-proc.c: Likewise, for open_safer.
43953         * modules/backupfile (Depends-on): Add dirent-safer.
43954         * modules/savedir (Depends-on): Likewise.
43955         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
43956         * modules/chdir-long (Depends-on): Add openat-safer.
43957
43958         openat-safer: new module
43959         * modules/openat-safer: New file.
43960         * lib/openat-safer.c: Likewise.
43961         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
43962         * lib/fcntl-safer.h (openat_safer): Declare.
43963         * lib/fcntl--.h (openat): Override.
43964         * MODULES.html.sh (File descriptor based I/O): Mention it.
43965         * lib/openat.h: Add double-inclusion guards.
43966         * lib/openat.c (includes): Only include "fcntl-safer.h", not
43967         "fcntl--.h", so we can implement openat.
43968         * modules/openat-safer-tests: New test.
43969         * tests/test-openat-safer.c: New file.
43970
43971         dirent-safer: new module
43972         * modules/dirent-safer: New file.
43973         * lib/dirent--.h: Likewise.
43974         * lib/dirent-safer.h: Likewise.
43975         * lib/opendir-safer.c: Likewise.
43976         * m4/dirent-safer.m4: Likewise.
43977         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
43978         * modules/dirent-safer-tests: New test.
43979         * tests/test-dirent-safer.c: New file.
43980         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
43981
43982         fdopendir: optimize on mingw
43983         * lib/unistd.in.h (_gl_directory_name): New prototype.
43984         * lib/fchdir.c (_gl_directory_name): Implement it.
43985         (fchdir): Use it to simplify implementation.
43986         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
43987         fchdir, when available, to avoid calling [f]chdir().
43988
43989         fdopendir: split into its own module
43990         * lib/openat.c (fdopendir): Move...
43991         * lib/fdopendir.c: ...into new file.
43992         * modules/fdopendir: New module.
43993         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
43994         * modules/openat (Depends-on): Add fdopendir.
43995         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
43996         fdopendir here.
43997         * modules/savedir (Depends-on): Only need fdopendir, not full
43998         openat.
43999         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44000         * lib/openat.h (fdopendir): Drop prototype.
44001         * lib/dirent.in.h (fdopendir): Provide prototype.
44002         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44003         * modules/dirent (Makefile.am): Substitute them.
44004         * MODULES.html.sh (File system functions): Mention it.
44005         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44006         * modules/fdopendir-tests: New file.
44007         * tests/test-fdopendir.c: Likewise.
44008
44009         fchdir: use more consistent macro convention
44010         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44011         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44012         REPLACE_FCHDIR, rather than relying on config.h macros.
44013         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44014         inside a single make-time REPLACE_FCHDIR block, rather than using
44015         the config.h FCHDIR_REPLACEMENT.
44016         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44017         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44018         Manage fstat replacement.
44019         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44020         REPLACE_FCHDIR.
44021         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44022         (Makefile.am): Substitute REPLACE_FCHDIR.
44023         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44024         FCHDIR_REPLACEMENT.
44025         * lib/dup-safer.c (dup_safer): Likewise.
44026         * lib/dup2.c (rpl_dup2): Likewise.
44027         * lib/dup3.c (rpl_dup3): Likewise.
44028         * lib/open.c (rpl_open): Likewise.
44029
44030         fchdir: simplify error handling, and support dup3
44031         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44032         stdbool, malloc-posix, realloc-posix.
44033         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44034         (ensure_dirs_slot): Return false on allocation failure.
44035         (rpl_dup2): Delete.
44036         (_gl_register_dup): New function.
44037         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44038         (_gl_register_fd): Close fd on allocation failure.
44039         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44040         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44041         prototype.
44042         (rpl_dup2_fchdir): Delete prototype.
44043         * lib/open.c (open): Update caller.
44044         * lib/dup2.c (dup2): Track fchdir metadata.
44045         * lib/dup3.c (dup3): Likewise.
44046         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44047         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44048
44049 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44050
44051         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44052         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44053         don't pass arguments to AC_OUTPUT.
44054
44055 2009-09-02  Bruno Haible  <bruno@clisp.org>
44056
44057         * modules/mkdtemp (License): Relicense under LGPLv2+.
44058         Reported by Paolo Bonzini.
44059
44060 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44061
44062         Replace uses of obsolete autoconf macros in Jim's modules.
44063         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44064         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44065         can evoke a warning from autoconf when run with -Wobsolete
44066         enabled.  They were declared obsolete for good reasons (see
44067         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44068         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44069         should not continue using the deprecated macros.
44070         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44071         obsolete Autoconf macros with modern counterparts.
44072         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44073         * m4/dos.m4 (gl_AC_DOS): Likewise.
44074         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44075         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44076         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44077         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44078         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44079         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44080         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44081         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44082         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44083         Likewise.
44084         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44085         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44086         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44087         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44088         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44089         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44090
44091 2009-09-01  Eric Blake  <ebb9@byu.net>
44092
44093         fchdir: fix off-by-one bug in previous patch
44094         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44095         (_gl_unregister_fd): Delete useless if.
44096
44097 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44098
44099         maint.mk: sort the list of syntax-check rules
44100         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44101         easier to get a sense of progress when the rules are run sequentially
44102         and take a long time.
44103
44104 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44105
44106         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44107         * modules/netinet_in: Likewise.
44108         * modules/sys_file: Likewise.
44109         * modules/sys_ioctl: Likewise.
44110         * modules/sys_select: Likewise.
44111         * modules/sys_socket: Likewise.
44112         * modules/sys_stat: Likewise.
44113         * modules/sys_time: Likewise.
44114         * modules/sys_times: Likewise.
44115         * modules/sys_utsname: Likewise.
44116         * modules/sys_wait: Likewise.
44117
44118 2009-09-01  Jim Meyering  <meyering@redhat.com>
44119
44120         fts: help ensure that return values are not ignored
44121         * lib/fts_.h (__GNUC_PREREQ): Define.
44122         (__attribute_warn_unused_result__): Define.
44123         (fts_children, fts_close, fts_open, fts_read): Declare with
44124         __attribute_warn_unused_result__.
44125
44126         fts: fts_close now fails also when closing a dir file descriptor fails
44127         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44128         and propagate to caller, along with errno.
44129
44130         announce-gen: correct formatting in --help output
44131         * build-aux/announce-gen (usage): Move the one-line description in
44132         --help output "up", to where it belongs, just after Usage:.
44133
44134 2009-08-31  Eric Blake  <ebb9@byu.net>
44135
44136         fchdir: port to mingw
44137         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44138         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44139         opened, then use a substitute.
44140         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44141         replacement.
44142         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44143         (_gl_register_fd): No need to check stat if open already filters
44144         all directories.
44145         (fchdir): Fix error condition to match POSIX.
44146         * modules/fchdir (Depends-on): Add sys_stat.
44147         * doc/posix-functions/open.texi (open): Document the limitation.
44148         * modules/fchdir-tests: New file.
44149         * tests/test-fchdir.c: Likewise.
44150
44151         canonicalize: allow cross-testing from cygwin to mingw
44152         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44153         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44154         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44155         Likewise.
44156         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44157         target does not support symlinks.
44158         * tests/test-canonicalize-lgpl.sh: Likewise.
44159
44160         chown: avoid compilation warning on mingw
44161         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44162         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44163         mingw.
44164         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44165         * modules/chown (Depends-on): Add errno.
44166
44167 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44168
44169         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44170         command.
44171
44172 2009-08-31  Jim Meyering  <meyering@redhat.com>
44173
44174         canonicalize: remove useless initialization
44175         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44176         initialization of local, "end".
44177
44178 2009-08-30  Bruno Haible  <bruno@clisp.org>
44179
44180         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44181         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44182         ENOSYS.
44183
44184 2009-08-30  Bruno Haible  <bruno@clisp.org>
44185
44186         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44187         /usr/xpg4/bin/tr when it exists.
44188         * tests/test-pipe-filter-gi1.sh: Likewise.
44189
44190 2009-08-30  Bruno Haible  <bruno@clisp.org>
44191
44192         Work around deficient /usr/bin/id program on Solaris.
44193         * tests/test-file-has-acl.sh (ID): New variable.
44194         * tests/test-set-mode-acl.sh (ID): Likewise.
44195         * tests/test-copy-acl.sh (ID): Likewise.
44196         * tests/test-copy-file.sh (ID): Likewise.
44197
44198 2009-08-30  Bruno Haible  <bruno@clisp.org>
44199
44200         New module 'xstriconveh'.
44201         * lib/xstriconveh.h: New file.
44202         * lib/xstriconveh.c: New file.
44203         * modules/xstriconveh: New file.
44204
44205 2009-08-30  Bruno Haible  <bruno@clisp.org>
44206
44207         Make it easier to use mem_cd_iconveh.
44208         * lib/striconveh.h (iconveh_t): New type.
44209         (iconveh_open, iconveh_close): New declarations.
44210         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44211         with a single 'const iconveh_t *' argument.
44212         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44213         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44214         with a single 'const iconveh_t *' argument.
44215         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44216         * tests/test-striconveh.c (main): Update.
44217         * NEWS: Mention the change.
44218
44219 2009-08-30  Bruno Haible  <bruno@clisp.org>
44220
44221         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44222         problem.
44223
44224 2009-08-30  Bruno Haible  <bruno@clisp.org>
44225
44226         Work around iconv_open problem on Solaris.
44227         * lib/iconv_open-solaris.gperf: New file.
44228         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44229         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44230         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44231         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44232         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44233         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44234
44235 2009-08-29  Jim Meyering  <meyering@redhat.com>
44236
44237         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44238         * top/maint.mk (cvs-check): Remove target; it was just an alias
44239         to the better-named vc-diff-check.
44240         (maintainer-distcheck): Remove rule.  It was used only from
44241         the (alpha/beta/major) target, and all of its commands but one
44242         were coreutils-specific.
44243         (vc-dist): Remove rule.
44244         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44245         Run vc-diff-check, not vc-dist.
44246         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44247
44248 2009-08-27  Bruno Haible  <bruno@clisp.org>
44249
44250         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44251         of 0.
44252
44253 2009-08-27  Bruno Haible  <bruno@clisp.org>
44254
44255         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44256         compilers.
44257         * doc/func.texi: Document the SunPRO C bug.
44258
44259 2009-08-27  Bruno Haible  <bruno@clisp.org>
44260
44261         Fix link error on Solaris.
44262         * tests/test-parse-duration.c (xstrdup): Remove function.
44263
44264 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44265
44266         ignore-value: handle pointer types, too
44267         * lib/ignore-value.h (__attribute__): Remove definition.
44268         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44269         of a more concise and more-often effective "(void) i" statement.
44270         (ignore_ptr): New function to suppress warnings from functions that
44271         return pointers, and to make it explicit that one function doesn't
44272         handle all cases.
44273
44274 2009-08-25  Bruno Haible  <bruno@clisp.org>
44275
44276         dup2: work around a Linux bug.
44277         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44278         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44279         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44280         Reported by Simon Josefsson.
44281
44282 2009-08-25  Jim Meyering  <meyering@redhat.com>
44283
44284         libguestfs uses gnulib
44285         * users.txt: Add libguestfs.
44286
44287 2009-08-24  Eric Blake  <ebb9@byu.net>
44288
44289         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44290         * lib/pipe2.c (includes): Add binary-io.h.
44291         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44292
44293 2009-08-24  Bruno Haible  <bruno@clisp.org>
44294
44295         Tolerate declared but missing accept4 syscall.
44296         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44297         available.
44298         * lib/sys_socket.in.h (accept4): If the function is already present,
44299         override it.
44300         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44301         * modules/accept4 (Makefile.am): Compile accept4.c always.
44302         Reported by Paolo Bonzini and Eric Blake.
44303
44304 2009-08-23  Bruno Haible  <bruno@clisp.org>
44305
44306         New module 'accept4'.
44307         * lib/sys_socket.in.h (accept4): New declaration.
44308         * lib/accept4.c: New file.
44309         * m4/accept4.m4: New file.
44310         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44311         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44312         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44313         HAVE_ACCEPT4.
44314         * modules/accept4: New file.
44315         * doc/glibc-functions/accept4.texi: Mention the new module.
44316
44317 2009-08-24  Jim Meyering  <meyering@redhat.com>
44318
44319         progname: also set global program_invocation_name, when possible
44320         Before this change, a libtool-enabled program that calls glibc's
44321         error function would report the program name as
44322         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44323         * modules/progname (configure.ac): Check for a declaration of
44324         program_invocation_name.
44325         * lib/progname.c:  Include <errno.h>.
44326         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44327         Set program_invocation_name.
44328
44329 2009-08-23  Bruno Haible  <bruno@clisp.org>
44330
44331         * lib/dup3.c: Include <string.h>.
44332
44333 2009-08-23  Bruno Haible  <bruno@clisp.org>
44334
44335         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44336         * lib/pipe2.c (pipe2): Likewise.
44337         Suggested by Eric Blake.
44338
44339 2009-08-23  Bruno Haible  <bruno@clisp.org>
44340
44341         Tolerate declared but missing dup3 syscall.
44342         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44343         * lib/unistd.in.h (dup3): If the function is already present,
44344         override it.
44345         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44346         * modules/dup3 (Makefile.am): Compile dup3.c always.
44347         Reported by Paolo Bonzini.
44348
44349 2009-08-23  Bruno Haible  <bruno@clisp.org>
44350
44351         Tolerate declared but missing pipe2 syscall.
44352         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44353         available.
44354         * lib/unistd.in.h (pipe2): If the function is already present,
44355         override it.
44356         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44357         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44358         Reported by Paolo Bonzini.
44359
44360 2009-08-23  Bruno Haible  <bruno@clisp.org>
44361
44362         * lib/pipe2.c (pipe2): Move #ifs inside function.
44363
44364 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44365
44366         quotearg: document limitations of quote_these_too
44367         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44368         those limitations are created.
44369         * lib/quotearg.h (set_char_quoting): Document that digits and
44370         letters that are special after backslash are not permitted.
44371         (quotearg_char): Cross-reference set_char_quoting documentation.
44372
44373 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44374
44375         quotearg: implement custom_quoting_style
44376         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44377         right_quote fields.
44378         (set_custom_quoting): New public function.
44379         (quotearg_buffer_restyled): Add left_quote and right_quote
44380         arguments, handle them very much like locale quoting, and update
44381         all uses.
44382         (quotearg_n_custom): New public function.
44383         (quotearg_n_custom_mem): New public function.
44384         (quotearg_custom): New public function.
44385         (quotearg_custom_mem): New public function.
44386         * lib/quotearg.h: Prototype and document new public functions.
44387         (enum quoting_style): For escape_quoting_style and
44388         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44389         ignored even though they're otherwise like c_quoting_style.
44390         Add custom_quoting_style member and document with comparison to
44391         clocale_quoting_style.
44392         * tests/test-quotearg.c (custom_quotes): New array.
44393         (custom_results): New array.
44394         (main): Extend to test custom quoting.
44395
44396 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44397
44398         quotearg: fix right quote escaping when it's in quote_these_too
44399         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44400         quote, be sure to prepend only one backslash.
44401         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44402         (main): Test it.
44403
44404 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44405
44406         quotearg-tests: test escaping of embedded locale quotes
44407         * tests/test-quotearg.c (struct result_strings): Add member for
44408         new input.
44409         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44410         (inputs): Add new input.
44411         (results_g): Add expected results.
44412         (flag_results): Likewise.
44413         (locale_results): Likewise.
44414         (compare_strings): Check those.
44415
44416 2009-08-23  Bruno Haible  <bruno@clisp.org>
44417
44418         Tests for module 'dup3'.
44419         * modules/dup3-tests: New file.
44420         * tests/test-dup3.c: New file.
44421
44422         New module 'dup3'.
44423         * lib/unistd.in.h (dup3): New declaration.
44424         * lib/dup3.c: New file.
44425         * m4/dup3.m4: New file.
44426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44427         HAVE_DUP3.
44428         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44429         * modules/dup3: New file.
44430         * doc/glibc-functions/dup3.texi: Mention the new module.
44431
44432 2009-08-23  Bruno Haible  <bruno@clisp.org>
44433
44434         Tweak the dup2 test.
44435         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44436         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44437         the test file is still empty. Fix argument order of lseek.
44438
44439 2009-08-23  Bruno Haible  <bruno@clisp.org>
44440
44441         Avoid test link errors when the modules getopt-gnu, gettext are used.
44442         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44443         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44444
44445 2009-08-23  Bruno Haible  <bruno@clisp.org>
44446
44447         Fix getdtablesize() on mingw.
44448         * lib/getdtablesize.c (getdtablesize): Implement differently.
44449         * lib/unistd.in.h (getdtablesize): Improve comment.
44450
44451 2009-08-23  Bruno Haible  <bruno@clisp.org>
44452
44453         New module 'mkostemp'.
44454         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44455         * lib/stdlib.in.h (mksotemp): New declaration.
44456         * lib/mkostemp.c: New file, from glibc with modifications.
44457         * lib/tempname.h (GT_FILE): Remove outdated comment.
44458         (gen_tempname): Add flags argument.
44459         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44460         (__GT_FILE): Map to 1.
44461         (small_open, large_open): Remove macros.
44462         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44463         * lib/mkstemp.c (mkstemp): Update.
44464         * lib/mkdtemp.c (mkdtemp): Likewise.
44465         * m4/mkostemp.m4: New file.
44466         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44467         HAVE_MKOSTEMP.
44468         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44469         HAVE_MKOSTEMP.
44470         * modules/mkostemp: New file, based on modules/mkstemp.
44471         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44472         * NEWS: Mention the change.
44473
44474 2009-08-23  Bruno Haible  <bruno@clisp.org>
44475
44476         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44477         Reported by Eric Blake.
44478
44479 2009-08-23  Bruno Haible  <bruno@clisp.org>
44480
44481         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44482         Reported by Eric Blake.
44483
44484 2009-08-23  Bruno Haible  <bruno@clisp.org>
44485
44486         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44487         * modules/pipe2 (Depends-on): Likewise.
44488
44489 2009-08-23  Eric Blake  <ebb9@byu.net>
44490
44491         fcntl-h: add O_TTY_INIT support
44492         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44493         * tests/test-fcntl-h.c (o): Test it.
44494         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44495
44496         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44497         * modules/fcntl: Move <fcntl.h> header replacement...
44498         * modules/fcntl-h: ...to new name, so as not to collide with
44499         like-named function.
44500         * tests/test-fcntl.c: Rename...
44501         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44502         * modules/fcntl-tests: Rename...
44503         * modules/fcntl-h-tests: ...to this.  Update test file name.
44504         * modules/chdir-long (Depends-on): Update clients.
44505         * modules/chdir-safer (Depends-on): Likewise.
44506         * modules/fcntl-safer (Depends-on): Likewise.
44507         * modules/fts (Depends-on): Likewise.
44508         * modules/mkancesdirs (Depends-on): Likewise.
44509         * modules/mkdir-p (Depends-on): Likewise.
44510         * modules/open (Depends-on): Likewise.
44511         * modules/savewd (Depends-on): Likewise.
44512         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44513         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44514
44515 2009-08-22  Bruno Haible  <bruno@clisp.org>
44516
44517         * modules/binary-io (License): Relicense under LGPL.
44518         * modules/pipe2 (License): Likewise.
44519
44520 2009-08-22  Bruno Haible  <bruno@clisp.org>
44521
44522         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44523         return value.
44524         * lib/pipe-filter-gi.c (filter_init): Likewise.
44525         Reported by Eric Blake.
44526
44527 2009-08-22  Bruno Haible  <bruno@clisp.org>
44528
44529         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
44530         * modules/pipe (Depends-on): Add pipe2.
44531
44532 2009-08-22  Bruno Haible  <bruno@clisp.org>
44533
44534         Tests for module 'pipe2'.
44535         * modules/pipe2-tests: New file.
44536         * tests/test-pipe2.c: New file.
44537
44538         New module 'pipe2'.
44539         * lib/unistd.in.h (pipe2): New declaration.
44540         * lib/pipe2.c: New file.
44541         * m4/pipe2.m4: New file.
44542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
44543         HAVE_PIPE2.
44544         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
44545         * modules/pipe2: New file.
44546         * doc/glibc-functions/pipe2.texi: Mention the new module.
44547
44548 2009-08-22  Bruno Haible  <bruno@clisp.org>
44549
44550         Reference some new glibc functions.
44551         * doc/glibc-functions/accept4.texi: New file.
44552         * doc/glibc-functions/dup3.texi: New file.
44553         * doc/glibc-functions/mkostemp.texi: New file.
44554         * doc/glibc-functions/pipe2.texi: New file.
44555         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
44556         (Glibc sys/socket.h): Refer to accept4.
44557         (Glibc unistd.h): Refer to dup3, pipe2.
44558         Reported by Eric Blake.
44559
44560 2009-08-22  Jim Meyering  <meyering@redhat.com>
44561             Bruno Haible  <bruno@clisp.org>
44562
44563         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
44564         This makes it so packages using automake-1.11's silent-rules option
44565         can print e.g., a single "GEN    configmake.h" line, rather than
44566         the 30+ statements that perform the job.  If you want to see the
44567         actual commands, you can still run "make V=1".
44568         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
44569         so that make output is abbreviated when those variables are defined
44570         appropriately.
44571         * modules/argz: Likewise.
44572         * modules/arpa_inet: Likewise.
44573         * modules/byteswap: Likewise.
44574         * modules/configmake: Likewise.
44575         * modules/dirent: Likewise.
44576         * modules/errno: Likewise.
44577         * modules/fcntl: Likewise.
44578         * modules/float: Likewise.
44579         * modules/fnmatch: Likewise.
44580         * modules/getopt-posix: Likewise.
44581         * modules/glob: Likewise.
44582         * modules/iconv_open: Likewise.
44583         * modules/inttypes: Likewise.
44584         * modules/localcharset: Likewise.
44585         * modules/locale: Likewise.
44586         * modules/math: Likewise.
44587         * modules/netdb: Likewise.
44588         * modules/netinet_in: Likewise.
44589         * modules/poll: Likewise.
44590         * modules/posix_spawnp-tests: Likewise.
44591         * modules/sched: Likewise.
44592         * modules/search: Likewise.
44593         * modules/selinux-h: Likewise.
44594         * modules/signal: Likewise.
44595         * modules/spawn: Likewise.
44596         * modules/stdarg: Likewise.
44597         * modules/stdbool: Likewise.
44598         * modules/stddef: Likewise.
44599         * modules/stdint: Likewise.
44600         * modules/stdio: Likewise.
44601         * modules/stdlib: Likewise.
44602         * modules/string: Likewise.
44603         * modules/strings: Likewise.
44604         * modules/sys_file: Likewise.
44605         * modules/sys_ioctl: Likewise.
44606         * modules/sys_select: Likewise.
44607         * modules/sys_socket: Likewise.
44608         * modules/sys_stat: Likewise.
44609         * modules/sys_time: Likewise.
44610         * modules/sys_times: Likewise.
44611         * modules/sys_utsname: Likewise.
44612         * modules/sys_wait: Likewise.
44613         * modules/sysexits: Likewise.
44614         * modules/time: Likewise.
44615         * modules/unistd: Likewise.
44616         * modules/wchar: Likewise.
44617         * modules/wctype: Likewise.
44618
44619 2009-08-22  Jim Meyering  <meyering@redhat.com>
44620
44621         announce-gen: detect write failure
44622         * build-aux/announce-gen: Add Coda at end.
44623         Remove equivalent-but-more-verbose block at top.
44624
44625 2009-08-19  Akim Demaille  <demaille@gostai.com>
44626
44627         bootstrap: --help to stdout.
44628         * bootstrap (usage): Don't send --help to stderr.
44629         Use a here doc instead of a long string.
44630
44631 2009-08-21  Eric Blake  <ebb9@byu.net>
44632
44633         test-popen-safer: split from test-popen
44634         * tests/test-popen.c (main): Move...
44635         * tests/test-popen.h: ...into new file.
44636         * tests/test-popen-safer2.c: New file.
44637         * modules/popen-tests (Files): Add test-popen.h.
44638         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
44639         Suggested by Bruno Haible.
44640
44641         test-fcntl-safer: split from test-open
44642         * tests/test-open.c (main): Move...
44643         * tests/test-open.h: ...into new file.
44644         * tests/test-fcntl-safer.c: New file.
44645         * modules/open-tests (Files): Add test-open.h.
44646         * modules/fcntl-safer-tests: New file.
44647         Suggested by Bruno Haible.
44648
44649         test-fopen-safer: split from test-fopen
44650         * tests/test-fopen.c (main): Move...
44651         * tests/test-fopen.h: ...into new file.
44652         * tests/test-fopen-safer.c: New file.
44653         * modules/fopen-tests (Files): Add test-fopen.h.
44654         * modules/fopen-safer-tests: New file.
44655         Suggested by Bruno Haible.
44656
44657 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44658
44659         popen-safer: test O_CLOEXEC at run-time.
44660         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
44661
44662 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44663
44664         fcntl: move more flags to the header
44665         * lib/cloexec.c: Do not define FD_CLOEXEC here.
44666         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
44667         * lib/fcntl.in.h: Do both things here.
44668
44669 2009-08-21  Jim Meyering  <meyering@redhat.com>
44670
44671         consistently remove $@-t before redirecting to it
44672         * modules/argz: Remove $@-t and $@ before redirecting to the former.
44673         * modules/alloca-opt: Likewise.
44674         * modules/byteswap: Likewise.
44675         * modules/fnmatch: Likewise.
44676         * modules/getopt-posix: Likewise.
44677         * modules/glob: Likewise.
44678         * modules/poll: Likewise.
44679         * modules/posix_spawnp-tests: Likewise.
44680         * modules/sys_socket: Likewise.
44681         * modules/sysexits: Likewise.
44682
44683 2009-08-21  Eric Blake  <ebb9@byu.net>
44684
44685         popen: simplify access to original popen
44686         * lib/popen.c (rpl_popen): No need to worry about popen being a
44687         macro.
44688         Reported by Bruno Haible.
44689
44690 2009-08-20  Eric Blake  <ebb9@byu.net>
44691
44692         build: avoid some compiler warnings
44693         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
44694         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
44695         type.
44696         (new_exclude_segment, excluded_file_pattern_p)
44697         (excluded_file_name_p): Reduce scope.
44698         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
44699         old-style declaration.
44700
44701 2009-08-20  Simon Josefsson  <simon@josefsson.org>
44702
44703         * tests/test-exclude1.sh: Handle Windows EOL.
44704         * tests/test-exclude2.sh: Likewise.
44705         * tests/test-exclude3.sh: Likewise.
44706         * tests/test-exclude4.sh: Likewise.
44707         * tests/test-exclude5.sh: Likewise.
44708         * tests/test-exclude6.sh: Likewise.
44709         * tests/test-exclude7.sh: Likewise.
44710
44711 2009-08-19  Akim Demaille  <demaille@gostai.com>
44712
44713         bootstrap: find sha1sum when named gsha1sum.
44714         * bootstrap (find_tool): New.
44715         ($SHA1SUM): New.
44716         Use it.
44717
44718 2009-08-20  Jim Meyering  <meyering@redhat.com>
44719
44720         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
44721         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
44722         expression that converts "." in a file name to "\." in the resulting
44723         regexp.  Start with a dummy statement, so that prior shell variable
44724         definitions are expanded portably.  Reported by Simon Josefsson.
44725
44726 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
44727
44728         Fix polling for writeability of a screen buffer.
44729         * lib/poll.c: Distinguish input and screen buffers for the
44730         Win32 implementation.
44731         * lib/select.c: Likewise.
44732
44733 2009-08-19  Eric Blake  <ebb9@byu.net>
44734
44735         popen-safer: prevent popen from clobbering std descriptors
44736         * modules/popen-safer: New file.
44737         * lib/popen-safer.c: Likewise.
44738         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
44739         * lib/stdio--.h (popen): Provide override.
44740         * lib/stdio-safer.h (popen_safer): Provide declaration.
44741         * tests/test-popen.c (includes): Partially test this.
44742         * modules/popen-safer-tests: New file, for more tests.
44743         * tests/test-popen-safer.c: Likewise.
44744         * MODULES.html.sh (file stream based Input/Output): Mention it.
44745
44746         tests: test some of the *-safer modules
44747         * modules/fopen-safer (Depends-on): Add fopen.
44748         * modules/fcntl-safer (Depends-on): Add fcntl.
44749         * modules/stdlib-safer (Depends-on): Add stdlib.
44750         (configure.ac): Set indicator.
44751         * modules/unistd-safer (configure.ac): Likewise.
44752         * modules/tmpfile-safer (configure.ac): Likewise.
44753         (Depends-on): Add tmpfile.
44754         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
44755         active.
44756         * tests/test-fopen.c (includes): Test safer versions when they are
44757         in use.
44758         * tests/test-open.c (includes): Likewise.
44759
44760         popen: fix cygwin 1.5 bug when stdin closed
44761         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
44762         * modules/popen: New file.
44763         * modules/popen-tests: Likewise.
44764         * tests/test-popen.c: Likewise.
44765         * m4/popen.m4: Likewise.
44766         * lib/popen.c: Likewise.
44767         * lib/stdio.in.h (popen): New declaration.
44768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
44769         * modules/stdio (Makefile.am): Likewise.
44770         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
44771
44772 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
44773
44774         maint.mk: give full control over update-copyright exclusions
44775         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
44776         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
44777         (update-copyright): Don't force inclusion of top-level
44778         ChangeLog.  Don't force exclusion of all COPYING files, but make
44779         them the default exclusion instead.
44780
44781 2009-08-16  Bruno Haible  <bruno@clisp.org>
44782
44783         Fix test failures on Solaris 10.
44784         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
44785         tests when Solaris iconv() is used.
44786         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44787         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44788         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44789         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44790         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44791
44792 2009-08-16  Bruno Haible  <bruno@clisp.org>
44793
44794         Fix test failures on Solaris 10.
44795         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
44796         'tr' program and pass it as first argument.
44797         * tests/test-pipe-filter-gi1.sh: Likewise.
44798         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
44799         program as first argument.
44800         * tests/test-pipe-filter-gi1.c (main): Likewise.
44801
44802 2009-08-16  Eric Blake  <ebb9@byu.net>
44803
44804         fpurge: fix previous commits
44805         * modules/fpurge (Makefile.am): Make replacement conditional,
44806         partially reverting 2007-04-29 change; missed in previous
44807         attempt.
44808         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
44809         is missing.
44810
44811 2009-08-16  Bruno Haible  <bruno@clisp.org>
44812
44813         Clarify fpurge's effect on the file position.
44814         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
44815         * tests/test-fpurge.c (main): Make a second pass for checking the file
44816         position.
44817
44818 2009-08-16  Bruno Haible  <bruno@clisp.org>
44819
44820         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
44821         declaration of fpurge is missing.
44822         * tests/test-fpurge.c (main): Check that the file has not more contents
44823         than expected. Close the file before removing it.
44824
44825 2009-08-15  Eric Blake  <ebb9@byu.net>
44826
44827         fpurge: don't wrap working cygwin implementation
44828         * lib/fpurge.c (fpurge): Fix comment typo.
44829         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
44830         1.7 to avoid replacement.
44831         * tests/test-fpurge.c (main): Enhance test.
44832
44833 2009-08-15  Eric Blake  <ebb9@byu.net>
44834         and Jim Meyering  <meyering@redhat.com>
44835
44836         test-update-copyright: skip if perl is insufficient
44837         * tests/test-update-copyright.sh: Failure to run maintainer tool
44838         should not cause testsuite failure on cygwin 1.5.
44839
44840 2009-08-14  Eric Blake  <ebb9@byu.net>
44841
44842         doc: mention more functions added in cygwin 1.7.0
44843         * doc/posix-headers/limits.texi (limits.h): Update for recent
44844         cygwin additions.
44845         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
44846         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
44847         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
44848         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
44849         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
44850
44851 2009-08-14  Eric Blake  <ebb9@byu.net>
44852
44853         maint.mk: simplify update-copyright rule
44854         * top/maint.mk (update-copyright-local): Delete, and document how
44855         to do it in cfg.mk instead.
44856         (update-copyright-exclude-regexp): Delete, and document how to do
44857         it in .x-update-copyright instead.
44858         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
44859         exclude ChangeLog.
44860
44861 2009-08-14  Bruno Haible  <bruno@clisp.org>
44862
44863         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
44864
44865 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44866
44867         maint.mk: support update-copyright-env
44868         * top/maint.mk (update-copyright-env): Define place-holder.
44869         (update-copyright): Expand $(update-copyright-env) before
44870         invoking update-copyright.
44871
44872 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44873
44874         update-copyright: implement forced reformatting
44875         * build-aux/update-copyright: Implement and document
44876         UPDATE_COPYRIGHT_FORCE.
44877         * tests/test-update-copyright.sh: Test it.
44878
44879 2009-08-14  Eric Blake  <ebb9@byu.net>
44880         and Bruno Haible  <bruno@clisp.org>
44881
44882         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
44883         * tests/test-locale.c: Revert previous patch related to NULL.
44884         * tests/test-stdio.c: Likewise.
44885         * tests/test-stdlib.c: Likewise.
44886         * tests/test-string.c: Likewise.
44887         * tests/test-unistd.c: Likewise.
44888         * modules/time-tests (Depends-on): Add verify.
44889         * modules/wchar-tests (Depends-on): Likewise.
44890         * tests/test-time.c: Test for NULL compliance.
44891         * tests/test-wchar.c: Likewise.
44892         * modules/locale (Depends-on): Add stddef.
44893         * modules/stdio (Depends-on): Likewise.
44894         * modules/stdlib (Depends-on): Likewise.
44895         * modules/string (Depends-on): Likewise.
44896         * modules/time (Depends-on): Likewise.
44897         * modules/unistd (Depends-on): Likewise.
44898         * modules/wchar (Depends-on): Likewise.
44899         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
44900         * lib/stdlib.in.h (includes): Likewise.
44901         * lib/string.in.h (includes): Likewise.
44902         * lib/time.in.h (includes): Likewise.
44903         * lib/unistd.in.h (includes): Likewise.
44904         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
44905         replaced.
44906         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44907         * m4/stddef_h.m4: New file.
44908         * modules/stddef: Likewise.
44909         * lib/stddef.in.h: Likewise.
44910         * modules/stddef-tests: Likewise.
44911         * tests/test-stddef.c: Likewise.
44912         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
44913         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
44914         * doc/posix-headers/locale.texi (locale.h): Likewise.
44915         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
44916         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44917         * doc/posix-headers/string.texi (string.h): Likewise.
44918         * doc/posix-headers/time.texi (time.h): Likewise.
44919         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
44920         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
44921
44922 2009-08-14  Eric Blake  <ebb9@byu.net>
44923
44924         doc: improve git diff of texinfo files
44925         * .gitattributes: Add rule for *.texi files, with hint on how to
44926         use it.
44927         Copied from m4, and based on a report by Bruno Haible.
44928
44929 2009-08-14  Bruno Haible  <bruno@clisp.org>
44930
44931         Disable multithread support by default on Cygwin 1.5.x for real.
44932         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
44933
44934 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44935
44936         update-copyright: much ado about intervals
44937         * build-aux/update-copyright: Implement and document
44938         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
44939         of copyright year intervals.
44940         Also, document UPDATE_COPYRIGHT_YEAR.
44941         * tests/test-update-copyright.sh: Test it.
44942
44943         update-copyright: convert 2-digit to 4-digit years
44944         * build-aux/update-copyright: Implement and document.
44945         * tests/test-update-copyright.sh: Update.
44946
44947 2009-08-14  Jim Meyering  <meyering@redhat.com>
44948
44949         test-exclude: avoid coreutils "make check" failure
44950         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
44951         just as in test-argmatch.c.
44952
44953 2009-08-13  Eric Blake  <ebb9@byu.net>
44954
44955         test-dup2: fix bad assumption
44956         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
44957         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
44958
44959         test-version-etc: fix CRLF portability issue
44960         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
44961         recognize \r.
44962         * tests/test-argp-version-etc-1.sh: Likewise.
44963
44964         getopt: update client modules
44965         * modules/argp (Depends-on): Use getopt-gnu.
44966         * modules/git-merge-changelog (Depends-on): Likewise.
44967         * modules/long-options (Depends-on): Likewise.
44968         * modules/xstrtol (Depends-on): Likewise.
44969
44970 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44971
44972         * tests/test-version-etc.sh: Don't fail on different
44973         project/version.  Don't fail on CRLF differences.  Rewrite to use
44974         multiple -e instead of multiple sed forks, suggested by Eric Blake
44975         <ebb9@byu.net>.
44976         * tests/test-argp-version-etc-1.sh: Likewise.
44977
44978 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44979
44980         * tests/test-version-etc.sh: Don't fail on different
44981         project/version.
44982
44983 2009-08-12  Bruno Haible  <bruno@clisp.org>
44984
44985         Tests for modules 'getopt-posix', 'getopt-gnu'.
44986         * modules/getopt-posix-tests: New file.
44987         * tests/test-getopt.c: New file.
44988         * tests/test-getopt.h: New file.
44989         * tests/test-getopt_long.h: New file.
44990
44991         New modules 'getopt-posix', 'getopt-gnu'.
44992         * modules/getopt-gnu: New file, renamed from modules/getopt.
44993         * modules/getopt-posix: New file.
44994         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
44995         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
44996         (gl_GETOPT): Remove macro.
44997         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
44998         Disable the test against BSD systems that declare optreset. Test
44999         against mingw bug. Test against lack of support of optional arguments
45000         on many platforms.
45001         * doc/glibc-headers/getopt.texi: Update module name and list of
45002         relevant platforms.
45003         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45004         'getopt-gnu' and more portability problems.
45005         * NEWS: Mention the changes.
45006
45007 2009-08-12  Bruno Haible  <bruno@clisp.org>
45008
45009         Ensure that optarg etc. get declared by <unistd.h>.
45010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45011         AC_USE_SYSTEM_EXTENSIONS.
45012         * modules/getopt (Depends-on): Add 'extensions'.
45013
45014 2009-08-12  Bruno Haible  <bruno@clisp.org>
45015
45016         Avoid test link errors.
45017         * modules/pipe-filter-ii-tests (Makefile.am): Define
45018         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45019         * modules/pipe-filter-gi-tests (Makefile.am): Define
45020         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45022
45023 2009-08-12  Bruno Haible  <bruno@clisp.org>
45024
45025         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45026         gl_GETOPT_SUBSTITUTE before.
45027         (gl_GETOPT): Use it.
45028         * m4/argp.m4 (gl_ARGP): Update.
45029         Reported by Sergey Poznyakoff.
45030
45031         * m4/getopt.m4: Reorder macros.
45032         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45033         (gl_GETOPT_SUBSTITUTE): Remove macro.
45034
45035 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45036
45037         Minor improvement in gitlog-to-changelog
45038
45039         * build-aux/gitlog-to-changelog: New option `--format' makes
45040         output format string configurable.
45041
45042 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45043
45044         Optimize exclude: use hash tables for non-wildcard patterns.
45045
45046         * lib/exclude.c: Include hash.h and mbuiter.h
45047         (struct exclude_pattern, exclude_segment): New data types.
45048         (struct exclude): Rewrite.
45049         (fnmatch_pattern_has_wildcards): New function.
45050         (new_exclude_segment, free_exclude_segment): New functions.
45051         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45052         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45053         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45054         * modules/exclude: Depend on hash and mbuiter.
45055
45056         * modules/exclude-tests: New file.
45057         * tests/test-exclude.c: New file.
45058         * tests/test-exclude1.sh: New file.
45059         * tests/test-exclude2.sh: New file.
45060         * tests/test-exclude3.sh: New file.
45061         * tests/test-exclude4.sh: New file.
45062         * tests/test-exclude5.sh: New file.
45063         * tests/test-exclude6.sh: New file.
45064         * tests/test-exclude7.sh: New file.
45065
45066 2009-08-12  Bruno Haible  <bruno@clisp.org>
45067
45068         Ensure that getopt() gets declared by <unistd.h>.
45069         * lib/unistd.in.h: Conditionally include getopt.h.
45070         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45071         Set GNULIB_UNISTD_H_GETOPT.
45072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45073         GNULIB_UNISTD_H_GETOPT.
45074         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45075
45076 2009-08-12  Bruno Haible  <bruno@clisp.org>
45077
45078         Clarify logic.
45079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45080         gl_replace_getopt instead of GETOPT_H.
45081
45082 2009-08-12  Bruno Haible  <bruno@clisp.org>
45083
45084         * m4/getopt.m4: Add comments.
45085
45086 2009-08-12  Bruno Haible  <bruno@clisp.org>
45087
45088         Disable multithread support by default on Cygwin 1.5.x.
45089         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45090         set gl_use_threads=no if not specified otherwise.
45091
45092 2009-08-11  Bruno Haible  <bruno@clisp.org>
45093
45094         Avoid compilation error on NetBSD 5.0.
45095         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45096         * tests/test-stdio.c: Likewise.
45097         * tests/test-stdlib.c: Likewise.
45098         * tests/test-string.c: Likewise.
45099         * tests/test-unistd.c: Likewise.
45100         Reported by Greg Troxel <gdt@ir.bbn.com>
45101         at <https://savannah.gnu.org/support/?106973>.
45102
45103 2009-08-11  Bruno Haible  <bruno@clisp.org>
45104
45105         * modules/dup2-tests (Depends-on): Remove close.
45106
45107         Undo 2009-07-19 commit.
45108         * modules/acl-tests (Depends-on): Remove close.
45109         * modules/binary-io-tests (Depends-on): Likewise.
45110         * modules/closein-tests (Depends-on): Likewise.
45111         * modules/flock-tests (Depends-on): Likewise.
45112         * modules/fsync-tests (Depends-on): Likewise.
45113         * modules/lseek-tests (Depends-on): Likewise.
45114         * modules/pipe-tests (Depends-on): Likewise.
45115         * modules/posix_spawn-tests (Depends-on): Likewise.
45116         * modules/posix_spawnp-tests (Depends-on): Likewise.
45117         * modules/stat-time-tests (Depends-on): Likewise.
45118         * modules/yesno-tests (Depends-on): Likewise.
45119
45120 2009-08-10  Bruno Haible  <bruno@clisp.org>
45121
45122         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45123
45124 2009-08-10  Bruno Haible  <bruno@clisp.org>
45125
45126         Fix a gcc warning.
45127         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45128
45129 2009-08-10  Bruno Haible  <bruno@clisp.org>
45130
45131         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45132         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45133         not only the first time.
45134         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45135         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45136         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45137         is 1, not only the the first time.
45138
45139 2009-08-10  Bruno Haible  <bruno@clisp.org>
45140
45141         Make it possible to use module 'gethostname' without module 'close'.
45142         * lib/unistd.in.h (close): Evoke a link error only if
45143         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45145         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45146         * modules/unistd (Makefile.am): Substitute
45147         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45148         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45149         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45150         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45151         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45152         * modules/sys_ioctl (Makefile.am): Substitute
45153         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45154         * modules/socket (configure.ac): On native Windows, set
45155         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45156         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45157         Reported by Sam Steingold <sds@gnu.org>.
45158
45159 2009-08-10  Bruno Haible  <bruno@clisp.org>
45160
45161         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45162         * modules/ioctl (configure.ac): Likewise.
45163
45164 2009-08-10  Bruno Haible  <bruno@clisp.org>
45165
45166         Avoid collision between gnulib wrapper and libintl wrapper.
45167         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45168         already defined in intl/printf.c.
45169         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45170         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45171
45172 2009-08-09  Bruno Haible  <bruno@clisp.org>
45173
45174         Make <sys/select.h> really self-contained, also on Solaris 10.
45175         * lib/sys_select.in.h: Include <string.h>.
45176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45177         Solaris 10 problem.
45178         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45179         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45180         Reported by Jim Meyering.
45181
45182 2009-08-09  Bruno Haible  <bruno@clisp.org>
45183
45184         Avoid warnings from 'aclocal' that are due to a use of macro name
45185         AM_XGETTEXT_OPTION that is not defined in automake.
45186         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45187         automake.
45188         * modules/error (configure.ac): Likewise.
45189         * modules/propername (configure.ac): Likewise.
45190         * modules/vasprintf (configure.ac): Likewise.
45191         * modules/verror (configure.ac): Likewise.
45192         * modules/xprintf (configure.ac): Likewise.
45193         * modules/xvasprintf (configure.ac): Likewise.
45194
45195 2009-08-08  Bruno Haible  <bruno@clisp.org>
45196
45197         Avoid compilation error in C++ mode.
45198         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45199         Reported by Sam Steingold <sds@gnu.org>.
45200
45201 2009-08-08  Bruno Haible  <bruno@clisp.org>
45202
45203         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45204         for the various Unix platforms.
45205         * doc/posix-headers/limits.texi: Update platforms list regarding
45206         HOST_NAME_MAX.
45207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45208
45209 2009-08-07  Jim Meyering  <meyering@redhat.com>
45210
45211         selinux-at: fix typo in a comment
45212         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45213         Spotted by Paolo Bonzini.
45214
45215         selinux-at: remove redundant m4 code, add documentation
45216         * modules/selinux-at (configure.ac): Remove redundant code.
45217         LIB_SELINUX is already set via the dependent module, selinux-h.
45218         (Include): Add quotes around selinux-at.h.
45219         * lib/selinux-at.h: Add documentation.
45220         Reported by Bruno Haible in
45221         http://marc.info/?l=gnulib-bug&m=124958988300749
45222
45223 2009-08-07  Bruno Haible  <bruno@clisp.org>
45224
45225         Avoid link error on MacOS X 10.3 and 10.4.
45226         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45227         on non-ELF systems.
45228         * lib/argp-pv.c (argp_program_version): Likewise.
45229         Reported by Simon Josefsson.
45230
45231 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45232
45233         * tests/test-version-etc.sh: Use $EXEEXT.
45234
45235 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45236
45237         update-copyright: update documentation to point to maint.mk
45238         * build-aux/update-copyright: Here.
45239
45240 2009-08-06  Jim Meyering  <meyering@redhat.com>
45241
45242         maint.mk: support update-copyright-local
45243         * top/maint.mk (update-copyright-local): Define place-holder.
45244         (update-copyright): Depend on $(update-copyright-local).
45245
45246 2009-08-06  Jim Meyering  <meyering@redhat.com>
45247
45248         selinux-at: new module
45249         Initially written for coreutils, this module will soon be
45250         used by findutils, too.
45251         * MODULES.html.sh [Misc]: Add selinux-at.
45252         * lib/selinux-at.h: New file, from coreutils.
45253         * lib/selinux-at.c: Likewise.
45254         * modules/selinux-at: Likewise.
45255         (License): Change from LGPL to GPL, since it depends
45256         on the GPL'd openat module.
45257
45258         doc: update README
45259         * README: Remove references to cogito.
45260         Remove cvs-repo-updating instructions from 2007.
45261         Don't imply that CVS is better if you have limited disk space.
45262
45263 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45264
45265         update-copyright: support C-style comments
45266         * build-aux/update-copyright: Implement and document.
45267         * tests/test-update-copyright.sh: Test.
45268
45269 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45270
45271         update-copyright: support omitted "(C)"
45272         * build-aux/update-copyright: Implement and document.  Also,
45273         allow variable whitespace before "(C)".
45274         * tests/test-update-copyright.sh: Test.
45275
45276 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45277
45278         update-copyright: don't trip on non-FSF copyright statements
45279         * build-aux/update-copyright: Fix so that the first correctly
45280         formatted FSF copyright statement is recognized no matter what
45281         appears before it.  Update documentation.
45282         * tests/test-update-copyright.sh: Test that.
45283
45284 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45285
45286         update-copyright: clean up code a little
45287         * build-aux/update-copyright: Append "_re" to the name of any
45288         variable holding a regular expression.
45289         Replace "old" and "new" with "stmt" in variable names.
45290         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45291         handled correctly.
45292         Format code more consistently.
45293
45294 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45295
45296         update-copyright-tests: improve portability
45297         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45298         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45299
45300 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45301
45302         update-copyright: support @copyright{} and &copy;
45303         * build-aux/update-copyright: Implement and document.
45304         * tests/test-update-copyright.sh: Test.
45305
45306 2009-08-04  Jim Meyering  <meyering@redhat.com>
45307
45308         update-copyright-tests: correctly test EOL=\r\n handling
45309         * tests/test-update-copyright.sh: Put \r at the end of some lines
45310         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45311
45312         maint.mk: make update-copyright exclusion list more configurable
45313         * top/maint.mk (update-copyright): Default to excluding COPYING,
45314         but allow an override, in case someone does want to update that file.
45315
45316         maint.mk: don't update copyright date in COPYING
45317         * top/maint.mk (update-copyright): Exclude COPYING.
45318
45319         maint.mk: add a copyright-updating rule
45320         * top/maint.mk (update-copyright): New rule.
45321         Derived from coreutils/Makefile.am.
45322
45323         update-copyright: rename some variables
45324         * build-aux/update-copyright: Rename a few variables for clarity.
45325         Tweak syntax.  List Joel E. Denny as coauthor.
45326
45327 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45328
45329         update-copyright: fix bug for 2-digit last year and add tests
45330         * build-aux/update-copyright: Fix bug.
45331         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45332         specified.
45333         * modules/update-copyright-tests: New
45334         * tests/test-update-copyright.sh: New.
45335
45336 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45337
45338         update-copyright: handle leading tabs in line prefix
45339         * build-aux/update-copyright: Count leading tabs as 8 spaces
45340         when computing margin.  This helps with the formatting of
45341         ChangeLogs, for example.
45342         Fix documentation a little.
45343
45344 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45345
45346         update-copyright: support EOL=\r\n
45347         * build-aux/update-copyright: Implement that.
45348
45349 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45350
45351         update-copyright: automatically format copyright statements
45352         * build-aux/update-copyright: Implement that.
45353         Also, be a little more predictable and safer by always failing
45354         when the full copyright format is not perfectly recognized as an
45355         unbroken whole.  Discussed at
45356         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45357         Rewrite documentation.
45358
45359 2009-08-03  Bruno Haible  <bruno@clisp.org>
45360
45361         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45362
45363 2009-08-02  Bruno Haible  <bruno@clisp.org>
45364
45365         Tests for module 'uname'.
45366         * modules/uname-tests: New file.
45367         * tests/test-uname.c: New file.
45368
45369         New module 'uname'.
45370         * lib/uname.c: New file.
45371         * m4/uname.m4: New file.
45372         * modules/uname: New file.
45373         * doc/posix-functions/uname.texi: Mention the new module.
45374
45375 2009-08-02  Bruno Haible  <bruno@clisp.org>
45376
45377         Tests for module 'sys_utsname'.
45378         * modules/sys_utsname-tests: New file.
45379         * tests/test-sys_utsname.c: New file.
45380
45381         New module 'sys_utsname'.
45382         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45383         * m4/sys_utsname_h.m4: New file.
45384         * modules/sys_utsname: New file.
45385         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45386
45387 2009-08-02  Bruno Haible  <bruno@clisp.org>
45388
45389         Implicitly initialize the sockets library.
45390         * lib/gethostname.c: Include sockets.h.
45391         (rpl_gethostname): Invoke gl_sockets_startup.
45392         * lib/socket.c: Include sockets.h.
45393         (rpl_socket): Invoke gl_sockets_startup.
45394         * modules/gethostname (Depends-on): Add sockets.
45395         * modules/socket (Depends-on): Likewise.
45396         * tests/test-poll.c: Don't include sockets.h.
45397         (main): Don't invoke gl_sockets_startup.
45398         * tests/test-select.c: Don't include sockets.h.
45399         (main): Don't invoke gl_sockets_startup.
45400
45401 2009-08-02  Bruno Haible  <bruno@clisp.org>
45402
45403         Allow multiple calls to gl_sockets_startup.
45404         * lib/sockets.c (initialized_sockets_version): New variable.
45405         (gl_sockets_startup): Do nothing if already called for this or a higher
45406         version.
45407         (gl_sockets_cleanup): Reset initialized_sockets_version.
45408
45409 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45410
45411         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45412         different project/version.
45413
45414 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45415             Bruno Haible  <bruno@clisp.org>
45416
45417         Tests for module 'pipe-filter-gi'.
45418         * modules/pipe-filter-gi-tests: New file.
45419         * tests/test-pipe-filter-gi1.sh: New file.
45420         * tests/test-pipe-filter-gi1.c: New file.
45421         * tests/test-pipe-filter-gi2.sh: New file.
45422         * tests/test-pipe-filter-gi2-main.c: New file.
45423         * tests/test-pipe-filter-gi2-child.c: New file.
45424
45425         New module 'pipe-filter-gi'.
45426         * lib/pipe-filter-gi.c: New file.
45427         * modules/pipe-filter-gi: New file.
45428
45429 2009-08-02  Bruno Haible  <bruno@clisp.org>
45430             Paolo Bonzini  <bonzini@gnu.org>
45431
45432         Tests for module 'pipe-filter-ii'.
45433         * modules/pipe-filter-ii-tests: New file.
45434         * tests/test-pipe-filter-ii1.sh: New file.
45435         * tests/test-pipe-filter-ii1.c: New file.
45436         * tests/test-pipe-filter-ii2.sh: New file.
45437         * tests/test-pipe-filter-ii2-main.c: New file.
45438         * tests/test-pipe-filter-ii2-child.c: New file.
45439
45440         New module 'pipe-filter-ii'.
45441         * lib/pipe-filter.h: New file.
45442         * lib/pipe-filter-ii.c: New file.
45443         * lib/pipe-filter-aux.h: New file.
45444         * modules/pipe-filter-ii: New file.
45445
45446 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45447
45448         * lib/gc-libgcrypt.c: Change copyright to FSF.
45449         * lib/gc-gnulib.c: Likewise.
45450
45451 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45452
45453         * lib/gethostname.c: Include limits.h.
45454
45455 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45456             Bruno Haible  <bruno@clisp.org>
45457
45458         Ensure HOST_NAME_MAX as part of the gethostname module.
45459         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45460         define also HOST_NAME_MAX.
45461         * tests/test-gethostname.c: Include <limits.h>.
45462         (main): Check also HOST_NAME_MAX.
45463         * doc/posix-headers/limits.texi: Document the mingw problem.
45464
45465 2009-08-02  Bruno Haible  <bruno@clisp.org>
45466
45467         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45468         Add comments.
45469
45470 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45471
45472         * lib/gethostname.c: Add Windows wrapper.
45473         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45474         * modules/gethostname: Depend on sys_socket & errno, for also
45475         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45476         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45477
45478 2009-07-31  Jim Meyering  <meyering@redhat.com>
45479
45480         getloadavg: fix symbol name in comment
45481         * lib/getloadavg.c: Correct a typo I introduced when adding
45482         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45483         Matt Kraai spotted the problem.
45484
45485 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45486
45487         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45488         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45489         code also if ! defined N_NAME_POINTER.
45490         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45491         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45492         but the n_name member is a 12-byte array.
45493
45494 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45495
45496         update-copyright: generalize comment handling
45497         * build-aux/update-copyright: Handle copyright statements
45498         within more comment styles.
45499         Document usage.
45500         Report any file with an external copyright holder or parse failure.
45501
45502 2009-07-29  Jim Meyering  <meyering@redhat.com>
45503
45504         mktime: correct setting of REPLACE_MKTIME
45505         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45506
45507         update-copyright: new module
45508         * modules/update-copyright: New file.
45509         * build-aux/update-copyright: New file.
45510         * MODULES.html.sh (maint+release support): Add update-copyright.
45511
45512 2009-07-27  Bruno Haible  <bruno@clisp.org>
45513
45514         Fix compilation error when <ctime> is used and mktime is replaced.
45515         * lib/time.in.h (mktime): New declaration.
45516         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45517         REPLACE_MKTIME instead of defining mktime in config.h.
45518         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45519         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45520         Reported by Ross McFarland <rwmcfa1@neces.com>.
45521
45522 2009-07-27  Bruno Haible  <bruno@clisp.org>
45523
45524         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45525         Reported by Matt Kraai <mkraai@beckman.com>.
45526
45527 2009-07-25  Jim Meyering  <meyering@redhat.com>
45528
45529         maint.mk: avoid warnings about missing files
45530         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
45531         diagnostic when .prev-version does not exist.
45532         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
45533         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
45534         nonexistent cfg.mk.
45535         Suggestions from Simon Josefsson.
45536
45537 2009-07-25  Bruno Haible  <bruno@clisp.org>
45538
45539         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
45540         defined as macros. Needed on QNX 6.4.1.
45541         Reported by Matt Kraai <mkraai@beckman.com>.
45542
45543 2009-07-23  Jim Meyering  <meyering@redhat.com>
45544
45545         maint.mk: invoke "make dist" with a working value of XZ_OPT
45546         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
45547
45548 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
45549
45550         Make fseeko.c compile on QNX.
45551         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
45552
45553 2009-07-22  Peter Simons  <simons@cryp.to>
45554
45555         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
45556         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
45557         * lib/md4.h: Likewise.
45558         * lib/md5.h: Likewise.
45559         * lib/sha1.h: Likewise.
45560         * lib/sha256.h: Likewise.
45561         * lib/sha512.h: Likewise.
45562
45563         tests-sha1: don't assign literal string to 'char *' variable
45564         * tests/test-sha1.c (main): Declare locals with "const" to match
45565         attributes of the right hand side.
45566
45567 2009-07-21  Eric Blake  <ebb9@byu.net>
45568
45569         dup2: fix more mingw problems
45570         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
45571         fd to itself.
45572         * doc/posix-functions/dup2.texi (dup2): Document the bug.
45573         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
45574         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
45575         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
45576         care of mingw bugs.
45577
45578 2009-07-21  Jim Meyering  <meyering@redhat.com>
45579
45580         vc-list-files: avoid failure when /bin/sh is dash
45581         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
45582         On some Debian based systems, /bin/sh is a symlink to dash, and running
45583         this command would omit the "/" following each 'tests' prefix:
45584           dash -x build-aux/vc-list-files -C . tests
45585         That is because bash and dash work differently:
45586           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
45587           bash ok
45588           dash odd
45589
45590 2009-07-21  Eric Blake  <ebb9@byu.net>
45591
45592         dup2-tests: test previous patch
45593         * modules/dup2-tests: New file.
45594         * tests/test-dup2.c: Likewise.
45595         * tests/test-open.c (main): Avoid unspecified behavior.
45596         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
45597         test.
45598
45599         dup2: work around mingw and cygwin 1.5 bug
45600         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
45601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45602         * modules/unistd (Makefile.am): Substitute it.
45603         * lib/unistd.in.h (dup2): Declare the replacement.
45604         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
45605         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
45606         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
45607         * modules/execute (Depends-on): Add dup2.
45608         * modules/fseterr (Depends-on): Likewise.
45609         * modules/pipe (Depends-on): Likewise.
45610         * modules/posix_spawn-internal (Depends-on): Likewise.
45611
45612 2009-07-21  Bruno Haible  <bruno@clisp.org>
45613
45614         * modules/.gitattributes: New file.
45615
45616 2009-07-20  Bruno Haible  <bruno@clisp.org>
45617
45618         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
45619         (main): Use it.
45620
45621 2009-07-20  Eric Blake  <ebb9@byu.net>
45622
45623         test-pipe: make a bit more robust.
45624         * tests/test-pipe.c (myerr): Allow error messages regardless of
45625         what we do to stderr.
45626         (test_pipe): Rearrange to avoid deadlock.
45627         (child_main): Try a larger read, to ensure we avoided deadlock.
45628         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
45629         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
45630         if misused.
45631
45632 2009-07-19  Jim Meyering  <meyering@redhat.com>
45633
45634         fts: avoid false-positive cycle-detection
45635         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
45636         for each new command line argument.
45637
45638 2009-07-19  Bruno Haible  <bruno@clisp.org>
45639
45640         Fix build error on mingw with the modules sys_select and unistd.
45641         * modules/acl-tests (Depends-on): Add close.
45642         * modules/binary-io-tests (Depends-on): Likewise.
45643         * modules/closein-tests (Depends-on): Likewise.
45644         * modules/flock-tests (Depends-on): Likewise.
45645         * modules/fsync-tests (Depends-on): Likewise.
45646         * modules/lseek-tests (Depends-on): Likewise.
45647         * modules/pipe-tests (Depends-on): Likewise.
45648         * modules/posix_spawn-tests (Depends-on): Likewise.
45649         * modules/posix_spawnp-tests (Depends-on): Likewise.
45650         * modules/stat-time-tests (Depends-on): Likewise.
45651         * modules/yesno-tests (Depends-on): Likewise.
45652
45653 2009-07-19  Bruno Haible  <bruno@clisp.org>
45654
45655         Unify conditionals.
45656         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
45657         macros, not at the compiler macros.
45658         * lib/pipe.c: Likewise.
45659         * lib/execute.c: Likewise.
45660         * lib/spawni.c: Likewise.
45661
45662 2009-07-19  Bruno Haible  <bruno@clisp.org>
45663
45664         Fix handling of closed stdin/stdout/stderr on mingw.
45665         * lib/w32spawn.h: Include unistd.h.
45666         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
45667         file descriptor with O_NOINHERIT flag.
45668         (fd_safer_noinherit): New function, based on fd-safer.c.
45669         (dup_safer_noinherit): New function, based on dup-safer.c.
45670         (undup_safer_noinherit): New function.
45671         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
45672         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
45673         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
45674         instead of fd_safer.
45675         * tests/test-pipe.c: Include <windows.h>.
45676         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
45677         result.
45678
45679         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
45680         from main.
45681         (test_pipe): Pass an extra argument for disambiguation.
45682         (main): Invoke parent_main or child_main.
45683
45684         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
45685         consistently.
45686
45687 2009-07-18  Eric Blake  <ebb9@byu.net>
45688
45689         test-pipe: fix mingw build
45690         * tests/test-pipe.c (main): Avoid fcntl on mingw.
45691
45692 2009-07-18  Bruno Haible  <bruno@clisp.org>
45693
45694         * modules/pipe-tests (Makefile.am): Fix typo.
45695
45696 2009-07-18  Eric Blake  <ebb9@byu.net>
45697
45698         error: fix mingw build
45699         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
45700         Reported by Bruno Haible.
45701
45702         error: avoid undefined use of stdout
45703         * lib/error.c (error, error_at_line): Check that fd 1 is open
45704         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
45705         is handling faults and the close_stdout module wants to report the
45706         detection of closed stdout as an error.
45707
45708 2009-07-17  Eric Blake  <ebb9@byu.net>
45709
45710         pipe: be robust in face of closed fds
45711         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
45712         should cause child to misbehave.
45713         * modules/pipe-tests: New module.
45714         * tests/test-pipe.c: New file.
45715         * tests/test-pipe.sh: New file.
45716         Reported by Akim Demaille.
45717
45718 2009-07-14  Bruno Haible  <bruno@clisp.org>
45719
45720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
45721         Reported by anonymous kc.
45722
45723 2009-07-07  Jim Meyering  <meyering@redhat.com>
45724
45725         maint.mk: don't look for translatable strings in *.m4 or *.mk
45726         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
45727         when searching for translatable strings.
45728
45729 2009-07-05  Jim Meyering  <meyering@redhat.com>
45730
45731         remove superfluous parentheses in STREQ definition
45732         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
45733         * lib/getugroups.c (STREQ): Likewise.
45734         * lib/fnmatch.c (STREQ): Likewise.
45735         Spotted by Bruno Haible.
45736
45737 2009-07-04  Jim Meyering  <meyering@redhat.com>
45738
45739         argv-iter: new module
45740         * MODULES.html.sh: Add argv-iter.
45741         * lib/argv-iter.c, lib/argv-iter.h: New files.
45742         * modules/argv-iter: New file.
45743         * modules/argv-iter-tests: New file.
45744         * tests/test-argv-iter.c: Test it.
45745
45746 2009-07-04  Bruno Haible  <bruno@clisp.org>
45747
45748         Fix assertion.
45749         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
45750         contains more exact copies of a given entry than file2, leave the extra
45751         copies unpaired rather than aborting.
45752         Reported by Eric Blake.
45753
45754 2009-07-02  Bruno Haible  <bruno@clisp.org>
45755
45756         Speedup git-merge-changelog for git cherry-pick.
45757         * lib/git-merge-changelog.c (struct entries_mapping): New type.
45758         (entries_mapping_get): New function, extracted from compute_mapping.
45759         (entries_mapping_reverse_get): New function.
45760         (compute_mapping): Add a 'full' argument. Return the result in a
45761         'struct entries_mapping'.
45762         (main): Update. Access the mappings through entries_mapping_get.
45763         Reported by Eric Blake.
45764
45765 2009-07-02  Bruno Haible  <bruno@clisp.org>
45766
45767         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
45768         best_i.
45769
45770 2009-07-02  Bruno Haible  <bruno@clisp.org>
45771
45772         Speed up approximate search for matching ChangeLog entries.
45773         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
45774         argument. Call fstrcmp_bounded instead of fstrcmp.
45775         (compute_mapping, try_split_merged_entry, main): Update callers.
45776
45777 2009-07-02  Bruno Haible  <bruno@clisp.org>
45778
45779         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
45780
45781 2009-06-30  Bruno Haible  <bruno@clisp.org>
45782
45783         Reduce the number of uc_is_cased calls.
45784         * lib/unicase.h (casing_suffix_context_t): Add
45785         'first_char_except_ignorable' field.
45786         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
45787         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
45788         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
45789         Update initializer.
45790         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
45791         case-ignorable characters.
45792         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
45793         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
45794         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
45795         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
45796         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
45797
45798 2009-06-30  Bruno Haible  <bruno@clisp.org>
45799
45800         Tests for module 'unicase/ignorable'.
45801         * modules/unicase/ignorable-tests: New file.
45802         * tests/unicase/test-ignorable.c: New file, generated by
45803         gen-uni-tables.
45804
45805         Tests for module 'unicase/cased'.
45806         * modules/unicase/cased-tests: New file.
45807         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
45808         * tests/unicase/test-predicate-part1.h: New file, derived from
45809         tests/unictype/test-predicate-part1.h.
45810         * tests/unicase/test-predicate-part2.h: New file, same as
45811         tests/unictype/test-predicate-part2.h.
45812
45813         Fix evaluation of "Before C" condition of FINAL_SIGMA.
45814         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
45815         (output_casing_properties): New function.
45816         (main): Call it.
45817         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
45818         * lib/unicase/cased.c: Include unictype/bitmap.h.
45819         (uc_is_cased): Define through a bitmap lookup.
45820         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
45821         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
45822         (uc_is_case_ignorable): Define through a bitmap lookup.
45823         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
45824         lib/unictype/bitmap.h.
45825         (Depends-on): Add inline. Clean up.
45826         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
45827         lib/unictype/bitmap.h.
45828         (Depends-on): Add inline. Clean up.
45829         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
45830         recognition.
45831         * tests/unicase/test-u16-tolower.c (main): Likewise.
45832         * tests/unicase/test-u32-tolower.c (main): Likewise.
45833
45834 2009-06-30  Bruno Haible  <bruno@clisp.org>
45835
45836         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
45837         * lib/unicase/u16-casemap.c: Likewise.
45838         * lib/unicase/u32-casemap.c: Likewise.
45839
45840 2009-06-29  Bruno Haible  <bruno@clisp.org>
45841
45842         Define u32_casefold as a wrapper around u32_ct_casefold.
45843         * lib/unicase/u32-casefold.c: Update.
45844         * modules/unicase/u32-casefold (Depends-on): Add
45845         unicase/u32-ct-casefold, unicase/empty-prefix-context,
45846         unicase/empty-suffix-context. Clean up.
45847
45848         Define u16_casefold as a wrapper around u16_ct_casefold.
45849         * lib/unicase/u16-casefold.c: Update.
45850         * modules/unicase/u16-casefold (Depends-on): Add
45851         unicase/u16-ct-casefold, unicase/empty-prefix-context,
45852         unicase/empty-suffix-context. Clean up.
45853
45854         Define u8_casefold as a wrapper around u8_ct_casefold.
45855         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
45856         * lib/unicase/u8-casefold.c: Update.
45857         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
45858         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45859
45860         Define u32_totitle as a wrapper around u32_ct_totitle.
45861         * lib/unicase/u32-totitle.c: Update.
45862         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
45863         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45864
45865         Define u16_totitle as a wrapper around u16_ct_totitle.
45866         * lib/unicase/u16-totitle.c: Update.
45867         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
45868         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45869
45870         Define u8_totitle as a wrapper around u8_ct_totitle.
45871         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
45872         functions.
45873         (FUNC): Delegate to U_CT_TOTITLE.
45874         * lib/unicase/u8-totitle.c: Update.
45875         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
45876         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45877
45878         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
45879         invocation.
45880         * modules/unicase/u32-tolower (Depends-on): Add
45881         unicase/empty-prefix-context, unicase/empty-suffix-context.
45882
45883         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
45884         invocation.
45885         * modules/unicase/u16-tolower (Depends-on): Add
45886         unicase/empty-prefix-context, unicase/empty-suffix-context.
45887
45888         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
45889         * modules/unicase/u8-tolower (Depends-on): Add
45890         unicase/empty-prefix-context, unicase/empty-suffix-context.
45891
45892         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
45893         invocation.
45894         * modules/unicase/u32-toupper (Depends-on): Add
45895         unicase/empty-prefix-context, unicase/empty-suffix-context.
45896
45897         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
45898         invocation.
45899         * modules/unicase/u16-toupper (Depends-on): Add
45900         unicase/empty-prefix-context, unicase/empty-suffix-context.
45901
45902         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
45903         * modules/unicase/u8-toupper (Depends-on): Add
45904         unicase/empty-prefix-context, unicase/empty-suffix-context.
45905
45906         New module 'unicase/u32-ct-casefold'.
45907         * lib/unicase/u32-ct-casefold.c: New file.
45908         * modules/unicase/u32-ct-casefold: New file.
45909
45910         New module 'unicase/u16-ct-casefold'.
45911         * lib/unicase/u16-ct-casefold.c: New file.
45912         * modules/unicase/u16-ct-casefold: New file.
45913
45914         New module 'unicase/u8-ct-casefold'.
45915         * lib/unicase/u8-ct-casefold.c: New file.
45916         * lib/unicase/u-ct-casefold.h: New file, derived from
45917         lib/unicase/u-casefold.h.
45918         * modules/unicase/u8-ct-casefold: New file.
45919
45920         New module 'unicase/u32-ct-totitle'.
45921         * lib/unicase/u32-ct-totitle.c: New file.
45922         * modules/unicase/u32-ct-totitle: New file.
45923
45924         New module 'unicase/u16-ct-totitle'.
45925         * lib/unicase/u16-ct-totitle.c: New file.
45926         * modules/unicase/u16-ct-totitle: New file.
45927
45928         New module 'unicase/u8-ct-totitle'.
45929         * lib/unicase/u8-ct-totitle.c: New file.
45930         * lib/unicase/u-ct-totitle.h: New file, derived from
45931         lib/unicase/u-totitle.h.
45932         * modules/unicase/u8-ct-totitle: New file.
45933
45934         New module 'unicase/u32-ct-tolower'.
45935         * lib/unicase/u32-ct-tolower.c: New file.
45936         * modules/unicase/u32-ct-tolower: New file.
45937
45938         New module 'unicase/u16-ct-tolower'.
45939         * lib/unicase/u16-ct-tolower.c: New file.
45940         * modules/unicase/u16-ct-tolower: New file.
45941
45942         New module 'unicase/u8-ct-tolower'.
45943         * lib/unicase/u8-ct-tolower.c: New file.
45944         * modules/unicase/u8-ct-tolower: New file.
45945
45946         New module 'unicase/u32-ct-toupper'.
45947         * lib/unicase/u32-ct-toupper.c: New file.
45948         * modules/unicase/u32-ct-toupper: New file.
45949
45950         New module 'unicase/u16-ct-toupper'.
45951         * lib/unicase/u16-ct-toupper.c: New file.
45952         * modules/unicase/u16-ct-toupper: New file.
45953
45954         New module 'unicase/u8-ct-toupper'.
45955         * lib/unicase/u8-ct-toupper.c: New file.
45956         * modules/unicase/u8-ct-toupper: New file.
45957
45958         Add context arguments to u*_casemap functions.
45959         * lib/unicase/unicasemap.h: Include unicase.h.
45960         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
45961         suffix_context arguments.
45962         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
45963         functions.
45964         (FUNC): Add prefix_context and suffix_context arguments. Use
45965         uc_is_cased and uc_is_case_ignorable.
45966         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
45967         * lib/unicase/u16-casemap.c: Likewise.
45968         * lib/unicase/u32-casemap.c: Likewise.
45969         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
45970         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45971         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
45972         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45973         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
45974         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45975
45976         New module 'unicase/u32-suffix-context'.
45977         * lib/unicase/u32-suffix-context.c: New file.
45978         * modules/unicase/u32-suffix-context: New file.
45979
45980         New module 'unicase/u16-suffix-context'.
45981         * lib/unicase/u16-suffix-context.c: New file.
45982         * modules/unicase/u16-suffix-context: New file.
45983
45984         New module 'unicase/u8-suffix-context'.
45985         * lib/unicase/u8-suffix-context.c: New file.
45986         * lib/unicase/u-suffix-context.h: New file.
45987         * modules/unicase/u8-suffix-context: New file.
45988
45989         New module 'unicase/empty-suffix-context'.
45990         * lib/unicase/empty-suffix-context.c: New file.
45991         * modules/unicase/empty-suffix-context: New file.
45992
45993         New module 'unicase/u32-prefix-context'.
45994         * lib/unicase/u32-prefix-context.c: New file.
45995         * modules/unicase/u32-prefix-context: New file.
45996
45997         New module 'unicase/u16-prefix-context'.
45998         * lib/unicase/u16-prefix-context.c: New file.
45999         * modules/unicase/u16-prefix-context: New file.
46000
46001         New module 'unicase/u8-prefix-context'.
46002         * lib/unicase/u8-prefix-context.c: New file.
46003         * lib/unicase/u-prefix-context.h: New file.
46004         * lib/unicase/context.h: New file.
46005         * modules/unicase/u8-prefix-context: New file.
46006
46007         New module 'unicase/empty-prefix-context'.
46008         * lib/unicase/empty-prefix-context.c: New file.
46009         * modules/unicase/empty-prefix-context: New file.
46010
46011         New module 'unicase/ignorable'.
46012         * lib/unicase/ignorable.c: New file.
46013         * modules/unicase/ignorable: New file.
46014
46015         New module 'unicase/cased'.
46016         * lib/unicase/caseprop.h: New file.
46017         * lib/unicase/cased.c: New file.
46018         * modules/unicase/cased: New file.
46019
46020         New functions for case mapping of substrings.
46021         * lib/unicase.h (casing_prefix_context_t): New type.
46022         (unicase_empty_prefix_context): New variable.
46023         (u8_casing_prefix_context, u16_casing_prefix_context,
46024         u32_casing_prefix_context, u8_casing_prefixes_context,
46025         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46026         declarations.
46027         (casing_suffix_context_t): New type.
46028         (unicase_empty_suffix_context): New variable.
46029         (u8_casing_suffix_context, u16_casing_suffix_context,
46030         u32_casing_suffix_context, u8_casing_suffixes_context,
46031         u16_casing_suffixes_context, u32_casing_suffixes_context,
46032         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46033         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46034         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46035         declarations.
46036
46037 2009-06-28  Jim Meyering  <meyering@redhat.com>
46038
46039         boostrap: indent only with spaces
46040         * build-aux/bootstrap: Indent only with spaces, never TABs.
46041
46042         bootstrap: split long lines
46043         * build-aux/bootstrap: Keep line length < 80.
46044
46045         bootstrap: sync from coreutils
46046         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46047         just as autoreconf does.  Verify a list of prerequisite
46048         package-name,version-number pairs if defined in bootstrap.conf.
46049         Refer to README-prereq, if prerequisites are not satisfied.
46050
46051 2009-06-27  Eric Blake  <ebb9@byu.net>
46052
46053         tests: add test for bogus NULL definition
46054         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46055         * tests/test-stdlib.c: Likewise.
46056         * tests/test-string.c: Likewise.
46057         * tests/test-locale.c: Likewise.
46058         * tests/test-unistd.c: Likewise.
46059         * modules/stdio-tests (Depends-on): Add verify.
46060         * modules/stdlib-tests (Depends-on): Likewise.
46061         * modules/string-tests (Depends-on): Likewise.
46062         * modules/locale-tests (Depends-on): Likewise.
46063         * modules/unistd-tests (Depends-on): Likewise.
46064
46065 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46066
46067         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46068         self-explaining comment.
46069         * m4/selinux-selinux-h: Update serial.
46070         (gl_LIBSELINUX): New macro, adding a warning for missing development
46071         packages to code extracted from...
46072         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46073         Add warning for missing development packages here, too.
46074
46075 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46076
46077         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46078
46079 2009-06-25  Eric Blake  <ebb9@byu.net>
46080
46081         version-etc: fix regression
46082         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46083         gcc.
46084         (version_etc): Use it, to catch bugs with trailing NULL.
46085         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46086         (version_etc_va): Fix logic bug.
46087         * modules/version-etc-tests: Add test.
46088         * tests/test-version-etc.c: New file.
46089         * tests/test-version-etc.sh: Likewise.
46090
46091 2009-06-25  Sam Steingold  <sds@gnu.org>
46092
46093         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46094         mbtowc declaration.
46095
46096 2009-06-25  Eric Blake  <ebb9@byu.net>
46097
46098         fpurge: migrate into <stdio.h>
46099         * lib/fpurge.h: Delete...
46100         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46101         * lib/fpurge.c (fpurge): Change declaring header.
46102         * modules/fpurge (Files): Drop deleted file.
46103         (Depends-on): Add stdio.
46104         (configure.ac): Set witness.
46105         * modules/stdio (Makefile.am): Support fpurge macros.
46106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46107         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46108         * lib/fflush.c: Update client.
46109         * tests/test-fpurge.c: Likewise.
46110         * NEWS: Mention the change.
46111
46112 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46113
46114         * lib/argp-version-etc.c (program_authors): Add const
46115         qualifier.
46116         * lib/version-etc.c: Fix typos in the comments.
46117         * modules/argp-version-etc: Depends on version-etc.
46118
46119 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46120
46121         argp-version-etc: new module.
46122
46123         * lib/argp-version-etc.c: New file.
46124         * lib/argp-version-etc.h: New file.
46125         * modules/argp-version-etc: New file.
46126         * modules/argp-version-etc-tests: New file.
46127         * tests/test-argp-version-etc.c: New test.
46128         * tests/test-argp-version-etc-1.sh: New test.
46129
46130 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46131
46132         Provide additional interfaces and documentation for version-etc
46133         module.
46134
46135         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46136         interfaces.
46137         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46138         prototypes.
46139
46140 2009-06-24  Bruno Haible  <bruno@clisp.org>
46141
46142         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46143         HAVE_LIB${NAME} macro.
46144         Reported by Sam Steingold <sds@gnu.org>.
46145
46146 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46147
46148         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46149         needed.
46150
46151 2009-06-21  Bruno Haible  <bruno@clisp.org>
46152
46153         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46154         work.
46155         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46156         together with LIB${NAME}, LTLIB${NAME}.
46157         Reported by Sam Steingold <sds@gnu.org>.
46158
46159 2009-06-20  Jim Meyering  <meyering@redhat.com>
46160
46161         tests: make sc_require_test_exit_idiom more generic
46162         * top/maint.mk (Exit_witness_file): New overridable variable.
46163         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46164         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46165
46166 2009-06-19  Jim Meyering  <meyering@redhat.com>
46167
46168         hash: reverse order of src/dst parameters in an internal interface
46169         * lib/hash.c (transfer_entries): Reverse order of parameters to
46170         put DST before SRC.  Adjust callers.
46171
46172         tests: test-hash: avoid wholesale duplication
46173         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46174         Instead, use a loop and add a single conditional.
46175
46176         tests: test-hash: allow seed selection via a command line argument
46177         * tests/test-hash.c (get_seed): New function.
46178         (main): Use it.
46179
46180 2009-06-19  Eric Blake  <ebb9@byu.net>
46181
46182         hash: avoid memory leak on allocation failure
46183         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46184         failure.  Factor repeated algorithm...
46185         (transfer_entries): ...into new helper routine.
46186         (hash_delete): React to hash_rehash return value.
46187
46188         hash: reduce memory pressure in hash_rehash no-op case
46189         * lib/hash.c (next_prime): Avoid overflow.
46190         (hash_initialize): Factor bucket size computation...
46191         (compute_bucket_size): ...into new helper function.
46192         (hash_rehash): Use new function and open coding to reduce memory
46193         pressure, and avoid a memory leak in USE_OBSTACK code.
46194         Reported by Jim Meyering.
46195
46196 2009-06-18  Eric Blake  <ebb9@byu.net>
46197
46198         hash: make rotation more obvious
46199         * modules/hash (Depends-on): Add bitrotate and stdint.
46200         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46201         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46202         (SIZE_MAX): Rely on headers for definition.
46203         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46204         (raw_hasher): Use rotr_sz.
46205         Suggested by Jim Meyering.
46206
46207         hash: fix memory leak in last patch
46208         * lib/hash.c (hash_rehash): Avoid memory leak.
46209
46210         hash: avoid no-op rehashing
46211         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46212
46213         hash: provide default callback functions
46214         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46215         (hash_initialize): Use them as defaults.
46216         * tests/test-hash.c (main): Test this.
46217
46218         hash: minor optimization
46219         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46220         when possible.
46221         (hash_initialize): Document this promise.
46222         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46223         * tests/test-hash.c (hash_compare_strings): Test this.
46224
46225 2009-06-18  Bruno Haible  <bruno@clisp.org>
46226
46227         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46228         going to be replaced anyway.
46229
46230 2009-06-18  Bruno Haible  <bruno@clisp.org>
46231
46232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46233         in one place.
46234         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46235         be replaced anyway.
46236
46237 2009-06-18  Eric Blake  <ebb9@byu.net>
46238
46239         hash: check for resize before insertion
46240         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46241         threshold before insertion, so that a pathological hash_rehash
46242         that fills every bucket can still trigger another rehash.
46243
46244 2009-06-18  Jim Meyering  <meyering@redhat.com>
46245
46246         hash-tests: add a loop around the small tests
46247         * tests/test-hash.c (main): Repeat small tests with selected
46248         small initial table sizes.
46249
46250 2009-06-17  Eric Blake  <ebb9@byu.net>
46251
46252         hash: minor cleanups
46253         * lib/hash.h (hash_entry): Make opaque, by moving...
46254         * lib/hash.c (hash_entry): ...here.
46255         (hash_insert): Clarify restrictions on what can be inserted.
46256         (hash_get_next): Clarify when it is safe to remove an element
46257         during traversal.
46258         (check_tuning): Skip verification when tuning is known safe.
46259         (hash_initialize): Clarify restrictions on tuning.
46260
46261 2009-06-17  Jim Meyering  <jim@meyering.net>
46262         and Eric Blake  <ebb9@byu.net>
46263
46264         hash-tests: new module
46265         * modules/hash-tests: New file.
46266         * tests/test-hash.c: New file.
46267
46268 2009-06-17  Eric Blake  <ebb9@byu.net>
46269
46270         strstr-simple: document new module
46271         * MODULES.html.sh: Document new module.
46272
46273         strstr, strcasestr: replace on platforms with broken memchr
46274         * modules/strstr: Split into...
46275         * modules/strstr-simple: ...new module that does not care about
46276         performance, but does care about glibc bug.
46277         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46278         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46279         if platform memchr is broken, per Debian bug 521737.
46280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46281         memchr.
46282         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46283         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46284         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46285         * modules/mountlist (Depends-on): Add strstr-simple.
46286         * modules/gen-uni-tables (Depends-on): Likewise.
46287         * modules/argz (Depends-on): Add strstr.
46288
46289 2009-06-17  Bruno Haible  <bruno@clisp.org>
46290
46291         * modules/posix_spawn-internal (Depends-on): Add errno.
46292
46293 2009-06-17  Bruno Haible  <bruno@clisp.org>
46294
46295         Define missing ESTALE on Interix 3.5.
46296         * lib/errno.in.h (ESTALE): Assign a value if missing.
46297         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46298         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46299         missing.
46300         * doc/posix-headers/errno.texi: Mention the Interix bug.
46301         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46302
46303 2009-06-15  Eric Blake  <ebb9@byu.net>
46304
46305         memchr, memchr2: add valgrind exception
46306         * lib/memchr.valgrind: New file.
46307         * lib/memchr2.valgrind: New file.
46308         * modules/memchr (Files): Distribute valgrind file.
46309         * modules/memchr2 (Files): Likewise.
46310
46311         docs: memchr is no longer obsolete
46312         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46313         * lib/string.in.h (memchr): Simplify logic.
46314
46315 2009-06-14  Jim Meyering  <meyering@redhat.com>
46316
46317         link-follow: fix the "checking..." message to not mention trailing slash
46318         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46319         never considered trailing slashes.
46320
46321 2009-06-14  Bruno Haible  <bruno@clisp.org>
46322
46323         * m4/memchr.m4: Mention also the bug on IA-64.
46324         * doc/posix-functions/memchr.texi: Likewise.
46325
46326 2009-06-12  Eric Blake  <ebb9@byu.net>
46327
46328         memchr: detect broken x86_64 and alpha implementations
46329         * modules/memchr-tests (Depends-on): Move mmap detection...
46330         * modules/memchr (Depends-on): ...here.
46331         (configure.ac): Set indicator.
46332         * lib/string.in.h (memchr): Declare replacement.
46333         * modules/string (Makefile.am): Trigger replacement.
46334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46335         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46336         bugs.
46337         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46338         * modules/getpagesize (License): Relax license.
46339
46340 2009-06-11  Bruno Haible  <bruno@clisp.org>
46341
46342         * lib/idpriv.h: Add more references.
46343
46344 2009-06-08  Bruno Haible  <bruno@clisp.org>
46345
46346         Tests for module 'idpriv-droptemp'.
46347         * modules/idpriv-droptemp-tests: New file.
46348         * tests/test-idpriv-droptemp.sh: New file.
46349         * tests/test-idpriv-droptemp.su.sh: New file.
46350         * tests/test-idpriv-droptemp.c: New file.
46351
46352         New module 'idpriv-droptemp'.
46353         * lib/idpriv-droptemp.c: New file.
46354         * modules/idpriv-droptemp: New file.
46355
46356 2009-06-08  Bruno Haible  <bruno@clisp.org>
46357
46358         Tests for module 'idpriv-drop'.
46359         * modules/idpriv-drop-tests: New file.
46360         * tests/test-idpriv-drop.sh: New file.
46361         * tests/test-idpriv-drop.su.sh: New file.
46362         * tests/test-idpriv-drop.c: New file.
46363
46364         New module 'idpriv-drop'.
46365         * lib/idpriv.h: New file.
46366         * lib-idpriv-drop.c: New file.
46367         * m4/idpriv.m4: New file.
46368         * modules/idpriv-drop: New file.
46369
46370 2009-06-08  Bruno Haible  <bruno@clisp.org>
46371
46372         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46373         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46374         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46375         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46376         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46377         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46378         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46379
46380 2009-06-08  Eric Blake  <ebb9@byu.net>
46381
46382         test-strstr: use memory fence, when possible
46383         * tests/test-strstr.c (main): Use memory fence, in order to be
46384         more likely to trigger Debian bug 521737.
46385         * modules/strstr-tests (Files): Pull in additional files.
46386
46387         memchr: no longer obsolete, for wider field testing
46388         * modules/memchr (Status, Notice): Delete, this module is no
46389         longer obsolete.
46390         * modules/vasnprintf (Depends-on): Add memchr.
46391
46392 2009-06-07  Jim Meyering  <meyering@redhat.com>
46393
46394         hash: declare some functions with the warn_unused_result attribute
46395         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46396
46397 2009-06-07  Bruno Haible  <bruno@clisp.org>
46398
46399         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46400         Reported by Eric Blake.
46401
46402 2009-06-06  Eric Blake  <ebb9@byu.net>
46403
46404         test-alignof: fix typo with long double
46405         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46406         compiler error.
46407
46408 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46409
46410         Escape non-texinfo { and }s.
46411         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46412         markup error.
46413
46414 2009-06-04  Jim Meyering  <meyering@redhat.com>
46415
46416         gitlog-to-changelog: don't infloop on an empty commit log
46417         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46418         Reported by Boris Petersen <transacid@centerim.org>.
46419
46420 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46421
46422         version-etc: extend for packagers
46423         Add three new configure options, intended for packagers:
46424           --with-packager="packager name"
46425           --with-packager-version="packager-specific version"
46426           --with-packager-bug-reports="packager bug reporting"
46427         An example with coreutils:
46428           $ ./configure \
46429             --with-packager=Gentoo \
46430             --with-packager-bug-report=http://bugs.gentoo.org/ \
46431             --with-packager-version="patchset 1.6"
46432           $ ./src/ls --version | head -n2
46433           ls (GNU coreutils) 7.1-dirty
46434           Packaged by Gentoo (patchset 1.6)
46435         Note that the bug reporting info via --help doesn't show up because
46436         coreutils uses its own custom emit_bug_reporting_address() implementation
46437         in src/system.h.  If it didn't, it'd look like:
46438           $ ./src/ls --help | tail -n4
46439           Report bugs to <bug-coreutils@gnu.org>.
46440           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46441           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46442           General help using GNU software: <http://www.gnu.org/gethelp/>.
46443         * lib/version-etc.c: Print new information, if provided.
46444         * m4/version-etc.m4: New file.
46445         * modules/version-etc (Files): Add m4/version-etc.m4.
46446         (configure.ac): Add gl_VERSION_ETC.
46447
46448 2009-05-31  Bruno Haible  <bruno@clisp.org>
46449
46450         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46451         and 'int64_t'.
46452         * modules/alignof-tests (Dependencies): Add stdint.
46453         Reported by Eric Blake.
46454
46455 2009-05-31  Bruno Haible  <bruno@clisp.org>
46456
46457         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46458         restriction due to compiler bugs.
46459         Reported by Eric Blake.
46460
46461 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46462             Bruno Haible  <bruno@clisp.org>
46463
46464         Fix test-alignof failure.
46465         * lib/alignof.h (alignof_slot): New macro.
46466         (alignof_type): New macro, with the same semantics as the previous
46467         'alignof'.
46468         (alignof): Alias to alignof_slot.
46469         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46470         check that the results are usable as constant expressions.
46471
46472 2009-05-31  Bruno Haible  <bruno@clisp.org>
46473
46474         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46475         * tests/test-memchr.c (main): Check that memchr does not read past the
46476         first occurrence of the byte.
46477         * tests/test-strstr.c (main): Update comment.
46478         Suggested by Eric Blake.
46479
46480 2009-05-30  Bruno Haible  <bruno@clisp.org>
46481
46482         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46483         detail how to use dumpbin.
46484         Reported by David Byron <dbyron@dbyron.com>.
46485
46486 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46487
46488         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46489
46490 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46491
46492         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46493
46494 2009-05-28  Bruno Haible  <bruno@clisp.org>
46495
46496         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46497         build-aux/ files.
46498
46499 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46500
46501         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46502
46503 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46504
46505         * gnulib-tool (sed_transform_main_lib_file)
46506         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46507         regexps.
46508
46509 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46510
46511         * tests/test-strstr.c: Add another self-test.
46512         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46513         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46514
46515 2009-05-23  Bruno Haible  <bruno@clisp.org>
46516
46517         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46518         change.
46519
46520 2009-05-21  Bruno Haible  <bruno@clisp.org>
46521
46522         Simplify use of mode_t varargs.
46523         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46524         uses 'mode_t' or 'int'.
46525         * lib/openat.c (openat): Likewise.
46526         * lib/open-safer.c (open_safer): Likewise.
46527         * m4/mode_t.m4: New file.
46528         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
46529         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
46530         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
46531         * modules/open (Files): Add m4/mode_t.m4.
46532         * modules/openat (Files): Likewise.
46533         * modules/fcntl-safer (Files): Likewise.
46534         Suggested by Eric Blake.
46535
46536 2009-05-21  Pádraig Brady  <P@draigbrady.com>
46537
46538         * doc/glibc-functions/fallocate.texi: New file.
46539         * doc/gnulib.texi: Include it.
46540
46541 2009-05-21  Eric Blake  <ebb9@byu.net>
46542             Bruno Haible  <bruno@clisp.org>
46543
46544         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
46545         invocations.
46546         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46547
46548 2009-05-21  Eric Blake  <ebb9@byu.net>
46549             Bruno Haible  <bruno@clisp.org>
46550
46551         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
46552         include_next. Fix of 2008-11-20 commit.
46553         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
46554         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
46555         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
46556         NEXT_MATH_H.
46557         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
46558         instead of NEXT_MATH_H.
46559
46560 2009-05-21  Bruno Haible  <bruno@clisp.org>
46561
46562         Avoid redefinition warnings for SIZE_MAX.
46563         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
46564         Reported by Simon Josefsson.
46565
46566 2009-05-21  Bruno Haible  <bruno@clisp.org>
46567
46568         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
46569         AC_CACHE_VAL.
46570
46571 2009-05-20  Bruno Haible  <bruno@clisp.org>
46572
46573         Make zeroptr.h work on mingw.
46574         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
46575         mprotect.
46576         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
46577         * modules/memchr2-tests (configure.ac): Likewise.
46578         * modules/memcmp-tests (configure.ac): Likewise.
46579         * modules/memmem-tests (configure.ac): Likewise.
46580         * modules/memrchr-tests (configure.ac): Likewise.
46581         Reported by Simon Josefsson.
46582
46583 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46584
46585         * tests/test-glob.c: Include string.h for strcmp prototype.
46586
46587 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46588
46589         * modules/getdelim (Depends-on): Add explicit stdint, although it
46590         was implicitly already pulled in via realloc-posix.
46591         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
46592
46593 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46594
46595         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
46596         G. Christensen" <tgc@jupiterrise.com>.
46597         * m4/sys_socket_h.m4: Check for sa_family_t.
46598         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
46599         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
46600         * tests/test-sys_socket.c: Check that sa_family_t works.
46601
46602 2009-05-18  Eric Blake  <ebb9@byu.net>
46603
46604         maint.mk: allow gnulib_dir in VPATH build
46605         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
46606
46607 2009-05-15  Jim Meyering  <meyering@redhat.com>
46608
46609         maint.mk: Give gnulib_dir a default definition.
46610         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
46611         Thus, most packages no longer need to specify this variable in cfg.mk
46612
46613 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
46614
46615         rename.m4: fix typos that would make non-mingw cross-configure fail
46616         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
46617
46618 2009-05-13  Eric Blake  <ebb9@byu.net>
46619
46620         mmap-anon: avoid out-of-order autoconf expansion
46621         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
46622         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
46623         * modules/memchr-tests (Depends-on): Add extensions.
46624         * modules/memchr2-tests (Depends-on): Add extensions.
46625         * modules/memcmp-tests (Depends-on): Add extensions.
46626         * modules/memmem-tests (Depends-on): Add extensions.
46627         * modules/memrchr-tests (Depends-on): Add extensions.
46628
46629 2009-05-13  Bruno Haible  <bruno@clisp.org>
46630
46631         Make some tests ISO C 99 compliant.
46632         * tests/zerosize-ptr.h: New file.
46633         * tests/test-memchr.c: Include zerosize-ptr.h.
46634         (main): Use a zero-size object pointer instead of NULL.
46635         * tests/test-memchr2.c: Include zerosize-ptr.h.
46636         (main): Use a zero-size object pointer instead of NULL.
46637         * tests/test-memcmp.c: Include zerosize-ptr.h.
46638         (main): Use a zero-size object pointer instead of NULL.
46639         * tests/test-memmem.c: Include zerosize-ptr.h.
46640         (main): Use a zero-size object pointer instead of NULL.
46641         * tests/test-memrchr.c: Include zerosize-ptr.h.
46642         (main): Use a zero-size object pointer instead of NULL.
46643         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
46644         m4/mmap-anon.m4.
46645         (Depends-on): Add getpagesize.
46646         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46647         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
46648         m4/mmap-anon.m4.
46649         (Depends-on): Add getpagesize.
46650         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46651         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
46652         m4/mmap-anon.m4.
46653         (Depends-on): Add getpagesize.
46654         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46655         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
46656         m4/mmap-anon.m4.
46657         (Depends-on): Add getpagesize.
46658         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46659         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
46660         m4/mmap-anon.m4.
46661         (Depends-on): Add getpagesize.
46662         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46663
46664 2009-05-12  Bruno Haible  <bruno@clisp.org>
46665
46666         Tests for module 'alignof'.
46667         * modules/alignof-tests: New file.
46668         * tests/test-alignof.c: New file.
46669
46670 2009-05-12  Bruno Haible  <bruno@clisp.org>
46671
46672         Fix alignof macro.
46673         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
46674         vendor compilers that are always correct.
46675
46676 2009-05-12  Bruno Haible  <bruno@clisp.org>
46677
46678         Make the MAP_ANONYMOUS detection work on HP-UX 11.
46679         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
46680         not whether its fully works.
46681
46682 2009-05-12  Bruno Haible  <bruno@clisp.org>
46683
46684         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
46685
46686 2009-05-12  Jim Meyering  <meyering@redhat.com>
46687
46688         * top/maint.mk: Adjust backslash alignment.
46689
46690 2009-05-11  Simon Josefsson  <simon@josefsson.org>
46691
46692         * top/maint.mk: Make $(srcdir)/build-aux configurable.
46693
46694 2009-05-11  Eric Blake  <ebb9@byu.net>
46695
46696         argp: avoid undefined behavior
46697         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
46698         macros.
46699
46700 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46701
46702         * tests/test-vc-list-files-git.sh: Do git config of user.email and
46703         user.name to prevent git commit from complaining.
46704
46705 2009-05-10  Bruno Haible  <bruno@clisp.org>
46706
46707         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
46708         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
46709         it rewrites every file name only once.
46710         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
46711
46712 2009-05-08  Bruno Haible  <bruno@clisp.org>
46713
46714         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
46715         instead of 'max'.
46716
46717 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46718
46719         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
46720         sockaddr_storage test.
46721
46722 2009-05-07  Simon Josefsson  <simon@josefsson.org>
46723
46724         * modules/sys_socket (Makefile.am): Substitute
46725         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
46726         * m4/sys_socket_h.m4: Check for sockaddr_storage.
46727         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
46728         * tests/test-sys_socket.c: Check sockaddr_storage.
46729
46730 2009-05-08  Bruno Haible  <bruno@clisp.org>
46731
46732         New module 'alignof'.
46733         * lib/alignof.h: New file.
46734         * modules/alignof: New file.
46735
46736 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46737             Bruno Haible  <bruno@clisp.org>
46738
46739         Fix test-file-has-acl on FreeBSD.
46740         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
46741         mask is implicitly added.
46742         * tests/test-file-has-acl.c: Include <signal.h>.
46743         (main): Terminate the test after 5 seconds.
46744         * modules/acl-tests (configure.ac): Check for alarm function.
46745
46746 2009-05-04  Bruno Haible  <bruno@clisp.org>
46747
46748         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
46749         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
46750         * modules/errno (configure.ac): Drop AC_REQUIRE.
46751         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
46752         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
46753
46754 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46755
46756         * modules/glob-tests: New module.
46757         * tests/test-glob.c: Add.
46758
46759 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46760
46761         * modules/fnmatch-tests: New module.
46762         * tests/test-fnmatch.c: Add.
46763
46764 2009-05-04  Eric Blake  <ebb9@byu.net>
46765
46766         maint: make the new no-submodule-changes rule VPATH-safe
46767         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
46768
46769 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46770             Bruno Haible  <bruno@clisp.org>
46771
46772         acl: Fix infinite loop on FreeBSD.
46773         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
46774         of return value from acl_get_entry.
46775         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
46776         Likewise.
46777
46778 2009-05-03  Bruno Haible  <bruno@clisp.org>
46779
46780         * lib/acl-internal.h (acl_entries): Clarify return value.
46781         * lib/acl_entries.c (acl_entries): Likewise.
46782
46783 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46784
46785         Bug fix in acl module.
46786         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
46787
46788 2009-05-03  Bruno Haible  <bruno@clisp.org>
46789
46790         Create gperf-generated file in the source dir, not in the build dir.
46791         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
46792         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
46793         * modules/unicase/locale-language (unicase/locale-languages.h):
46794         Likewise.
46795         * modules/unicase/special-casing (unicase/special-casing-table.h):
46796         Likewise.
46797         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
46798         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
46799         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
46800         Reported by Ralf Wildenhues.
46801
46802 2009-05-03  Bruno Haible  <bruno@clisp.org>
46803
46804         * modules/fnmatch (Description, configure.ac): Taken from
46805         fnmatch-posix.
46806         * modules/fnmatch-posix: Turn into a symbolic reference to the
46807         'fnmatch' module, and deprecate.
46808         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
46809
46810 2009-05-03  Bruno Haible  <bruno@clisp.org>
46811
46812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
46813         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
46814         Reported by Ralf Wildenhues.
46815
46816 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46817
46818         * m4/fnmatch.m4: Fix fnmatch re-define.
46819
46820 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46821
46822         priv-set: new module and tests; adapt write-any-file
46823         * lib/priv-set.c: New file.
46824         * lib/priv-set.h: New file.
46825         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
46826         * lib/write-any-file.c: Simplify by using priv-set module.
46827         * m4/priv-set.m4: New file.
46828         * modules/priv-set: New file.
46829         * modules/unlinkdir: Add dependency on priv-set module.
46830         * modules/write-any-file: Likewise.
46831
46832         Tests for module 'priv-set'.
46833         * modules/priv-set-tests: New file.
46834         * tests/test-priv-set.c: New file.
46835
46836 2009-05-03  Jim Meyering  <meyering@redhat.com>
46837             Bruno Haible  <bruno@clisp.org>
46838
46839         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
46840         use the converted UTF-8 variant of the name instead.
46841
46842 2009-05-03  Jim Meyering  <meyering@redhat.com>
46843
46844         tests: tighten some getdate tests
46845         * tests/test-getdate.c (main): Tighten tests: require equality,
46846         not just greater than.  Set TZ envvar to UTC0.
46847
46848 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46849
46850         getdate: correctly interpret "next monday" when run on a Monday
46851         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
46852         that e.g., "next tues" (when run on a tuesday) results in a date
46853         that is one week in the future, and not today's date.
46854         I.e., add a week when the wday is the same as the current one.
46855         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
46856         and earlier by Martin Bernreuther and Jan Minář.
46857         * tests/test-getdate.c (main): Check that "next DAY" is always in
46858         the future and that "last DAY" is always in the past.
46859
46860 2009-05-02  Jim Meyering  <meyering@redhat.com>
46861
46862         build: ensure that a release build fails when a submodule is unclean
46863         * top/maint.mk (no-submodule-changes): New rule.
46864         (alpha beta major): Depend on it.
46865
46866 2009-05-02  Bruno Haible  <bruno@clisp.org>
46867
46868         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
46869         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
46870         shell variable gl_fnmatch_required to detect which variant is
46871         requested.
46872         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
46873         gl_FUNC_FNMATCH_POSIX.
46874         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
46875         exclude fnmatch-posix.
46876
46877 2009-05-02  Bruno Haible  <bruno@clisp.org>
46878
46879         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
46880         * modules/mbsrtowcs (License): Change to LGPLv2+.
46881         * modules/strnlen1 (License): Likewise.
46882         Reported by Simon Josefsson.
46883
46884 2009-05-02  Bruno Haible  <bruno@clisp.org>
46885
46886         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
46887         "cross".
46888         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
46889         gnulib-tool was called with option --source-base=lib.
46890
46891 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46892
46893         Use automake *-local hooks without commands, for extensibility.
46894         * modules/localcharset (Makefile.am): Rename install-exec-local
46895         rule to install-exec-localcharset, and make it a prerequisite of
46896         install-exec-local.  Likewise, rename the uninstall-local rule to
46897         uninstall-localcharset, and make it a prerequisite of the former.
46898
46899 2009-05-01  Bruno Haible  <bruno@clisp.org>
46900
46901         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
46902         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46903         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
46904         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
46905         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
46906         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46907         m4/locale-zh.m4, m4/codeset.m4.
46908
46909         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46910         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
46911         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46912         m4/locale-zh.m4.
46913
46914         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
46915         REPLACE_WCRTOMB if mbstate_t must be replaced.
46916         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
46917         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
46918
46919 2009-05-01  Bruno Haible  <bruno@clisp.org>
46920
46921         Avoid compiler warnings when redefining macros defined by <libintl.h>.
46922         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
46923         dngettext, dcngettext, textdomain, bindtextdomain,
46924         bind_textdomain_codeset): Undefine before redefining.
46925
46926 2009-04-30  Bruno Haible  <bruno@clisp.org>
46927
46928         Fix bug introduced on 2009-04-25.
46929         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
46930         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
46931         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
46932         is defined.
46933         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
46934         is defined.
46935         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
46936         is defined.
46937         Reported by Elbert_Pol <elbert.pol@gmail.com>.
46938
46939 2009-04-28  Bruno Haible  <bruno@clisp.org>
46940
46941         Comment tweaks.
46942         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
46943         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
46944         * lib/unicase.h (u*_casexfrm): Likewise.
46945         Reported by Paolo Bonzini.
46946
46947 2009-04-28  Bruno Haible  <bruno@clisp.org>
46948
46949         Fix a compilation error.
46950         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
46951         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46952         Reported by Jim Meyering.
46953
46954 2009-04-27  Bruno Haible  <bruno@clisp.org>
46955
46956         New module 'libunistring'.
46957         * modules/libunistring: New file.
46958         * m4/libunistring.m4: New file.
46959         * MODULES.html.sh (Unicode string functions): Add it.
46960
46961 2009-04-27  Eric Blake  <ebb9@byu.net>
46962
46963         maint.mk: allow package-specific header to provide <config.h>
46964         * top/maint.mk (sc_require_config_h): New variable.
46965         (sc_require_config_h, sc_require_config_h_first): Use it.
46966
46967 2009-04-27  Simon Josefsson  <simon@josefsson.org>
46968
46969         * top/maint.mk (sc_avoid_if_before_free): Except
46970         useless-if-before-free script.
46971
46972 2009-04-27  Eric Blake  <ebb9@byu.net>
46973
46974         maintainer-makefile: depend on all required helper scripts
46975         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
46976         useless-if-before-free.
46977         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
46978         version, rather than assuming gnulib checkout is available.
46979         Reported by Simen Josefsson.
46980
46981 2009-04-26  Bruno Haible  <bruno@clisp.org>
46982
46983         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
46984         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
46985         "../" or "..".
46986
46987 2009-04-26  Bruno Haible  <bruno@clisp.org>
46988
46989         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
46990         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
46991         AC_LIB_HAVE_LINKFLAGS.
46992
46993 2009-04-26  Bruno Haible  <bruno@clisp.org>
46994
46995         Simplify calling convention of u*_conv_from_encoding.
46996         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
46997         u32_conv_from_encoding): Expect a resultbuf argument and return the
46998         result directly as a pointer.
46999         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47000         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47001         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47002         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47003         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47004         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47005         Update.
47006         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47007         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47008         * lib/vasnprintf.c (VASNPRINTF): Update.
47009         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47010         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47011         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47012         * NEWS: Mention the change.
47013
47014 2009-04-26  Bruno Haible  <bruno@clisp.org>
47015
47016         Simplify calling convention of u*_conv_to_encoding.
47017         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47018         u32_conv_to_encoding): Expect a resultbuf argument and return the
47019         result directly as a pointer.
47020         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47021         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47022         freeing scaled_offsets if mem_iconveha failed.
47023         * lib/unicase/u-casexfrm.h (FUNC): Update.
47024         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47025         * lib/vasnprintf.c (VASNPRINTF): Update.
47026         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47027         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47028         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47029         * NEWS: Mention the change.
47030
47031 2009-04-26  Bruno Haible  <bruno@clisp.org>
47032
47033         Avoid test failures on AIX and OSF/1.
47034         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47035         malloc(0).
47036         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47037         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47038         Likewise.
47039         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47040         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47041         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47042         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47043         * doc/posix-functions/malloc.texi: Document the portability problem
47044         related to malloc(0).
47045
47046 2009-04-26  Bruno Haible  <bruno@clisp.org>
47047
47048         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47049         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47050         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47051
47052 2009-04-25  Bruno Haible  <bruno@clisp.org>
47053
47054         Avoid link error when creating a namespace clean library.
47055         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47056         as macro with arguments if already defined as an alias.
47057         * lib/signbitf.c (gl_signbitf): Don't undefine.
47058         * lib/signbitd.c (gl_signbitd): Don't undefine.
47059         * lib/signbitl.c (gl_signbitl): Don't undefine.
47060
47061 2009-04-25  Jim Meyering  <meyering@redhat.com>
47062
47063         vc-list-files: fix another quoting bug
47064         * build-aux/vc-list-files: Avoid sed backslash expansion
47065         of pathological directory names.
47066
47067 2009-04-25  Eric Blake  <ebb9@byu.net>
47068
47069         vc-list-files: fix shell quoting error
47070         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47071         timestamp.
47072
47073 2009-04-25  Jim Meyering  <meyering@redhat.com>
47074
47075         vc-list-files: restore lost functionality with subdir argument
47076         * build-aux/vc-list-files: When given a non-"." sub-directory
47077         argument, substitute the $dir/ prefix back onto each resulting name.
47078         Otherwise, coreutils' root_tests check would fail.
47079
47080 2009-04-24  Eric Blake  <ebb9@byu.net>
47081
47082         vc-list-files: ignore git symlinks
47083         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47084         than ls-files, to ignore git symlinks.
47085
47086         maint.mk: import improvements from m4
47087         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47088         (move_if_change): Delete unused macro.
47089         (news-date-check, vc-diff-check): Support VPATH builds.
47090         (announcement): Likewise.  Split --bootstrap-tools list...
47091         (boostrap-tools): ...into separate list, which can be overridden
47092         in cfg.mk.
47093         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47094         requiring dependency on useless-if-before-free module.
47095         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47096         Support VPATH builds.
47097
47098 2009-04-24  Jim Meyering  <meyering@redhat.com>
47099
47100         maint.mk: remove coreutils-specific rules and variables
47101         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47102         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47103         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47104
47105         maint.mk: remove obsolete rule
47106         * top/maint.mk (rel-check): Remove rule.
47107         (WGET, WGETFLAGS): Remove now-unused variables.
47108
47109 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47110
47111         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47112         consistency.
47113
47114         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47115         '$(PATH_SEPARATOR)' instead of ':'.
47116
47117 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47118
47119         * lib/getopt1.c (main): Use 'const' for static array.
47120
47121 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47122
47123         * top/maint.mk: Sync with coreutils.
47124         * NEWS: Explain incompatibilities.
47125
47126 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47127             Bruno Haible  <bruno@clisp.org>
47128
47129         Fix cross-compilation results.
47130         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47131         statement, as third argument of AC_TRY_RUN.
47132         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47133         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47134         Likewise.
47135         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47136         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47137         Likewise.
47138         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47139         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47140         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47141
47142 2009-04-20  Bruno Haible  <bruno@clisp.org>
47143
47144         Avoid test failure on mingw.
47145         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47146
47147 2009-04-20  Bruno Haible  <bruno@clisp.org>
47148
47149         Avoid compilation error on mingw.
47150         * modules/localename-tests (Depends-on): Add locale.
47151
47152 2009-04-19  Bruno Haible  <bruno@clisp.org>
47153
47154         Support for building a shared library on Windows platforms.
47155         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47156         (main): Test the presence of UNINORM_NFC here.
47157         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47158         (main): Test the presence of UNINORM_NFD here.
47159         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47160         (main): Test the presence of UNINORM_NFKC here.
47161         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47162         (main): Test the presence of UNINORM_NFKD here.
47163
47164 2009-04-19  Bruno Haible  <bruno@clisp.org>
47165
47166         Avoid a compiler warning.
47167         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47168         Change type of variable 'sequence'.
47169
47170 2009-04-19  Bruno Haible  <bruno@clisp.org>
47171
47172         * modules/configmake (Makefile.am): When the contents of configmake.h
47173         does not change, arrange to preserve its modification time.
47174
47175 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47176
47177         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47178         gettext domain.
47179
47180 2009-04-16  Jim Meyering  <meyering@redhat.com>
47181
47182         useless-if-before-free: improve conversion code
47183         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47184         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47185
47186 2009-04-14  Bruno Haible  <bruno@clisp.org>
47187
47188         * modules/fcntl (Depends-on): Add extensions.
47189         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47190
47191 2009-04-12  Ben Pfaff  <blp@gnu.org>
47192
47193         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47194         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47195
47196 2009-03-20  Ben Pfaff  <blp@gnu.org>
47197
47198         Make rename replace existing destinations on Windows.
47199         * m4/rename.m4: Add test for Mingw.
47200         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47201         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47202         * doc/posix-functions/rename.texi: Document.
47203
47204 2009-04-10  Bruno Haible  <bruno@clisp.org>
47205
47206         New include file "iconveh.h".
47207         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47208         * lib/striconveh.h: Include it.
47209         (enum iconv_ilseq_handler): Remove definition.
47210         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47211         striconveh.h.
47212         * lib/striconveha.c: Include striconveh.h.
47213         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47214         * modules/striconveh (Files): Add lib/iconveh.h.
47215         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47216         lib/striconveh.h.
47217
47218 2009-04-10  Bruno Haible  <bruno@clisp.org>
47219
47220         * lib/uniconv.h: Update comment.
47221
47222 2009-04-10  Bruno Haible  <bruno@clisp.org>
47223
47224         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47225         always.
47226         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47227         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47228         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47229         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47230         "unistring-notinline.h", so that the function gets defined always.
47231         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47232         * lib/unistr/u8-uctomb.c: Likewise.
47233         * lib/unistr/u16-mbtouc.c: Likewise.
47234         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47235         * lib/unistr/u16-uctomb.c: Likewise.
47236         * lib/unistr/u32-mbtouc.c: Likewise.
47237         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47238         * lib/unistr/u32-uctomb.c: Likewise.
47239
47240 2009-04-10  Bruno Haible  <bruno@clisp.org>
47241
47242         Mark 'utime' obsolete.
47243         * modules/utime (Status, Notice): New sections.
47244         Suggested by Jim Meyering.
47245
47246         Fix cross-compile guess for utime test.
47247         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47248         autoconf.
47249         * doc/posix-functions/utime.texi: Give more precisions.
47250         Reported by Jan <ipif@ymail.com>.
47251
47252 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47253
47254         filevercmp: correct today's change
47255         * lib/filevercmp.c: Also handle coreutils' test inputs.
47256         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47257
47258         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47259         for reporting it.
47260         * lib/filevercmp.c: Special handle for "", "." and "..".
47261         * tests/test-filevercmp.c: Enlarge the set suite.
47262
47263 2009-04-07  Jim Meyering  <meyering@redhat.com>
47264
47265         useless-if-before-free: show how to remove braced useless free, too
47266         * build-aux/useless-if-before-free: still only in a comment, though.
47267
47268 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47269
47270         maint.mk: import changes to syntax-check macros from coreutils
47271         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47272         Use them in the relevant macros.
47273
47274 2009-04-06  Bruno Haible  <bruno@clisp.org>
47275
47276         Fix unportable use of bit-fields.
47277         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47278         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47279         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47280
47281 2009-04-06  Bruno Haible  <bruno@clisp.org>
47282
47283         Avoid test failures on AIX and OSF/1.
47284         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47285         that malloc(0) = NULL.
47286         * tests/unicase/test-u8-tolower.c (check): Likewise.
47287         * tests/unicase/test-u8-totitle.c (check): Likewise.
47288         * tests/unicase/test-u8-toupper.c (check): Likewise.
47289         * tests/unicase/test-u16-casefold.c (check): Likewise.
47290         * tests/unicase/test-u16-tolower.c (check): Likewise.
47291         * tests/unicase/test-u16-totitle.c (check): Likewise.
47292         * tests/unicase/test-u16-toupper.c (check): Likewise.
47293         * tests/unicase/test-u32-casefold.c (check): Likewise.
47294         * tests/unicase/test-u32-tolower.c (check): Likewise.
47295         * tests/unicase/test-u32-totitle.c (check): Likewise.
47296         * tests/unicase/test-u32-toupper.c (check): Likewise.
47297         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47298         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47299         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47300         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47301         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47302         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47303         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47304         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47305         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47306         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47307         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47308         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47309
47310 2009-04-05  Bruno Haible  <bruno@clisp.org>
47311
47312         Work around an autoconf limitation.
47313         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47314         comment line if it would be longer than 3 KB.
47315
47316 2009-04-05  Bruno Haible  <bruno@clisp.org>
47317
47318         Avoid test failure with libiconv-1.13.
47319         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47320         of the expected test results.
47321
47322 2009-04-05  Bruno Haible  <bruno@clisp.org>
47323
47324         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47325         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47326         that it should be installed.
47327
47328 2009-04-05  Bruno Haible  <bruno@clisp.org>
47329
47330         * gnulib-tool: New option --copy-file.
47331         (func_usage): Document it.
47332         (func_dest_tmpfilename): Moved out of func_import.
47333         (func_add_file, func_update_file): New functions, extracted from
47334         func_import.
47335         (func_import): Update.
47336
47337 2009-04-05  Karl Berry  <karl@gnu.org>
47338
47339         * README: prominently mention gnulib-tool.
47340         Rearrange sections so getting the code is near the top.
47341
47342 2009-04-05  Bruno Haible  <bruno@clisp.org>
47343
47344         * lib/unicase.h: Mention u*_cmp2.
47345         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47346         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47347         * lib/unicase/ulc-casecmp.c: Likewise.
47348         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47349         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47350         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47351         unistr/u8-cmp.
47352         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47353         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47354         unistr/u16-cmp.
47355         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47356         unistr/u32-cmp.
47357
47358         * lib/uninorm.h: Mention u*_cmp2.
47359         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47360         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47361         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47362         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47363         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47364         unistr/u8-cmp.
47365         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47366         unistr/u16-cmp.
47367         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47368         unistr/u32-cmp.
47369
47370         New module 'unistr/u32-cmp2'.
47371         * lib/unistr/u32-cmp2.c: New file.
47372         * modules/unistr/u32-cmp2: New file.
47373
47374         New module 'unistr/u16-cmp2'.
47375         * lib/unistr/u16-cmp2.c: New file.
47376         * modules/unistr/u16-cmp2: New file.
47377
47378         New module 'unistr/u8-cmp2'.
47379         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47380         * lib/unistr/u8-cmp2.c: New file.
47381         * lib/unistr/u-cmp2.h: New file.
47382         * modules/unistr/u8-cmp2: New file.
47383
47384 2009-04-05  Bruno Haible  <bruno@clisp.org>
47385
47386         * lib/unictype.h (uc_property_is_valid): New macro.
47387         * tests/unictype/test-pr_byname.c (main): Use it.
47388
47389         * lib/unistr.h: Doc fixes.
47390         * lib/uniconv.h: Doc fixes.
47391         * lib/unictype.h: Doc fixes.
47392
47393 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47394
47395         Port coreutils 7.2 to Solaris 8.
47396
47397         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47398         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47399         for Solaris 8.  This is a bit of a hack, as it means it's the
47400         caller's responsibility to add -lnsl if needed, but most likely it
47401         won't be needed since only getaddrinfo uses this and getaddrinfo
47402         isn't needed on Solaris 8.
47403
47404         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47405         problem to Solaris 8 encountered with coreutils 7.2, which
47406         resulted in a message "fnmatch.c:292: warning: passing argument 4
47407         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47408         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47409
47410 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47411
47412         * m4/ld-version-script.m4: Add FIXME comment.
47413
47414 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47415
47416         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47417         SOVERSION variable.
47418
47419 2009-04-02  Bruno Haible  <bruno@clisp.org>
47420
47421         * Makefile (info, html, dvi, pdf): Combine the rules.
47422         Suggested by Jim Meyering.
47423
47424 2009-04-01  Bruno Haible  <bruno@clisp.org>
47425
47426         * Makefile (info, html, dvi, pdf): New targets.
47427         Reported by Reuben Thomas <rrt@sc3d.org>.
47428
47429 2009-04-01  Bruno Haible  <bruno@clisp.org>
47430
47431         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47432         can be put into PATH.
47433         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47434
47435 2009-04-01  Bruno Haible  <bruno@clisp.org>
47436
47437         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47438
47439 2009-04-01  Bruno Haible  <bruno@clisp.org>
47440
47441         Rename module 'visibility'.
47442         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47443         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47444         * doc/gnulib.texi: Update.
47445         * MODULES.html.sh (Misc): Update.
47446         * NEWS: Mention the change.
47447
47448 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47449
47450         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47451         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47452         Eric Blake <ebb9@byu.net> for review.
47453         * MODULES.html.sh: Add lib-msvc-compat.
47454         * doc/gnulib.texi: Link to new section.
47455         * m4/ld-output-def.m4: New file.
47456         * doc/ld-output-def.texi: New file.
47457
47458 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47459
47460         Rename ld-version-script to lib-symbol-versions.  Suggested by
47461         Bruno Haible <bruno@clisp.org>.
47462         * modules/ld-version-script: Renamed to lib-symbol-versions.
47463         * doc/ld-version-script.texi: Fix module name.
47464         * MODULES.html.sh: Add lib-symbol-versions.
47465
47466 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47467
47468         * modules/u64-tests: New file.
47469         * tests/test-u64.c: New file.
47470
47471 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47472
47473         * MODULES.html.sh: Mention u64.
47474         * modules/u64: New module.
47475         * modules/crypto/sha512: Depend on u64 module instead of providing
47476         u64.h.
47477
47478 2009-03-27  Eric Blake  <ebb9@byu.net>
47479
47480         test-strerror: make debugging EAI_SYSTEM easier
47481         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47482         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47483         failure was EAI_SYSTEM.
47484
47485 2009-03-25  Bruno Haible  <bruno@clisp.org>
47486
47487         Fix a problem with --enable-relocatable on Solaris 7.
47488         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47489         since 2008-02-24.
47490
47491 2009-03-25  Eric Blake  <ebb9@byu.net>
47492
47493         test-sockets: avoid gcc warning
47494         * tests/test-sockets.c (main): Silence compiler warning.
47495
47496 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47497
47498         New modules nproc, pthread, contributed by Glen Lenker.
47499
47500         * MODULES.html.sh: Add pthread, nproc.
47501         * lib/nproc.c: New file.
47502         * lib/nproc.h: New file.
47503         * lib/pthread.in.h: New file.
47504         * m4/pthread.m4: New file.
47505         * modules/nproc: New file.
47506         * modules/pthread: New file.
47507
47508 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47509
47510         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47511         New variable.
47512
47513 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47514
47515         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47516         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47517         * tests/test-filevercmp.c: Add tests for backup suffixes.
47518
47519 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47520
47521         * modules/stdlib (Depends-on): Add stdint, needed when defining
47522         struct random_data on, for example, HP-UX 10.20.  Reported by
47523         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47524
47525 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47526
47527         * lib/readline.c (readline): Call fflush on stdout after printing
47528         prompt.
47529
47530 2009-03-20  Bruno Haible  <bruno@clisp.org>
47531
47532         Remove dependency from 'close' module to -lws2_32 on native Windows.
47533         * lib/close-hook.h: New file.
47534         * lib/close-hook.c: New file.
47535         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
47536         w32sock.h.
47537         (_gl_close_fd_maybe_socket): Remove function.
47538         (rpl_close): Invoke execute_all_close_hooks instead of
47539         _gl_close_fd_maybe_socket.
47540         * lib/sockets.c: Include close-hook.h, w32sock.h.
47541         (close_fd_maybe_socket): New function, essentially from lib/close.c.
47542         (close_sockets_hook): New variable.
47543         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
47544         (gl_sockets_cleanup): Unregister it.
47545         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
47546         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
47547         * modules/close-hook: New file.
47548         * modules/close (Files): Remove lib/w32sock.h.
47549         (Depends-on): Add close-hook.
47550         (Link): Remove section.
47551         * modules/sockets (Files): Add lib/w32sock.h.
47552         (Depends-on): Add close-hook.
47553         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
47554         invocation.
47555         * NEWS: Mention that LIB_CLOSE is gone.
47556
47557 2009-03-23  Eric Blake  <ebb9@byu.net>
47558
47559         signal-tests: test previous patch
47560         * tests/test-signal.c: New file.
47561         * modules/signal-tests: Likewise.
47562
47563         signal.h: always support 'volatile sig_atomic_t'
47564         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
47565         (gl_SIGNAL_H_DEFAULTS): Add a default.
47566         * modules/signal (Makefile.am): Substitute if needed.
47567         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
47568         users can blindly add volatile.
47569         * doc/posix-headers/signal.texi (signal.h): Document it.
47570         Reported by Matthew Woehlke.
47571
47572 2009-03-23  Jim Meyering  <meyering@redhat.com>
47573
47574         pathmax: PATH_MAX: use pathconf only when available
47575         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
47576         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
47577         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
47578         This avoids a link failure in a PSP cross-compilation environment
47579         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
47580
47581         * lib/vasnprintf.c (divide): Fix typo in comment.
47582
47583 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47584
47585         * gnulib-tool (func_filter_filelist): Fix comment.
47586
47587 2009-03-20  Bruno Haible  <bruno@clisp.org>
47588
47589         Make sockets.h self-contained.
47590         * lib/sockets.c: Include sockets.h first.
47591         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
47592
47593 2009-03-19  Eric Blake  <ebb9@byu.net>
47594
47595         doc: mention more functions added in cygwin 1.7.0
47596         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
47597         addition.
47598         * doc/posix-functions/log2f.texi: Likewise.
47599
47600 2009-03-19  Jim Meyering  <meyering@redhat.com>
47601
47602         fsusage: avoid syntax error due to statement-before-declaration
47603         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
47604         after all declarations.  Reported by Matthew Woehlke in
47605         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
47606
47607 2009-03-18  Eric Blake  <ebb9@byu.net>
47608
47609         build-aux/compile: sync from automake
47610         * build-aux/compile: New file, from automake.
47611         * config/srclist.txt: Mention build-aux/compile.
47612
47613 2009-03-17  Bruno Haible  <bruno@clisp.org>
47614
47615         * lib/git-merge-changelog.c: Fix typo in comment.
47616         Reported by Reuben Thomas <rrt@sc3d.org>.
47617
47618 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
47619
47620         * m4/regex.m4: update and improve help for
47621         --without-included-regex.
47622
47623 2009-03-17  Simon Josefsson  <simon@josefsson.org>
47624
47625         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
47626         failure on missing include files.
47627
47628 2009-03-17  Eric Blake  <ebb9@byu.net>
47629
47630         doc: mention more functions added in cygwin 1.7.0
47631         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
47632         addition.
47633         * doc/posix-functions/fwscanf.texi: Likewise.
47634         * doc/posix-functions/swprintf.texi: Likewise.
47635         * doc/posix-functions/swscanf.texi: Likewise.
47636         * doc/posix-functions/vfwprintf.texi: Likewise.
47637         * doc/posix-functions/vfwscanf.texi: Likewise.
47638         * doc/posix-functions/vswprintf.texi: Likewise.
47639         * doc/posix-functions/vswscanf.texi: Likewise.
47640         * doc/posix-functions/vwprintf.texi: Likewise.
47641         * doc/posix-functions/vwscanf.texi: Likewise.
47642         * doc/posix-functions/wcscasecmp.texi: Likewise.
47643         * doc/posix-functions/wcsdup.texi: Likewise.
47644         * doc/posix-functions/wcsftime.texi: Likewise.
47645         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47646         * doc/posix-functions/wprintf.texi: Likewise.
47647         * doc/posix-functions/wscanf.texi: Likewise.
47648         * doc/glibc-functions/gethostbyname2.texi: Likewise.
47649
47650 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47651
47652         maint.mk: really add $(AM_MAKEFLAGS)
47653         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
47654         was inadvertently omitted in the last commit.
47655         Spotted by Bruno Haible.
47656
47657         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
47658         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
47659         $(AM_MAKEFLAGS)' rather than plain `make'.
47660
47661         gnulib-tool: execute $MAKE not make
47662         * gnulib-tool: Default $MAKE to 'make'.
47663         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
47664         than make.  Initialize $MAKE in the do-autobuild script.
47665
47666         gnulib-tool: use $MAKE not make in generated files
47667         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
47668         make, in generated files.  Initialize $MAKE in the do-autobuild
47669         script.
47670
47671         * top/GNUmakefile (_have-git-version-gen): Fix typo.
47672
47673         GNUmakefile: disable parallelism only for multiple, recursive targets
47674         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
47675         additions in the Makefile.
47676         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
47677         by Automake.
47678         (.NOTPARALLEL): Only disable parallel builds if multiple targets
47679         are listed on the command line and at least one of them is
47680         listed in $(ALL_RECURSIVE_TARGETS).
47681
47682 2009-03-14  Bruno Haible  <bruno@clisp.org>
47683
47684         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
47685         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
47686         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
47687         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
47688         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
47689         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
47690         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
47691         unistr/u8-uctomb.
47692         * modules/unistr/u8-strchr (Depends-on): Likewise.
47693         * modules/unistr/u8-strrchr (Depends-on): Likewise.
47694         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
47695         unistr/u16-uctomb.
47696         * modules/unistr/u16-strchr (Depends-on): Likewise.
47697         * modules/unistr/u16-strrchr (Depends-on): Likewise.
47698
47699 2009-03-12  Bruno Haible  <bruno@clisp.org>
47700
47701         Work around select() bug on Interix 3.5.
47702         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
47703         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
47704         * m4/select.m4: New file.
47705         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
47706         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
47707         * modules/select (Files): Add m4/select.m4.
47708         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
47709         * modules/nanosleep (Depends-on): Add select.
47710         * modules/poll (Depends-on): Likewise.
47711         * doc/posix-functions/select.texi: Mention the Interix bug.
47712         Reported by Markus Duft <mduft@gentoo.org>.
47713
47714         * lib/select.c: Renamed from lib/winsock-select.c.
47715         * modules/select (Files): Add lib/select.c, remove
47716         lib/winsock-select.c.
47717         (configure.ac): Update.
47718
47719 2009-03-12  Jim Meyering  <meyering@redhat.com>
47720
47721         avoid gcc warnings about unused macro definitions
47722         * lib/readtokens.c (STREQ): Remove unused definition.
47723         * lib/xmalloc.c (SIZE_MAX): Likewise.
47724         * lib/openat-die.c (N_): Likewise.
47725         * lib/mountlist.c (SIZE_MAX): Remove definition.
47726         Instead, include <stdint.h>.
47727         * lib/readutmp.c: Likewise.
47728         * modules/readutmp (Depends-on): Add stdint.
47729         * modules/mountlist (Depends-on): Add stdint.
47730         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
47731
47732 2009-03-10  Bruno Haible  <bruno@clisp.org>
47733
47734         Tests for module 'mbmemcasecoll'.
47735         * modules/mbmemcasecoll-tests: New file.
47736         * tests/test-mbmemcasecoll1.sh: New file.
47737         * tests/test-mbmemcasecoll2.sh: New file.
47738         * tests/test-mbmemcasecoll3.sh: New file.
47739         * tests/test-mbmemcasecoll.c: New file.
47740
47741         New module 'mbmemcasecoll'.
47742         * lib/mbmemcasecoll.h: New file.
47743         * lib/mbmemcasecoll.c: New file.
47744         * modules/mbmemcasecoll: New file.
47745
47746         * tests/test-mbmemcasecmp.h: New file, extracted from
47747         tests/test-mbmemcasecmp.c.
47748         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
47749         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
47750         (main): Update.
47751         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
47752
47753 2009-03-09  Bruno Haible  <bruno@clisp.org>
47754
47755         Tests for module 'mbmemcasecmp'.
47756         * modules/mbmemcasecmp-tests: New file.
47757         * tests/test-mbmemcasecmp1.sh: New file.
47758         * tests/test-mbmemcasecmp2.sh: New file.
47759         * tests/test-mbmemcasecmp3.sh: New file.
47760         * tests/test-mbmemcasecmp.c: New file.
47761
47762         New module 'mbmemcasecmp'.
47763         * lib/mbmemcasecmp.h: New file.
47764         * lib/mbmemcasecmp.c: New file.
47765         * modules/mbmemcasecmp: New file.
47766
47767 2009-03-09  Bruno Haible  <bruno@clisp.org>
47768
47769         Tests for module 'unicase/ulc-casecoll'.
47770         * modules/unicase/ulc-casecoll-tests: New file.
47771         * tests/unicase/test-ulc-casecoll1.sh: New file.
47772         * tests/unicase/test-ulc-casecoll2.sh: New file.
47773         * tests/unicase/test-ulc-casecoll.c: New file.
47774
47775         New module 'unicase/ulc-casecoll'.
47776         * lib/unicase.h (ulc_casecoll): New declaration.
47777         * lib/unicase/ulc-casecoll.c: New file.
47778         * modules/unicase/ulc-casecoll: New file.
47779
47780         New module 'unicase/ulc-casexfrm'.
47781         * lib/unicase.h (ulc_casexfrm): New declaration.
47782         * lib/unicase/ulc-casexfrm.c: New file.
47783         * modules/unicase/ulc-casexfrm: New file.
47784
47785 2009-03-09  Bruno Haible  <bruno@clisp.org>
47786
47787         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
47788         invocations.
47789
47790         * m4/mbscasecmp.m4: Remove file.
47791         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
47792         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
47793
47794         * m4/mbscasestr.m4: Remove file.
47795         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
47796         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
47797
47798         * m4/mbschr.m4: Remove file.
47799         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
47800         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
47801
47802         * m4/mbscspn.m4: Remove file.
47803         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
47804         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
47805
47806         * m4/mbslen.m4: Remove file.
47807         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
47808         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
47809
47810         * m4/mbsncasecmp.m4: Remove file.
47811         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
47812         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
47813
47814         * m4/mbsnlen.m4: Remove file.
47815         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
47816         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
47817
47818         * m4/mbspbrk.m4: Remove file.
47819         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
47820         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
47821
47822         * m4/mbspcasecmp.m4: Remove file.
47823         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
47824         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
47825
47826         * m4/mbsrchr.m4: Remove file.
47827         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
47828         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
47829
47830         * m4/mbssep.m4: Remove file.
47831         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
47832         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
47833
47834         * m4/mbsspn.m4: Remove file.
47835         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
47836         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
47837
47838         * m4/mbsstr.m4: Remove file.
47839         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
47840         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
47841
47842         * m4/mbstok_r.m4: Remove file.
47843         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
47844         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
47845
47846         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
47847
47848         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
47849         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
47850
47851         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
47852
47853 2009-03-08  Bruno Haible  <bruno@clisp.org>
47854
47855         Tests for module 'unicase/ulc-casecmp'.
47856         * modules/unicase/ulc-casecmp-tests: New file.
47857         * tests/unicase/test-ulc-casecmp1.sh: New file.
47858         * tests/unicase/test-ulc-casecmp2.sh: New file.
47859         * tests/unicase/test-ulc-casecmp.c: New file.
47860
47861         New module 'unicase/ulc-casecmp'.
47862         * lib/unicase.h (ulc_casecmp): New declaration.
47863         * lib/unicase/ulc-casecmp.c: New file.
47864         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
47865         'const SRC_UNIT *'.
47866         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
47867         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
47868         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
47869         * modules/unicase/ulc-casecmp: New file.
47870
47871         Tests for module 'unicase/u32-is-cased'.
47872         * modules/unicase/u32-is-cased-tests: New file.
47873         * tests/unicase/test-u32-is-cased.c: New file.
47874
47875         Tests for module 'unicase/u16-is-cased'.
47876         * modules/unicase/u16-is-cased-tests: New file.
47877         * tests/unicase/test-u16-is-cased.c: New file.
47878
47879         Tests for module 'unicase/u8-is-cased'.
47880         * modules/unicase/u8-is-cased-tests: New file.
47881         * tests/unicase/test-u8-is-cased.c: New file.
47882         * tests/unicase/test-is-cased.h: New file.
47883
47884         New module 'unicase/u32-is-cased'.
47885         * lib/unicase/u32-is-cased.c: New file.
47886         * modules/unicase/u32-is-cased: New file.
47887
47888         New module 'unicase/u16-is-cased'.
47889         * lib/unicase/u16-is-cased.c: New file.
47890         * modules/unicase/u16-is-cased: New file.
47891
47892         New module 'unicase/u8-is-cased'.
47893         * lib/unicase/u8-is-cased.c: New file.
47894         * lib/unicase/u-is-cased.h: New file.
47895         * modules/unicase/u8-is-cased: New file.
47896
47897         Tests for module 'unicase/u32-is-casefolded'.
47898         * modules/unicase/u32-is-casefolded-tests: New file.
47899         * tests/unicase/test-u32-is-casefolded.c: New file.
47900
47901         Tests for module 'unicase/u16-is-casefolded'.
47902         * modules/unicase/u16-is-casefolded-tests: New file.
47903         * tests/unicase/test-u16-is-casefolded.c: New file.
47904
47905         Tests for module 'unicase/u8-is-casefolded'.
47906         * modules/unicase/u8-is-casefolded-tests: New file.
47907         * tests/unicase/test-u8-is-casefolded.c: New file.
47908         * tests/unicase/test-is-casefolded.h: New file.
47909
47910         New module 'unicase/u32-is-casefolded'.
47911         * lib/unicase/u32-is-casefolded.c: New file.
47912         * modules/unicase/u32-is-casefolded: New file.
47913
47914         New module 'unicase/u16-is-casefolded'.
47915         * lib/unicase/u16-is-casefolded.c: New file.
47916         * modules/unicase/u16-is-casefolded: New file.
47917
47918         New module 'unicase/u8-is-casefolded'.
47919         * lib/unicase/u8-is-casefolded.c: New file.
47920         * modules/unicase/u8-is-casefolded: New file.
47921
47922         Tests for module 'unicase/u32-is-titlecase'.
47923         * modules/unicase/u32-is-titlecase-tests: New file.
47924         * tests/unicase/test-u32-is-titlecase.c: New file.
47925
47926         Tests for module 'unicase/u16-is-titlecase'.
47927         * modules/unicase/u16-is-titlecase-tests: New file.
47928         * tests/unicase/test-u16-is-titlecase.c: New file.
47929
47930         Tests for module 'unicase/u8-is-titlecase'.
47931         * modules/unicase/u8-is-titlecase-tests: New file.
47932         * tests/unicase/test-u8-is-titlecase.c: New file.
47933         * tests/unicase/test-is-titlecase.h: New file.
47934
47935         New module 'unicase/u32-is-titlecase'.
47936         * lib/unicase/u32-is-titlecase.c: New file.
47937         * modules/unicase/u32-is-titlecase: New file.
47938
47939         New module 'unicase/u16-is-titlecase'.
47940         * lib/unicase/u16-is-titlecase.c: New file.
47941         * modules/unicase/u16-is-titlecase: New file.
47942
47943         New module 'unicase/u8-is-titlecase'.
47944         * lib/unicase/u8-is-titlecase.c: New file.
47945         * modules/unicase/u8-is-titlecase: New file.
47946
47947         Tests for module 'unicase/u32-is-lowercase'.
47948         * modules/unicase/u32-is-lowercase-tests: New file.
47949         * tests/unicase/test-u32-is-lowercase.c: New file.
47950
47951         Tests for module 'unicase/u16-is-lowercase'.
47952         * modules/unicase/u16-is-lowercase-tests: New file.
47953         * tests/unicase/test-u16-is-lowercase.c: New file.
47954
47955         Tests for module 'unicase/u8-is-lowercase'.
47956         * modules/unicase/u8-is-lowercase-tests: New file.
47957         * tests/unicase/test-u8-is-lowercase.c: New file.
47958         * tests/unicase/test-is-lowercase.h: New file.
47959
47960         New module 'unicase/u32-is-lowercase'.
47961         * lib/unicase/u32-is-lowercase.c: New file.
47962         * modules/unicase/u32-is-lowercase: New file.
47963
47964         New module 'unicase/u16-is-lowercase'.
47965         * lib/unicase/u16-is-lowercase.c: New file.
47966         * modules/unicase/u16-is-lowercase: New file.
47967
47968         New module 'unicase/u8-is-lowercase'.
47969         * lib/unicase/u8-is-lowercase.c: New file.
47970         * modules/unicase/u8-is-lowercase: New file.
47971
47972         Tests for module 'unicase/u32-is-uppercase'.
47973         * modules/unicase/u32-is-uppercase-tests: New file.
47974         * tests/unicase/test-u32-is-uppercase.c: New file.
47975
47976         Tests for module 'unicase/u16-is-uppercase'.
47977         * modules/unicase/u16-is-uppercase-tests: New file.
47978         * tests/unicase/test-u16-is-uppercase.c: New file.
47979
47980         Tests for module 'unicase/u8-is-uppercase'.
47981         * modules/unicase/u8-is-uppercase-tests: New file.
47982         * tests/unicase/test-u8-is-uppercase.c: New file.
47983         * tests/unicase/test-is-uppercase.h: New file.
47984
47985         New module 'unicase/u32-is-uppercase'.
47986         * lib/unicase/u32-is-uppercase.c: New file.
47987         * modules/unicase/u32-is-uppercase: New file.
47988
47989         New module 'unicase/u16-is-uppercase'.
47990         * lib/unicase/u16-is-uppercase.c: New file.
47991         * modules/unicase/u16-is-uppercase: New file.
47992
47993         New module 'unicase/u8-is-uppercase'.
47994         * lib/unicase/u8-is-uppercase.c: New file.
47995         * modules/unicase/u8-is-uppercase: New file.
47996
47997         New module 'unicase/u32-is-invariant'.
47998         * lib/unicase/u32-is-invariant.c: New file.
47999         * modules/unicase/u32-is-invariant: New file.
48000
48001         New module 'unicase/u16-is-invariant'.
48002         * lib/unicase/u16-is-invariant.c: New file.
48003         * modules/unicase/u16-is-invariant: New file.
48004
48005         New module 'unicase/u8-is-invariant'.
48006         * lib/unicase/u8-is-invariant.c: New file.
48007         * lib/unicase/invariant.h: New file.
48008         * lib/unicase/u-is-invariant.h: New file.
48009         * modules/unicase/u8-is-invariant: New file.
48010
48011         Tests for module 'unicase/u32-casecoll'.
48012         * modules/unicase/u32-casecoll-tests: New file.
48013         * tests/unicase/test-u32-casecoll.c: New file.
48014
48015         Tests for module 'unicase/u16-casecoll'.
48016         * modules/unicase/u16-casecoll-tests: New file.
48017         * tests/unicase/test-u16-casecoll.c: New file.
48018
48019         Tests for module 'unicase/u8-casecoll'.
48020         * modules/unicase/u8-casecoll-tests: New file.
48021         * tests/unicase/test-u8-casecoll.c: New file.
48022
48023         New module 'unicase/u32-casecoll'.
48024         * lib/unicase/u32-casecoll.c: New file.
48025         * modules/unicase/u32-casecoll: New file.
48026
48027         New module 'unicase/u16-casecoll'.
48028         * lib/unicase/u16-casecoll.c: New file.
48029         * modules/unicase/u16-casecoll: New file.
48030
48031         New module 'unicase/u8-casecoll'.
48032         * lib/unicase/u8-casecoll.c: New file.
48033         * lib/unicase/u-casecoll.h: New file.
48034         * modules/unicase/u8-casecoll: New file.
48035
48036         New module 'unicase/u32-casexfrm'.
48037         * lib/unicase/u32-casexfrm.c: New file.
48038         * modules/unicase/u32-casexfrm: New file.
48039
48040         New module 'unicase/u16-casexfrm'.
48041         * lib/unicase/u16-casexfrm.c: New file.
48042         * modules/unicase/u16-casexfrm: New file.
48043
48044         New module 'unicase/u8-casexfrm'.
48045         * lib/unicase/u8-casexfrm.c: New file.
48046         * lib/unicase/u-casexfrm.h: New file.
48047         * modules/unicase/u8-casexfrm: New file.
48048
48049         Tests for module 'unicase/u32-casecmp'.
48050         * modules/unicase/u32-casecmp-tests: New file.
48051         * tests/unicase/test-u32-casecmp.c: New file.
48052
48053         Tests for module 'unicase/u16-casecmp'.
48054         * modules/unicase/u16-casecmp-tests: New file.
48055         * tests/unicase/test-u16-casecmp.c: New file.
48056
48057         Tests for module 'unicase/u8-casecmp'.
48058         * modules/unicase/u8-casecmp-tests: New file.
48059         * tests/unicase/test-u8-casecmp.c: New file.
48060         * tests/unicase/test-casecmp.h: New file.
48061
48062         New module 'unicase/u32-casecmp'.
48063         * lib/unicase/u32-casecmp.c: New file.
48064         * modules/unicase/u32-casecmp: New file.
48065
48066         New module 'unicase/u16-casecmp'.
48067         * lib/unicase/u16-casecmp.c: New file.
48068         * modules/unicase/u16-casecmp: New file.
48069
48070         New module 'unicase/u8-casecmp'.
48071         * lib/unicase/u8-casecmp.c: New file.
48072         * lib/unicase/u-casecmp.h: New file.
48073         * modules/unicase/u8-casecmp: New file.
48074
48075         Tests for module 'unicase/u32-casefold'.
48076         * modules/unicase/u32-casefold-tests: New file.
48077         * tests/unicase/test-u32-casefold.c: New file.
48078
48079         Tests for module 'unicase/u16-casefold'.
48080         * modules/unicase/u16-casefold-tests: New file.
48081         * tests/unicase/test-u16-casefold.c: New file.
48082
48083         Tests for module 'unicase/u8-casefold'.
48084         * modules/unicase/u8-casefold-tests: New file.
48085         * tests/unicase/test-u8-casefold.c: New file.
48086
48087         New module 'unicase/u32-casefold'.
48088         * lib/unicase/u32-casefold.c: New file.
48089         * modules/unicase/u32-casefold: New file.
48090
48091         New module 'unicase/u16-casefold'.
48092         * lib/unicase/u16-casefold.c: New file.
48093         * modules/unicase/u16-casefold: New file.
48094
48095         New module 'unicase/u8-casefold'.
48096         * lib/unicase/u8-casefold.c: New file.
48097         * lib/unicase/u-casefold.h: New file.
48098         * modules/unicase/u8-casefold: New file.
48099
48100         New module 'unicase/tocasefold'.
48101         * lib/unicase/casefold.h: New file.
48102         * lib/unicase/tocasefold.c: New file.
48103         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48104         * modules/unicase/tocasefold: New file.
48105
48106         Tests for module 'unicase/u32-totitle'.
48107         * modules/unicase/u32-totitle-tests: New file.
48108         * tests/unicase/test-u32-totitle.c: New file.
48109
48110         Tests for module 'unicase/u16-totitle'.
48111         * modules/unicase/u16-totitle-tests: New file.
48112         * tests/unicase/test-u16-totitle.c: New file.
48113
48114         Tests for module 'unicase/u8-totitle'.
48115         * modules/unicase/u8-totitle-tests: New file.
48116         * tests/unicase/test-u8-totitle.c: New file.
48117
48118         New module 'unicase/u32-totitle'.
48119         * lib/unicase/u32-totitle.c: New file.
48120         * modules/unicase/u32-totitle: New file.
48121
48122         New module 'unicase/u16-totitle'.
48123         * lib/unicase/u16-totitle.c: New file.
48124         * modules/unicase/u16-totitle: New file.
48125
48126         New module 'unicase/u8-totitle'.
48127         * lib/unicase/u8-totitle.c: New file.
48128         * lib/unicase/u-totitle.h: New file.
48129         * modules/unicase/u8-totitle: New file.
48130
48131         Tests for module 'unicase/u32-tolower'.
48132         * modules/unicase/u32-tolower-tests: New file.
48133         * tests/unicase/test-u32-tolower.c: New file.
48134
48135         Tests for module 'unicase/u16-tolower'.
48136         * modules/unicase/u16-tolower-tests: New file.
48137         * tests/unicase/test-u16-tolower.c: New file.
48138
48139         Tests for module 'unicase/u8-tolower'.
48140         * modules/unicase/u8-tolower-tests: New file.
48141         * tests/unicase/test-u8-tolower.c: New file.
48142
48143         New module 'unicase/u32-tolower'.
48144         * lib/unicase/u32-tolower.c: New file.
48145         * modules/unicase/u32-tolower: New file.
48146
48147         New module 'unicase/u16-tolower'.
48148         * lib/unicase/u16-tolower.c: New file.
48149         * modules/unicase/u16-tolower: New file.
48150
48151         New module 'unicase/u8-tolower'.
48152         * lib/unicase/u8-tolower.c: New file.
48153         * modules/unicase/u8-tolower: New file.
48154
48155         Tests for module 'unicase/u32-toupper'.
48156         * modules/unicase/u32-toupper-tests: New file.
48157         * tests/unicase/test-u32-toupper.c: New file.
48158
48159         Tests for module 'unicase/u16-toupper'.
48160         * modules/unicase/u16-toupper-tests: New file.
48161         * tests/unicase/test-u16-toupper.c: New file.
48162
48163         Tests for module 'unicase/u8-toupper'.
48164         * modules/unicase/u8-toupper-tests: New file.
48165         * tests/unicase/test-u8-toupper.c: New file.
48166
48167         New module 'unicase/u32-toupper'.
48168         * lib/unicase/u32-toupper.c: New file.
48169         * modules/unicase/u32-toupper: New file.
48170
48171         New module 'unicase/u16-toupper'.
48172         * lib/unicase/u16-toupper.c: New file.
48173         * modules/unicase/u16-toupper: New file.
48174
48175         New module 'unicase/u8-toupper'.
48176         * lib/unicase/u8-toupper.c: New file.
48177         * modules/unicase/u8-toupper: New file.
48178
48179         New module 'unicase/u32-casemap'.
48180         * lib/unicase/u32-casemap.c: New file.
48181         * modules/unicase/u32-casemap: New file.
48182
48183         New module 'unicase/u16-casemap'.
48184         * lib/unicase/u16-casemap.c: New file.
48185         * modules/unicase/u16-casemap: New file.
48186
48187         New module 'unicase/u8-casemap'.
48188         * lib/unicase/unicasemap.h: New file.
48189         * lib/unicase/u8-casemap.c: New file.
48190         * lib/unicase/u-casemap.h: New file.
48191         * modules/unicase/u8-casemap: New file.
48192
48193         New module 'unicase/special-casing'.
48194         * lib/unicase/special-casing.h: New file.
48195         * lib/unicase/special-casing.c: New file.
48196         * lib/unicase/special-casing-table.gperf: New file, generated by
48197         gen-uni-tables.c.
48198         * modules/unicase/special-casing: New file.
48199
48200         Tests for module 'unicase/locale-language'.
48201         * modules/unicase/locale-language-tests: New file.
48202         * tests/unicase/test-locale-language.sh: New file.
48203         * tests/unicase/test-locale-language.c: New file.
48204
48205         New module 'unicase/locale-language'.
48206         * lib/unicase/locale-language.c: New file.
48207         * lib/unicase/locale-languages.gperf: New file.
48208         * modules/unicase/locale-language: New file.
48209
48210         Generate more tables for case conversion and case folding.
48211         * lib/gen-uni-tables.c (SCC_*): New enum items.
48212         (struct special_casing_rule): New type.
48213         (casing_rules, num_casing_rules, allocated_casing_rules): New
48214         variables.
48215         (add_casing_rule, fill_casing_rules): New functions.
48216         (struct casefold_rule): New type.
48217         (casefolding_rules, num_casefolding_rules,
48218         allocated_casefolding_rules): New variables.
48219         (fill_casefolding_rules): New function.
48220         (unicode_casefold): New variable.
48221         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48222         sort_casing_rules, output_casing_rules): New functions.
48223         (main): Accept to more arguments: SpecialCasing.txt and
48224         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48225         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48226         Output mapping for casefolding.
48227
48228         * lib/unicase.h: Include stdbool.h, uninorm.h.
48229         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48230         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48231         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48232         arguments.
48233         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48234         resultp arguments.
48235         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48236         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48237         resultp arguments.
48238         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48239         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48240         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48241         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48242         declarations.
48243         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48244
48245 2009-03-08  Bruno Haible  <bruno@clisp.org>
48246
48247         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48248         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48249         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48250         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48251
48252 2009-03-07  Bruno Haible  <bruno@clisp.org>
48253
48254         Adjust u*_normcmp, u*_normcoll API.
48255         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48256         u16_normcoll, u32_normcoll): Change failure conventions.
48257         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48258         errno and return -1.
48259         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48260
48261 2009-03-07  Bruno Haible  <bruno@clisp.org>
48262
48263         Tests for module 'uninorm/u32-normcoll'.
48264         * modules/uninorm/u32-normcoll-tests: New file.
48265         * tests/uninorm/test-u32-normcoll.c: New file.
48266
48267         Tests for module 'uninorm/u16-normcoll'.
48268         * modules/uninorm/u16-normcoll-tests: New file.
48269         * tests/uninorm/test-u16-normcoll.c: New file.
48270
48271         Tests for module 'uninorm/u8-normcoll'.
48272         * modules/uninorm/u8-normcoll-tests: New file.
48273         * tests/uninorm/test-u8-normcoll.c: New file.
48274
48275 2009-03-07  Bruno Haible  <bruno@clisp.org>
48276
48277         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48278         tests/uninorm/test-u32-normcmp.c.
48279         * tests/uninorm/test-u32-normcmp.c: Include it.
48280         (test_nonascii): New function, extracted from main. Add some more
48281         tests.
48282         (main): Invoke test_ascii and test_nonascii.
48283         * modules/uninorm/u32-normcmp-tests (Files): Add
48284         tests/uninorm/test-u32-normcmp.h.
48285         (Depends-on): Remove uninorm/u32-normcmp.
48286
48287         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48288         tests/uninorm/test-u16-normcmp.c.
48289         * tests/uninorm/test-u16-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/u16-normcmp-tests (Files): Add
48294         tests/uninorm/test-u16-normcmp.h.
48295         (Depends-on): Remove uninorm/u16-normcmp.
48296
48297         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48298         tests/uninorm/test-u8-normcmp.c.
48299         * tests/uninorm/test-u8-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/u8-normcmp-tests (Files): Add
48304         tests/uninorm/test-u8-normcmp.h.
48305         (Depends-on): Remove uninorm/u8-normcmp.
48306
48307 2009-03-07  Bruno Haible  <bruno@clisp.org>
48308
48309         New module 'uninorm/u32-normcoll'.
48310         * lib/uninorm/u32-normcoll.c: New file.
48311         * modules/uninorm/u32-normcoll: New file.
48312
48313         New module 'uninorm/u16-normcoll'.
48314         * lib/uninorm/u16-normcoll.c: New file.
48315         * modules/uninorm/u16-normcoll: New file.
48316
48317         New module 'uninorm/u8-normcoll'.
48318         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48319         declarations.
48320         * lib/uninorm/u8-normcoll.c: New file.
48321         * lib/uninorm/u-normcoll.h: New file.
48322         * modules/uninorm/u8-normcoll: New file.
48323
48324         New module 'uninorm/u32-normxfrm'.
48325         * lib/uninorm/u32-normxfrm.c: New file.
48326         * modules/uninorm/u32-normxfrm: New file.
48327
48328         New module 'uninorm/u16-normxfrm'.
48329         * lib/uninorm/u16-normxfrm.c: New file.
48330         * modules/uninorm/u16-normxfrm: New file.
48331
48332         New module 'uninorm/u8-normxfrm'.
48333         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48334         declarations.
48335         * lib/uninorm/u8-normxfrm.c: New file.
48336         * lib/uninorm/u-normxfrm.h: New file.
48337         * modules/uninorm/u8-normxfrm: New file.
48338
48339 2009-03-07  Bruno Haible  <bruno@clisp.org>
48340
48341         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48342         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48343         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48344
48345 2009-03-07  Bruno Haible  <bruno@clisp.org>
48346
48347         New module 'memxfrm'.
48348         * lib/memxfrm.h: New file.
48349         * lib/memxfrm.c: New file.
48350         * modules/memxfrm: New file.
48351
48352 2009-03-07  Bruno Haible  <bruno@clisp.org>
48353
48354         New module 'memcmp2'.
48355         * lib/memcmp2.h: New file.
48356         * lib/memcmp2.c: New file.
48357         * modules/memcmp2: New file.
48358
48359 2009-03-07  Bruno Haible  <bruno@clisp.org>
48360
48361         Tests for module 'uninorm/decomposing-form'.
48362         * modules/uninorm/decomposing-form-tests: New file.
48363         * tests/uninorm/test-decomposing-form.c: New file.
48364
48365         New module 'uninorm/decomposing-form'.
48366         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48367         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48368         Add 'decomposing_variant' field.
48369         * lib/uninorm/decomposing-form.c: New file.
48370         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48371         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48372         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48373         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48374         * modules/uninorm/decomposing-form: New file.
48375         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48376         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48377
48378 2009-03-07  Bruno Haible  <bruno@clisp.org>
48379
48380         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48381         strings.
48382
48383 2009-03-06  Bruno Haible  <bruno@clisp.org>
48384
48385         Tests for module 'uninorm/u32-normcmp'.
48386         * tests/uninorm/test-u32-normcmp.c: New file.
48387         * modules/uninorm/u32-normcmp-tests: New file.
48388
48389         Tests for module 'uninorm/u16-normcmp'.
48390         * tests/uninorm/test-u16-normcmp.c: New file.
48391         * modules/uninorm/u16-normcmp-tests: New file.
48392
48393         Tests for module 'uninorm/u8-normcmp'.
48394         * tests/uninorm/test-u8-normcmp.c: New file.
48395         * modules/uninorm/u8-normcmp-tests: New file.
48396
48397         New module 'uninorm/u32-normcmp'.
48398         * lib/uninorm/u32-normcmp.c: New file.
48399         * modules/uninorm/u32-normcmp: New file.
48400
48401         New module 'uninorm/u16-normcmp'.
48402         * lib/uninorm/u16-normcmp.c: New file.
48403         * modules/uninorm/u16-normcmp: New file.
48404
48405         New module 'uninorm/u8-normcmp'.
48406         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48407         declarations.
48408         * lib/uninorm/u8-normcmp.c: New file.
48409         * lib/uninorm/u-normcmp.h: New file.
48410         * modules/uninorm/u8-normcmp: New file.
48411
48412 2009-03-06  Bruno Haible  <bruno@clisp.org>
48413
48414         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48415         Reported by Eric Blake.
48416
48417 2009-03-06  Eric Blake  <ebb9@byu.net>
48418             Bruno Haible  <bruno@clisp.org>
48419
48420         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48421         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48422         condition.
48423         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48424         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48425         condition.
48426         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48427
48428 2009-03-06  Eric Blake  <ebb9@byu.net>
48429
48430         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48431         to avoid compiler warnings.
48432         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48433
48434 2009-03-05  Bruno Haible  <bruno@clisp.org>
48435
48436         * tests/test-ftell.c (main): Disable test beyond end of file on
48437         FreeMiNT.
48438         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48439
48440 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48441
48442         * lib/filevercmp.c: Move hidden files up in ordering.
48443         * tests/test-filevercmp.c: Add tests for hidden files.
48444
48445 2009-03-04  Bruno Haible  <bruno@clisp.org>
48446
48447         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48448         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48449         AM_CFLAGS.
48450         Reported by Simon Josefsson.
48451
48452 2009-03-03  Bruno Haible  <bruno@clisp.org>
48453
48454         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48455         Reported by Simon Josefsson.
48456
48457         * doc/ld-version-script.texi: Update node reference.
48458
48459 2009-03-03  Bruno Haible  <bruno@clisp.org>
48460
48461         * modules/visibility (License): Change to 'unlimited'.
48462         Suggested by Simon Josefsson.
48463
48464 2009-03-03  Jim Meyering  <meyering@redhat.com>
48465
48466         unlinkdir: cannot_unlink_dir may modify process state
48467         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48468         it's neither thread-safe nor appropriate for use in a library.
48469
48470 2009-03-03  Eric Blake  <ebb9@byu.net>
48471
48472         test-closein: silence test under Darwin
48473         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48474         care if it dies from EPIPE or EBADF.
48475
48476 2009-03-03  Bruno Haible  <bruno@clisp.org>
48477
48478         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48479         earlier.
48480         * doc/visibility.texi: Fix @node and @section.
48481
48482 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48483
48484         * doc/gnulib.texi: Link to sections for ld version script and
48485         visibility.
48486         * doc/visibility.texi: Add @node and @section.
48487         * modules/ld-version-script: New module.
48488         * m4/ld-version-script.m4: New file.
48489         * doc/ld-version-script.texi: New file.
48490
48491 2009-03-02  David Lutterkort  <lutter@redhat.com>
48492
48493         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48494         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48495
48496 2009-03-02  Bruno Haible  <bruno@clisp.org>
48497
48498         * doc/visibility.texi: Mention libtool's -export-symbols option.
48499
48500 2009-03-02  Jim Meyering  <meyering@redhat.com>
48501
48502         announce-gen: new option: --no-print-checksums
48503         * build-aux/announce-gen (usage): Describe it.
48504         (print_checksums): Print a newline here, not in the [*] footnote.
48505         (main): Honor it.
48506
48507 2009-03-01  Bruno Haible  <bruno@clisp.org>
48508
48509         Use socklen_t in the native Windows replacements prototypes.
48510         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48511         instead of 'int'.
48512         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48513         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48514         * modules/getsockopt (Depends-on): Add socklen.
48515         * modules/setsockopt (Depends-on): Add socklen.
48516
48517 2009-03-01  Bruno Haible  <bruno@clisp.org>
48518
48519         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48520         least 4.2.
48521
48522 2009-03-01  Eric Blake  <ebb9@byu.net>
48523             Bruno Haible  <bruno@clisp.org>
48524
48525         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
48526         error messages.
48527         * lib/wait-process.c (wait_subprocess): Omit error message about
48528         deadly signal sent to the child of termsigp != NULL.
48529
48530 2009-03-01  Eric Blake  <ebb9@byu.net>
48531
48532         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
48533
48534 2009-03-01  Bruno Haible  <bruno@clisp.org>
48535
48536         Avoid a gcc warning.
48537         * tests/test-sched.c (b): Make global.
48538         Reported by Eric Blake.
48539
48540 2009-01-19  Martin Lambers  <marlam@marlam.de>
48541
48542         Provide POSIX semantics for socket timeout options on W32.
48543         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
48544         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
48545         * modules/setsockopt: Depend on sys_time module for struct timeval.
48546         * modules/getsockopt: Depend on sys_time module for struct timeval.
48547
48548 2009-03-01  Simon Josefsson  <simon@josefsson.org>
48549
48550         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
48551         __USE_GNU, for consistency with netdb.in.h.
48552         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48553
48554 2009-03-01  Bruno Haible  <bruno@clisp.org>
48555
48556         More support for FreeMiNT.
48557         * lib/fseeko.c (rpl_fseeko): Complete last commit.
48558         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48559
48560 2009-03-01  Bruno Haible  <bruno@clisp.org>
48561
48562         More support for FreeMiNT.
48563         * lib/fpurge.c (fpurge): Correct last commit.
48564         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48565
48566 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48567
48568         Fix unportable awk script in vc-list-files.
48569         * build-aux/vc-list-files: In the replacement awk script, use
48570         substr with a second argument of 1, not zero.
48571         Report by Simon Josefsson.
48572
48573 2009-02-28  Bruno Haible  <bruno@clisp.org>
48574
48575         More support for FreeMiNT.
48576         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
48577         to FreeMiNT today.
48578         * lib/fwriting.c (fwriting): Likewise.
48579         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
48580
48581 2009-02-28  Bruno Haible  <bruno@clisp.org>
48582
48583         * tests/test-freadseek.c (main): Disable test beyond end of file on
48584         FreeMiNT.
48585         * tests/test-ftello.c (main): Likewise.
48586         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48587
48588 2009-02-28  Bruno Haible  <bruno@clisp.org>
48589
48590         Add tentative support for FreeMiNT.
48591         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
48592         * lib/fpurge.c (fpurge): Likewise.
48593         * lib/freadable.c (freadable): Likewise.
48594         * lib/freading.c (freading): Likewise.
48595         * lib/freadptr.c (freadptr): Likewise.
48596         * lib/freadseek.c (freadptrinc): Likewise.
48597         * lib/fseeko.c (rpl_fseeko): Likewise.
48598         * lib/fseterr.c (fseterr): Likewise.
48599         * lib/fwritable.c (fwritable): Likewise.
48600         * lib/fwriting.c (fwriting): Likewise.
48601         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
48602         Hourihane.
48603         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48604
48605 2009-02-28  Bruno Haible  <bruno@clisp.org>
48606
48607         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
48608         SIGCHLD.
48609         Reported by Jim Meyering.
48610
48611 2009-02-28  Bruno Haible  <bruno@clisp.org>
48612
48613         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
48614         Mention the results of these tests on various platforms.
48615         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
48616         order.
48617         * doc/posix-functions/printf.texi: Likewise.
48618         * doc/posix-functions/snprintf.texi: Likewise.
48619         * doc/posix-functions/sprintf.texi: Likewise.
48620         * doc/posix-functions/vfprintf.texi: Likewise.
48621         * doc/posix-functions/vprintf.texi: Likewise.
48622         * doc/posix-functions/vsnprintf.texi: Likewise.
48623         * doc/posix-functions/vsprintf.texi: Likewise.
48624         * doc/glibc-functions/obstack_printf.texi: Likewise.
48625         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48626
48627 2009-02-28  Bruno Haible  <bruno@clisp.org>
48628
48629         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
48630         Reported by Loïc Minier <lool@dooz.org>.
48631
48632 2009-02-27  Bruno Haible  <bruno@clisp.org>
48633
48634         * gnulib-tool (func_import): Make the sed expression used to create the
48635         sed script for updating the .gitignore file POSIX compliant.
48636         Reported by Eric Blake.
48637
48638 2009-02-27  Bruno Haible  <bruno@clisp.org>
48639
48640         * gnulib-tool (sed): Don't alias as "sed --posix".
48641         Reported by Eric Blake.
48642
48643 2009-02-27  Bruno Haible  <bruno@clisp.org>
48644
48645         Avoid test link errors.
48646         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
48647         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
48648         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
48649         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
48650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48651
48652 2009-02-27  Bruno Haible  <bruno@clisp.org>
48653
48654         Avoid spurious "(cached)" in configure output.
48655         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
48656         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
48657         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48658         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48659         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48660         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
48661         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48662         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
48663         Reported by Eric Blake.
48664
48665 2009-02-27  Eric Blake  <ebb9@byu.net>
48666
48667         printf: fix regression in previous patch
48668         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
48669
48670 2009-02-27  Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
48673         value.
48674         * lib/stdint.in.h: Likewise.
48675         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
48676
48677 2009-02-27  Eric Blake  <ebb9@byu.net>
48678
48679         doc: mention more functions added in cygwin 1.7.0
48680         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
48681         addition.
48682         * doc/posix-functions/open_wmemstream.texi: Likewise.
48683         * doc/posix-functions/wcsnlen.texi: Likewise.
48684         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48685         * doc/posix-functions/wcstod.texi: Likewise.
48686         * doc/posix-functions/wcstof.texi: Likewise.
48687         * doc/posix-functions/wcstoimax.texi: Likewise.
48688         * doc/posix-functions/wcstok.texi: Likewise.
48689         * doc/posix-functions/wcstoumax.texi: Likewise.
48690
48691         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
48692         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
48693         * doc/posix-functions/fprintf.texi: Update.
48694         * doc/posix-functions/printf.texi: Update.
48695         * doc/posix-functions/snprintf.texi: Update.
48696         * doc/posix-functions/sprintf.texi: Update.
48697         * doc/posix-functions/vfprintf.texi: Update.
48698         * doc/posix-functions/vprintf.texi: Update.
48699         * doc/posix-functions/vsnprintf.texi: Update.
48700         * doc/posix-functions/vsprintf.texi: Update.
48701         * doc/glibc-functions/obstack_printf.texi: Update.
48702         * doc/glibc-functions/obstack_vprintf.texi: Update.
48703
48704 2009-02-26  Eric Blake  <ebb9@byu.net>
48705
48706         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
48707         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
48708         compilation bug by using runtime conversion.
48709         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48710         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
48711         * modules/ceill-tests (Files): Use nan.h.
48712         * modules/floorl-tests (Files): Likewise.
48713         * modules/frexpl-tests (Files): Likewise.
48714         * modules/isnanl-tests (Files): Likewise.
48715         * modules/ldexpl-tests (Files): Likewise.
48716         * modules/roundl-tests (Files): Likewise.
48717         * modules/truncl-tests (Files): Likewise.
48718         * tests/test-ceill.c (main): Use a working NaN.
48719         * tests/test-floorl.c (main): Likewise.
48720         * tests/test-frexpl.c (main): Likewise.
48721         * tests/test-isnan.c (test_long_double): Likewise.
48722         * tests/test-isnanl.h (main): Likewise.
48723         * tests/test-ldexpl.h (main): Likewise.
48724         * tests/test-roundl.h (main): Likewise.
48725         * tests/test-truncl.h (main): Likewise.
48726         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
48727
48728 2009-02-26  Eric Blake  <ebb9@byu.net>
48729             Bruno Haible  <bruno@clisp.org>
48730
48731         Work around a *printf bug with %ls on Solaris.
48732         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
48733         precision is specified, sprintf stops converting the wide string
48734         argument when the number of bytes that have been produced by this
48735         conversion equals or exceeds the precision.
48736         * doc/posix-functions/fprintf.texi: Update.
48737         * doc/posix-functions/printf.texi: Update.
48738         * doc/posix-functions/snprintf.texi: Update.
48739         * doc/posix-functions/sprintf.texi: Update.
48740         * doc/posix-functions/vfprintf.texi: Update.
48741         * doc/posix-functions/vprintf.texi: Update.
48742         * doc/posix-functions/vsnprintf.texi: Update.
48743         * doc/posix-functions/vsprintf.texi: Update.
48744         * doc/glibc-functions/obstack_printf.texi: Update.
48745         * doc/glibc-functions/obstack_vprintf.texi: Update.
48746
48747 2009-02-26  Eric Blake  <ebb9@byu.net>
48748
48749         stdlib: favor compiler check of random.h
48750         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
48751         to avoid an ObjC random.h installed by Swarm.
48752
48753 2009-02-26  Bruno Haible  <bruno@clisp.org>
48754
48755         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
48756         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
48757         Reported by Gary V. Vaughan <gary@gnu.org>.
48758
48759 2009-02-26  Bruno Haible  <bruno@clisp.org>
48760
48761         Fix *printf behaviour regarding the %ls directive.
48762         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
48763         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
48764         NEED_PRINTF_DIRECTIVE_LS.
48765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
48766         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48767         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48768         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
48769         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
48770         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
48771         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48772         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48773         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48776         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
48777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48778         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48779         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48780         * doc/posix-functions/fprintf.texi: Update.
48781         * doc/posix-functions/printf.texi: Update.
48782         * doc/posix-functions/snprintf.texi: Update.
48783         * doc/posix-functions/sprintf.texi: Update.
48784         * doc/posix-functions/vfprintf.texi: Update.
48785         * doc/posix-functions/vprintf.texi: Update.
48786         * doc/posix-functions/vsnprintf.texi: Update.
48787         * doc/posix-functions/vsprintf.texi: Update.
48788         * doc/glibc-functions/obstack_printf.texi: Update.
48789         * doc/glibc-functions/obstack_vprintf.texi: Update.
48790         Reported by Eric Blake.
48791
48792 2009-02-25  Bruno Haible  <bruno@clisp.org>
48793
48794         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
48795         with known value.
48796         Reported by Gary V. Vaughan <gary@gnu.org>.
48797
48798 2009-02-25  Bruno Haible  <bruno@clisp.org>
48799
48800         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
48801         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
48802         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
48803         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
48804         Reported by Gary V. Vaughan <gary@gnu.org>.
48805
48806 2009-02-25  Bruno Haible  <bruno@clisp.org>
48807
48808         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
48809         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
48810         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
48811         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
48812         Reported by Gary V. Vaughan <gary@gnu.org>.
48813
48814 2009-02-25  Eric Blake  <ebb9@byu.net>
48815
48816         tests: skip fseek/ftell tests if ungetc is broken
48817         * m4/ungetc.m4: New file.
48818         * modules/fseek-tests: Split test, so ungetc dependency is
48819         separate from rest of test.
48820         * modules/fseeko-tests: Likewise.
48821         * modules/ftell-tests: Likewise.
48822         * modules/ftello-tests: Likewise.
48823         * tests/test-fseek.c (main): Isolate ungetc dependency.
48824         * tests/test-fseeko.c (main): Likewise.
48825         * tests/test-ftell.c (main): Likewise.
48826         * tests/test-ftello.c (main): Likewise.
48827         * tests/test-fseek2.sh: New file.
48828         * tests/test-fseeko2.sh: Likewise.
48829         * tests/test-ftell2.sh: Likewise.
48830         * tests/test-ftello2.sh: Likewise.
48831
48832 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
48833
48834         test-getaddrinfo: fix usage of skip return code 77
48835         * tests/test-gettaddrinfo.c: Return skip code 77 only
48836         for first occurrence of skip (4x77 is not 77)
48837
48838 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
48839
48840         strtod: avoid C99 decl-after-statement
48841         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
48842
48843 2009-02-24  Eric Blake  <ebb9@byu.net>
48844
48845         strtod: detect HP-UX 11.31 bug
48846         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
48847         Reported by Gary V. Vaughan.
48848
48849 2009-02-23  Bruno Haible  <bruno@clisp.org>
48850
48851         Fix invalid read past end of memory block.
48852         * lib/vasnprintf.c (DCHAR_SET): Define.
48853         (local_wcslen): Define only when needed.
48854         (local_strnlen, local_wcsnlen): New functions.
48855         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
48856         directives that involve a conversion ourselves.
48857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
48858         wcsnlen, mbrtowc, wcrtomb.
48859         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
48860         * tests/test-vasprintf-posix.c (test_function): Likewise.
48861         * tests/test-snprintf-posix.h (test_function): Likewise.
48862         * tests/test-sprintf-posix.h (test_function): Likewise.
48863         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48864
48865 2009-02-22  Bruno Haible  <bruno@clisp.org>
48866
48867         Implement new clarified decomposition of Hangul syllables.
48868         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
48869         of type LTV, return only a pairwise decomposition.
48870         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
48871         Likewise.
48872         * tests/uninorm/test-decomposition.c (main): Updated expected result.
48873         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
48874         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
48875
48876 2009-02-22  Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
48879         zero-length results and shrink excess allocated memory.
48880         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
48881         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
48882         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
48883         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
48884         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
48885         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
48886         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
48887         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
48888         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
48889         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
48890         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
48891         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
48892
48893 2009-02-21  Bruno Haible  <bruno@clisp.org>
48894
48895         * doc/gnulib.texi: Include safe-alloc.texi earlier.
48896         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
48897         spaces after a period. Put a space between a macro name and its
48898         argument list. Trivial rewordings.
48899         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
48900         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
48901         (main): Return 0 explicitly.
48902
48903 2009-02-21  Bruno Haible  <bruno@clisp.org>
48904
48905         Tests for module 'uninorm/filter'.
48906         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
48907         * modules/uninorm/filter-tests: New file.
48908
48909         New module 'uninorm/filter'.
48910         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
48911         uninorm_filter_flush, uninorm_filter_free): New declarations.
48912         * lib/uninorm/uninorm-filter.c: New file.
48913         * modules/uninorm/filter: New file.
48914
48915 2009-02-21  Bruno Haible  <bruno@clisp.org>
48916
48917         Tests for module 'uninorm/nfkc'.
48918         * tests/uninorm/test-nfkc.c: New file.
48919         * tests/uninorm/test-u8-nfkc.c: New file.
48920         * tests/uninorm/test-u16-nfkc.c: New file.
48921         * tests/uninorm/test-u32-nfkc.c: New file.
48922         * tests/uninorm/test-u32-nfkc-big.sh: New file.
48923         * tests/uninorm/test-u32-nfkc-big.c: New file.
48924         * modules/uninorm/nfkc-tests: New file.
48925
48926         New module 'uninorm/nfkc'.
48927         * lib/uninorm/nfkc.c: New file.
48928         * modules/uninorm/nfkc: New file.
48929
48930         Tests for module 'uninorm/nfkd'.
48931         * tests/uninorm/test-nfkd.c: New file.
48932         * tests/uninorm/test-u8-nfkd.c: New file.
48933         * tests/uninorm/test-u16-nfkd.c: New file.
48934         * tests/uninorm/test-u32-nfkd.c: New file.
48935         * tests/uninorm/test-u32-nfkd-big.sh: New file.
48936         * tests/uninorm/test-u32-nfkd-big.c: New file.
48937         * modules/uninorm/nfkd-tests: New file.
48938
48939         New module 'uninorm/nfkd'.
48940         * lib/uninorm/nfkd.c: New file.
48941         * modules/uninorm/nfkd: New file.
48942
48943         Tests for module 'uninorm/nfc'.
48944         * tests/uninorm/test-nfc.c: New file.
48945         * tests/uninorm/test-u8-nfc.c: New file.
48946         * tests/uninorm/test-u16-nfc.c: New file.
48947         * tests/uninorm/test-u32-nfc.c: New file.
48948         * tests/uninorm/test-u32-nfc-big.sh: New file.
48949         * tests/uninorm/test-u32-nfc-big.c: New file.
48950         * modules/uninorm/nfc-tests: New file.
48951
48952         New module 'uninorm/nfc'.
48953         * lib/uninorm/nfc.c: New file.
48954         * modules/uninorm/nfc: New file.
48955
48956         Tests for module 'uninorm/nfd'.
48957         * tests/uninorm/test-nfd.c: New file.
48958         * tests/uninorm/test-u8-nfd.c: New file.
48959         * tests/uninorm/test-u16-nfd.c: New file.
48960         * tests/uninorm/test-u32-nfd.c: New file.
48961         * tests/uninorm/test-u32-nfd-big.sh: New file.
48962         * tests/uninorm/test-u32-nfd-big.c: New file.
48963         * tests/uninorm/test-u32-normalize-big.h: New file.
48964         * tests/uninorm/test-u32-normalize-big.c: New file.
48965         * tests/uninorm/NormalizationTest.txt: New file, created from
48966         Unicode 5.1.0 NormalizationTest.txt.
48967         * modules/uninorm/nfd-tests: New file.
48968
48969         New module 'uninorm/nfd'.
48970         * lib/uninorm/nfd.c: New file.
48971         * modules/uninorm/nfd: New file.
48972
48973         New module 'uninorm/u32-normalize'.
48974         * lib/uninorm/u32-normalize.c: New file.
48975         * modules/uninorm/u32-normalize: New file.
48976
48977         New module 'uninorm/u16-normalize'.
48978         * lib/uninorm/u16-normalize.c: New file.
48979         * modules/uninorm/u16-normalize: New file.
48980
48981         New module 'uninorm/u8-normalize'.
48982         * lib/uninorm/u8-normalize.c: New file.
48983         * lib/uninorm/normalize-internal.h: New file.
48984         * lib/uninorm/u-normalize-internal.h: New file.
48985         * modules/uninorm/u8-normalize: New file.
48986
48987         New module 'uninorm/decompose-internal'.
48988         * lib/uninorm/decompose-internal.c: New file.
48989         * modules/uninorm/decompose-internal: New file.
48990
48991         Tests for module 'uninorm/composition'.
48992         * tests/uninorm/test-composition.c: New file.
48993         * modules/uninorm/composition-tests: New file.
48994
48995         New module 'uninorm/composition'.
48996         * lib/uninorm/composition.c: New file.
48997         * lib/uninorm/composition-table.gperf: New file, generated by
48998         gen-uni-tables.
48999         * modules/uninorm/composition: New file.
49000
49001         Tests for module 'uninorm/compat-decomposition'.
49002         * tests/uninorm/test-compat-decomposition.c: New file.
49003         * modules/uninorm/compat-decomposition-tests: New file.
49004
49005         New module 'uninorm/compat-decomposition'.
49006         * lib/uninorm/decompose-internal.h: New file.
49007         * lib/uninorm/compat-decomposition.c: New file.
49008         * modules/uninorm/compat-decomposition: New file.
49009
49010         Tests for module 'uninorm/canonical-decomposition'.
49011         * tests/uninorm/test-canonical-decomposition.c: New file.
49012         * modules/uninorm/canonical-decomposition-tests: New file.
49013
49014         New module 'uninorm/canonical-decomposition'.
49015         * lib/uninorm/canonical-decomposition.c: New file.
49016         * modules/uninorm/canonical-decomposition: New file.
49017
49018         Tests for module 'uninorm/decomposition'.
49019         * tests/uninorm/test-decomposition.c: New file.
49020         * modules/uninorm/decomposition-tests: New file.
49021
49022         New module 'uninorm/decomposition'.
49023         * lib/uninorm/decomposition.c: New file.
49024         * modules/uninorm/decomposition: New file.
49025
49026         New module 'uninorm/decomposition-table'.
49027         * lib/uninorm/decomposition-table.h: New file.
49028         * lib/uninorm/decomposition-table.c: New file.
49029         * lib/uninorm/decomposition-table1.h: New file, generated by
49030         gen-uni-tables.
49031         * lib/uninorm/decomposition-table2.h: New file, generated by
49032         gen-uni-tables.
49033         * modules/uninorm/decomposition-table: New file.
49034
49035         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49036         (UC_DECOMP_*): New enumeration items.
49037         (get_decomposition): New function.
49038         (struct decomp_table): New type.
49039         (output_decomposition, output_decomposition_tables): New functions.
49040         (unicode_composition_exclusions): New variable.
49041         (fill_composition_exclusions, debug_output_composition_tables): New
49042         functions.
49043         (main): Accept one more argument. Invoke fill_composition_exclusions.
49044         Output decomposition and composition tables.
49045
49046         New module 'uninorm/base'.
49047         * lib/uninorm.h: New file.
49048         * lib/unictype.h: Update comment.
49049         * modules/uninorm/base: New file.
49050
49051 2009-02-21  David Lutterkort  <lutter@redhat.com>
49052
49053         Tests for module 'safe-alloc'.
49054         * tests/test-safe-alloc.c: New file.
49055         * modules/safe-alloc-tests: New file.
49056
49057         New module 'safe-alloc'.
49058         * lib/safe-alloc.h: New file.
49059         * lib/safe-alloc.c: New file.
49060         * m4/safe-alloc.m4: New file.
49061         * modules/safe-alloc: New file.
49062         * doc/safe-alloc.texi: New file.
49063         * doc/gnulib.texi: Include it.
49064         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49065         safe-alloc.
49066
49067 2009-02-18  Bruno Haible  <bruno@clisp.org>
49068
49069         Fix link error on non-glibc systems.
49070         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49071         variable.
49072         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49073
49074 2009-02-18  Jim Meyering  <meyering@redhat.com>
49075
49076         fts: avoid used-uninitialized error due to recent change
49077         * lib/fts.c (fts_read): Guard uses of the new member,
49078         parent->fts_n_dirs_remaining, since it's not relevant for
49079         the parent of a directory specified on the command-line.
49080
49081 2009-02-17  James Youngman  <jay@gnu.org>
49082             Bruno Haible  <bruno@clisp.org>
49083
49084         * m4/include_next.m4: Reformulate comment.
49085
49086 2009-02-16  Jim Meyering  <meyering@redhat.com>
49087
49088         fts: add #if guards so that the fts_lgpl module still builds
49089         * lib/fts.c: Guard just-added hash-table-using parts with
49090         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49091         Reported by Simon Josefsson.
49092
49093 2009-02-15  Bruno Haible  <bruno@clisp.org>
49094
49095         * modules/array-mergesort-tests: New file.
49096         * tests/test-array-mergesort.c: New file.
49097
49098         New module 'array-mergesort'.
49099         * modules/array-mergesort: New file.
49100         * lib/array-mergesort.h: New file.
49101
49102 2009-02-15  Bruno Haible  <bruno@clisp.org>
49103
49104         Fix 2009-02-07 commit.
49105         * lib/gen-uni-tables.c (output_predicate, output_category,
49106         output_combclass, output_bidi_category, output_decimal_digit,
49107         output_digit, output_numeric, output_mirror, output_scripts,
49108         output_ident_category, output_simple_mapping): Fix format directives.
49109         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49110
49111 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49112
49113         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49114         fixes are available from IBM.
49115
49116 2009-02-13  Jim Meyering  <meyering@redhat.com>
49117
49118         fts: arrange not to stat non-directories in more cases
49119         This makes GNU find (when it doesn't need to stat each file)
49120         *much* more efficient at traversing reiserfs file systems.
49121         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49122         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49123         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49124         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49125         (leaf_optimization_applies): New function.
49126         (LCO_hash, LCO_compare): New helper functions.
49127         (link_count_optimize_ok): New function.
49128         (fts_stat): Initialize new member (if dir).
49129         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49130         we've just stat'ed a directory.  Skip the stat call when possible.
49131         ---
49132         Note this AFS-related exchange:
49133         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49134         and note find's pioctl call in find/fstype.c.
49135         But that is necessary only if you want to enable the
49136         optimization for AFS, and for now, I don't.
49137
49138         fts: move a function definition "up" (no semantic change)
49139         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49140         "up" to precede upcoming use of a related function.
49141
49142 2009-02-11  Jim Meyering  <meyering@redhat.com>
49143
49144         fts: correct internal computation of nlinks (optimization-related)
49145         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49146         whether the current entry is a directory, so don't test it.
49147
49148 2009-02-10  Bruno Haible  <bruno@clisp.org>
49149
49150         Tests for module 'uniwbrk/ulc-wordbreaks'.
49151         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49152         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49153         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49154
49155         Tests for module 'uniwbrk/u32-wordbreaks'.
49156         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49157         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49158
49159         Tests for module 'uniwbrk/u16-wordbreaks'.
49160         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49161         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49162
49163         Tests for module 'uniwbrk/u8-wordbreaks'.
49164         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49165         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49166
49167 2009-02-10  Bruno Haible  <bruno@clisp.org>
49168
49169         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49170         property.
49171         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49172         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49173         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49174
49175 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49176
49177         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49178         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49179
49180 2009-02-10  Bruno Haible  <bruno@clisp.org>
49181
49182         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49183         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49184         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49185         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49186         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49187         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49188
49189 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49190
49191         * lib/sockets.h (gl_fd_to_handle): New function.
49192
49193         * tests/test-sockets.c: Call gl_fd_to_handle.
49194
49195 2009-02-09  Bruno Haible  <bruno@clisp.org>
49196
49197         * doc/havelib.texi: Document the conventions on bi-arch systems.
49198
49199 2009-02-08  Bruno Haible  <bruno@clisp.org>
49200
49201         Document the AC_LIB_LINKFLAGS macro.
49202         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49203         * doc/gnulib.texi: Include it.
49204
49205 2009-02-08  Bruno Haible  <bruno@clisp.org>
49206
49207         Fix wrong order of sections, compared to TOC.
49208         * doc/gnulib.texi: Include relocatable-maint.texi after the
49209         "Regular expressions" node, not before.
49210
49211 2009-02-08  Bruno Haible  <bruno@clisp.org>
49212
49213         Tests for module 'unicase/totitle'.
49214         * modules/unicase/totitle-tests: New file.
49215
49216         Tests for module 'unicase/tolower'.
49217         * modules/unicase/tolower-tests: New file.
49218
49219         Tests for module 'unicase/toupper'.
49220         * modules/unicase/toupper-tests: New file.
49221         * tests/unicase/test-mapping-part1.h: New file.
49222         * tests/unicase/test-mapping-part2.h: New file.
49223
49224         New module 'unicase/totitle'.
49225         * modules/unicase/totitle: New file.
49226         * lib/unicase/totitle.c: New file.
49227
49228         New module 'unicase/tolower'.
49229         * modules/unicase/tolower: New file.
49230         * lib/unicase/tolower.c: New file.
49231
49232         New module 'unicase/toupper'.
49233         * modules/unicase/toupper: New file.
49234         * lib/unicase/toupper.c: New file.
49235         * lib/unicase/simple-mapping.h: New file.
49236
49237         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49238         (mapping_table): New structure.
49239         (output_simple_mapping): New function.
49240         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49241         * modules/gen-uni-tables (Description): Update.
49242         * lib/unicase/toupper.h: New file, automatically generated by
49243         gen-uni-tables.
49244         * lib/unicase/tolower.h: New file, automatically generated by
49245         gen-uni-tables.
49246         * lib/unicase/totitle.h: New file, automatically generated by
49247         gen-uni-tables.
49248         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49249         gen-uni-tables.
49250         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49251         gen-uni-tables.
49252         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49253         gen-uni-tables.
49254
49255         New module 'unicase/base'.
49256         * modules/unicase/base: New file.
49257         * lib/unicase.h: New file.
49258
49259 2009-02-08  Bruno Haible  <bruno@clisp.org>
49260
49261         New module 'uniwbrk/ulc-wordbreaks'.
49262         * modules/uniwbrk/ulc-wordbreaks: New file.
49263         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49264
49265         New module 'uniwbrk/u32-wordbreaks'.
49266         * modules/uniwbrk/u32-wordbreaks: New file.
49267         * lib/uniwbrk/u32-wordbreaks.c: New file.
49268
49269         New module 'uniwbrk/u16-wordbreaks'.
49270         * modules/uniwbrk/u16-wordbreaks: New file.
49271         * lib/uniwbrk/u16-wordbreaks.c: New file.
49272
49273         New module 'uniwbrk/u8-wordbreaks'.
49274         * modules/uniwbrk/u8-wordbreaks: New file.
49275         * lib/uniwbrk/u8-wordbreaks.c: New file.
49276         * lib/uniwbrk/u-wordbreaks.h: New file.
49277
49278         New module 'uniwbrk/table'.
49279         * modules/uniwbrk/table: New file.
49280         * lib/uniwbrk/wbrktable.h: New file.
49281         * lib/uniwbrk/wbrktable.c: New file.
49282
49283         New module 'uniwbrk/wordbreak-property'.
49284         * modules/uniwbrk/wordbreak-property: New file.
49285         * lib/uniwbrk/wordbreak-property.c: New file.
49286
49287         * lib/gen-uni-tables.c (WBP_*): New enum items.
49288         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49289         (unicode_org_wbp): New variable.
49290         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49291         New functions.
49292         (wbp_table): New structure.
49293         (output_wbp, output_wbrk_tables): New functions.
49294         (main): Accept additional argument. Invoke fill_org_wbp,
49295         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49296         output_wbrk_tables.
49297         * modules/gen-uni-tables (Description): Update.
49298         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49299         gen-uni-tables.
49300
49301         New module 'uniwbrk/base'.
49302         * modules/uniwbrk/base: New file.
49303         * lib/uniwbrk.h: New file.
49304
49305 2009-02-08  Bruno Haible  <bruno@clisp.org>
49306
49307         Update to Unicode 5.1.0.
49308         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49309         U+2185..U+2188.
49310         (is_property_default_ignorable_code_point): Don't include characters
49311         of category Cc or Cs and not-a-characters.
49312         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49313         U+0D79, U+109E, U+109F, U+A60C.
49314         * lib/unictype/bidi_of.h: Regenerated.
49315         * lib/unictype/blocks.h: Regenerated.
49316         * lib/unictype/categ_C.h: Regenerated.
49317         * lib/unictype/categ_Cf.h: Regenerated.
49318         * lib/unictype/categ_Cn.h: Regenerated.
49319         * lib/unictype/categ_L.h: Regenerated.
49320         * lib/unictype/categ_Ll.h: Regenerated.
49321         * lib/unictype/categ_Lm.h: Regenerated.
49322         * lib/unictype/categ_Lo.h: Regenerated.
49323         * lib/unictype/categ_Lu.h: Regenerated.
49324         * lib/unictype/categ_M.h: Regenerated.
49325         * lib/unictype/categ_Mc.h: Regenerated.
49326         * lib/unictype/categ_Me.h: Regenerated.
49327         * lib/unictype/categ_Mn.h: Regenerated.
49328         * lib/unictype/categ_N.h: Regenerated.
49329         * lib/unictype/categ_Nd.h: Regenerated.
49330         * lib/unictype/categ_Nl.h: Regenerated.
49331         * lib/unictype/categ_No.h: Regenerated.
49332         * lib/unictype/categ_P.h: Regenerated.
49333         * lib/unictype/categ_Pd.h: Regenerated.
49334         * lib/unictype/categ_Pe.h: Regenerated.
49335         * lib/unictype/categ_Pf.h: Regenerated.
49336         * lib/unictype/categ_Pi.h: Regenerated.
49337         * lib/unictype/categ_Po.h: Regenerated.
49338         * lib/unictype/categ_Ps.h: Regenerated.
49339         * lib/unictype/categ_S.h: Regenerated.
49340         * lib/unictype/categ_Sk.h: Regenerated.
49341         * lib/unictype/categ_Sm.h: Regenerated.
49342         * lib/unictype/categ_So.h: Regenerated.
49343         * lib/unictype/categ_of.h: Regenerated.
49344         * lib/unictype/combining.h: Regenerated.
49345         * lib/unictype/ctype_alnum.h: Regenerated.
49346         * lib/unictype/ctype_alpha.h: Regenerated.
49347         * lib/unictype/ctype_graph.h: Regenerated.
49348         * lib/unictype/ctype_lower.h: Regenerated.
49349         * lib/unictype/ctype_print.h: Regenerated.
49350         * lib/unictype/ctype_punct.h: Regenerated.
49351         * lib/unictype/ctype_upper.h: Regenerated.
49352         * lib/unictype/decdigit.h: Regenerated.
49353         * lib/unictype/digit.h: Regenerated.
49354         * lib/unictype/mirror.h: Regenerated.
49355         * lib/unictype/numeric.h: Regenerated.
49356         * lib/unictype/pr_alphabetic.h: Regenerated.
49357         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49358         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49359         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49360         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49361         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49362         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49363         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49364         * lib/unictype/pr_combining.h: Regenerated.
49365         * lib/unictype/pr_dash.h: Regenerated.
49366         * lib/unictype/pr_decimal_digit.h: Regenerated.
49367         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49368         * lib/unictype/pr_deprecated.h: Regenerated.
49369         * lib/unictype/pr_diacritic.h: Regenerated.
49370         * lib/unictype/pr_extender.h: Regenerated.
49371         * lib/unictype/pr_format_control.h: Regenerated.
49372         * lib/unictype/pr_grapheme_base.h: Regenerated.
49373         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49374         * lib/unictype/pr_grapheme_link.h: Regenerated.
49375         * lib/unictype/pr_id_continue.h: Regenerated.
49376         * lib/unictype/pr_id_start.h: Regenerated.
49377         * lib/unictype/pr_ideographic.h: Regenerated.
49378         * lib/unictype/pr_ignorable_control.h: Regenerated.
49379         * lib/unictype/pr_lowercase.h: Regenerated.
49380         * lib/unictype/pr_math.h: Regenerated.
49381         * lib/unictype/pr_numeric.h: Regenerated.
49382         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49383         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49384         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49385         * lib/unictype/pr_other_id_continue.h: Regenerated.
49386         * lib/unictype/pr_other_lowercase.h: Regenerated.
49387         * lib/unictype/pr_other_math.h: Regenerated.
49388         * lib/unictype/pr_punctuation.h: Regenerated.
49389         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49390         * lib/unictype/pr_soft_dotted.h: Regenerated.
49391         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49392         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49393         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49394         * lib/unictype/pr_uppercase.h: Regenerated.
49395         * lib/unictype/pr_xid_continue.h: Regenerated.
49396         * lib/unictype/pr_xid_start.h: Regenerated.
49397         * lib/unictype/pr_zero_width.h: Regenerated.
49398         * lib/unictype/scripts.h: Regenerated.
49399         * lib/unictype/scripts_byname.gperf: Regenerated.
49400         * lib/unictype/sy_java_ident.h: Regenerated.
49401         * lib/unilbrk/lbrkprop1.h: Regenerated.
49402         * lib/unilbrk/lbrkprop2.h: Regenerated.
49403         * tests/unictype/test-categ_C.c: Regenerated.
49404         * tests/unictype/test-categ_Cf.c: Regenerated.
49405         * tests/unictype/test-categ_Cn.c: Regenerated.
49406         * tests/unictype/test-categ_L.c: Regenerated.
49407         * tests/unictype/test-categ_Ll.c: Regenerated.
49408         * tests/unictype/test-categ_Lm.c: Regenerated.
49409         * tests/unictype/test-categ_Lo.c: Regenerated.
49410         * tests/unictype/test-categ_Lu.c: Regenerated.
49411         * tests/unictype/test-categ_M.c: Regenerated.
49412         * tests/unictype/test-categ_Mc.c: Regenerated.
49413         * tests/unictype/test-categ_Me.c: Regenerated.
49414         * tests/unictype/test-categ_Mn.c: Regenerated.
49415         * tests/unictype/test-categ_N.c: Regenerated.
49416         * tests/unictype/test-categ_Nd.c: Regenerated.
49417         * tests/unictype/test-categ_Nl.c: Regenerated.
49418         * tests/unictype/test-categ_No.c: Regenerated.
49419         * tests/unictype/test-categ_P.c: Regenerated.
49420         * tests/unictype/test-categ_Pd.c: Regenerated.
49421         * tests/unictype/test-categ_Pe.c: Regenerated.
49422         * tests/unictype/test-categ_Pf.c: Regenerated.
49423         * tests/unictype/test-categ_Pi.c: Regenerated.
49424         * tests/unictype/test-categ_Po.c: Regenerated.
49425         * tests/unictype/test-categ_Ps.c: Regenerated.
49426         * tests/unictype/test-categ_S.c: Regenerated.
49427         * tests/unictype/test-categ_Sk.c: Regenerated.
49428         * tests/unictype/test-categ_Sm.c: Regenerated.
49429         * tests/unictype/test-categ_So.c: Regenerated.
49430         * tests/unictype/test-ctype_alnum.c: Regenerated.
49431         * tests/unictype/test-ctype_alpha.c: Regenerated.
49432         * tests/unictype/test-ctype_graph.c: Regenerated.
49433         * tests/unictype/test-ctype_lower.c: Regenerated.
49434         * tests/unictype/test-ctype_print.c: Regenerated.
49435         * tests/unictype/test-ctype_punct.c: Regenerated.
49436         * tests/unictype/test-ctype_upper.c: Regenerated.
49437         * tests/unictype/test-decdigit.h: Regenerated.
49438         * tests/unictype/test-digit.h: Regenerated.
49439         * tests/unictype/test-numeric.h: Regenerated.
49440         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49441         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49442         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49443         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49444         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49445         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49446         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49447         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49448         * tests/unictype/test-pr_combining.c: Regenerated.
49449         * tests/unictype/test-pr_dash.c: Regenerated.
49450         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49451         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49452         * tests/unictype/test-pr_deprecated.c: Regenerated.
49453         * tests/unictype/test-pr_diacritic.c: Regenerated.
49454         * tests/unictype/test-pr_extender.c: Regenerated.
49455         * tests/unictype/test-pr_format_control.c: Regenerated.
49456         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49457         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49458         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49459         * tests/unictype/test-pr_id_continue.c: Regenerated.
49460         * tests/unictype/test-pr_id_start.c: Regenerated.
49461         * tests/unictype/test-pr_ideographic.c: Regenerated.
49462         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49463         * tests/unictype/test-pr_lowercase.c: Regenerated.
49464         * tests/unictype/test-pr_math.c: Regenerated.
49465         * tests/unictype/test-pr_numeric.c: Regenerated.
49466         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49467         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49468         Regenerated.
49469         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49470         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49471         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49472         * tests/unictype/test-pr_other_math.c: Regenerated.
49473         * tests/unictype/test-pr_punctuation.c: Regenerated.
49474         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49475         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49476         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49477         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49478         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49479         * tests/unictype/test-pr_uppercase.c: Regenerated.
49480         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49481         * tests/unictype/test-pr_xid_start.c: Regenerated.
49482         * tests/unictype/test-pr_zero_width.c: Regenerated.
49483
49484         Update to Unicode 5.1.0.
49485         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49486         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49487         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49488         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49489         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49490         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49491         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49492         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49493         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49494         (nonspacing_table_ind): Update.
49495         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49496
49497         Update to Unicode 5.1.0.
49498         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49499         code transform.
49500         * lib/uniname/uniname.c (unicode_character_name,
49501         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49502         * lib/uniname/uninames.h: Regenerated.
49503         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49504
49505 2009-02-07  Bruno Haible  <bruno@clisp.org>
49506
49507         Merge gen-ctype and gen-lbrk into a single program.
49508         * lib/gen-uni-tables.c: New file, incorporating
49509         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49510         Add directory prefixes to the names of the generated files.
49511         * lib/unictype/gen-ctype.c: Remove file.
49512         * lib/unilbrk/gen-lbrk.c: Remove file.
49513         * modules/gen-uni-tables: New file.
49514         * modules/unictype/gen-ctype: Remove file.
49515         * modules/unilbrk/gen-lbrk: Remove file.
49516
49517 2009-02-07  Bruno Haible  <bruno@clisp.org>
49518
49519         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49520
49521         New module 'unistr/u32-strcoll'.
49522         * modules/unistr/u32-strcoll: New file.
49523         * lib/unistr/u32-strcoll.c: New file.
49524
49525         New module 'unistr/u16-strcoll'.
49526         * modules/unistr/u16-strcoll: New file.
49527         * lib/unistr/u16-strcoll.c: New file.
49528
49529         New module 'unistr/u8-strcoll'.
49530         * modules/unistr/u8-strcoll: New file.
49531         * lib/unistr/u8-strcoll.c: New file.
49532         * lib/unistr/u-strcoll.h: New file.
49533
49534 2009-02-07  Bruno Haible  <bruno@clisp.org>
49535
49536         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
49537         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49538         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49539         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
49540         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
49541         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
49542
49543 2009-02-07  Bruno Haible  <bruno@clisp.org>
49544
49545         Make 64-bit clean.
49546         * lib/unictype/gen-ctype.c (output_predicate, output_category,
49547         output_combclass, output_bidi_category, output_decimal_digit,
49548         output_digit, output_numeric, output_mirror, output_scripts,
49549         output_ident_category): Use proper width specifier in format strings.
49550
49551 2009-02-07  Bruno Haible  <bruno@clisp.org>
49552
49553         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
49554         failure behaviour.
49555
49556 2009-02-07  Jim Meyering  <meyering@redhat.com>
49557
49558         regex: avoid compilation failure with upcoming gcc-4.4
49559         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
49560         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
49561         "... error: integer overflow in preprocessor expression".
49562
49563 2009-02-05  Ben Pfaff  <blp@gnu.org>
49564
49565         Fix link errors on Windows when close module is used.
49566         * modules/close: Add $(LIB_CLOSE) to Link section.
49567         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
49568         $(LIB_CLOSE) on Windows.
49569
49570 2009-02-05  Jim Meyering  <meyering@redhat.com>
49571
49572         still avoid unused-parameter warnings, but do it cleanly
49573         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
49574         (get_fs_usage): Cast to void instead.
49575         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
49576         (dev_from_mount_options, read_file_system_list): Cast to void.
49577         Prompted by Bruno Haible.
49578
49579 2009-02-04  Jim Meyering  <meyering@redhat.com>
49580
49581         fsusage.c: correct copyright year
49582         * lib/fsusage.c: Reflect year in which the change is pushed into
49583
49584         avoid misc. warnings
49585         * lib/fsusage.c (UNUSED_PARAM): Define.
49586         (get_fs_usage): Mark parameter "disk" as unused.
49587         * lib/getugroups.c (getgrent): Use "void" in prototype.
49588         * lib/mountlist.c: Mark unused parameters.
49589         (read_file_system_list): Declare a local with "const".
49590         * lib/nanosleep.c (getnow): Declare static.
49591         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
49592
49593         dirfd: set errno upon failure
49594         * lib/dirfd.c: Include <errno.h>.
49595         Set errno to ENOTSUP when returning -1.
49596         * modules/dirfd (Depends-on): Add errno.
49597         Suggested by John Kodis <kodis@comcast.net>.
49598
49599 2009-02-01  Bruno Haible  <bruno@clisp.org>
49600
49601         Don't assume sizeof (long) >= sizeof (void *).
49602         * lib/memcmp.c: Include stdint.h.
49603         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
49604         srcp2 to 'const byte *'.
49605         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
49606         types to uintptr_t.
49607         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
49608         * modules/memcmp (Depends-on): Add stdint.
49609         Reported by Ozkan Sezer <sezeroz@gmail.com>.
49610
49611 2009-01-30  Eric Blake  <ebb9@byu.net>
49612
49613         fix more require-before-expand issues
49614         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
49615         expand, AC_PROG_AWK.
49616         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
49617
49618 2009-01-28  Eric Blake  <ebb9@byu.net>
49619
49620         version-etc: use consistent URL formatting
49621         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
49622         Improve formatting.  Use fputs for string without %.
49623
49624 2009-01-28  Jim Meyering  <meyering@redhat.com>
49625
49626         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
49627         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
49628         "underquoted definition of NAME" from autoconf-2.59.
49629
49630 2009-01-28  Bruno Haible  <bruno@clisp.org>
49631
49632         * doc/gnulib.texi: Add "Obsolete modules" to index.
49633
49634 2009-01-28  Jim Meyering  <meyering@redhat.com>
49635
49636         useless-if-before-free: recognize more variants
49637         * build-aux/useless-if-before-free: Also recognize e.g.,
49638         if (NULL != p) free (p);
49639
49640 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
49641
49642         test-getaddrinfo: skip (don't fail) this test when there's no network
49643         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
49644         on the presumption that it means you lack network access.
49645
49646 2009-01-26  Jim Meyering  <meyering@redhat.com>
49647
49648         fflush: avoid warnings on modern systems
49649         * lib/fflush.c (rpl_fflush): Move declarations of locals,
49650         pos and result, into scopes where they're used.
49651
49652 2009-01-26  Eric Blake  <ebb9@byu.net>
49653
49654         Silence warning reintroduced by recent extensions patch.
49655         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
49656         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
49657         autoconf.
49658
49659         Backport improved autoconf semantics of AC_DEFUN_ONCE.
49660         * m4/00gnulib.m4: New file.
49661         * gnulib-tool (func_get_filelist): Always use it.
49662         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
49663         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
49664
49665 2009-01-25  Bruno Haible  <bruno@clisp.org>
49666
49667         Make test-quotearg work on MacOS X and AIX.
49668         * tests/test-quotearg.sh: New file.
49669         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
49670         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
49671         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
49672         include <libintl.h>.
49673         (fake_locale): Remove variable.
49674         (gettext, dgettext, dcgettext): Remove functions.
49675         (main): Instead of setting a fake locale, set a real locale. Call
49676         textdomain and bindtextdomain.
49677         * modules/quotearg-tests (Files): Add the new files.
49678         (Depends-on): Add gettext, setenv, unsetenv.
49679         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49680         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
49681         Augment TESTS_ENVIRONMENT.
49682
49683 2009-01-25  Bruno Haible  <bruno@clisp.org>
49684
49685         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
49686         fr_FR.ISO8859-1 locale on MacOS X.
49687         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
49688         ja_JP.eucJP locale on MacOS X.
49689         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
49690         zh_CN.GB18030 locale on MacOS X.
49691
49692 2009-01-25  Bruno Haible  <bruno@clisp.org>
49693
49694         Avoid link errors on MacOS X 10.3.
49695         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
49696         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49697
49698 2009-01-25  Bruno Haible  <bruno@clisp.org>
49699
49700         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49701         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
49702         * modules/pipe (Files): Remove m4/posix_spawn.m4.
49703         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49704         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
49705         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49706         posix_spawnattr_init, posix_spawnattr_setsigmask,
49707         posix_spawnattr_setflags, posix_spawnattr_destroy.
49708
49709         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49710         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
49711         * modules/execute (Files): Remove m4/posix_spawn.m4.
49712         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49713         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49714         posix_spawnattr_init, posix_spawnattr_setsigmask,
49715         posix_spawnattr_setflags, posix_spawnattr_destroy.
49716
49717 2009-01-25  Bruno Haible  <bruno@clisp.org>
49718
49719         * lib/glthread/threadlib.c: Include <stdlib.h>.
49720
49721 2009-01-25  Bruno Haible  <bruno@clisp.org>
49722
49723         * lib/glthread/threadlib.c (dummy): New declaration.
49724
49725 2009-01-25  Bruno Haible  <bruno@clisp.org>
49726
49727         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
49728         multibyte characters also for the GB18030 encoding. Don't crash when
49729         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
49730
49731 2009-01-25  Bruno Haible  <bruno@clisp.org>
49732
49733         Avoid redefining 'struct random_data' on OSF/1 5.1.
49734         * lib/stdlib.in.h: Include <random.h> if it exists.
49735         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
49736         HAVE_RANDOM_H. Include <random.h> when testing whether
49737         'struct random_data' exists.
49738         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
49739
49740 2009-01-25  Bruno Haible  <bruno@clisp.org>
49741
49742         Don't install charset.alias on MacOS X >= 10.3.
49743         * lib/localcharset.c (DARWIN7): New macro.
49744         (get_charset_aliases): Hardcode the result for Darwin7.
49745         * modules/localcharset (install-exec-local): Don't install
49746         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
49747
49748 2009-01-25  Bruno Haible  <bruno@clisp.org>
49749
49750         Don't install charset.alias on mingw and Cygwin.
49751         * modules/localcharset (install-exec-local): Don't install
49752         charset.alias on mingw and Cygwin, if the file does not yet exist.
49753         The result for these platforms is hardcoded in localcharset.c.
49754
49755 2009-01-25  Bruno Haible  <bruno@clisp.org>
49756
49757         Make it possible again to use AC_GNU_SOURCE together with gnulib.
49758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
49759         before requiring AC_USE_SYSTEM_EXTENSIONS.
49760
49761 2009-01-25  Jim Meyering  <meyering@redhat.com>
49762
49763         c-strtod: avoid warnings
49764         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
49765         "assignment discards qualifiers from pointer target type" warnings.
49766
49767 2009-01-24  Bruno Haible  <bruno@clisp.org>
49768
49769         Add support for non-UTF-8 locales on MacOS X.
49770         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
49771         canonical encodings. For Darwin 7 and newer, don't map traditional
49772         encodings to UTF-8.
49773         Reported by Vincent Lefevre <vincent@vinc17.org>
49774         at <http://savannah.gnu.org/bugs/?25235>.
49775
49776 2009-01-24  Bruno Haible  <bruno@clisp.org>
49777
49778         * doc/gnulib.texi (Obsolete modules): New section.
49779         Reported by Mike Frysinger <vapier@gentoo.org>.
49780
49781 2009-01-24  Bruno Haible  <bruno@clisp.org>
49782
49783         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
49784         (%.dvi): New rule.
49785
49786 2009-01-24  Bruno Haible  <bruno@clisp.org>
49787
49788         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
49789         Reported by Eric Blake.
49790
49791 2009-01-24  Bruno Haible  <bruno@clisp.org>
49792
49793         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
49794         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
49795         Reported by Gary V. Vaughan <gary@gnu.org>.
49796
49797 2009-01-24  Bruno Haible  <bruno@clisp.org>
49798
49799         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
49800
49801 2009-01-23  Bruno Haible  <bruno@clisp.org>
49802
49803         Make c-strtod, c-strtold usable in libraries.
49804         * lib/c-strtod.c: Include string.h instead of xalloc.h.
49805         (C_STRTOD): Call strdup instead of xstrdup.
49806         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
49807         * modules/c-strtold (Depends-on): Likewise.
49808         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
49809         * NEWS: Mention the change.
49810         Reported by Michael Gold <mgold@ncf.ca>.
49811
49812 2009-01-23  Jim Meyering  <meyering@redhat.com>
49813
49814         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
49815         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
49816         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
49817
49818 2009-01-23  Simon Josefsson  <simon@josefsson.org>
49819
49820         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
49821         GNU CoreUtils.
49822         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
49823         * modules/version-etc (Description): Update.
49824
49825 2009-01-22  Bruno Haible  <bruno@clisp.org>
49826
49827         Cache the C locale object.
49828         * lib/c-strtod.c (c_locale_cache): New variable.
49829         (c_locale): New function.
49830         (C_STRTOD): Use it, and don't call freelocale.
49831         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
49832         Suggested by Paolo Bonzini.
49833
49834 2009-01-21  Bruno Haible  <bruno@clisp.org>
49835
49836         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
49837         conditions other than overflow.
49838
49839 2009-01-21  Bruno Haible  <bruno@clisp.org>
49840
49841         * lib/c-strtod.c: Include errno.h.
49842         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
49843         value from STRTOD_L and STRTOD.
49844
49845 2009-01-21  Bruno Haible  <bruno@clisp.org>
49846         and Jim Meyering  <meyering@redhat.com>
49847
49848         nanosleep: skip configure test (fail it) for apple universal builds
49849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
49850         universal builds, assume that nanosleep does not work.
49851         * modules/nanosleep (Depends-on): Add multiarch.
49852
49853         mktime: skip configure test (fail it) for apple universal builds
49854         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
49855         universal builds, assume that mktime does not work.
49856         * modules/mktime (Depends-on): Add multiarch.
49857
49858 2009-01-21  Eric Blake  <ebb9@byu.net>
49859
49860         multiarch: avoid expand-before-require warning
49861         * modules/multiarch (configure.ac): Require, rather than expand,
49862         gl_MULTIARCH.
49863         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
49864         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
49865         enforce that all clients require it.  Partial reversion of
49866         2008-12-29 patch.
49867
49868         error: avoid expand-before-require warning
49869         * modules/errno (configure.ac): Require, rather than expand,
49870         gl_HEADER_ERRNO_H.
49871         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
49872         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
49873         enforce that all clients require it.
49874
49875         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
49876         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
49877         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
49878         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
49879
49880 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
49881
49882         Revert:
49883         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49884
49885         regex: do not depend on obsolete modules.
49886         * modules/regex: Remove memcmp and memmove.
49887
49888 2009-01-20  Bruno Haible  <bruno@clisp.org>
49889
49890         Make the 'link' module link on Windows NT 4.
49891         * lib/link.c (_WIN32_WINNT): Don't define.
49892         (CreateHardLinkFuncType): New type.
49893         (CreateHardLinkFunc, initialized): New variables.
49894         (initialize): New function.
49895         (link): Invoke CreateHardLink indirectly through the function pointer.
49896
49897 2009-01-20  Bruno Haible  <bruno@clisp.org>
49898
49899         Fix compilation failure on mingw.
49900         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
49901
49902 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
49903
49904         * doc/c-strtod.texi: Mention a couple of restrictions.
49905
49906 2009-01-20  Jim Meyering  <meyering@redhat.com>
49907
49908         gettimeofday: move more declarations out of functions
49909         * lib/gettimeofday.c: Move extern declarations of tzset and
49910         gmtime out of containing functions.  Prompted by Bruno Haible.
49911
49912 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49913
49914         regex: do not depend on obsolete modules.
49915         * modules/regex: Remove memcmp and memmove.
49916
49917 2009-01-19  Bruno Haible  <bruno@clisp.org>
49918
49919         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49920         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
49921         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49922         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
49923         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
49924
49925 2009-01-19  Bruno Haible  <bruno@clisp.org>
49926
49927         * tests/test-link.c: Include <errno.h>.
49928         (main): Exit with code 77 when a hard link cannot be created due to
49929         the file system.
49930         * tests/test-link.sh: Skip test when a hard link cannot be created due
49931         to the file system.
49932         Suggested by Eric Blake.
49933
49934 2009-01-19  Martin Lambers  <marlam@marlam.de>
49935
49936         * modules/link-tests: New file.
49937         * tests/test-link.sh: New file.
49938         * tests/test-link.c: New file.
49939
49940 2009-01-19  Eric Blake  <ebb9@byu.net>
49941
49942         doc: mention another function added in cygwin 1.7.0
49943         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
49944         Another new function in cygwin 1.7.
49945
49946 2009-01-19  Bruno Haible  <bruno@clisp.org>
49947
49948         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49949         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
49950         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
49951         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49952         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
49953         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
49954         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49955         * m4/md4.m4 (gl_MD4): Likewise.
49956         * m4/md5.m4 (gl_MD5): Likewise.
49957         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
49958         * m4/sha1.m4 (gl_SHA1): Likewise.
49959         * m4/sha256.m4 (gl_SHA256): Likewise.
49960         * m4/sha512.m4 (gl_SHA512): Likewise.
49961
49962 2009-01-19  Bruno Haible  <bruno@clisp.org>
49963
49964         * modules/uniname/uniname-tests (Depends-on): Add progname.
49965         * tests/uniname/test-uninames.c: Include progname.h.
49966         (main): Call set_program_name.
49967
49968         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
49969         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
49970         (main): Call set_program_name.
49971
49972         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
49973         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
49974         (main): Call set_program_name.
49975
49976         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
49977         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
49978         (main): Call set_program_name.
49979
49980         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
49981         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
49982         (main): Call set_program_name.
49983
49984         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
49985         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
49986         (main): Call set_program_name.
49987
49988         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
49989         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
49990         (main): Call set_program_name.
49991
49992         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
49993         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
49994         (main): Call set_program_name.
49995
49996         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
49997         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
49998         (main): Call set_program_name.
49999
50000 2009-01-19  Eric Blake  <ebb9@byu.net>
50001
50002         test-unistd: test previous patch
50003         * tests/test-unistd.c: Test *_FILENO macros.
50004
50005         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50006         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50007         Guarantee a definition.
50008         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50009         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50010         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50011         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50012         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50013         Likewise.
50014         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50015         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50016         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50017         Likewise.
50018         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50019         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50020         (STDERR_FILENO): Likewise.
50021         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50022         (STDERR_FILENO): Likewise.
50023         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50024         (STDERR_FILENO): Likewise.
50025         Reported by Elbert Pol.
50026
50027 2009-01-19  Eric Blake  <ebb9@byu.net>
50028
50029         doc: mention more functions added in cygwin 1.7.0
50030         * doc/posix-functions/abort.texi (abort): Update wording related
50031         to cygwin.
50032         * doc/posix-functions/daylight.texi (daylight): Likewise.
50033         * doc/posix-functions/optarg.texi (optarg): Likewise.
50034         * doc/posix-functions/optarg.texi (opterr): Likewise.
50035         * doc/posix-functions/optarg.texi (optind): Likewise.
50036         * doc/posix-functions/optarg.texi (optopt): Likewise.
50037         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50038         worked in 1.5.x, and was withdrawn in 1.7.
50039         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50040         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50041         cygwin versions.
50042         * doc/posix-functions/perror.texi (perror): Likewise.
50043         * doc/posix-functions/printf.texi (printf): Likewise.
50044         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50045         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50046         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50047         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50048         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50049         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50050         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50051         Likewise.
50052         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50053         Likewise.
50054         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50055         this function.
50056         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50057         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50058         Likewise.
50059         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50060         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50061         * doc/posix-functions/confstr.texi (confstr): Likewise.
50062         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50063         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50064         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50065         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50066         * doc/posix-functions/fputws.texi (fputws): Likewise.
50067         * doc/posix-functions/fwide.texi (fwide): Likewise.
50068         * doc/posix-functions/getwc.texi (getwc): Likewise.
50069         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50070         * doc/posix-functions/putwc.texi (putwc): Likewise.
50071         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50072         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50073         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50074         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50075         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50076         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50077         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50078         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50079         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50080         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50081         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50082
50083 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50084
50085         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50086         * lib/ioctl.c: Include <sys/ioctl.h>.
50087
50088 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50089
50090         * modules/getdate-tests (Depends-on): Add progname.
50091         * tests/test-getdate.c: Use progname module, to avoid link errors
50092         on non-glibc systems.
50093
50094 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50095
50096         * modules/filenamecat-tests (Depends-on): Add progname.
50097         * modules/fstrcmp-tests (Depends-on): Likewise.
50098
50099         * tests/test-filenamecat.c: Use progname module, to avoid link
50100         errors on non-glibc systems.
50101         * tests/test-fstrcmp.c: Likewise.
50102
50103 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50104
50105         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50106         * lib/gettimeofday.c: Move extern declaration out of function.
50107
50108 2009-01-18  Bruno Haible  <bruno@clisp.org>
50109
50110         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50111         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50112         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50113
50114 2009-01-18  Bruno Haible  <bruno@clisp.org>
50115
50116         * lib/strftime.c (MEMPCPY): Remove unused macro.
50117         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50118
50119 2009-01-18  Martin Lambers  <marlam@marlam.de>
50120
50121         New module 'link'.
50122         * lib/unistd.in.h (link): New declaration.
50123         * lib/link.c: New file.
50124         * m4/link.m4: New file.
50125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50126         HAVE_LINK.
50127         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50128         * modules/link: New file.
50129         * doc/posix-functions/link.texi: Mention the new module.
50130
50131 2009-01-18  Bruno Haible  <bruno@clisp.org>
50132
50133         * tests/test-avltree_list.c (main): Call set_program_name.
50134         * tests/test-avltree_oset.c (main): Likewise.
50135         * tests/test-obstack-printf.c: Include progname.h.
50136         (main): Call set_program_name.
50137         * tests/test-quotearg.c: Include progname.h.
50138         (main): Call set_program_name.
50139         * tests/test-xmemdup0.c: Include progname.h.
50140         (main): Call set_program_name.
50141
50142 2009-01-18  Bruno Haible  <bruno@clisp.org>
50143
50144         New module 'alphasort'.
50145         * lib/dirent.in.h (alphasort): New declaration.
50146         * lib/alphasort.c: New file, from glibc with modifications.
50147         * m4/alphasort.m4: New file.
50148         * modules/alphasort: New file.
50149         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50150         HAVE_ALPHASORT.
50151         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50152         HAVE_ALPHASORT.
50153         * doc/posix-functions/alphasort.texi: Mention the new module and the
50154         portability problems.
50155
50156 2009-01-18  Bruno Haible  <bruno@clisp.org>
50157
50158         New module 'scandir'.
50159         * lib/dirent.in.h (scandir): New declaration.
50160         * lib/scandir.c: New file, from glibc with modifications.
50161         * m4/scandir.m4: New file.
50162         * modules/scandir: New file.
50163         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50164         HAVE_SCANDIR.
50165         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50166         HAVE_SCANDIR.
50167         * doc/posix-functions/scandir.texi: Mention the new module and the
50168         portability problems.
50169
50170 2009-01-17  Bruno Haible  <bruno@clisp.org>
50171
50172         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50173         Update documentation.
50174         (func_remove_suffix): Escape all dots in the suffix. Update
50175         documentation.
50176         (func_filter_filelist): Update documentation.
50177         Reported by Ralf Wildenhues.
50178
50179 2009-01-17  Bruno Haible  <bruno@clisp.org>
50180
50181         * modules/dprintf-posix-tests: New file.
50182         * tests/test-dprintf-posix.sh: New file.
50183         * tests/test-dprintf-posix.c: New file.
50184
50185         New modules 'dprintf', 'dprintf-posix'.
50186         * lib/stdio.in.h (dprintf): New declaration.
50187         * lib/dprintf.c: New file.
50188         * m4/dprintf.m4: New file.
50189         * m4/dprintf-posix.m4: New file.
50190         * modules/dprintf: New file.
50191         * modules/dprintf-posix: New file.
50192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50193         HAVE_DPRINTF, REPLACE_DPRINTF.
50194         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50195         HAVE_DPRINTF, REPLACE_DPRINTF.
50196         * doc/posix-functions/dprintf.texi: Mention the new modules.
50197
50198 2009-01-17  Bruno Haible  <bruno@clisp.org>
50199
50200         * modules/vdprintf-posix-tests: New file.
50201         * tests/test-vdprintf-posix.sh: New file.
50202         * tests/test-vdprintf-posix.c: New file.
50203
50204         New modules 'vdprintf', 'vdprintf-posix'.
50205         * lib/stdio.in.h (vdprintf): New declaration.
50206         * lib/vdprintf.c: New file.
50207         * m4/vdprintf.m4: New file.
50208         * m4/vdprintf-posix.m4: New file.
50209         * modules/vdprintf: New file.
50210         * modules/vdprintf-posix: New file.
50211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50212         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50213         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50214         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50215         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50216
50217 2009-01-17  Bruno Haible  <bruno@clisp.org>
50218
50219         Fix replacement of fopen on mingw.
50220         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50221         mingw.
50222
50223 2009-01-17  Bruno Haible  <bruno@clisp.org>
50224
50225         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50226         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50227
50228 2009-01-17  Bruno Haible  <bruno@clisp.org>
50229
50230         Avoid test-fflush2.sh failure on mingw.
50231         * tests/test-fflush2.c: Include binary-io.h.
50232         (main): Put standard input into binary mode.
50233         * modules/fflush-tests (Depends-on): Add binary-io.
50234
50235 2009-01-17  Bruno Haible  <bruno@clisp.org>
50236
50237         * lib/wchar.in.h: In another particular situation, include only the
50238         system's <wchar.h> file.
50239         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50240         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50241         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50242
50243 2009-01-17  Bruno Haible  <bruno@clisp.org>
50244
50245         Support for stripping executables in --enable-relocatable.
50246         * build-aux/install-reloc: Expect one more argument, or an environment
50247         variable RELOC_STRIP_PROG. If set, strip the destination program and
50248         its wrapper.
50249         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50250         RELOC_STRIP_PROG.
50251         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50252         to set RELOCATABLE_STRIP.
50253         * NEWS: Mention the new Makefile requirement.
50254
50255 2009-01-17  Bruno Haible  <bruno@clisp.org>
50256
50257         * build-aux/install-reloc: Remove debugging information left over by
50258         C compiler on MacOS X.
50259
50260 2009-01-17  Bruno Haible  <bruno@clisp.org>
50261
50262         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50263         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50264         _NSGetExecutablePath.
50265
50266 2009-01-16  Jim Meyering  <meyering@redhat.com>
50267
50268         strerror: avoid warnings about discarding "const"
50269         * lib/strerror.c (rpl_strerror): Instead of returning a const
50270         string from each and every "case", use a variable, and add a single
50271         cast after the switch.
50272
50273 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50274
50275         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50276
50277 2009-01-16  Bruno Haible  <bruno@clisp.org>
50278
50279         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50280         array initializer syntax that also works in C++ mode.
50281         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50282
50283 2009-01-16  Jim Meyering  <meyering@redhat.com>
50284
50285         poll: suppress a warning
50286         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50287         to ignore "...unsigned expression < 0 is always false" warnings.
50288
50289 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50290
50291         poll: remove declarations of unused variables
50292         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50293         sockbuf and optlen.
50294
50295 2009-01-15  Bruno Haible  <bruno@clisp.org>
50296
50297         Make fflush-after-ungetc POSIX compliant on BSD systems.
50298         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50299         (clear_ungetc_buffer): Implement also for other systems.
50300         (rpl_fflush): On glibc systems, invoke
50301         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50302         clear_ungetc_buffer after fetching the stream's position, not before.
50303
50304 2009-01-15  Bruno Haible  <bruno@clisp.org>
50305
50306         Make fflush-after-ungetc POSIX compliant on glibc systems.
50307         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50308         after ungetc.
50309         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50310         (rpl_fflush): On glibc systems, simply call the system's fflush
50311         function after clearing the ungetc buffer.
50312         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50313         Instead, lseek only to the end of file, then use the system's fseeko
50314         for the rest. On glibc systems, reset the EOF indicator bit.
50315
50316 2009-01-15  Jim Meyering  <meyering@redhat.com>
50317
50318         openmp.m4: revert quote-adding change, for portability to older autoconf
50319         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50320         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50321         Simon Josefsson noticed the problem when using autoconf-2.61.
50322
50323 2009-01-15  Bruno Haible  <bruno@clisp.org>
50324
50325         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50326         * tests/test-fflush2.c (ASSERT): Always fail.
50327         (main): Add two tests for fflush() after ungetc(), taking into account
50328         the Austin Group's clarification.
50329         Suggested by Eric Blake.
50330
50331 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50332
50333         mktime.m4: remove K&R-style function prototypes
50334         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50335         for the Sun C++ compiler.
50336
50337 2009-01-14  Bruno Haible  <bruno@clisp.org>
50338
50339         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50340         while including <wchar.h>.
50341         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50342         the system's <wchar.h> file.
50343         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50344
50345 2009-01-14  Bruno Haible  <bruno@clisp.org>
50346
50347         * m4/csharp.m4: Don't mention gettext on the serial number line.
50348         * m4/csharpexec.m4: Likewise.
50349         * m4/eaccess.m4: Likewise.
50350         * m4/javaexec.m4: Likewise.
50351         * m4/sig_atomic_t.m4: Likewise.
50352         * m4/tmpdir.m4: Likewise.
50353         * m4/intldir.m4: Bump gettext version.
50354         * m4/lib-ld.m4: Likewise.
50355
50356 2009-01-14  Bruno Haible  <bruno@clisp.org>
50357
50358         * lib/progname.c (set_program_name): Add more comments.
50359         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50360
50361 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50362
50363         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50364         were sys/stat.h does not define it.
50365
50366 2009-01-14  Jim Meyering  <meyering@redhat.com>
50367
50368         many *.m4 files: improve m4 quoting
50369         99% of this change was performed by running the following commands:
50370         git ls-files | grep '\.m4$' | xargs perl -pi \
50371           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50372           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50373           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50374           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50375         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50376         The remainder were to add Copyright dates, increment serial numbers,
50377         undo some changes in comments, exclude m4/intl.m4, and add quotes
50378         around the "1" in ",1" where the unusual spacing prohibited the
50379         above regexps from doing the job.  For more details, see
50380         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50381         * m4/acl.m4: Modified.
50382         * m4/afs.m4: Likewise.
50383         * m4/alloca.m4: Likewise.
50384         * m4/argp.m4: Likewise.
50385         * m4/argz.m4: Likewise.
50386         * m4/atexit.m4: Likewise.
50387         * m4/bison-i18n.m4: Likewise.
50388         * m4/bison.m4: Likewise.
50389         * m4/byteswap.m4: Likewise.
50390         * m4/c-stack.m4: Likewise.
50391         * m4/c-strtod.m4: Likewise.
50392         * m4/calloc.m4: Likewise.
50393         * m4/canonicalize-lgpl.m4: Likewise.
50394         * m4/chown.m4: Likewise.
50395         * m4/clock_time.m4: Likewise.
50396         * m4/codeset.m4: Likewise.
50397         * m4/copy-file.m4: Likewise.
50398         * m4/csharp.m4: Likewise.
50399         * m4/csharpcomp.m4: Likewise.
50400         * m4/csharpexec.m4: Likewise.
50401         * m4/d-ino.m4: Likewise.
50402         * m4/d-type.m4: Likewise.
50403         * m4/dirfd.m4: Likewise.
50404         * m4/double-slash-root.m4: Likewise.
50405         * m4/eaccess.m4: Likewise.
50406         * m4/eealloc.m4: Likewise.
50407         * m4/environ.m4: Likewise.
50408         * m4/errno_h.m4: Likewise.
50409         * m4/euidaccess.m4: Likewise.
50410         * m4/execute.m4: Likewise.
50411         * m4/fatal-signal.m4: Likewise.
50412         * m4/fchdir.m4: Likewise.
50413         * m4/fcntl_h.m4: Likewise.
50414         * m4/fileblocks.m4: Likewise.
50415         * m4/filenamecat.m4: Likewise.
50416         * m4/findprog.m4: Likewise.
50417         * m4/flexmember.m4: Likewise.
50418         * m4/fnmatch.m4: Likewise.
50419         * m4/fopen.m4: Likewise.
50420         * m4/fpending.m4: Likewise.
50421         * m4/fprintf-posix.m4: Likewise.
50422         * m4/free.m4: Likewise.
50423         * m4/frexp.m4: Likewise.
50424         * m4/frexpl.m4: Likewise.
50425         * m4/fsusage.m4: Likewise.
50426         * m4/ftruncate.m4: Likewise.
50427         * m4/gc-camellia.m4: Likewise.
50428         * m4/gc-random.m4: Likewise.
50429         * m4/gc.m4: Likewise.
50430         * m4/getaddrinfo.m4: Likewise.
50431         * m4/getcwd-abort-bug.m4: Likewise.
50432         * m4/getcwd-path-max.m4: Likewise.
50433         * m4/getdate.m4: Likewise.
50434         * m4/getdomainname.m4: Likewise.
50435         * m4/getgroups.m4: Likewise.
50436         * m4/gethostname.m4: Likewise.
50437         * m4/gethrxtime.m4: Likewise.
50438         * m4/getline.m4: Likewise.
50439         * m4/getloadavg.m4: Likewise.
50440         * m4/getndelim2.m4: Likewise.
50441         * m4/getpass.m4: Likewise.
50442         * m4/gettext.m4: Likewise.
50443         * m4/gettime.m4: Likewise.
50444         * m4/gettimeofday.m4: Likewise.
50445         * m4/gnulib-common.m4: Likewise.
50446         * m4/group-member.m4: Likewise.
50447         * m4/host-os.m4: Likewise.
50448         * m4/iconv.m4: Likewise.
50449         * m4/iconv_open.m4: Likewise.
50450         * m4/inet_ntop.m4: Likewise.
50451         * m4/inet_pton.m4: Likewise.
50452         * m4/inline.m4: Likewise.
50453         * m4/intldir.m4: Likewise.
50454         * m4/intlmacosx.m4: Likewise.
50455         * m4/intmax.m4: Likewise.
50456         * m4/intmax_t.m4: Likewise.
50457         * m4/inttypes.m4: Likewise.
50458         * m4/inttypes_h.m4: Likewise.
50459         * m4/inttypes-pri.m4: Likewise.
50460         * m4/isapipe.m4: Likewise.
50461         * m4/isnand.m4: Likewise.
50462         * m4/isnanf.m4: Likewise.
50463         * m4/isnanl.m4: Likewise.
50464         * m4/javacomp.m4: Likewise.
50465         * m4/javaexec.m4: Likewise.
50466         * m4/jm-winsz1.m4: Likewise.
50467         * m4/jm-winsz2.m4: Likewise.
50468         * m4/lchown.m4: Likewise.
50469         * m4/lcmessage.m4: Likewise.
50470         * m4/ldexpl.m4: Likewise.
50471         * m4/lib-ld.m4: Likewise.
50472         * m4/lib-link.m4: Likewise.
50473         * m4/libsigsegv.m4: Likewise.
50474         * m4/link-follow.m4: Likewise.
50475         * m4/localcharset.m4: Likewise.
50476         * m4/locale-fr.m4: Likewise.
50477         * m4/locale-ja.m4: Likewise.
50478         * m4/locale-tr.m4: Likewise.
50479         * m4/locale-zh.m4: Likewise.
50480         * m4/lock.m4: Likewise.
50481         * m4/longlong.m4: Likewise.
50482         * m4/ls-mntd-fs.m4: Likewise.
50483         * m4/lstat.m4: Likewise.
50484         * m4/malloc.m4: Likewise.
50485         * m4/mathl.m4: Likewise.
50486         * m4/mbrtowc.m4: Likewise.
50487         * m4/mbstate_t.m4: Likewise.
50488         * m4/mbswidth.m4: Likewise.
50489         * m4/memchr.m4: Likewise.
50490         * m4/memcmp.m4: Likewise.
50491         * m4/memcpy.m4: Likewise.
50492         * m4/memmem.m4: Likewise.
50493         * m4/memmove.m4: Likewise.
50494         * m4/mempcpy.m4: Likewise.
50495         * m4/memrchr.m4: Likewise.
50496         * m4/memset.m4: Likewise.
50497         * m4/minmax.m4: Likewise.
50498         * m4/mkdir-slash.m4: Likewise.
50499         * m4/mkdtemp.m4: Likewise.
50500         * m4/mktime.m4: Likewise.
50501         * m4/mmap-anon.m4: Likewise.
50502         * m4/mountlist.m4: Likewise.
50503         * m4/nanosleep.m4: Likewise.
50504         * m4/nls.m4: Likewise.
50505         * m4/nocrash.m4: Likewise.
50506         * m4/open.m4: Likewise.
50507         * m4/openat.m4: Likewise.
50508         * m4/openmp.m4: Likewise.
50509         * m4/pathmax.m4: Likewise.
50510         * m4/perl.m4: Likewise.
50511         * m4/physmem.m4: Likewise.
50512         * m4/pipe.m4: Likewise.
50513         * m4/po.m4: Likewise.
50514         * m4/poll.m4: Likewise.
50515         * m4/posixtm.m4: Likewise.
50516         * m4/posixver.m4: Likewise.
50517         * m4/printf-frexp.m4: Likewise.
50518         * m4/printf-frexpl.m4: Likewise.
50519         * m4/printf-posix.m4: Likewise.
50520         * m4/printf-posix-rpl.m4: Likewise.
50521         * m4/printf.m4: Likewise.
50522         * m4/progtest.m4: Likewise.
50523         * m4/putenv.m4: Likewise.
50524         * m4/readline.m4: Likewise.
50525         * m4/readlink.m4: Likewise.
50526         * m4/readutmp.m4: Likewise.
50527         * m4/realloc.m4: Likewise.
50528         * m4/regex.m4: Likewise.
50529         * m4/relocatable.m4: Likewise.
50530         * m4/relocatable-lib.m4: Likewise.
50531         * m4/rename-dest-slash.m4: Likewise.
50532         * m4/rename.m4: Likewise.
50533         * m4/rmdir-errno.m4: Likewise.
50534         * m4/rmdir.m4: Likewise.
50535         * m4/roundf.m4: Likewise.
50536         * m4/roundl.m4: Likewise.
50537         * m4/rpmatch.m4: Likewise.
50538         * m4/save-cwd.m4: Likewise.
50539         * m4/selinux-selinux-h.m4: Likewise.
50540         * m4/setenv.m4: Likewise.
50541         * m4/settime.m4: Likewise.
50542         * m4/sig2str.m4: Likewise.
50543         * m4/sig_atomic_t.m4: Likewise.
50544         * m4/signalblocking.m4: Likewise.
50545         * m4/signbit.m4: Likewise.
50546         * m4/sigpipe.m4: Likewise.
50547         * m4/sockets.m4: Likewise.
50548         * m4/sockpfaf.m4: Likewise.
50549         * m4/st_dm_mode.m4: Likewise.
50550         * m4/stat-time.m4: Likewise.
50551         * m4/stdbool.m4: Likewise.
50552         * m4/stdint.m4: Likewise.
50553         * m4/stdint_h.m4: Likewise.
50554         * m4/stpcpy.m4: Likewise.
50555         * m4/stpncpy.m4: Likewise.
50556         * m4/strcase.m4: Likewise.
50557         * m4/strchrnul.m4: Likewise.
50558         * m4/strcspn.m4: Likewise.
50559         * m4/strdup.m4: Likewise.
50560         * m4/strftime.m4: Likewise.
50561         * m4/strndup.m4: Likewise.
50562         * m4/strnlen.m4: Likewise.
50563         * m4/strpbrk.m4: Likewise.
50564         * m4/strptime.m4: Likewise.
50565         * m4/strsep.m4: Likewise.
50566         * m4/strtod.m4: Likewise.
50567         * m4/strtoimax.m4: Likewise.
50568         * m4/strtok_r.m4: Likewise.
50569         * m4/strtol.m4: Likewise.
50570         * m4/strtoll.m4: Likewise.
50571         * m4/strtoul.m4: Likewise.
50572         * m4/strtoull.m4: Likewise.
50573         * m4/strtoumax.m4: Likewise.
50574         * m4/strverscmp.m4: Likewise.
50575         * m4/threadlib.m4: Likewise.
50576         * m4/timegm.m4: Likewise.
50577         * m4/tm_gmtoff.m4: Likewise.
50578         * m4/tmpdir.m4: Likewise.
50579         * m4/tmpfile.m4: Likewise.
50580         * m4/tzset.m4: Likewise.
50581         * m4/uintmax_t.m4: Likewise.
50582         * m4/unlinkdir.m4: Likewise.
50583         * m4/unlocked-io.m4: Likewise.
50584         * m4/uptime.m4: Likewise.
50585         * m4/userspec.m4: Likewise.
50586         * m4/utimbuf.m4: Likewise.
50587         * m4/utime.m4: Likewise.
50588         * m4/utimes-null.m4: Likewise.
50589         * m4/utimes.m4: Likewise.
50590         * m4/vararrays.m4: Likewise.
50591         * m4/vasnprintf.m4: Likewise.
50592         * m4/vfprintf-posix.m4: Likewise.
50593         * m4/vprintf-posix.m4: Likewise.
50594         * m4/wait-process.m4: Likewise.
50595         * m4/wchar_t.m4: Likewise.
50596         * m4/wint_t.m4: Likewise.
50597         * m4/write-any-file.m4: Likewise.
50598         * m4/yield.m4: Likewise.
50599
50600 2009-01-13  Bruno Haible  <bruno@clisp.org>
50601
50602         Avoid test-copy-file.sh failures when ACL support insufficient.
50603         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
50604         TESTS_ENVIRONMENT.
50605         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
50606         Reported by Jim Meyering.
50607
50608 2009-01-13  Bruno Haible  <bruno@clisp.org>
50609
50610         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
50611         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
50612         * modules/unistdio/u8-printf-parse (Files): Likewise.
50613         * modules/unistdio/u32-printf-parse (Files): Likewise.
50614         * modules/unistdio/ulc-printf-parse (Files): Likewise.
50615
50616 2009-01-13  Simon Josefsson  <simon@josefsson.org>
50617
50618         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
50619         and m4/inttypes_h.m4 too.
50620
50621 2009-01-12  Eric Blake  <ebb9@byu.net>
50622
50623         tests: IRIX 6.2 cc can't compile -0.0 into .data
50624         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
50625         rather than at compile-time.
50626         * tests/test-floorl.c (minus_zero): Likewise.
50627         * tests/test-frexpl.c (minus_zero): Likewise.
50628         * tests/test-isnan.c (minus_zerol): Likewise.
50629         * tests/test-isnanl.h (minus_zero): Likewise.
50630         * tests/test-ldexpl.c (minus_zero): Likewise.
50631         * tests/test-roundl.c (minus_zero): Likewise.
50632         * tests/test-signbit.c (minus_zerol): Likewise.
50633         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50634         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50635         * tests/test-truncl.c (minus_zero): Likewise.
50636         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50637         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50638         Reported by Tom G. Christensen and Nelson H. F. Beebe.
50639
50640 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50641
50642         regex: fix glibc bug 9697
50643         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
50644         handling.
50645
50646 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50647
50648         regex: fix glibc bug 697
50649         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
50650         being NULL also if there are no backreferences.
50651
50652 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50653
50654         regex: merge glibc changes
50655         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
50656         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
50657         re_string_skip_chars, re_string_reconstruct): Likewise.
50658         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
50659
50660 2009-01-07  Jim Meyering  <meyering@redhat.com>
50661
50662         poll: filter through cppi
50663         * lib/poll.c: Indent cpp directives to reflect nesting.
50664
50665 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
50666
50667         poll: don't return uninitialized
50668         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
50669
50670 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
50671
50672         avoid compile failure on AIX 6.1
50673         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
50674         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
50675
50676 2009-01-04  Jim Meyering  <meyering@redhat.com>
50677
50678         remove duplicate inclusion of <stdio.h>
50679         * tests/test-fprintf-posix.c: Likewise.
50680         * tests/test-printf-posix.c: Likewise.
50681         * tests/test-snprintf-posix.c: Likewise.
50682         * tests/test-sprintf-posix.c: Likewise.
50683         * tests/test-vasprintf-posix.c: Likewise.
50684         * tests/test-vfprintf-posix.c: Likewise.
50685         * tests/test-vprintf-posix.c: Likewise.
50686         * tests/test-vsnprintf-posix.c: Likewise.
50687         * tests/test-vsprintf-posix.c: Likewise.
50688
50689 2009-01-03  Jim Meyering  <meyering@redhat.com>
50690
50691         gnulib-tool: fix sed-based filtering
50692         * gnulib-tool (func_filter_filelist): Remove extra backslash
50693         in sed_fff_filter definition.
50694
50695 2009-01-02  Jim Meyering  <meyering@redhat.com>
50696
50697         strftime: avoid compilation failure on Solaris 2.6
50698         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
50699         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
50700         Don't #define mbrlen or mbsinit, since now they're guaranteed to
50701         be available.  Reported by Tom G. Christensen.  Details in
50702         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
50703
50704 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50705             Bruno Haible  <bruno@clisp.org>
50706
50707         Speed up gnulib-tool by doing more string processing through shell
50708         built-ins.
50709         * gnulib-tool (fast_func_append): New variable.
50710         (func_remove_prefix, func_remove_suffix): New functions.
50711         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
50712         (func_filter_filelist): New function.
50713         (func_get_dependencies): Use func_remove_suffix instead of sed.
50714         (func_get_automake_snippet): Use func_filter_filelist instead of a
50715         subshell and sed invocation.
50716
50717 2009-01-01  Bruno Haible  <bruno@clisp.org>
50718
50719         Fix a security bug.
50720         * gnulib-tool (func_import, import, update): Don't allow the characters
50721         '"', '$', '`', '\' in macro arguments that become part of commands that
50722         are evaluated.
50723
50724 2009-01-01  Bruno Haible  <bruno@clisp.org>
50725
50726         * gnulib-tool (func_reset_sigpipe): Add more comments.
50727
50728 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50729
50730         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
50731         func_emit_tests_Makefile_am, func_import): Abort loops early if we
50732         already know the answer.
50733
50734 2009-01-01  Jim Meyering  <meyering@redhat.com>
50735
50736         * lib/version-etc.c (version_etc_va): Update copyright year.
50737
50738 2008-12-30  Bruno Haible  <bruno@clisp.org>
50739
50740         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
50741         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
50742         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
50743
50744 2008-12-29  Eric Blake  <ebb9@byu.net>
50745
50746         multiarch: avoid autoconf AC_REQUIRE bug
50747         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
50748         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
50749         2.63 and older.
50750         Reported by Bruno Haible, and analyzed in
50751         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
50752
50753 2008-12-29  Bruno Haible  <bruno@clisp.org>
50754
50755         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
50756         files in subdirectories correctly.
50757         Reported by Ralf Wildenhues.
50758
50759 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50760
50761         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
50762         rather than 'join FILE -', for Solaris join.
50763
50764 2008-12-29  Bruno Haible  <bruno@clisp.org>
50765
50766         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
50767         quoting.
50768         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50769         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
50770         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
50771         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
50772         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
50773         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
50774         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50775         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50776         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50777         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
50778         * m4/nls.m4 (AM_NLS): Likewise.
50779         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
50780         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
50781         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50782         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50783         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50784         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50785         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
50786         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50787         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50788         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50789         * m4/xsize.m4 (gl_XSIZE): Likewise.
50790         Suggested by Jim Meyering.
50791
50792 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50793
50794         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
50795         * lib/parse-duration.c: use a switch instead of cascading if's.
50796
50797 2008-12-29  Eric Blake  <ebb9@byu.net>
50798
50799         wchar.h: supply WEOF on Irix 5.3
50800         * lib/wchar.in.h (wint_t): Also supply WEOF.
50801         * lib/wctype.in.h (wint_t): Likewise.
50802         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
50803         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
50804         Reported by Tom G. Christensen.
50805
50806 2008-12-26  Bruno Haible  <bruno@clisp.org>
50807
50808         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
50809         i486, i586, i686.
50810
50811 2008-12-26  Bruno Haible  <bruno@clisp.org>
50812
50813         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
50814
50815 2008-12-26  Bruno Haible  <bruno@clisp.org>
50816
50817         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
50818         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
50819         not __STDC_CONSTANT_MACROS.
50820         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50821
50822 2008-12-25  Bruno Haible  <bruno@clisp.org>
50823
50824         Add support for universal builds to vasnprintf.
50825         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
50826         universal builds, guess no.
50827         * modules/vasnprintf-posix (Depends-on): Add multiarch.
50828         * modules/vasprintf-posix (Depends-on): Likewise.
50829         * modules/fprintf-posix (Depends-on): Likewise.
50830         * modules/vfprintf-posix (Depends-on): Likewise.
50831         * modules/snprintf-posix (Depends-on): Likewise.
50832         * modules/vsnprintf-posix (Depends-on): Likewise.
50833         * modules/sprintf-posix (Depends-on): Likewise.
50834         * modules/vsprintf-posix (Depends-on): Likewise.
50835         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50836         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50837         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50838         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50839         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50840         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50841         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50842
50843         Add support for universal builds to <inttypes.h>.
50844         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
50845         _SCNu64_PREFIX): In Apple
50846         universal builds, define directly, using _LP64.
50847         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
50848         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
50849         * modules/inttypes (Depends-on): Add multiarch.
50850         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50851
50852         Add support for universal builds to <stdint.h>.
50853         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
50854         universal builds, define directly, using _LP64.
50855         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
50856         Apple universal builds, don't test for the size and suffix of ptrdiff_t
50857         and size_t.
50858         * modules/stdint (Depends-on): Add multiarch.
50859         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50860
50861         New module 'multiarch'.
50862         * modules/multiarch: New file.
50863         * m4/multiarch.m4: New file.
50864
50865 2008-12-25  Bruno Haible  <bruno@clisp.org>
50866
50867         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
50868
50869 2008-12-25  Bruno Haible  <bruno@clisp.org>
50870
50871         * modules/btowc (License): Relicense under LGPLv2+.
50872         * modules/mbsinit (License): Likewise.
50873         * modules/mbrtowc (License): Likewise.
50874         * modules/wcrtomb (License): Likewise.
50875         * modules/streq (License): Likewise.
50876         Reported by David Lutterkort <lutter@redhat.com>.
50877
50878 2008-12-23  Bruno Haible  <bruno@clisp.org>
50879
50880         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
50881
50882 2008-12-23  Bruno Haible  <bruno@clisp.org>
50883
50884         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
50885         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
50886         GETADDRINFO_LIB, not in LIBS.
50887         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
50888         * modules/canon-host (Link): Likewise.
50889         * NEWS: Mention the change.
50890         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
50891         GETADDRINFO_LIB.
50892
50893 2008-12-22  Bruno Haible  <bruno@clisp.org>
50894
50895         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
50896         * doc/posix-functions/iswalpha_l.texi: Likewise.
50897         * doc/posix-functions/iswblank_l.texi: Likewise.
50898         * doc/posix-functions/iswcntrl_l.texi: Likewise.
50899         * doc/posix-functions/iswctype_l.texi: Likewise.
50900         * doc/posix-functions/iswdigit_l.texi: Likewise.
50901         * doc/posix-functions/iswgraph_l.texi: Likewise.
50902         * doc/posix-functions/iswlower_l.texi: Likewise.
50903         * doc/posix-functions/iswprint_l.texi: Likewise.
50904         * doc/posix-functions/iswpunct_l.texi: Likewise.
50905         * doc/posix-functions/iswspace_l.texi: Likewise.
50906         * doc/posix-functions/iswupper_l.texi: Likewise.
50907         * doc/posix-functions/iswxdigit_l.texi: Likewise.
50908         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
50909         * doc/posix-functions/open_wmemstream.texi: Likewise.
50910         * doc/posix-functions/swscanf.texi: Likewise.
50911         * doc/posix-functions/towctrans_l.texi: Likewise.
50912         * doc/posix-functions/towlower.texi: Likewise.
50913         * doc/posix-functions/towlower_l.texi: Likewise.
50914         * doc/posix-functions/towupper.texi: Likewise.
50915         * doc/posix-functions/towupper_l.texi: Likewise.
50916         * doc/posix-functions/vfwprintf.texi: Likewise.
50917         * doc/posix-functions/vfwscanf.texi: Likewise.
50918         * doc/posix-functions/vswscanf.texi: Likewise.
50919         * doc/posix-functions/vwprintf.texi: Likewise.
50920         * doc/posix-functions/vwscanf.texi: Likewise.
50921         * doc/posix-functions/wcpcpy.texi: Likewise.
50922         * doc/posix-functions/wcpncpy.texi: Likewise.
50923         * doc/posix-functions/wcscasecmp.texi: Likewise.
50924         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
50925         * doc/posix-functions/wcscoll_l.texi: Likewise.
50926         * doc/posix-functions/wcsdup.texi: Likewise.
50927         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50928         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
50929         * doc/posix-functions/wcsnlen.texi: Likewise.
50930         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50931         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
50932         * doc/posix-functions/wctrans_l.texi: Likewise.
50933         * doc/posix-functions/wctype_l.texi: Likewise.
50934         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
50935         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
50936         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
50937         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
50938         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
50939         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
50940         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
50941         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
50942         * doc/glibc-functions/wcschrnul.texi: Likewise.
50943         * doc/glibc-functions/wcsftime_l.texi: Likewise.
50944         * doc/glibc-functions/wcstod_l.texi: Likewise.
50945         * doc/glibc-functions/wcstof_l.texi: Likewise.
50946         * doc/glibc-functions/wcstol_l.texi: Likewise.
50947         * doc/glibc-functions/wcstold_l.texi: Likewise.
50948         * doc/glibc-functions/wcstoll_l.texi: Likewise.
50949         * doc/glibc-functions/wcstoq.texi: Likewise.
50950         * doc/glibc-functions/wcstoul_l.texi: Likewise.
50951         * doc/glibc-functions/wcstoull_l.texi: Likewise.
50952         * doc/glibc-functions/wcstouq.texi: Likewise.
50953         * doc/glibc-functions/wmempcpy.texi: Likewise.
50954
50955 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
50956             Eric Blake  <ebb9@byu.net>
50957             Paolo Bonzini  <bonzini@gnu.org>
50958             Bruno Haible  <bruno@clisp.org>
50959
50960         Make c-stack work on Haiku.
50961         * lib/c-stack.c (SA_ONSTACK): Define fallback.
50962         (c_stack_action): Use SA_ONSTACK flag.
50963
50964 2008-12-22  Bruno Haible  <bruno@clisp.org>
50965
50966         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
50967
50968 2008-12-22  Bruno Haible  <bruno@clisp.org>
50969
50970         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
50971         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
50972         being overridden.
50973         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
50974         New macros.
50975         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
50976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
50977         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
50978         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
50979
50980 2008-12-22  Bruno Haible  <bruno@clisp.org>
50981
50982         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
50983         from test code.
50984
50985 2008-12-22  Eric Blake  <ebb9@byu.net>
50986
50987         Avoid gcc warnings on cygwin.
50988         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
50989         Avoid unused variable.
50990         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
50991         Likewise.
50992
50993 2008-12-22  Bruno Haible  <bruno@clisp.org>
50994
50995         Remove HAVE_MBRTOWC conditionals.
50996         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
50997         (mbscasecmp): Assume mbrtowc function.
50998         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
50999         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51000         * lib/mbschr.c: Include mbuiter.h unconditionally.
51001         (mbschr): Assume mbrtowc function.
51002         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51003         (mbscspn): Assume mbrtowc function.
51004         * lib/mbslen.c: Include mbuiter.h unconditionally.
51005         (mbslen): Assume mbrtowc function.
51006         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51007         (mbsncasecmp): Assume mbrtowc function.
51008         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51009         (mbsnlen): Assume mbrtowc function.
51010         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51011         (mbspbrk): Assume mbrtowc function.
51012         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51013         (mbspcasecmp): Assume mbrtowc function.
51014         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51015         (mbsrchr): Assume mbrtowc function.
51016         * lib/mbssep.c: Include mbuiter.h unconditionally.
51017         (mbssep): Assume mbrtowc function.
51018         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51019         (mbsspn): Assume mbrtowc function.
51020         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51021         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51022         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51023         (mbstok_r): Assume mbrtowc function.
51024         * lib/propername.c: Include mbuiter.h unconditionally.
51025         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51026         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51027         (trim2): Assume mbrtowc function.
51028         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51029         (mbsnwidth): Assume mbrtowc function.
51030         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51031         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51032         fallback definitions.
51033         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51034
51035 2008-12-22  Bruno Haible  <bruno@clisp.org>
51036
51037         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51038
51039 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51040
51041         * modules/regex: Request emulations for the mb*/wc* functions we need.
51042         * m4/regex.m4: Don't look for those functions here.
51043         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51044
51045 2008-12-22  Bruno Haible  <bruno@clisp.org>
51046
51047         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51048
51049 2008-12-21  Bruno Haible  <bruno@clisp.org>
51050
51051         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51052         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51053         (Include): Remove conditionalization.
51054         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51055         (Include): Remove conditionalization.
51056         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51057         (Include): Remove conditionalization.
51058         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51059         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51060         * NEWS: Mention the change.
51061         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51062         via Sergey Poznyakoff <gray@gnu.org.ua>.
51063
51064 2008-12-21  Bruno Haible  <bruno@clisp.org>
51065
51066         * MODULES.html.sh (Extended multibyte and wide character utilities
51067         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51068         wcrtomb, wcsrtombs.
51069         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51070         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51071         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51072         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51073
51074 2008-12-21  Bruno Haible  <bruno@clisp.org>
51075
51076         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51077
51078 2008-12-21  Bruno Haible  <bruno@clisp.org>
51079
51080         * modules/wcsnrtombs-tests: New file.
51081         * tests/test-wcsnrtombs1.sh: New file.
51082         * tests/test-wcsnrtombs2.sh: New file.
51083         * tests/test-wcsnrtombs3.sh: New file.
51084         * tests/test-wcsnrtombs4.sh: New file.
51085         * tests/test-wcsnrtombs.c: New file.
51086
51087         New module 'wcsnrtombs'.
51088         * lib/wchar.in.h (wcsnrtombs): New declaration.
51089         * lib/wcsnrtombs.c: New file.
51090         * lib/wcsrtombs-state.c: New file.
51091         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51092         (internal_state): Remove variable.
51093         * m4/wcsnrtombs.m4: New file.
51094         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51095         compilation units.
51096         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51097         HAVE_WCSNRTOMBS.
51098         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51099         HAVE_WCSNRTOMBS.
51100         * modules/wcsnrtombs: New file.
51101         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51102         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51103
51104 2008-12-21  Bruno Haible  <bruno@clisp.org>
51105
51106         * modules/wcsrtombs-tests: New file.
51107         * tests/test-wcsrtombs1.sh: New file.
51108         * tests/test-wcsrtombs2.sh: New file.
51109         * tests/test-wcsrtombs3.sh: New file.
51110         * tests/test-wcsrtombs4.sh: New file.
51111         * tests/test-wcsrtombs.c: New file.
51112
51113         New module 'wcsrtombs'.
51114         * lib/wchar.in.h (wcsrtombs): New declaration.
51115         * lib/wcsrtombs.c: New file.
51116         * m4/wcsrtombs.m4: New file.
51117         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51118         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51119         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51120         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51121         * modules/wcsrtombs: New file.
51122         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51123         bugs.
51124
51125 2008-12-21  Bruno Haible  <bruno@clisp.org>
51126
51127         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51128         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51129         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51130         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51131         if not correct.
51132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51133         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51134         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51135         m4/locale-zh.m4, m4/codeset.m4.
51136         * doc/posix-functions/wcrtomb.texi: Document the bug.
51137
51138 2008-12-21  Bruno Haible  <bruno@clisp.org>
51139
51140         Work around a btowc() bug on IRIX 6.5.
51141         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51142         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51143         REPLACE_WTOBC if not.
51144         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51145         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51146         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51147
51148 2008-12-21  Bruno Haible  <bruno@clisp.org>
51149
51150         * modules/wcrtomb-tests: New file.
51151         * tests/test-wcrtomb.sh: New file.
51152         * tests/test-wcrtomb.c: New file.
51153
51154         New module 'wcrtomb'.
51155         * lib/wchar.in.h (wcrtomb): New declaration.
51156         * lib/wcrtomb.c: New file.
51157         * m4/wcrtomb.m4: New file.
51158         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51159         HAVE_WCRTOMB.
51160         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51161         HAVE_WCRTOMB.
51162         * modules/wcrtomb: New file.
51163         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51164
51165 2008-12-21  Bruno Haible  <bruno@clisp.org>
51166
51167         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51168         * modules/mbsrtowcs (Files): Likewise.
51169         * modules/wctob (Files): Likewise.
51170         * modules/c-strcase-tests (Files): Likewise.
51171         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51172         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51173         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51174         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51175         * modules/vasnprintf-posix-tests (Files): Likewise.
51176
51177 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51178
51179         gitlog-to-changelog: pass all command-line arguments to git-log
51180         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51181         it is sometimes convenient to filter the commits in various ways.
51182         gitlog-to-changelog only allows --since to specify a start date,
51183         but git-log itself supports many other filtering mechanisms.
51184         At the moment, I want to filter by branch name.  Rather than
51185         adding a --branch option to gitlog-to-changelog, it seems more
51186         flexible to simply pass all options directly to git-log and let
51187         git do the work.  Notice that this effectively makes --since a
51188         redundant option for gitlog-to-changelog, but removing it would
51189         require current usage to change since calls would then require
51190         an additional '--'.
51191
51192 2008-12-21  Bruno Haible  <bruno@clisp.org>
51193
51194         * modules/mbsnrtowcs-tests: New file.
51195         * tests/test-mbsnrtowcs1.sh: New file.
51196         * tests/test-mbsnrtowcs2.sh: New file.
51197         * tests/test-mbsnrtowcs3.sh: New file.
51198         * tests/test-mbsnrtowcs4.sh: New file.
51199         * tests/test-mbsnrtowcs.c: New file.
51200
51201         New module 'mbsnrtowcs'.
51202         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51203         * lib/mbsnrtowcs.c: New file.
51204         * lib/mbsrtowcs-state.c: New file.
51205         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51206         (internal_state): Remove variable.
51207         * m4/mbsnrtowcs.m4: New file.
51208         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51209         compilation units.
51210         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51211         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51212         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51213         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51214         * modules/mbsnrtowcs: New file.
51215         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51216         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51217         portability problem.
51218
51219 2008-12-21  Bruno Haible  <bruno@clisp.org>
51220
51221         Work around mbsrtowcs bug.
51222         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51223         (gl_FUNC_MBSRTOWCS): Invoke it.
51224         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51225         m4/locale-zh.m4.
51226         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51227
51228 2008-12-21  Bruno Haible  <bruno@clisp.org>
51229
51230         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51231
51232 2008-12-21  Bruno Haible  <bruno@clisp.org>
51233
51234         Update doc for AIX.
51235         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51236         16-bit wchar_t type.
51237         * doc/posix-functions/btowc.texi: Likewise.
51238         * doc/posix-functions/fgetwc.texi: Likewise.
51239         * doc/posix-functions/fgetws.texi: Likewise.
51240         * doc/posix-functions/fputwc.texi: Likewise.
51241         * doc/posix-functions/fputws.texi: Likewise.
51242         * doc/posix-functions/fwide.texi: Likewise.
51243         * doc/posix-functions/fwprintf.texi: Likewise.
51244         * doc/posix-functions/fwscanf.texi: Likewise.
51245         * doc/posix-functions/getwchar.texi: Likewise.
51246         * doc/posix-functions/getwc.texi: Likewise.
51247         * doc/posix-functions/iswalnum.texi: Likewise.
51248         * doc/posix-functions/iswalpha.texi: Likewise.
51249         * doc/posix-functions/iswblank.texi: Likewise.
51250         * doc/posix-functions/iswcntrl.texi: Likewise.
51251         * doc/posix-functions/iswctype.texi: Likewise.
51252         * doc/posix-functions/iswdigit.texi: Likewise.
51253         * doc/posix-functions/iswgraph.texi: Likewise.
51254         * doc/posix-functions/iswlower.texi: Likewise.
51255         * doc/posix-functions/iswprint.texi: Likewise.
51256         * doc/posix-functions/iswpunct.texi: Likewise.
51257         * doc/posix-functions/iswspace.texi: Likewise.
51258         * doc/posix-functions/iswupper.texi: Likewise.
51259         * doc/posix-functions/iswxdigit.texi: Likewise.
51260         * doc/posix-functions/mbrtowc.texi: Likewise.
51261         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51262         * doc/posix-functions/mbstowcs.texi: Likewise.
51263         * doc/posix-functions/mbtowc.texi: Likewise.
51264         * doc/posix-functions/putwchar.texi: Likewise.
51265         * doc/posix-functions/putwc.texi: Likewise.
51266         * doc/posix-functions/swprintf.texi: Likewise.
51267         * doc/posix-functions/tolower.texi: Likewise.
51268         * doc/posix-functions/toupper.texi: Likewise.
51269         * doc/posix-functions/towctrans.texi: Likewise.
51270         * doc/posix-functions/ungetwc.texi: Likewise.
51271         * doc/posix-functions/vswprintf.texi: Likewise.
51272         * doc/posix-functions/wcrtomb.texi: Likewise.
51273         * doc/posix-functions/wcscat.texi: Likewise.
51274         * doc/posix-functions/wcschr.texi: Likewise.
51275         * doc/posix-functions/wcscmp.texi: Likewise.
51276         * doc/posix-functions/wcscoll.texi: Likewise.
51277         * doc/posix-functions/wcscpy.texi: Likewise.
51278         * doc/posix-functions/wcscspn.texi: Likewise.
51279         * doc/posix-functions/wcsftime.texi: Likewise.
51280         * doc/posix-functions/wcslen.texi: Likewise.
51281         * doc/posix-functions/wcsncat.texi: Likewise.
51282         * doc/posix-functions/wcsncmp.texi: Likewise.
51283         * doc/posix-functions/wcsncpy.texi: Likewise.
51284         * doc/posix-functions/wcspbrk.texi: Likewise.
51285         * doc/posix-functions/wcsrchr.texi: Likewise.
51286         * doc/posix-functions/wcsrtombs.texi: Likewise.
51287         * doc/posix-functions/wcsspn.texi: Likewise.
51288         * doc/posix-functions/wcsstr.texi: Likewise.
51289         * doc/posix-functions/wcstod.texi: Likewise.
51290         * doc/posix-functions/wcstof.texi: Likewise.
51291         * doc/posix-functions/wcstoimax.texi: Likewise.
51292         * doc/posix-functions/wcstok.texi: Likewise.
51293         * doc/posix-functions/wcstold.texi: Likewise.
51294         * doc/posix-functions/wcstoll.texi: Likewise.
51295         * doc/posix-functions/wcstol.texi: Likewise.
51296         * doc/posix-functions/wcstombs.texi: Likewise.
51297         * doc/posix-functions/wcstoull.texi: Likewise.
51298         * doc/posix-functions/wcstoul.texi: Likewise.
51299         * doc/posix-functions/wcstoumax.texi: Likewise.
51300         * doc/posix-functions/wcswidth.texi: Likewise.
51301         * doc/posix-functions/wcsxfrm.texi: Likewise.
51302         * doc/posix-functions/wctob.texi: Likewise.
51303         * doc/posix-functions/wctomb.texi: Likewise.
51304         * doc/posix-functions/wctrans.texi: Likewise.
51305         * doc/posix-functions/wctype.texi: Likewise.
51306         * doc/posix-functions/wcwidth.texi: Likewise.
51307         * doc/posix-functions/wmemchr.texi: Likewise.
51308         * doc/posix-functions/wmemcmp.texi: Likewise.
51309         * doc/posix-functions/wmemcpy.texi: Likewise.
51310         * doc/posix-functions/wmemmove.texi: Likewise.
51311         * doc/posix-functions/wmemset.texi: Likewise.
51312         * doc/posix-functions/wprintf.texi: Likewise.
51313         * doc/posix-functions/wscanf.texi: Likewise.
51314
51315 2008-12-21  Bruno Haible  <bruno@clisp.org>
51316
51317         Update doc for HP-UX 11.11.
51318         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51319         in HP-UX version 11.00, not in all versions of HP-UX 11.
51320         * doc/posix-functions/fwide.texi: Likewise.
51321         * doc/posix-functions/fwprintf.texi: Likewise.
51322         * doc/posix-functions/fwscanf.texi: Likewise.
51323         * doc/posix-functions/inet_ntop.texi: Likewise.
51324         * doc/posix-functions/inet_pton.texi: Likewise.
51325         * doc/posix-functions/mbrlen.texi: Likewise.
51326         * doc/posix-functions/mbrtowc.texi: Likewise.
51327         * doc/posix-functions/mbsinit.texi: Likewise.
51328         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51329         * doc/posix-functions/swprintf.texi: Likewise.
51330         * doc/posix-functions/swscanf.texi: Likewise.
51331         * doc/posix-functions/towctrans.texi: Likewise.
51332         * doc/posix-functions/vfwprintf.texi: Likewise.
51333         * doc/posix-functions/vswprintf.texi: Likewise.
51334         * doc/posix-functions/vwprintf.texi: Likewise.
51335         * doc/posix-functions/wcrtomb.texi: Likewise.
51336         * doc/posix-functions/wcsrtombs.texi: Likewise.
51337         * doc/posix-functions/wcsstr.texi: Likewise.
51338         * doc/posix-functions/wctob.texi: Likewise.
51339         * doc/posix-functions/wctrans.texi: Likewise.
51340         * doc/posix-functions/wmemchr.texi: Likewise.
51341         * doc/posix-functions/wmemcmp.texi: Likewise.
51342         * doc/posix-functions/wmemcpy.texi: Likewise.
51343         * doc/posix-functions/wmemmove.texi: Likewise.
51344         * doc/posix-functions/wmemset.texi: Likewise.
51345         * doc/posix-functions/wprintf.texi: Likewise.
51346         * doc/posix-functions/wscanf.texi: Likewise.
51347
51348 2008-12-21  Bruno Haible  <bruno@clisp.org>
51349
51350         Work around a portability problem.
51351         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51352         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51353
51354 2008-12-20  Bruno Haible  <bruno@clisp.org>
51355
51356         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51357         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51358         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51360         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51361
51362         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51363         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51364         set.
51365         (GNULIB_defined_mbstate_t): New macro.
51366         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51367         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51368         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51369         reuses the system's mbrtowc function but works around the bugs.
51370         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51371         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51372         macros.
51373         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51374         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51375         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51376         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51377         REPLACE_MBSINIT if mbsinit needs to be overridden.
51378         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51379         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51380         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51381         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51382         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51383         m4/locale-zh.m4.
51384         (Depends): Add mbsinit.
51385         * modules/mbsinit (Depends): Add mbrtowc.
51386         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51387
51388 2008-12-20  Bruno Haible  <bruno@clisp.org>
51389
51390         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51391         so that there are no conversion errors on AIX.
51392         * tests/test-mbsrtowcs.c (main): LIkewise.
51393
51394 2008-12-20  Bruno Haible  <bruno@clisp.org>
51395
51396         Work around wctob bug on Solaris <= 9.
51397         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51398         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51400         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51401         * modules/wctob (Files): Add m4/locale-fr.m4.
51402         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51403
51404 2008-12-20  Bruno Haible  <bruno@clisp.org>
51405
51406         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51407         /dev/null.
51408         * tests/test-select-in.sh: Likewise.
51409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51410
51411 2008-12-20  Bruno Haible  <bruno@clisp.org>
51412
51413         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51414         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51415         Cygwin 1.5.x.
51416
51417 2008-12-20  Bruno Haible  <bruno@clisp.org>
51418
51419         Ensure mbstate_t is defined on HP-UX 11.11.
51420         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51421         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51422         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51423         AC_USE_SYSTEM_EXTENSIONS.
51424         * modules/fnmatch (Depends-on): Add extensions.
51425         * modules/mbrlen (Depends-on): Likewise.
51426         * modules/mbrtowc (Depends-on): Likewise.
51427         * modules/mbsinit (Depends-on): Likewise.
51428         * modules/mbsrtowcs (Depends-on): Likewise.
51429         * modules/mbswidth (Depends-on): Likewise.
51430         * modules/quotearg (Depends-on): Likewise.
51431         * modules/strftime (Depends-on): Likewise.
51432
51433 2008-12-20  Bruno Haible  <bruno@clisp.org>
51434
51435         Ensure wctob is declared on IRIX 6.5.
51436         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51437         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51438         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51439         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51440         of HAVE_WCTOB.
51441         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51442         HAVE_WCTOB.
51443         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51444
51445 2008-12-19  Bruno Haible  <bruno@clisp.org>
51446
51447         * modules/mbsrtowcs-tests: New file.
51448         * tests/test-mbsrtowcs1.sh: New file.
51449         * tests/test-mbsrtowcs2.sh: New file.
51450         * tests/test-mbsrtowcs3.sh: New file.
51451         * tests/test-mbsrtowcs4.sh: New file.
51452         * tests/test-mbsrtowcs.c: New file.
51453
51454         New module 'mbsrtowcs'.
51455         * lib/wchar.in.h (mbsrtowcs): New declaration.
51456         * lib/mbsrtowcs.c: New file.
51457         * m4/mbsrtowcs.m4: New file.
51458         * modules/mbsrtowcs: New file.
51459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51460         HAVE_MBSRTOWCS.
51461         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51462         HAVE_MBSRTOWCS.
51463         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51464
51465 2008-12-19  Bruno Haible  <bruno@clisp.org>
51466
51467         New module 'mbrlen'.
51468         * lib/wchar.in.h (mbrlen): New declaration.
51469         * lib/mbrlen.c: New file.
51470         * m4/mbrlen.m4: New file.
51471         * modules/mbrlen: New file.
51472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51473         HAVE_MBRLEN.
51474         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51475         HAVE_MBRLEN.
51476         * doc/posix-functions/mbrlen.texi: Document the new module.
51477
51478 2008-12-19  Bruno Haible  <bruno@clisp.org>
51479
51480         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51481         * modules/mbrtowc (Depends-on): Add verify.
51482         Suggested by Paul Eggert.
51483
51484 2008-12-18  Bruno Haible  <bruno@clisp.org>
51485
51486         * modules/mbsinit-tests: New file.
51487         * tests/test-mbsinit.sh: New file.
51488         * tests/test-mbsinit.c: New file.
51489
51490 2008-12-18  Bruno Haible  <bruno@clisp.org>
51491
51492         * modules/mbrtowc-tests: New file.
51493         * tests/test-mbrtowc1.sh: New file.
51494         * tests/test-mbrtowc2.sh: New file.
51495         * tests/test-mbrtowc3.sh: New file.
51496         * tests/test-mbrtowc4.sh: New file.
51497         * tests/test-mbrtowc.c: New file.
51498
51499         New module 'mbrtowc'.
51500         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51501         mbsinit and mbrtowc.
51502         (mbrtowc): New declaration.
51503         * lib/mbrtowc.c: New file.
51504         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51505         * modules/mbrtowc: New file.
51506         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51507         HAVE_MBRTOWC.
51508         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51509         HAVE_MBRTOWC.
51510         * doc/posix-functions/mbrtowc.texi: Document the new module.
51511
51512 2008-12-18  Bruno Haible  <bruno@clisp.org>
51513
51514         New module 'wctob'.
51515         * lib/wchar.in.h (wctob): New declaration.
51516         * lib/wctob.c: New file.
51517         * m4/wctob.m4: New file.
51518         * modules/wctob: New file.
51519         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51520         HAVE_WCTOB.
51521         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51522         * doc/posix-functions/wctob.texi: Document the new module.
51523
51524 2008-12-18  Bruno Haible  <bruno@clisp.org>
51525
51526         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
51527         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
51528
51529 2008-12-18  Simon Josefsson  <simon@josefsson.org>
51530
51531         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
51532         G. Christensen" <tgc@jupiterrise.com>.
51533
51534         * lib/flock.c: Need to include errno.h.  Reported by "Tom
51535         G. Christensen" <tgc@jupiterrise.com>.
51536
51537         * lib/flock.c: Need to include string.h.  Reported by "Tom
51538         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
51539         <ebb9@byu.net>.
51540
51541 2008-12-18  Bruno Haible  <bruno@clisp.org>
51542
51543         * m4/locale-ja.m4: New file, from GNU gettext.
51544
51545 2008-12-17  Bruno Haible  <bruno@clisp.org>
51546
51547         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
51548         Suggested by Eric Blake.
51549
51550 2008-12-17  Bruno Haible  <bruno@clisp.org>
51551
51552         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
51553
51554 2008-12-17  Bruno Haible  <bruno@clisp.org>
51555
51556         * lib/mbsinit.c: Include verify.h. Verify an assumption.
51557         * modules/mbsinit (Depends-on): Add verify.
51558         Suggested by Paul Eggert.
51559
51560 2008-12-17  Bruno Haible  <bruno@clisp.org>
51561
51562         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
51563         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
51564         gl_FUNC_MBRTOWC.
51565         * m4/mbiter.m4 (gl_MBITER): LIkewise.
51566         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
51567         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
51568         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
51569         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
51570         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
51571         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
51572         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
51573         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
51574         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
51575         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
51576         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
51577         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
51578         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
51579         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
51580         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51581         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
51582         * modules/trim (configure.ac): Likewise.
51583
51584 2008-12-17  Bruno Haible  <bruno@clisp.org>
51585
51586         * modules/btowc-tests: New file.
51587         * tests/test-btowc1.sh: New file.
51588         * tests/test-btowc2.sh: New file.
51589         * tests/test-btowc.c: New file.
51590
51591         New module 'btowc'.
51592         * lib/wchar.in.h (btowc): New declaration.
51593         * lib/btowc.c: New file.
51594         * m4/btowc.m4: New file.
51595         * modules/btowc: New file.
51596         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
51597         HAVE_BTOWC.
51598         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
51599         * doc/posix-functions/btowc.texi: Document the new module.
51600
51601 2008-12-17  Bruno Haible  <bruno@clisp.org>
51602
51603         New module 'mbsinit'.
51604         * lib/wchar.in.h (mbsinit): New declaration.
51605         * lib/mbsinit.c: New file.
51606         * m4/mbsinit.m4: New file.
51607         * modules/mbsinit: New file.
51608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
51609         HAVE_MBSINIT.
51610         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
51611         HAVE_MBSINIT.
51612         * doc/posix-functions/mbsinit.texi: Document the new module.
51613
51614 2008-12-16  Bruno Haible  <bruno@clisp.org>
51615
51616         * lib/unistd.in.h: Add comment.
51617         * tests/test-environ.c: Don't include <stdlib.h>.
51618
51619 2008-12-16  Bruno Haible  <bruno@clisp.org>
51620
51621         * lib/parse-duration.h (parse_duration): Document return value
51622         convention.
51623         * lib/parse-duration.c: Include specification header first. Add
51624         comments.
51625         (_): Remove macro.
51626         (parse_year_month_day, parse_hour_minute_second): Move side effects
51627         outside of strchr call.
51628         (parse_non_iso8601): Move side effects outside of isspace call.
51629         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
51630         call.
51631
51632 2008-12-16  Bruno Haible  <bruno@clisp.org>
51633
51634         * tests/test-parse-duration.sh: Produce no output when the test
51635         succeeds.
51636
51637 2008-12-16  Bruno Haible  <bruno@clisp.org>
51638
51639         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
51640         expressions.
51641
51642 2008-12-15  Bruno Haible  <bruno@clisp.org>
51643
51644         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
51645         * doc/glibc-functions/flistxattr.texi: Likewise.
51646         * doc/glibc-functions/fopencookie.texi: Likewise.
51647         * doc/glibc-functions/fremovexattr.texi: Likewise.
51648         * doc/glibc-functions/fsetxattr.texi: Likewise.
51649         * doc/glibc-functions/getxattr.texi: Likewise.
51650         * doc/glibc-functions/lgetxattr.texi: Likewise.
51651         * doc/glibc-functions/listxattr.texi: Likewise.
51652         * doc/glibc-functions/llistxattr.texi: Likewise.
51653         * doc/glibc-functions/lremovexattr.texi: Likewise.
51654         * doc/glibc-functions/lsetxattr.texi: Likewise.
51655         * doc/glibc-functions/removexattr.texi: Likewise.
51656         * doc/glibc-functions/setxattr.texi: Likewise.
51657         * doc/posix-functions/open_memstream.texi: Likewise.
51658
51659 2008-12-15  Eric Blake  <ebb9@byu.net>
51660
51661         Update doc for cygwin 1.7.
51662         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
51663         functions.
51664         * doc/posix-functions/fchmodat.texi: Likewise.
51665         * doc/posix-functions/fchownat.texi: Likewise.
51666         * doc/posix-functions/fdopendir.texi: Likewise.
51667         * doc/posix-functions/fmemopen.texi: Likewise.
51668         * doc/posix-functions/freeaddrinfo.texi: Likewise.
51669         * doc/posix-functions/fstatat.texi: Likewise.
51670         * doc/posix-functions/futimens.texi: Likewise.
51671         * doc/posix-functions/gai_strerror.texi: Likewise.
51672         * doc/posix-functions/getaddrinfo.texi: Likewise.
51673         * doc/posix-functions/getnameinfo.texi: Likewise.
51674         * doc/posix-functions/if_freenameindex.texi: Likewise.
51675         * doc/posix-functions/if_indextoname.texi: Likewise.
51676         * doc/posix-functions/if_nameindex.texi: Likewise.
51677         * doc/posix-functions/if_nametoindex.texi: Likewise.
51678         * doc/posix-functions/insque.texi: Likewise.
51679         * doc/posix-functions/linkat.texi: Likewise.
51680         * doc/posix-functions/llrint.texi: Likewise.
51681         * doc/posix-functions/llrintf.texi: Likewise.
51682         * doc/posix-functions/llrintl.texi: Likewise.
51683         * doc/posix-functions/lockf.texi: Likewise.
51684         * doc/posix-functions/lrintl.texi: Likewise.
51685         * doc/posix-functions/mkdirat.texi: Likewise.
51686         * doc/posix-functions/mkfifoat.texi: Likewise.
51687         * doc/posix-functions/mknodat.texi: Likewise.
51688         * doc/posix-functions/mq_close.texi: Likewise.
51689         * doc/posix-functions/mq_getattr.texi: Likewise.
51690         * doc/posix-functions/mq_notify.texi: Likewise.
51691         * doc/posix-functions/mq_open.texi: Likewise.
51692         * doc/posix-functions/mq_receive.texi: Likewise.
51693         * doc/posix-functions/mq_send.texi: Likewise.
51694         * doc/posix-functions/mq_setattr.texi: Likewise.
51695         * doc/posix-functions/mq_timedreceive.texi: Likewise.
51696         * doc/posix-functions/mq_timedsend.texi: Likewise.
51697         * doc/posix-functions/mq_unlink.texi: Likewise.
51698         * doc/posix-functions/open_memstream.texi: Likewise.
51699         * doc/posix-functions/openat.texi: Likewise.
51700         * doc/posix-functions/posix_fadvise.texi: Likewise.
51701         * doc/posix-functions/posix_fallocate.texi: Likewise.
51702         * doc/posix-functions/posix_madvise.texi: Likewise.
51703         * doc/posix-functions/posix_memalign.texi: Likewise.
51704         * doc/posix-functions/posix_openpt.texi: Likewise.
51705         * doc/posix-functions/readlinkat.texi: Likewise.
51706         * doc/posix-functions/remque.texi: Likewise.
51707         * doc/posix-functions/renameat.texi: Likewise.
51708         * doc/posix-functions/rintl.texi: Likewise.
51709         * doc/posix-functions/sem_unlink.texi: Likewise.
51710         * doc/posix-functions/shm_open.texi: Likewise.
51711         * doc/posix-functions/shm_unlink.texi: Likewise.
51712         * doc/posix-functions/signgam.texi: Likewise.
51713         * doc/posix-functions/sigset.texi: Likewise.
51714         * doc/posix-functions/stpcpy.texi: Likewise.
51715         * doc/posix-functions/stpncpy.texi: Likewise.
51716         * doc/posix-functions/strerror.texi: Likewise.
51717         * doc/posix-functions/strtod.texi: Likewise.
51718         * doc/posix-functions/symlinkat.texi: Likewise.
51719         * doc/posix-functions/unlinkat.texi: Likewise.
51720         * doc/posix-functions/utimensat.texi: Likewise.
51721         * doc/glibc-functions/bindresvport.texi: Likewise.
51722         * doc/glibc-functions/dn_expand.texi: Likewise.
51723         * doc/glibc-functions/exp10.texi: Likewise.
51724         * doc/glibc-functions/exp10f.texi: Likewise.
51725         * doc/glibc-functions/fgetxattr.texi: Likewise.
51726         * doc/glibc-functions/flistxattr.texi: Likewise.
51727         * doc/glibc-functions/fopencookie.texi: Likewise.
51728         * doc/glibc-functions/freeifaddrs.texi: Likewise.
51729         * doc/glibc-functions/fremovexattr.texi: Likewise.
51730         * doc/glibc-functions/fsetxattr.texi: Likewise.
51731         * doc/glibc-functions/getifaddrs.texi: Likewise.
51732         * doc/glibc-functions/getxattr.texi: Likewise.
51733         * doc/glibc-functions/lgetxattr.texi: Likewise.
51734         * doc/glibc-functions/listxattr.texi: Likewise.
51735         * doc/glibc-functions/llistxattr.texi: Likewise.
51736         * doc/glibc-functions/lremovexattr.texi: Likewise.
51737         * doc/glibc-functions/lsetxattr.texi: Likewise.
51738         * doc/glibc-functions/pow10.texi: Likewise.
51739         * doc/glibc-functions/pow10f.texi: Likewise.
51740         * doc/glibc-functions/rcmd_af.texi: Likewise.
51741         * doc/glibc-functions/removexattr.texi: Likewise.
51742         * doc/glibc-functions/res_init.texi: Likewise.
51743         * doc/glibc-functions/res_mkquery.texi: Likewise.
51744         * doc/glibc-functions/res_query.texi: Likewise.
51745         * doc/glibc-functions/res_querydomain.texi: Likewise.
51746         * doc/glibc-functions/res_send.texi: Likewise.
51747         * doc/glibc-functions/rresvport_af.texi: Likewise.
51748         * doc/glibc-functions/setxattr.texi: Likewise.
51749         * doc/glibc-functions/strcasestr.texi: Likewise.
51750
51751 2008-12-15  Bruno Haible  <bruno@clisp.org>
51752
51753         Fix compilation error on OSF/1 4.0.
51754         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
51755         <sys/time.h>, simply delegate to the system header.
51756         Reported by Daniel Richard G. <oss@teragram.com>.
51757
51758 2008-12-15  Bruno Haible  <bruno@clisp.org>
51759
51760         * doc/posix-functions/openat.texi: Mention the 'openat' module.
51761         * doc/posix-functions/fchmodat.texi: Likewise.
51762         * doc/posix-functions/fchownat.texi: Likewise.
51763         * doc/posix-functions/fdopendir.texi: Likewise.
51764         * doc/posix-functions/fstatat.texi: Likewise.
51765         * doc/posix-functions/mkdirat.texi: Likewise.
51766         * doc/posix-functions/unlinkat.texi: Likewise.
51767
51768 2008-12-14  Bruno Haible  <bruno@clisp.org>
51769
51770         Update doc for POSIX:2008.
51771         * doc/posix-functions/faccessat.texi: New file.
51772         * doc/posix-functions/fchmodat.texi: New file.
51773         * doc/posix-functions/fchownat.texi: New file.
51774         * doc/posix-functions/fdopendir.texi: New file.
51775         * doc/posix-functions/fstatat.texi: New file.
51776         * doc/posix-functions/futimens.texi: New file.
51777         * doc/posix-functions/linkat.texi: New file.
51778         * doc/posix-functions/mkdirat.texi: New file.
51779         * doc/posix-functions/mkfifoat.texi: New file.
51780         * doc/posix-functions/mknodat.texi: New file.
51781         * doc/posix-functions/open_wmemstream.texi: New file.
51782         * doc/posix-functions/openat.texi: New file.
51783         * doc/posix-functions/psiginfo.texi: New file.
51784         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
51785         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
51786         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
51787         * doc/posix-functions/readlinkat.texi: New file.
51788         * doc/posix-functions/renameat.texi: New file.
51789         * doc/posix-functions/strerror_l.texi: New file.
51790         * doc/posix-functions/symlinkat.texi: New file.
51791         * doc/posix-functions/unlinkat.texi: New file.
51792         * doc/posix-functions/utimensat.texi: New file.
51793         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51794
51795 2008-12-14  Bruno Haible  <bruno@clisp.org>
51796
51797         Update doc for POSIX:2008.
51798         * doc/posix-functions/alphasort.texi: Renamed from
51799         doc/glibc-functions/alphasort.texi.
51800         * doc/posix-functions/dirfd.texi: Renamed from
51801         doc/glibc-functions/dirfd.texi.
51802         * doc/posix-functions/dprintf.texi: Renamed from
51803         doc/glibc-functions/dprintf.texi.
51804         * doc/posix-functions/duplocale.texi: Renamed from
51805         doc/glibc-functions/duplocale.texi.
51806         * doc/posix-functions/fexecve.texi: Renamed from
51807         doc/glibc-functions/fexecve.texi.
51808         * doc/posix-functions/fmemopen.texi: Renamed from
51809         doc/glibc-functions/fmemopen.texi.
51810         * doc/posix-functions/freelocale.texi: Renamed from
51811         doc/glibc-functions/freelocale.texi.
51812         * doc/posix-functions/getdate_err.texi: Renamed from
51813         doc/glibc-functions/getdate_err.texi.
51814         * doc/posix-functions/isalnum_l.texi: Renamed from
51815         doc/glibc-functions/isalnum_l.texi.
51816         * doc/posix-functions/isalpha_l.texi: Renamed from
51817         doc/glibc-functions/isalpha_l.texi.
51818         * doc/posix-functions/isblank_l.texi: Renamed from
51819         doc/glibc-functions/isblank_l.texi.
51820         * doc/posix-functions/iscntrl_l.texi: Renamed from
51821         doc/glibc-functions/iscntrl_l.texi.
51822         * doc/posix-functions/isdigit_l.texi: Renamed from
51823         doc/glibc-functions/isdigit_l.texi.
51824         * doc/posix-functions/isgraph_l.texi: Renamed from
51825         doc/glibc-functions/isgraph_l.texi.
51826         * doc/posix-functions/islower_l.texi: Renamed from
51827         doc/glibc-functions/islower_l.texi.
51828         * doc/posix-functions/isprint_l.texi: Renamed from
51829         doc/glibc-functions/isprint_l.texi.
51830         * doc/posix-functions/ispunct_l.texi: Renamed from
51831         doc/glibc-functions/ispunct_l.texi.
51832         * doc/posix-functions/isspace_l.texi: Renamed from
51833         doc/glibc-functions/isspace_l.texi.
51834         * doc/posix-functions/isupper_l.texi: Renamed from
51835         doc/glibc-functions/isupper_l.texi.
51836         * doc/posix-functions/iswalnum_l.texi: Renamed from
51837         doc/glibc-functions/iswalnum_l.texi.
51838         * doc/posix-functions/iswalpha_l.texi: Renamed from
51839         doc/glibc-functions/iswalpha_l.texi.
51840         * doc/posix-functions/iswblank_l.texi: Renamed from
51841         doc/glibc-functions/iswblank_l.texi.
51842         * doc/posix-functions/iswcntrl_l.texi: Renamed from
51843         doc/glibc-functions/iswcntrl_l.texi.
51844         * doc/posix-functions/iswctype_l.texi: Renamed from
51845         doc/glibc-functions/iswctype_l.texi.
51846         * doc/posix-functions/iswdigit_l.texi: Renamed from
51847         doc/glibc-functions/iswdigit_l.texi.
51848         * doc/posix-functions/iswgraph_l.texi: Renamed from
51849         doc/glibc-functions/iswgraph_l.texi.
51850         * doc/posix-functions/iswlower_l.texi: Renamed from
51851         doc/glibc-functions/iswlower_l.texi.
51852         * doc/posix-functions/iswprint_l.texi: Renamed from
51853         doc/glibc-functions/iswprint_l.texi.
51854         * doc/posix-functions/iswpunct_l.texi: Renamed from
51855         doc/glibc-functions/iswpunct_l.texi.
51856         * doc/posix-functions/iswspace_l.texi: Renamed from
51857         doc/glibc-functions/iswspace_l.texi.
51858         * doc/posix-functions/iswupper_l.texi: Renamed from
51859         doc/glibc-functions/iswupper_l.texi.
51860         * doc/posix-functions/iswxdigit_l.texi: Renamed from
51861         doc/glibc-functions/iswxdigit_l.texi.
51862         * doc/posix-functions/isxdigit_l.texi: Renamed from
51863         doc/glibc-functions/isxdigit_l.texi.
51864         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
51865         doc/glibc-functions/mbsnrtowcs.texi.
51866         * doc/posix-functions/mkdtemp.texi: Renamed from
51867         doc/glibc-functions/mkdtemp.texi.
51868         * doc/posix-functions/newlocale.texi: Renamed from
51869         doc/glibc-functions/newlocale.texi.
51870         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
51871         doc/glibc-functions/nl_langinfo_l.texi.
51872         * doc/posix-functions/open_memstream.texi: Renamed from
51873         doc/glibc-functions/open_memstream.texi.
51874         * doc/posix-functions/opterr.texi: Renamed from
51875         doc/glibc-functions/opterr.texi.
51876         * doc/posix-functions/optind.texi: Renamed from
51877         doc/glibc-functions/optind.texi.
51878         * doc/posix-functions/optopt.texi: Renamed from
51879         doc/glibc-functions/optopt.texi.
51880         * doc/posix-functions/psignal.texi: Renamed from
51881         doc/glibc-functions/psignal.texi.
51882         * doc/posix-functions/scandir.texi: Renamed from
51883         doc/glibc-functions/scandir.texi.
51884         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
51885         doc/glibc-functions/sched_get_priority_min.texi.
51886         * doc/posix-functions/signgam.texi: Renamed from
51887         doc/glibc-functions/signgam.texi.
51888         * doc/posix-functions/stpcpy.texi: Renamed from
51889         doc/glibc-functions/stpcpy.texi.
51890         * doc/posix-functions/stpncpy.texi: Renamed from
51891         doc/glibc-functions/stpncpy.texi.
51892         * doc/posix-functions/strcasecmp_l.texi: Renamed from
51893         doc/glibc-functions/strcasecmp_l.texi.
51894         * doc/posix-functions/strcoll_l.texi: Renamed from
51895         doc/glibc-functions/strcoll_l.texi.
51896         * doc/posix-functions/strfmon_l.texi: Renamed from
51897         doc/glibc-functions/strfmon_l.texi.
51898         * doc/posix-functions/strftime_l.texi: Renamed from
51899         doc/glibc-functions/strftime_l.texi.
51900         * doc/posix-functions/strncasecmp_l.texi: Renamed from
51901         doc/glibc-functions/strncasecmp_l.texi.
51902         * doc/posix-functions/strndup.texi: Renamed from
51903         doc/glibc-functions/strndup.texi.
51904         * doc/posix-functions/strnlen.texi: Renamed from
51905         doc/glibc-functions/strnlen.texi.
51906         * doc/posix-functions/strsignal.texi: Renamed from
51907         doc/glibc-functions/strsignal.texi.
51908         * doc/posix-functions/strxfrm_l.texi: Renamed from
51909         doc/glibc-functions/strxfrm_l.texi.
51910         * doc/posix-functions/timer_gettime.texi: Renamed from
51911         doc/glibc-functions/timer_gettime.texi.
51912         * doc/posix-functions/tolower_l.texi: Renamed from
51913         doc/glibc-functions/tolower_l.texi.
51914         * doc/posix-functions/toupper_l.texi: Renamed from
51915         doc/glibc-functions/toupper_l.texi.
51916         * doc/posix-functions/towctrans_l.texi: Renamed from
51917         doc/glibc-functions/towctrans_l.texi.
51918         * doc/posix-functions/towlower_l.texi: Renamed from
51919         doc/glibc-functions/towlower_l.texi.
51920         * doc/posix-functions/towupper_l.texi: Renamed from
51921         doc/glibc-functions/towupper_l.texi.
51922         * doc/posix-functions/uselocale.texi: Renamed from
51923         doc/glibc-functions/uselocale.texi.
51924         * doc/posix-functions/vdprintf.texi: Renamed from
51925         doc/glibc-functions/vdprintf.texi.
51926         * doc/posix-functions/wcpcpy.texi:
51927         Renamed from doc/glibc-functions/wcpcpy.texi.
51928         * doc/posix-functions/wcpncpy.texi: Renamed from
51929         doc/glibc-functions/wcpncpy.texi.
51930         * doc/posix-functions/wcscasecmp.texi: Renamed from
51931         doc/glibc-functions/wcscasecmp.texi.
51932         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
51933         doc/glibc-functions/wcscasecmp_l.texi.
51934         * doc/posix-functions/wcscoll_l.texi: Renamed from
51935         doc/glibc-functions/wcscoll_l.texi.
51936         * doc/posix-functions/wcsdup.texi: Renamed from
51937         doc/glibc-functions/wcsdup.texi.
51938         * doc/posix-functions/wcsncasecmp.texi: Renamed from
51939         doc/glibc-functions/wcsncasecmp.texi.
51940         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
51941         doc/glibc-functions/wcsncasecmp_l.texi.
51942         * doc/posix-functions/wcsnlen.texi: Renamed from
51943         doc/glibc-functions/wcsnlen.texi.
51944         * doc/posix-functions/wcsnrtombs.texi: Renamed from
51945         doc/glibc-functions/wcsnrtombs.texi.
51946         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
51947         doc/glibc-functions/wcsxfrm_l.texi.
51948         * doc/posix-functions/wctrans_l.texi: Renamed from
51949         doc/glibc-functions/wctrans_l.texi.
51950         * doc/posix-functions/wctype_l.texi: Renamed from
51951         doc/glibc-functions/wctype_l.texi.
51952         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51953         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
51954         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
51955         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
51956         these subsections.
51957         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
51958         Remove sections.
51959
51960 2008-12-14  Bruno Haible  <bruno@clisp.org>
51961
51962         Update doc for POSIX:2008.
51963         * doc/posix-functions/*.texi: Update URL of POSIX specification.
51964
51965 2008-12-14  Bruno Haible  <bruno@clisp.org>
51966
51967         Update doc for POSIX:2008.
51968         * doc/pastposix-functions/bcmp.texi: Renamed from
51969         doc/posix-functions/bcmp.texi.
51970         * doc/pastposix-functions/bcopy.texi: Renamed from
51971         doc/posix-functions/bcopy.texi.
51972         * doc/pastposix-functions/bsd_signal.texi: Renamed from
51973         doc/posix-functions/bsd_signal.texi.
51974         * doc/pastposix-functions/bzero.texi: Renamed from
51975         doc/posix-functions/bzero.texi.
51976         * doc/pastposix-functions/ecvt.texi: Renamed from
51977         doc/posix-functions/ecvt.texi.
51978         * doc/pastposix-functions/fcvt.texi: Renamed from
51979         doc/posix-functions/fcvt.texi.
51980         * doc/pastposix-functions/ftime.texi: Renamed from
51981         doc/posix-functions/ftime.texi.
51982         * doc/pastposix-functions/gcvt.texi: Renamed from
51983         doc/posix-functions/gcvt.texi.
51984         * doc/pastposix-functions/getcontext.texi: Renamed from
51985         doc/posix-functions/getcontext.texi.
51986         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
51987         doc/posix-functions/gethostbyaddr.texi.
51988         * doc/pastposix-functions/gethostbyname.texi: Renamed from
51989         doc/posix-functions/gethostbyname.texi.
51990         * doc/pastposix-functions/getwd.texi: Renamed from
51991         doc/posix-functions/getwd.texi.
51992         * doc/pastposix-functions/h_errno.texi: Renamed from
51993         doc/posix-functions/h_errno.texi.
51994         * doc/pastposix-functions/index.texi: Renamed from
51995         doc/posix-functions/index.texi.
51996         * doc/pastposix-functions/makecontext.texi: Renamed from
51997         doc/posix-functions/makecontext.texi.
51998         * doc/pastposix-functions/mktemp.texi: Renamed from
51999         doc/posix-functions/mktemp.texi.
52000         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52001         doc/posix-functions/pthread_attr_getstackaddr.texi.
52002         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52003         doc/posix-functions/pthread_attr_setstackaddr.texi.
52004         * doc/pastposix-functions/rindex.texi: Renamed from
52005         doc/posix-functions/rindex.texi.
52006         * doc/pastposix-functions/scalb.texi: Renamed from
52007         doc/posix-functions/scalb.texi.
52008         * doc/pastposix-functions/setcontext.texi: Renamed from
52009         doc/posix-functions/setcontext.texi.
52010         * doc/pastposix-functions/swapcontext.texi: Renamed from
52011         doc/posix-functions/swapcontext.texi.
52012         * doc/pastposix-functions/ualarm.texi: Renamed from
52013         doc/posix-functions/ualarm.texi.
52014         * doc/pastposix-functions/usleep.texi: Renamed from
52015         doc/posix-functions/usleep.texi.
52016         * doc/pastposix-functions/vfork.texi: Renamed from
52017         doc/posix-functions/vfork.texi.
52018         * doc/pastposix-functions/wcswcs.texi: Renamed from
52019         doc/posix-functions/wcswcs.texi.
52020         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52021         (Function Substitutes): Update.
52022
52023 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52024
52025         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52026         m4/strerror.m4.
52027
52028 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52029             Bruno Haible  <bruno@clisp.org>
52030
52031         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52032
52033 2008-12-13  Bruno Haible  <bruno@clisp.org>
52034
52035         * modules/strtoull (Depends-on): Remove unistd.
52036
52037 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52038
52039         * modules/strtoull (Depends-on): Add stdlib.
52040
52041 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52042
52043         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52044
52045 2008-12-10  Jim Meyering  <meyering@redhat.com>
52046
52047         gl_ASSERT: don't say assertions are disabled when they're not
52048         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52049         "checking whether to enable assertions... no", when they are in
52050         fact enabled.  This is solely a bug in the output of configure.
52051         In spite of saying "no", NDEBUG was not defined in that case.
52052         Also, as noted by Eric Blake, leave assertions enabled upon
52053         --enable-assert=INVALID.
52054
52055 2008-12-10  Bruno Haible  <bruno@clisp.org>
52056
52057         Change MODULES.html to refer to POSIX:2008 where possible.
52058         * MODULES.html.sh (POSIX2008_URL): New variable.
52059         (posix_headers): Remove sys/timeb, ucontext.
52060         (posix2001_headers): New variable.
52061         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52062         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52063         index, makecontext, mktemp, pthread_attr_getstackaddr,
52064         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52065         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52066         (posix2001_functions): New variable.
52067         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52068         otherwise.
52069
52070 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52071
52072         add missing include to parse-duration.c
52073         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52074         * modules/parse-duration (Depends-on): Add xalloc.
52075
52076         fix sed script reading maint.mk
52077         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52078         (syntax-check-rules): Use it.
52079
52080 2008-12-09  Bruno Haible  <bruno@clisp.org>
52081
52082         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52083         MacOS X 10.4/PowerPC.
52084         Reported by Simon Josefsson.
52085
52086 2008-12-08  Jim Meyering  <meyering@redhat.com>
52087
52088         work around mingw's lack of some S_IF definitions
52089         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52090         Reported by Simon Josefsson.
52091
52092 2008-12-08  Bruno Haible  <bruno@clisp.org>
52093
52094         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52095         applied to variables. Needed on MacOS X 10.4/PowerPC.
52096         Reported by Simon Josefsson.
52097
52098 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52099         and Eric Blake  <ebb9@byu.net>
52100
52101         assert: honor --enable-assert
52102         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52103         order to honor --enable-assert, rather than treating it as a
52104         synonym for --disable-assert.
52105
52106 2008-12-08  Jim Meyering  <meyering@redhat.com>
52107
52108         * lib/posixtm.c: Remove now-useless declaration of mktime.
52109
52110         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52111
52112 2008-12-07  Bruno Haible  <bruno@clisp.org>
52113
52114         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52115         test_once): Mark functions as static.
52116         * tests/test-tls.c (test_tls): Likewise.
52117
52118 2008-12-07  Bruno Haible  <bruno@clisp.org>
52119
52120         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52121         iconv_register_autodetect.
52122
52123 2008-12-07  Jim Meyering  <meyering@redhat.com>
52124
52125         posixtm.c: avoid a warning
52126         * lib/posixtm.c (posixtime): Don't initialize tm0.
52127         It's no longer needed to placate gcc4's -Wuninitialized,
52128         and the attempt to placate would elicit a new warning.
52129
52130         unicodeio.c: mark unused parameters
52131         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52132         (fallback_failure_callback): Likewise.
52133
52134 2008-12-07  Bruno Haible  <bruno@clisp.org>
52135
52136         * gnulib-tool (func_create_testdir): When building the tests
52137         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52138         Reported by Simon Josefsson.
52139
52140 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52141
52142         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52143
52144 2008-12-06  Bruno Haible  <bruno@clisp.org>
52145
52146         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52147         Suggested by Eric Blake.
52148
52149 2008-12-06  Bruno Haible  <bruno@clisp.org>
52150
52151         Fix a c-stack test failure on MacOS X.
52152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52153         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52154         handler for SIGBUS as well.
52155         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52156         install a signal handler for SIGBUS as well.
52157         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52158
52159 2008-12-06  Bruno Haible  <bruno@clisp.org>
52160
52161         Advocacy documentation.
52162         * doc/gnulib-intro.texi (Benefits): New section.
52163         * doc/gnulib.texi: Update.
52164
52165 2008-12-06  Bruno Haible  <bruno@clisp.org>
52166
52167         Document the 'manywarnings' module.
52168         * doc/manywarnings.texi: New file.
52169         * doc/gnulib.texi: Include it.
52170
52171 2008-12-05  Eric Blake  <ebb9@byu.net>
52172
52173         tests: silence some gcc warnings
52174         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52175         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52176         type mismatches.
52177
52178 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52179             Bruno Haible  <bruno@clisp.org>
52180
52181         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52182
52183 2008-11-29  Jim Meyering  <meyering@redhat.com>
52184
52185         unicodeio.c: mark unused parameters
52186         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52187         (fallback_failure_callback): Likewise.
52188
52189         fts: fix a thinko
52190         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52191         (set_stat_type): Return S_IF*-valued "type" directly.
52192         Prompted by James Youngman's spotting a related bug.
52193         Confirmed by further testing through find.
52194
52195         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52196         * lib/fts.c (D_TYPE): Define.
52197         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52198         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52199         (s_ifmt_shift_bits): New function.
52200         (set_stat_type): New function.
52201         (fts_build): When not calling fts_stat, call set_stat_type
52202         to propagate dirent.d_type info to fts_read caller.
52203         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52204         fts_statp->st_mode type information may be valid.
52205
52206 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52207
52208         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52209         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52210         <sds@gnu.org>.
52211
52212 2008-11-20  Bruno Haible  <bruno@clisp.org>
52213
52214         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52215         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52216         INCLUDE_NEXT.
52217         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52218         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52219         * modules/math (Makefile.am): Substitute
52220         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52221         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52222
52223 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52224             Bruno Haible  <bruno@clisp.org>
52225
52226         * lib/stdint.in.h: Define all type macros so that their expansion is
52227         a single typedef'ed token. Fixes a compilation failure in Boost which
52228         does "using ::int8_t;".
52229
52230 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52231
52232         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52233         gl_MANYWARN_ALL_GCC.
52234         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52235         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52236         * modules/manywarnings: New file.
52237         * MODULES.html.sh: Mention manywarnings module.
52238
52239 2008-11-18  Bruno Haible  <bruno@clisp.org>
52240
52241         * doc/gnulib-tool.texi (Unit tests): New section.
52242
52243 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52244
52245         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52246         paths like 'lib/po/foo.po'.
52247
52248 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52249
52250         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52251         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52252
52253 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52254
52255         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52256         parameter works.
52257
52258 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52259
52260         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52261
52262 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52263
52264         * modules/parse-duration-tests: New file.
52265         * tests/test-parse-duration.sh: New file.
52266         * tests/test-parse-duration.c: New file.
52267
52268         New module 'parse-duration'.
52269         * lib/parse-duration.h: New file.
52270         * lib/parse-duration.c: New file.
52271         * modules/parse-duration: New file.
52272
52273 2008-11-17  Bruno Haible  <bruno@clisp.org>
52274
52275         * tests/test-select-out.sh: Comment out the first pipe test.
52276         Reported by Simon Josefsson.
52277
52278 2008-11-17  Bruno Haible  <bruno@clisp.org>
52279
52280         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52281         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52282         gl_HOSTENT.
52283
52284 2008-11-17  Bruno Haible  <bruno@clisp.org>
52285
52286         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52287         -lnetwork and -lnet. Needed for Haiku and BeOS.
52288
52289 2008-11-16  Bruno Haible  <bruno@clisp.org>
52290
52291         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52292
52293 2008-11-16  Bruno Haible  <bruno@clisp.org>
52294
52295         Avoid test failure on Haiku.
52296         * tests/test-fsync.c: Include <errno.h>.
52297         (main): Don't require that fsync (0) fails.
52298
52299 2008-11-15  Bruno Haible  <bruno@clisp.org>
52300
52301         New module 'hostent'.
52302         * modules/hostent: New file.
52303         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52304
52305 2008-11-15  Bruno Haible  <bruno@clisp.org>
52306
52307         New module 'servent'.
52308         * modules/servent: New file.
52309         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52310
52311 2008-11-15  Bruno Haible  <bruno@clisp.org>
52312
52313         Avoid generating same test program with two different rules.
52314         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52315         test-frexp to test-frexp-nolibm.
52316         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52317         test-frexpl to test-frexpl-nolibm.
52318
52319 2008-11-15  Bruno Haible  <bruno@clisp.org>
52320
52321         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52322         $(FREXPL_LIBM).
52323
52324 2008-11-15  Bruno Haible  <bruno@clisp.org>
52325
52326         * lib/netdb.in.h: Activate the definitions also when the system's
52327         <netdb.h> has 'struct addrinfo'.
52328         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52329         EAI_OVERFLOW or AI_NUMERICSERV.
52330         * doc/posix-headers/netdb.texi: Document the problem.
52331
52332 2008-11-15  Bruno Haible  <bruno@clisp.org>
52333
52334         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52335
52336         Make the 'sched' module work on platforms where <sched.h> exists but
52337         is incomplete (such as Haiku).
52338         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52339         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52340         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52341         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52342         HAVE_STRUCT_SCHED_PARAM.
52343         * modules/sched (Depends-on): Add include_next.
52344         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52345         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52346         * doc/posix-headers/sched.texi: Document the issue.
52347
52348 2008-11-13  Jim Meyering  <meyering@redhat.com>
52349
52350         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52351         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52352         test would fail due to the difference in the Report bugs to ...
52353         line.  The expected address is empty, "<>", while the actual
52354         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52355
52356 2008-11-12  Bruno Haible  <bruno@clisp.org>
52357
52358         lstat: don't compile lstat.c on systems lacking lstat
52359         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52360         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52361         Reported by Daniel P. Berrange via Jim Meyering.
52362
52363 2008-11-12  Jim Meyering  <meyering@redhat.com>
52364
52365         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52366
52367 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52368
52369         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52370         instead.
52371
52372 2008-11-12  Bruno Haible  <bruno@clisp.org>
52373
52374         * lib/unicodeio.c: Include unistr.h.
52375         (utf8_wctomb): Remove function.
52376         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52377
52378 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52379
52380         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52381         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52382         <bruno@clisp.org>.
52383         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52384
52385 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52386
52387         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52388         * doc/gnulib.texi: Add section for warnings.
52389
52390 2008-11-11  Bruno Haible  <bruno@clisp.org>
52391
52392         * lib/sockets.h: Add a comment.
52393
52394 2008-11-11  Karl Berry  <karl@gnu.org>
52395
52396         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52397
52398 2008-11-11  Eric Blake  <ebb9@byu.net>
52399
52400         fdl.texi: avoid git symlinks
52401         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52402
52403 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52404
52405         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52406
52407 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52408
52409         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52410         (gl_WARN_ADD): Substitute $2 if literal.
52411
52412 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52413
52414         * m4/warning.m4: Remove.
52415
52416 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52417
52418         * m4/warnings.m4: Almost complete rewrite. :-)
52419
52420 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52421
52422         * modules/warnings: New module.
52423         * m4/warnings.m4: New file.
52424         * MODULES.html.sh: Mention warnings module.
52425         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52426         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52427
52428 2008-11-10  Eric Blake  <ebb9@byu.net>
52429
52430         fdl.texi: make a symlink to the latest version
52431         * doc/standards.texi: Revert today's earlier change.
52432         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52433         * doc/fdl.texi: ...and replace this with a symlink to the newer
52434         fdl-1.3.texi.
52435
52436 2008-11-10  Bruno Haible  <bruno@clisp.org>
52437
52438         * tests/test-select-fd.c (main): Accept the result file name as fourth
52439         argument.
52440         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52441         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52442
52443 2008-11-10  Bruno Haible  <bruno@clisp.org>
52444
52445         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52446         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52447         as autoconf-substituted macros.
52448         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52449         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52450         gl_NETDB_H_DEFAULTS. Set these variables.
52451         * modules/netdb (Makefile.am): Substitute these variables.
52452
52453 2008-11-10  Eric Blake  <ebb9@byu.net>
52454
52455         standards.texi: include correct file for FDL 1.3
52456         * doc/standards.texi (GNU Free Documentation License): Change
52457         include file to pull in FDL 1.3, not 1.2.
52458
52459         fdl.texi: revert accidental change to license
52460         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52461
52462 2008-11-10  Bruno Haible  <bruno@clisp.org>
52463
52464         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52465         cross-compiling guesses also when the native compile gives no result.
52466
52467 2008-11-10  Bruno Haible  <bruno@clisp.org>
52468
52469         * lib/spawni.c (__spawni): Force variable into the stack.
52470
52471 2008-11-10  Bruno Haible  <bruno@clisp.org>
52472
52473         Add support for Haiku.
52474         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52475         glibc and BeOS, but also on Haiku.
52476         * lib/fpurge.c (fpurge): Likewise.
52477         * lib/freadable.c (freadable): Likewise.
52478         * lib/freadahead.c (freadahead): Likewise.
52479         * lib/freading.c (freading): Likewise.
52480         * lib/freadptr.c (freadptr): Likewise.
52481         * lib/freadseek.c (freadptrinc): Likewise.
52482         * lib/fseeko.c (rpl_fseeko): Likewise.
52483         * lib/fseterr.c (fseterr): Likewise.
52484         * lib/fwritable.c (fwritable): Likewise.
52485         * lib/fwriting.c (fwriting): Likewise.
52486         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52487
52488 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52489
52490         * lib/config.charset: Treat Haiku like BeOS.
52491
52492 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52493
52494         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52495         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52496
52497 2008-11-08  Bruno Haible  <bruno@clisp.org>
52498
52499         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52500         AC_CACHE_CHECK.
52501
52502 2008-11-08  Bruno Haible  <bruno@clisp.org>
52503
52504         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52505
52506 2008-11-08  Bruno Haible  <bruno@clisp.org>
52507
52508         * tests/test-select-fd.c: New file.
52509         * tests/test-select-in.sh: New file.
52510         * tests/test-select-out.sh: New file.
52511         * tests/test-select-stdin.c: New file.
52512         * modules/select-tests (Files): Add the new files.
52513         (Depends-on): Add gettimeofday.
52514         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52515         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52516         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52517
52518 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52519             Bruno Haible  <bruno@clisp.org>
52520
52521         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52522
52523 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52524
52525         * build-aux/pmccabe2html: Added support for C++ source files.
52526
52527 2008-11-05  Ben Pfaff  <blp@gnu.org>
52528
52529         Fix lib/close.c build on Windows.
52530         * modules/close (Files): Add lib/w32sock.h.
52531
52532 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
52533
52534         Accept Bison's NEWS format.
52535         * build-aux/announce-gen (print_news_deltas): Tweak
52536         $re_prefix.
52537
52538 2008-11-04  Bruno Haible  <bruno@clisp.org>
52539
52540         * modules/random_r (Maintainer): Add glibc.
52541
52542 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52543
52544         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
52545         by karl@freefriends.org (Karl Berry).
52546         * doc/alloca.texi: Likewise.
52547         * doc/c-ctype.texi: Likewise.
52548         * doc/c-strcase.texi: Likewise.
52549         * doc/c-strcaseeq.texi: Likewise.
52550         * doc/c-strcasestr.texi: Likewise.
52551         * doc/c-strstr.texi: Likewise.
52552         * doc/c-strtod.texi: Likewise.
52553         * doc/c-strtold.texi: Likewise.
52554         * doc/ctime.texi: Likewise.
52555         * doc/error.texi: Likewise.
52556         * doc/fdl.texi: Likewise.
52557         * doc/gcd.texi: Likewise.
52558         * doc/getdate.texi: Likewise.
52559         * doc/gnulib-intro.texi: Likewise.
52560         * doc/gnulib-tool.texi: Likewise.
52561         * doc/gnulib.texi: Likewise.
52562         * doc/inet_ntoa.texi: Likewise.
52563         * doc/maintain.texi: Likewise.
52564         * doc/make-stds.texi: Likewise.
52565         * doc/quote.texi: Likewise.
52566         * doc/regexprops-generic.texi: Likewise.
52567         * doc/standards.texi: Likewise.
52568         * doc/verify.texi: Likewise.
52569         * doc/visibility.texi: Likewise.
52570         * doc/gnulib.texi (GNU Free Documentation License): Include
52571         fdl-1.3.texi instead of fdl.texi.
52572
52573 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52574
52575         * doc/fdl-1.3.texi: New file, from
52576         <http://www.gnu.org/licenses/fdl-1.3.texi>.
52577         * modules/fdl-1.3: Add.
52578         * MODULES.html.sh: Add fdl-1.3.
52579
52580 2008-11-03  Bruno Haible  <bruno@clisp.org>
52581
52582         Make determination of absolute name of header file work with AIX xlc.
52583         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
52584         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
52585         preprocessing.
52586         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52587         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52588
52589 2008-11-03  Simon Josefsson  <simon@josefsson.org>
52590
52591         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
52592         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
52593         <ludo@gnu.org>.
52594
52595 2008-11-02  Bruno Haible  <bruno@clisp.org>
52596
52597         Mark 'strpbrk' obsolete.
52598         * modules/strpbrk (Status, Notice): New sections.
52599         * modules/strtok_r (Depends-on): Add strpbrk.
52600
52601 2008-11-02  Bruno Haible  <bruno@clisp.org>
52602
52603         Mark 'strdup' obsolete.
52604         * modules/strdup (Status, Notice): New sections.
52605         * modules/findprog (Depends-on): Add strdup.
52606         * modules/getaddrinfo (Depends-on): Likewise.
52607         * modules/localename (Depends-on): Likewise.
52608         * modules/relocatable-lib (Depends-on): Likewise.
52609         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
52610         * modules/relocatable-prog (Depends-on): Likewise.
52611         * modules/trim (Depends-on): Likewise.
52612         * modules/unictype/gen-ctype (Depends-on): Likewise.
52613         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52614
52615 2008-11-02  Bruno Haible  <bruno@clisp.org>
52616
52617         Mark 'strcspn' obsolete.
52618         * modules/strcspn (Status, Notice): New sections.
52619
52620 2008-11-02  Bruno Haible  <bruno@clisp.org>
52621
52622         Mark 'rmdir' obsolete.
52623         * modules/rmdir (Status, Notice): New sections.
52624         * modules/clean-temp (Depends-on): Add rmdir.
52625         * modules/openat (Depends-on): Likewise.
52626
52627 2008-11-02  Bruno Haible  <bruno@clisp.org>
52628
52629         Mark 'raise' obsolete.
52630         * modules/raise (Status, Notice): New sections.
52631         (Include): Specify <signal.h>.
52632         * modules/stdio (Depends-on): Add raise.
52633         * modules/write (Depends-on): Likewise.
52634
52635 2008-11-02  Bruno Haible  <bruno@clisp.org>
52636
52637         Mark 'memset' obsolete.
52638         * modules/memset (Status, Notice): New sections.
52639
52640 2008-11-02  Bruno Haible  <bruno@clisp.org>
52641
52642         Mark 'memmove' obsolete.
52643         * modules/memmove (Status, Notice): New sections.
52644         * modules/argp (Depends-on): Add memmove.
52645         * modules/argz (Depends-on): Likewise.
52646         * modules/canonicalize (Depends-on): Likewise.
52647         * modules/canonicalize-lgpl (Depends-on): Likewise.
52648         * modules/fts (Depends-on): Likewise.
52649         * modules/getcwd (Depends-on): Likewise.
52650         * modules/human (Depends-on): Likewise.
52651         * modules/regex (Depends-on): Likewise.
52652         * modules/striconveh (Depends-on): Likewise.
52653         * modules/trim (Depends-on): Likewise.
52654         * modules/unistr/u8-move (Depends-on): Likewise.
52655         * modules/unistr/u16-move (Depends-on): Likewise.
52656         * modules/unistr/u32-move (Depends-on): Likewise.
52657
52658 2008-11-02  Bruno Haible  <bruno@clisp.org>
52659
52660         Mark 'memcpy' obsolete.
52661         * modules/memcpy (Status, Notice): New sections.
52662
52663 2008-11-02  Bruno Haible  <bruno@clisp.org>
52664
52665         Mark 'memcmp' obsolete.
52666         * modules/memcmp (Status, Notice): New sections.
52667         * modules/argmatch (Depends-on): Add memchr.
52668         * modules/backupfile (Depends-on): Likewise.
52669         * modules/c-strcasestr (Depends-on): Likewise.
52670         * modules/crypto/des (Depends-on): Likewise.
52671         * modules/csharpcomp (Depends-on): Likewise.
52672         * modules/fnmatch (Depends-on): Likewise.
52673         * modules/git-merge-changelog (Depends-on): Likewise.
52674         * modules/isnand (Depends-on): Likewise.
52675         * modules/isnand-nolibm (Depends-on): Likewise.
52676         * modules/isnanf (Depends-on): Likewise.
52677         * modules/isnanf-nolibm (Depends-on): Likewise.
52678         * modules/isnanl (Depends-on): Likewise.
52679         * modules/isnanl-nolibm (Depends-on): Likewise.
52680         * modules/mbchar (Depends-on): Likewise.
52681         * modules/memcoll (Depends-on): Likewise.
52682         * modules/quotearg (Depends-on): Likewise.
52683         * modules/regex (Depends-on): Likewise.
52684         * modules/relocatable-prog (Depends-on): Likewise.
52685         * modules/same (Depends-on): Likewise.
52686         * modules/signbit (Depends-on): Likewise.
52687         * modules/strcasestr-simple (Depends-on): Likewise.
52688         * modules/unictype/gen-ctype (Depends-on): Likewise.
52689         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52690         * modules/uniname/uniname (Depends-on): Likewise.
52691         * modules/unistr/u8-cmp (Depends-on): Likewise.
52692
52693 2008-11-02  Bruno Haible  <bruno@clisp.org>
52694
52695         Mark 'memchr' obsolete.
52696         * modules/memchr (Status, Notice): New sections.
52697         * modules/argp (Depends-on): Add memchr.
52698         * modules/base64 (Depends-on): Likewise.
52699         * modules/c-strcasestr (Depends-on): Likewise.
52700         * modules/chdir-long (Depends-on): Likewise.
52701         * modules/fnmatch (Depends-on): Likewise.
52702         * modules/getsubopt (Depends-on): Likewise.
52703         * modules/git-merge-changelog (Depends-on): Likewise.
52704         * modules/glob (Depends-on): Likewise.
52705         * modules/strcasestr-simple (Depends-on): Likewise.
52706         * modules/strnlen (Depends-on): Likewise.
52707
52708 2008-11-02  Bruno Haible  <bruno@clisp.org>
52709
52710         Mark 'atexit' obsolete.
52711         * modules/atexit (Status, Notice): New sections.
52712         * modules/chdir-long (Depends-on): Add atexit.
52713         * modules/wait-process (Depends-on): Likewise.
52714
52715 2008-11-02  Bruno Haible  <bruno@clisp.org>
52716
52717         * gnulib-tool: New option --with-obsolete.
52718         (func_usage): Document it.
52719         (func_modules_transitive_closure): Drop obsolete dependencies if
52720         incobsolete is not true.
52721         (func_import): Read and save the incobsolete variable to the cache.
52722
52723 2008-11-02  Bruno Haible  <bruno@clisp.org>
52724
52725         * modules/TEMPLATE-EXTENDED: New field 'Status'.
52726         * gnulib-tool: New option --extract-status.
52727         (func_usage): Document it.
52728         (sed_extract_prog): Recognize it.
52729         (func_get_status): New function.
52730
52731 2008-10-30  Simon Josefsson  <simon@josefsson.org>
52732
52733         * modules/sockets (License): Change from LGPL to LGPLv2+.
52734
52735 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52736
52737         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
52738
52739 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52740
52741         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52742         Mention times and sys_times.
52743         * modules/sys_times, modules/sys_times-tests: New modules.
52744         * modules/times, modules/times-tests: Likewise
52745         * m4/sys_times_h.m4: New file.
52746         * lib/sys_times.in.h: Likewise
52747         * lib/times.c: Likewise.
52748         * tests/test-sys_times.c: Likewise.
52749         * tests/test-times.c: Likewise.
52750         * doc/posix-headers/sys_times.texi: Update.
52751         * doc/posix-functions/times.texi: Update.
52752
52753 2008-10-28  Jim Meyering  <meyering@redhat.com>
52754
52755         * modules/tempname (Depends-on): Add lstat.
52756
52757         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
52758
52759 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52760
52761         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
52762         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
52763         using idiom used elsewhere in gnulib.
52764
52765 2008-10-27  Jim Meyering  <meyering@redhat.com>
52766
52767         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
52768
52769 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52770
52771         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
52772         TESTS_ENVIRONMENT, for shell scripts that needs to call built
52773         programs.
52774         * tests/test-argp-2.sh: Use $EXEEXT when needed.
52775
52776 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52777
52778         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
52779
52780 2008-10-27  Bruno Haible  <bruno@clisp.org>
52781
52782         * tests/test-lstat.c: Include <stdio.h>.
52783
52784 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52785
52786         * modules/lstat-tests: New module.
52787         * tests/test-lstat.c: New file.
52788
52789 2008-10-26  Jim Meyering  <meyering@redhat.com>
52790
52791         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
52792
52793 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52794             Bruno Haible  <bruno@clisp.org>
52795
52796         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
52797         * modules/configmake (Include): Add a note that the include must come
52798         after all system headers.
52799         * lib/javaversion.c: Include configmake.h after all other includes.
52800
52801 2008-10-26  Bruno Haible  <bruno@clisp.org>
52802
52803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
52804         HAVE_STRUCT_RANDOM_DATA to 1.
52805         (gl_STDLIB_H): Simplify.
52806
52807 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52808
52809         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
52810         substitute HAVE_STRUCT_RANDOM_DATA.
52811         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
52812         random_data.
52813         * modules/stdlib (Makefile.am): Substitute
52814         HAVE_STRUCT_RANDOM_DATA.
52815
52816 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52817
52818         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
52819         * doc/gnulib-intro.texi (Copyright): Likewise.
52820
52821 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52822
52823         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
52824         findings.
52825
52826 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
52827             Bruno Haible  <bruno@clisp.org>
52828
52829         * lib/unistd.in.h: Include <winsock2.h>.
52830         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
52831         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
52832         Provide dummy declarations.
52833         (gethostname): Override.
52834         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
52835         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
52836         gl_PREREQ_SYS_H_WINSOCK2.
52837         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
52838         * doc/posix-functions/gethostname.texi: More details.
52839
52840 2008-10-25  Bruno Haible  <bruno@clisp.org>
52841
52842         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52843         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
52844         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
52845
52846         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
52847         here ...
52848         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
52849         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
52850         gl_UNISTD_H_DEFAULTS.
52851
52852 2008-10-25  Eric Blake  <ebb9@byu.net>
52853
52854         signbit: avoid spurious compiler failure
52855         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
52856         declarations inside function.
52857
52858 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52859             Bruno Haible  <bruno@clisp.org>
52860
52861         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
52862         * modules/random_r (Depends-on): Add stdint.
52863
52864 2008-10-24  Bruno Haible  <bruno@clisp.org>
52865
52866         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
52867         Eggert.
52868         * modules/strerror (License): Likewise.
52869
52870 2008-10-24  Jim Meyering  <meyering@redhat.com>
52871
52872         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
52873         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
52874
52875 2008-10-24  Eric Blake  <ebb9@byu.net>
52876
52877         getgroups: fix compilation when getgroups is available
52878         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
52879         but with <config.h> override of getgroups disabled.
52880
52881 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52882
52883         * doc/gnulib.texi (Header files): Add note about C++ problems.
52884         Explained by Bruno Haible <bruno@clisp.org>.
52885
52886 2008-10-23  Bruno Haible  <bruno@clisp.org>
52887
52888         Define a dummy SA_NODEFER macro on Interix.
52889         * lib/signal.in.h (SA_NODEFER): Define fallback.
52890         Reported by Aleksey Cheusov <cheusov@tut.by> via
52891         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
52892
52893 2008-10-23  Bruno Haible  <bruno@clisp.org>
52894
52895         * modules/freadahead (License): Change to LGPLv2+.
52896         Suggested by Simon Josefsson.
52897
52898 2008-10-23  Jim Meyering  <meyering@redhat.com>
52899
52900         random_r: new module
52901         * modules/random_r: New file.
52902         * m4/random_r.m4: New file.
52903         * lib/random_r.c: New file, from glibc.
52904         * modules/random_r-tests: New file.
52905         * tests/test-random_r.c: New file.
52906         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
52907          Declare.
52908         (RAND_MAX): Define.
52909         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
52910         * modules/stdlib: Substitute them, too.
52911         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
52912         * doc/glibc-functions/initstate_r.texi: Mention the new module.
52913         * doc/glibc-functions/random_r.texi: Likewise.
52914         * doc/glibc-functions/setstate_r.texi: Likewise.
52915         * doc/glibc-functions/srandom_r.texi: Likewise.
52916         * config/srclist.txt: Mention it.
52917
52918 2008-10-23  David Lutterkort  <lutter@redhat.com>
52919
52920         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
52921         link requirement
52922
52923 2008-10-23  Jim Meyering  <meyering@redhat.com>
52924
52925         selinux-h: mark parameters of stub functions as intentionally unused
52926         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
52927         * lib/se-context.in.h: Likewise.
52928
52929 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52930
52931         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
52932
52933 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52934
52935         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
52936
52937 2008-10-22  Eric Blake  <ebb9@byu.net>
52938
52939         glthread/thread: avoid compiler warning
52940         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
52941         Add unreachable abort to silence compiler.
52942
52943 2008-10-22  Eric Blake  <ebb9@byu.net>
52944
52945         netdb: also supply struct addrinfo for cygwin 1.5.x
52946         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
52947         older cygwin.
52948         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
52949         cygwin.
52950         * doc/posix-headers/netdb.texi (netdb.h): Document this.
52951
52952 2008-10-22  Bruno Haible  <bruno@clisp.org>
52953
52954         * users.txt: Update entry about pspp.
52955
52956 2008-10-21  Bruno Haible  <bruno@clisp.org>
52957
52958         Simplification.
52959         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
52960         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
52961
52962         Simplification.
52963         * lib/ioctl.c (ioctl): Don't undefine.
52964         * lib/socket.c (socket): Don't undefine.
52965
52966         Remove unused module indicator macros.
52967         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
52968         GNULIB_$1 as a C macro.
52969
52970         * doc/posix-functions/close.texi: Undo last change.
52971         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
52972         Windows platforms.
52973
52974 2008-10-21  Bruno Haible  <bruno@clisp.org>
52975
52976         Add gethostname() declaration to <unistd.h>.
52977         * lib/unistd.in.h (gethostname): New declaration.
52978         * lib/gethostname.c: Include <unistd.h>.
52979         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
52980         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
52981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
52982         and HAVE_GETHOSTNAME.
52983         * modules/gethostname (Depends-on): Add unistd.
52984         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52985         (Include): Specify <unistd.h>.
52986         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
52987         HAVE_GETHOSTNAME.
52988         * tests/test-gethostname.c: Include <unistd.h> first.
52989
52990 2008-10-21  Bruno Haible  <bruno@clisp.org>
52991
52992         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
52993         * modules/select-tests (Depends-on): Likewise.
52994         Reported by Simon Josefsson.
52995
52996 2008-10-21  Simon Josefsson  <simon@josefsson.org>
52997
52998         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
52999         * lib/accept.c: New file, based on winsock.c.
53000         * lib/bind.c: New file, based on winsock.c.
53001         * lib/connect.c: New file, based on winsock.c.
53002         * lib/getpeername.c: New file, based on winsock.c.
53003         * lib/getsockname.c: New file, based on winsock.c.
53004         * lib/getsockopt.c: New file, based on winsock.c.
53005         * lib/ioctl.c: New file, based on winsock.c.
53006         * lib/listen.c: New file, based on winsock.c.
53007         * lib/recv.c: New file, based on winsock.c.
53008         * lib/recvfrom.c: New file, based on winsock.c.
53009         * lib/send.c: New file, based on winsock.c.
53010         * lib/sendto.c: New file, based on winsock.c.
53011         * lib/setsockopt.c: New file, based on winsock.c.
53012         * lib/shutdown.c: New file, based on winsock.c.
53013         * lib/socket.c: New file, based on winsock.c.
53014         * lib/w32sock.h: New file, based on winsock.c.
53015         * lib/winsock.c: Remove file.
53016         * modules/accept: Likewise.
53017         * modules/bind: Likewise.
53018         * modules/connect: Likewise.
53019         * modules/getpeername: Likewise.
53020         * modules/getsockname: Likewise.
53021         * modules/getsockopt: Likewise.
53022         * modules/ioctl: Likewise.
53023         * modules/listen: Likewise.
53024         * modules/recv: Likewise.
53025         * modules/recvfrom: Likewise.
53026         * modules/send: Likewise.
53027         * modules/sendto: Likewise.
53028         * modules/setsockopt: Likewise.
53029         * modules/shutdown: Likewise.
53030         * modules/socket: Use socket.c instead of winsock.c.
53031         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53032         * doc/posix-functions/accept.texi: Doc fix.
53033         * doc/posix-functions/bind.texi: Doc fix.
53034         * doc/posix-functions/close.texi: Doc fix.
53035         * doc/posix-functions/connect.texi: Doc fix.
53036         * doc/posix-functions/getpeername.texi: Doc fix.
53037         * doc/posix-functions/getsockname.texi: Doc fix.
53038         * doc/posix-functions/getsockopt.texi: Doc fix.
53039         * doc/posix-functions/ioctl.texi: Doc fix.
53040         * doc/posix-functions/listen.texi: Doc fix.
53041         * doc/posix-functions/recv.texi: Doc fix.
53042         * doc/posix-functions/recvfrom.texi: Doc fix.
53043         * doc/posix-functions/send.texi: Doc fix.
53044         * doc/posix-functions/sendto.texi: Doc fix.
53045         * doc/posix-functions/setsockopt.texi: Doc fix.
53046         * doc/posix-functions/shutdown.texi: Doc fix.
53047         * doc/posix-functions/socket.texi: Doc fix.
53048
53049 2008-10-20  Bruno Haible  <bruno@clisp.org>
53050
53051         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53052         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53053         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53054         as an alias for SIGABRT.
53055         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53056         (sigaction): Map it to SIGABRT.
53057         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53058
53059 2008-10-20  Bruno Haible  <bruno@clisp.org>
53060
53061         * lib/fts.c: Don't include lstat.h.
53062         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53063
53064         Move the lstat() declaration to <sys/stat.h>.
53065         * lib/lstat.h: Remove file.
53066         * lib/sys_stat.in.h: Add special invocation convention.
53067         (lstat): New declaration.
53068         * lib/lstat.c (orig_lstat): New function.
53069         (rpl_lstat): Use orig_lstat instead of lstat.
53070         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53071         AC_C_INLINE. Set REPLACE_LSTAT.
53072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53073         and REPLACE_LSTAT.
53074         * modules/lstat (Files): Remove lib/lstat.h.
53075         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53076         (Include): Specify <sys/stat.h> instead of lstat.h.
53077         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53078         REPLACE_LSTAT.
53079         * NEWS: Mention the change.
53080
53081 2008-10-20  Bruno Haible  <bruno@clisp.org>
53082
53083         * modules/posix_spawn-tests: New file.
53084         * tests/test-posix_spawn3.c: New file.
53085
53086 2008-10-20  Bruno Haible  <bruno@clisp.org>
53087
53088         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53089         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53090         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53091         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53092         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53093
53094 2008-10-20  Bruno Haible  <bruno@clisp.org>
53095
53096         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53097         of posix_spawn on AIX 5.3.
53098
53099 2008-10-20  Bruno Haible  <bruno@clisp.org>
53100
53101         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53102
53103 2008-10-20  Bruno Haible  <bruno@clisp.org>
53104
53105         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53106         of AC_LANG_PROGRAM.
53107
53108 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53109
53110         * lib/netdb.in.h: Don't define GNU specific constants until they
53111         are supported or needed.  Reported by Bruno Haible
53112         <bruno@clisp.org>.
53113
53114 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53115
53116         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53117
53118 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53119
53120         * lib/getaddrinfo.h: Remove file.
53121         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53122         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53123         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53124         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53125         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53126         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53127         * tests/test-getaddrinfo.c: Likewise.
53128         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53129         * NEWS: Mention change.
53130
53131 2008-10-19  Bruno Haible  <bruno@clisp.org>
53132
53133         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53134
53135 2008-10-19  Bruno Haible  <bruno@clisp.org>
53136
53137         * lib/wait-process.c: Include simply <sys/wait.h>.
53138         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53139         WIFSTOPPED): Remove fallback definitions.
53140         * modules/wait-process (Depends-on): Add sys_wait.
53141
53142         New module 'sys_wait'.
53143         * modules/sys_wait: New file.
53144         * lib/sys_wait.in.h: New file, partially copied from
53145         lib/wait-process.c.
53146         * m4/sys_wait_h.m4: New file.
53147         * doc/posix-headers/sys_wait.texi: Mention the new module.
53148
53149 2008-10-19  Bruno Haible  <bruno@clisp.org>
53150
53151         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53152
53153 2008-10-19  Bruno Haible  <bruno@clisp.org>
53154
53155         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53156         * lib/wait-process.c (WAIT_T): Remove type.
53157         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53158         (wait_subprocess): Update.
53159
53160 2008-10-19  Bruno Haible  <bruno@clisp.org>
53161
53162         New module 'atoll'.
53163         * modules/atoll: New file.
53164         * lib/stdlib.in.h (atoll): New declaration.
53165         * lib/atoll.c: New file, from glibc with modifications.
53166         * m4/atoll.m4: New file.
53167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53168         HAVE_ATOLL.
53169         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53170         * doc/posix-functions/atoll.texi: Mention the new module.
53171
53172 2008-10-19  Bruno Haible  <bruno@clisp.org>
53173
53174         Add strtoull() declaration to <stdlib.h>.
53175         * lib/stdlib.in.h (strtoull): New declaration.
53176         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53177         Set HAVE_STRTOULL.
53178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53179         HAVE_STRTOULL.
53180         * modules/strtoull (Depends-on): Add stdlib.
53181         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53182         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53183         HAVE_STRTOULL.
53184
53185 2008-10-19  Bruno Haible  <bruno@clisp.org>
53186
53187         Add strtoll() declaration to <stdlib.h>.
53188         * lib/stdlib.in.h (strtoll): New declaration.
53189         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53190         Set HAVE_STRTOLL.
53191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53192         HAVE_STRTOLL.
53193         * modules/strtoll (Depends-on): Add stdlib.
53194         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53195         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53196
53197 2008-10-19  Bruno Haible  <bruno@clisp.org>
53198
53199         * modules/bcopy (Depends-on): Add strings.
53200         (Include): Specify <strings.h>.
53201
53202 2008-10-19  Bruno Haible  <bruno@clisp.org>
53203
53204         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53205
53206 2008-10-19  Bruno Haible  <bruno@clisp.org>
53207
53208         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53209         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53210         mingw.
53211
53212 2008-10-19  Bruno Haible  <bruno@clisp.org>
53213
53214         * lib/atanl.c: Don't include isnanl.h.
53215         * lib/cosl.c: Likewise.
53216         * lib/ldexpl.c: Likewise.
53217         * lib/logl.c: Likewise.
53218         * lib/sinl.c: Likewise.
53219         * lib/sqrtl.c: Likewise.
53220         * lib/tanl.c: Likewise.
53221
53222         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53223         * lib/isnanf.h: Remove file.
53224         * lib/isnand.h: Remove file.
53225         * lib/isnanl.h: Remove file.
53226         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53227         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53228         macros.
53229         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53230         HAVE_ISNANF, don't define it as a C macro.
53231         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53232         HAVE_ISNAND, don't define it as a C macro.
53233         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53234         HAVE_ISNANL, don't define it as a C macro.
53235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53236         HAVE_ISNAN[FDL].
53237         * modules/isnanf (Files): Remove lib/isnanf.h.
53238         (Depends-on): Add math.
53239         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53240         (Include): Specify <math.h> instead of isnanf.h.
53241         * modules/isnand (Files): Remove lib/isnand.h.
53242         (Depends-on): Add math.
53243         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53244         (Include): Specify <math.h> instead of isnand.h.
53245         * modules/isnanl (Files): Remove lib/isnanl.h.
53246         (Depends-on): Add math.
53247         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53248         (Include): Specify <math.h> instead of isnanl.h.
53249         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53250         HAVE_ISNAN[FDL].
53251         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53252         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53253         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53254         * NEWS: Mention the change.
53255
53256 2008-10-18  Bruno Haible  <bruno@clisp.org>
53257
53258         Add getusershell(), setusershell(), endusershell() declarations to
53259         <unistd.h>.
53260         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53261         declarations.
53262         * lib/getusershell.c: Include unistd.h.
53263         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53264         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53265         HAVE_GETUSERSHELL.
53266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53267         and HAVE_GETUSERSHELL.
53268         * modules/getusershell (Depends-on): Add unistd, extensions.
53269         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53270         (Include): Specify <unistd.h>.
53271         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53272         HAVE_GETUSERSHELL.
53273
53274 2008-10-18  Bruno Haible  <bruno@clisp.org>
53275
53276         Add a getloadavg() declaration to <stdlib.h>.
53277         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53278         getloadavg declaration.
53279         (getloadavg): New declaration.
53280         * lib/getloadavg.c: Include <stdlib.h> first.
53281         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53282         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53283         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53285         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53286         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53287         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53288         (Include): Specify <stdlib.h>.
53289         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53290         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53291
53292 2008-10-18  Bruno Haible  <bruno@clisp.org>
53293
53294         * lib/dirchownmod.c: Don't include lchmod.h.
53295
53296         Move the lchmod() declaration to <sys/stat.h>.
53297         * lib/lchmod.h: Remove file.
53298         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53299         (lchmod): New declaration, moved here from lib/lchown.h.
53300         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53301         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53302         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53303         and HAVE_LCHMOD.
53304         * modules/lchmod (Files): Remove lib/lchmod.h.
53305         (Depends-on): Add sys_stat, extensions.
53306         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53307         (Include): Specify <sys/stat.h> instead of lchmod.h.
53308         * modules/sys_stat (Depends-on): Add link-warning.
53309         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53310         definition of GL_LINK_WARNING.
53311         * NEWS: Mention the change.
53312
53313 2008-10-18  Bruno Haible  <bruno@clisp.org>
53314
53315         * lib/fchdir.c: Don't include dirfd.h.
53316         * lib/fts.c: Likewise.
53317         * lib/getcwd.c: Likewise.
53318         * lib/glob.c: Likewise.
53319
53320         Move the dirfd() declaration to <dirent.h>.
53321         * lib/dirfd.h: Remove file.
53322         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53323         (dirfd): New declaration.
53324         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53325         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53326         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53327         HAVE_DECL_DIRFD.
53328         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53329         HAVE_DECL_DIRFD.
53330         * modules/dirfd (Files): Remove lib/dirfd.h.
53331         (Depends-on): Add dirent, extensions.
53332         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53333         (Include): Specify <dirent.h> instead of dirfd.h.
53334         * modules/dirent (Depends-on): Add link-warning.
53335         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53336         definition of GL_LINK_WARNING.
53337         * NEWS: Mention the change.
53338
53339 2008-10-18  Bruno Haible  <bruno@clisp.org>
53340
53341         Move the euidaccess() declaration to <unistd.h>.
53342         * lib/euidaccess.h: Remove file.
53343         * lib/unistd.in.h (euidaccess): New declaration.
53344         * lib/euidaccess.c: Don't include euidaccess.h.
53345         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53346         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53348         and HAVE_EUIDACCESS.
53349         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53350         (Depends-on): Add unistd.
53351         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53352         (Include): Specify <unistd.h> instead of euidaccess.h.
53353         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53354         HAVE_EUIDACCESS.
53355         * NEWS: Mention the change.
53356
53357 2008-10-18  Bruno Haible  <bruno@clisp.org>
53358
53359         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53360
53361         Move the getdomainname() declaration to <unistd.h>.
53362         * lib/getdomainname.h: Remove file.
53363         * lib/unistd.in.h (getdomainname): New declaration.
53364         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53365         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53366         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53367         HAVE_GETDOMAINNAME.
53368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53369         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53370         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53371         (Depends-on): Add unistd, extensions.
53372         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53373         (Includes): Specify <unistd.h> instead of getdomainname.h.
53374         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53375         HAVE_GETDOMAINNAME.
53376         * NEWS: Mention the change.
53377
53378 2008-10-18  Bruno Haible  <bruno@clisp.org>
53379
53380         * modules/dirent: New file.
53381         * m4/dirent_h.m4: New file.
53382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53383         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53384         * modules/fchdir (Files): Remove lib/dirent.in.h.
53385         (Depends-on): Add dirent.
53386         (Makefile.am): Move rules to modules/dirent.
53387         * doc/posix-headers/dirent.texi: Mention the new module.
53388
53389 2008-10-18  Bruno Haible  <bruno@clisp.org>
53390
53391         Avoid -Wunused-parameter warnings in public gnulib header files.
53392         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53393         macro.
53394         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53395
53396 2008-10-18  Bruno Haible  <bruno@clisp.org>
53397
53398         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53399         * doc/glibc-functions/error.texi: Mention the module 'error'.
53400         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53401         * doc/glibc-functions/getdomainname.texi: Mention the module
53402         'getdomainname'.
53403         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53404         * doc/glibc-functions/getpagesize.texi: Mention the module
53405         'getpagesize'.
53406         * doc/glibc-functions/getusershell.texi: Mention the module
53407         'getusershell'.
53408         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53409         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53410         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53411         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53412         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53413         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53414         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53415         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53416         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53417         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53418         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53419         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53420         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53421         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53422
53423 2008-10-17  Bruno Haible  <bruno@clisp.org>
53424
53425         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53426         HP-UX and IRIX, use -0.0L.
53427         * tests/test-ceill.c (minus_zero): Likewise.
53428         * tests/test-floorl.c (minus_zero): Likewise.
53429         * tests/test-frexpl.c (minus_zero): Likewise.
53430         * tests/test-isnan.c (minus_zerol): Likewise.
53431         * tests/test-isnanl.h (minus_zero): Likewise.
53432         * tests/test-ldexpl.c (minus_zero): Likewise.
53433         * tests/test-roundl.c (minus_zero): Likewise.
53434         * tests/test-signbit.c (minus_zerol): Likewise.
53435         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53436         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53437         * tests/test-truncl.c (minus_zero): Likewise.
53438         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53439         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53440         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53441         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53442
53443 2008-10-17  Bruno Haible  <bruno@clisp.org>
53444
53445         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53446         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53447         that it gets activated only for gcc >= 3.0.
53448         * lib/dirent.in.h: Likewise.
53449         * lib/errno.in.h: Likewise.
53450         * lib/fcntl.in.h: Likewise.
53451         * lib/float.in.h: Likewise.
53452         * lib/iconv.in.h: Likewise.
53453         * lib/inttypes.in.h: Likewise.
53454         * lib/locale.in.h: Likewise.
53455         * lib/math.in.h: Likewise.
53456         * lib/netdb.in.h: Likewise.
53457         * lib/netinet_in.in.h: Likewise.
53458         * lib/search.in.h: Likewise.
53459         * lib/signal.in.h: Likewise.
53460         * lib/spawn.in.h: Likewise.
53461         * lib/stdarg.in.h: Likewise.
53462         * lib/stdint.in.h: Likewise.
53463         * lib/stdio.in.h: Likewise.
53464         * lib/stdlib.in.h: Likewise.
53465         * lib/string.in.h: Likewise.
53466         * lib/strings.in.h: Likewise.
53467         * lib/sys_file.in.h: Likewise.
53468         * lib/sys_ioctl.in.h: Likewise.
53469         * lib/sys_select.in.h: Likewise.
53470         * lib/sys_socket.in.h: Likewise.
53471         * lib/sys_stat.in.h: Likewise.
53472         * lib/sys_time.in.h: Likewise.
53473         * lib/sysexits.in.h: Likewise.
53474         * lib/time.in.h: Likewise.
53475         * lib/unistd.in.h: Likewise.
53476         * lib/wchar.in.h: Likewise.
53477         * lib/wctype.in.h: Likewise.
53478         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53479
53480 2008-10-17  Jim Meyering  <meyering@redhat.com>
53481
53482         ignore-value: don't depend on inline module
53483         * modules/ignore-value (Depends-on): Remove 'inline'.
53484         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53485         Suggestion from Bruno Haible.
53486
53487 2008-10-17  Bruno Haible  <bruno@clisp.org>
53488
53489         New implementation of condition variables for Win32.
53490         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53491         (gl_linked_waitqueue_t): New type.
53492         (gl_cond_t): Use it.
53493         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53494         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53495         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53496         (glthread_cond_init_func, glthread_cond_wait_func,
53497         glthread_cond_timedwait_func, glthread_cond_signal_func,
53498         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53499         Reimplemented on the basis of gl_linked_waitqueue_t.
53500         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53501         gl_waitqueue_t.
53502         (gl_rwlock_t): Update.
53503         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53504
53505 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53506
53507         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53508         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53509
53510 2008-10-17  Jim Meyering  <meyering@redhat.com>
53511
53512         ignore-value: new module
53513         * modules/ignore-value: New file.
53514         * lib/ignore-value.h: New file.
53515         * MODULES.html.sh (Compiler warning management): New section,
53516         just for this module.  More to come.
53517
53518 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53519
53520         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53521         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53522         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53523
53524 2008-10-16  Jim Meyering  <meyering@redhat.com>
53525
53526         openat-die.c: avoid 'no previous prototype' warning
53527         * lib/openat-die.c: Include "openat.h".
53528         Reported by Reuben Thomas <rrt@sc3d.org>.
53529
53530 2008-10-16  Simon Josefsson  <simon@josefsson.org>
53531
53532         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
53533         * lib/netdb.in.h: Fix typo.
53534         Reported by Bruno Haible  <bruno@clisp.org>
53535
53536         * lib/netdb.in.h: Include sys/socket.h for platforms without
53537         netdb.h, to get structures like hostent on MinGW.
53538         * modules/netdb (Depends-on): Add sys_socket.
53539
53540 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53541
53542         * modules/netdb, modules/netdb-tests: New file.
53543         * m4/netdb_h.m4: New file.
53544         * lib/netdb.in.h: Add, currently just an empty file pending
53545         definitions.
53546         * tests/test-netdb.c: New file.
53547         * doc/posix-headers/netdb.texi: Mention that we replace it if
53548         needed.
53549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53550         netdb.
53551
53552 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53553
53554         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
53555         with code.
53556
53557 2008-10-13  Bruno Haible  <bruno@clisp.org>
53558
53559         * lib/glthread/cond.c (glthread_cond_wait_func,
53560         glthread_cond_timedwait_func): Add a comment.
53561
53562 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53563
53564         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
53565         * tests/test-select.c: Likewise,
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): Fix variable name.
53571         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53572
53573 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
53574
53575         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
53576         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
53577         struct sockaddr.sa_len.
53578         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
53579
53580 2008-10-13  Simon Josefsson  <simon@josefsson.org>
53581
53582         * build-aux/pmccabe2html: Add css and css_url parameters.
53583
53584 2008-10-12  Bruno Haible  <bruno@clisp.org>
53585
53586         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
53587         calling aclx_get.
53588         Reported by Rainer Tammer <tammer@tammer.net>.
53589
53590 2008-10-12  Bruno Haible  <bruno@clisp.org>
53591
53592         Use msvcrt aware primitives for creation/termination of Win32 threads.
53593         * lib/glthread/thread.c: Include <process.h>.
53594         (glthread_create_func): Use _beginthreadex instead of CreateThread.
53595         (wrapper_func): Update signature.
53596         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
53597
53598 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53599             Bruno Haible  <bruno@clisp.org>
53600
53601         Provide a Win32 implementation of the 'cond' module.
53602         * lib/glthread/cond.h [USE_WIN32]: New implementation.
53603         * lib/glthread/cond.c (glthread_cond_init_func,
53604         glthread_cond_wait_func, glthread_cond_timedwait_func,
53605         glthread_cond_signal_func, glthread_cond_broadcast_func,
53606         glthread_cond_destroy_func) [USE_WIN32]: New functions.
53607         * modules/cond (Dependencies): Add gettimeofday.
53608
53609 2008-10-11  Bruno Haible  <bruno@clisp.org>
53610
53611         Make sleep work on older versions of mingw.
53612         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
53613         only whether it exists.
53614         * doc/posix-functions/sleep.texi: Mention the problem with older
53615         versions of mingw.
53616
53617 2008-10-11  Bruno Haible  <bruno@clisp.org>
53618
53619         New module 'shutdown'.
53620         * modules/shutdown: New file.
53621         * lib/sys_socket.in.h (shutdown): New declaration.
53622         * lib/winsock.c (shutdown): New function.
53623         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
53624         GNULIB_SHUTDOWN.
53625         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
53626         * doc/posix-functions/shutdown.texi: Document the new module.
53627
53628 2008-10-11  Jim Meyering  <meyering@redhat.com>
53629
53630         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
53631
53632 2008-10-11  Bruno Haible  <bruno@clisp.org>
53633
53634         New module 'fclose'.
53635         * modules/fclose: New file.
53636         * lib/stdio.in.h (fclose): New declaration.
53637         * lib/fclose.c: New file.
53638         * m4/fclose.m4: New file.
53639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
53640         REPLACE_FCLOSE.
53641         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
53642         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
53643         REPLACE_FCLOSE.
53644         * modules/close (Depends-on): fclose.
53645         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
53646
53647 2008-10-11  Bruno Haible  <bruno@clisp.org>
53648
53649         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
53650         set errno and don't call _close.
53651
53652 2008-10-10  Bruno Haible  <bruno@clisp.org>
53653
53654         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
53655         ACL, not afterwards. Fixes test failure on Cygwin.
53656
53657 2008-10-09  Ben Pfaff  <blp@gnu.org>
53658
53659         * build-aux/announce-gen: Fix gnulib version related part of usage
53660         message.  Die with a useful error message if no tarballs are
53661         found.
53662
53663 2008-10-10  Jim Meyering  <meyering@redhat.com>
53664
53665         bootstrap: use git's --depth=N option only if it's supported
53666         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
53667         recognize the --depth option.  Reported by Pádraig Brady.
53668
53669 2008-10-09  Bruno Haible  <bruno@clisp.org>
53670
53671         New module 'ioctl'.
53672         * modules/ioctl: New file.
53673         * lib/sys_socket.in.h (ioctl): Remove declaration.
53674         * lib/winsock.c: Include <sys/ioctl.h>.
53675         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
53676         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53677         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
53678         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
53679         * doc/posix-functions/ioctl.texi: Mention the new module.
53680
53681 2008-10-09  Bruno Haible  <bruno@clisp.org>
53682
53683         New module 'sys_ioctl'.
53684         * lib/sys_ioctl.in.h: New file.
53685         * m4/sys_ioctl_h.m4: New file.
53686         * modules/sys_ioctl: New file.
53687         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
53688
53689 2008-10-09  Bruno Haible  <bruno@clisp.org>
53690
53691         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
53692         * lib/winsock.c: Include <stdarg.h>.
53693         (rpl_ioctl): Change to second argument 'int' and then varargs.
53694
53695 2008-10-09  Bruno Haible  <bruno@clisp.org>
53696
53697         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
53698         when the sys_socket module is present and the system has <winsock2.h>.
53699
53700 2008-10-09  Bruno Haible  <bruno@clisp.org>
53701
53702         * doc/posix-functions/close.texi: Mention module 'close' instead of
53703         module 'sys_socket'.
53704
53705 2008-10-09  Bruno Haible  <bruno@clisp.org>
53706
53707         * doc/glibc-headers/sys_ioctl.texi: New file.
53708         * doc/gnulib.texi: Include it.
53709
53710 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53711             Bruno Haible  <bruno@clisp.org>
53712
53713         Combine the two replacements of 'close'.
53714         * lib/sys_socket.in.h (close): Define to a reminder to include
53715         <unistd.h>.
53716         (_gl_close_fd_maybe_socket): New declaration.
53717         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
53718         * lib/winsock.c (close): Remove undefinition.
53719         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
53720         needed for the gnulib module 'close'.
53721         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
53722         define to an error symbol or to a warning, if suitable.
53723         * lib/close.c: Include <sys/socket.h>.
53724         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
53725         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
53726         UNISTD_H_HAVE_WINSOCK2_H.
53727         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
53728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53729         UNISTD_H_HAVE_WINSOCK2_H.
53730         * modules/sys_socket (Files): Add m4/unistd_h.m4.
53731         (configure.ac): Set a module indicator.
53732         (Makefile.am): Substitute GNULIB_CLOSE.
53733         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
53734         * modules/poll-tests (Depends-on): Add close.
53735         * modules/select-tests (Depends-on): Likewise.
53736
53737 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53738             Bruno Haible  <bruno@clisp.org>
53739
53740         New module 'close'.
53741         * modules/close: New file.
53742         * lib/unistd.in.h (close): Move declaration out of the
53743         FCHDIR_REPLACEMENT scope.
53744         (_gl_unregister_fd): New declaration.
53745         * lib/close.c: New file.
53746         * lib/fchdir.c (rpl_close): Remove function.
53747         * m4/close.m4: New file.
53748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53749         close.
53750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
53751         REPLACE_CLOSE.
53752         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
53753         REPLACE_CLOSE.
53754         * modules/fchdir (Depends-on): Add close.
53755
53756 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53757             Bruno Haible  <bruno@clisp.org>
53758
53759         * lib/fcntl.in.h (open): Simplify conditionals.
53760         (_gl_register_fd): New declaration.
53761         * lib/fchdir.c (rpl_open): Remove function.
53762         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
53763         also.
53764         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
53765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53766         open.
53767
53768 2008-10-09  Jim Meyering  <meyering@redhat.com>
53769
53770         GNUmakefile: use the more name-space-friendly "_version"
53771         * top/GNUmakefile (_dummy): Update.
53772         (_version): Rename from "version".
53773
53774 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53775             Bruno Haible  <bruno@clisp.org>
53776
53777         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
53778         rpl_close.
53779         (_gl_register_fd): New function, extracted from rpl_open.
53780         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
53781         (rpl_open, rpl_opendir): Use _gl_register_fd.
53782
53783 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53784
53785         Fix organization of 'open' replacement.
53786         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
53787         (gl_FUNC_OPEN): Use it.
53788         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
53789
53790 2008-10-08  Bruno Haible  <bruno@clisp.org>
53791
53792         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
53793
53794 2008-10-08  Simon Josefsson  <simon@josefsson.org>
53795
53796         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
53797         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
53798         listen).
53799
53800 2008-10-08  Eric Blake  <ebb9@byu.net>
53801
53802         GNUmakefile: add 'make version' target
53803         * top/GNUmakefile (_curr-ver): Split version update rules...
53804         (version): ...into a target.
53805
53806 2008-10-07  Bruno Haible  <bruno@clisp.org>
53807
53808         Use a more portable replacement expression for -0.0L.
53809         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
53810         instead of -0.0L. Fix m4 quotation.
53811
53812         * tests/test-signbit.c: Include <float.h>.
53813         (minus_zero): New variable.
53814         (test_signbitl): Use minus_zero instead of -zero.
53815         * modules/signbit-tests (Depends-on): Add float.
53816
53817         * tests/test-ceill.c: Include <float.h>.
53818         (zero): Remove variable.
53819         (minus_zero): New variable.
53820         (main): Use minus_zero instead of -zero.
53821         * modules/ceill-tests (Depends-on): Add float.
53822
53823         * tests/test-floorl.c: Include <float.h>.
53824         (zero): Remove variable.
53825         (minus_zero): New variable.
53826         (main): Use minus_zero instead of -zero.
53827         * modules/floorl-tests (Depends-on): Add float.
53828
53829         * tests/test-roundl.c: Include <float.h>.
53830         (zero): Remove variable.
53831         (minus_zero): New variable.
53832         (main): Use minus_zero instead of -zero.
53833         * modules/roundl-tests (Depends-on): Add float.
53834
53835         * tests/test-truncl.c: Include <float.h>.
53836         (zero): Remove variable.
53837         (minus_zero): New variable.
53838         (main): Use minus_zero instead of -zero.
53839         * modules/truncl-tests (Depends-on): Add float.
53840
53841         * tests/test-frexpl.c (zero): Remove variable.
53842         (minus_zero): New variable.
53843         (main): Use minus_zero instead of -zero.
53844         * modules/frexpl-tests (Depends-on): Add float.
53845
53846         * tests/test-isnan.c (zerol): Remove variable.
53847         (minus_zerol): New variable.
53848         (test_long_double): Use minus_zerol instead of -zerol.
53849         * modules/isnan-tests (Depends-on): Add float.
53850
53851         * tests/test-isnanl.h (zero): Remove variable.
53852         (minus_zero): New variable.
53853         (main): Use minus_zero instead of -zero.
53854         * modules/isnanl-nolibm-tests (Depends-on): Add float.
53855         * modules/isnanl-tests (Depends-on): Add float.
53856
53857         * tests/test-ldexpl.c (zero): Remove variable.
53858         (minus_zero): New variable.
53859         (main): Use minus_zero instead of -zero.
53860         * modules/ldexpl-tests (Depends-on): Add float.
53861
53862         * tests/test-snprintf-posix.h (zerol): Remove variable.
53863         (minus_zerol): New variable.
53864         (test_function): Use minus_zerol instead of -zerol.
53865         * modules/snprintf-posix-tests (Depends-on): Add float.
53866         * modules/vsnprintf-posix-tests (Depends-on): Add float.
53867
53868         * tests/test-sprintf-posix.h (zerol): Remove variable.
53869         (minus_zerol): New variable.
53870         (test_function): Use minus_zerol instead of -zerol.
53871         * modules/sprintf-posix-tests (Depends-on): Add float.
53872         * modules/vsprintf-posix-tests (Depends-on): Add float.
53873
53874         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
53875         (minus_zerol): New variable.
53876         (test_function): Use minus_zerol instead of -zerol.
53877         * modules/vasnprintf-posix-tests (Depends-on): Add float.
53878
53879         * tests/test-vasprintf-posix.c (zerol): Remove variable.
53880         (minus_zerol): New variable.
53881         (test_function): Use minus_zerol instead of -zerol.
53882         * modules/vasprintf-posix-tests (Depends-on): Add float.
53883
53884 2008-10-07  Simon Josefsson  <simon@josefsson.org>
53885
53886         * MODULES.html.sh (Support for building documentation): Mention
53887         pmccabe2html.  Sort entries.
53888
53889         Add pmccabe2html module, from gnupdf.
53890         * build-aux/pmccabe.css: New file.
53891         * build-aux/pmccabe2html: New file.
53892         * m4/pmccabe2html.m4: New file.
53893         * modules/pmccabe2html: New file.
53894
53895 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
53896
53897         flock: new module
53898         * MODULES.html.sh: Add to list of modules.
53899         * lib/flock.c: flock implementation for Windows and Unix systems
53900         which have fcntl.
53901         * doc/glibc-functions/flock.texi: Update documentation.
53902         * lib/sys_file.in.h: <sys/file.h> header file.
53903         * m4/flock.m4: M4 macros.
53904         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
53905         * modules/flock: flock module.
53906         * modules/flock-tests: flock tests module.
53907         * modules/sys_file: sys/file.h module.
53908         * tests/test-flock.c: test suite for flock.
53909
53910 2008-10-06  Jim Meyering  <meyering@redhat.com>
53911
53912         bootstrap: check for LT_INIT more portably still ;-)
53913         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
53914         Spotted by Bruno Haible.
53915
53916 2008-10-06  Eric Blake  <ebb9@byu.net>
53917
53918         test-signbit: avoid tripping Irix cc bug on -0.0L
53919         * tests/test-signbit.c (minus_zerol): Delete, and replace with
53920         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
53921         entire testsuite consistent and avoids an Irix 6.2 bug.
53922
53923 2008-10-05  Bruno Haible  <bruno@clisp.org>
53924             Jim Meyering  <jim@meyering.net>
53925
53926         Add an option for ignoring EPIPE during close_stdout.
53927         * lib/closeout.h: Include <stdbool.h>.
53928         (close_stdout_set_ignore_EPIPE): New declaration.
53929         * lib/closeout.c: Include <stdbool.h>.
53930         (ignore_EPIPE): New variable.
53931         (close_stdout_set_ignore_EPIPE): New function.
53932         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
53933         * lib/close-stream.c (close_stream): Mention the possible EPIPE
53934         failure.
53935         * modules/closeout (Depends-on): Add stdbool.
53936
53937 2008-10-05  Bruno Haible  <bruno@clisp.org>
53938
53939         * modules/accept: New file.
53940         * modules/bind: New file.
53941         * modules/connect: New file.
53942         * modules/getpeername: New file.
53943         * modules/getsockname: New file.
53944         * modules/getsockopt: New file.
53945         * modules/listen: New file.
53946         * modules/recv: New file.
53947         * modules/recvfrom: New file.
53948         * modules/send: New file.
53949         * modules/sendto: New file.
53950         * modules/setsockopt: New file.
53951         * modules/socket: New file.
53952         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
53953         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53954         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
53955         the particular module is requested. Add a link warning when the
53956         particular module is not requested.
53957         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
53958         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
53959         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
53960         the particular module is requested.
53961         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
53962         gl_SYS_SOCKET_H_DEFAULTS): New macros.
53963         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
53964         * modules/sys_socket (Depends-on): Add link-warning.
53965         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
53966         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
53967         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
53968         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
53969         GL_LINK_WARNING.
53970         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
53971         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
53972         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
53973         * doc/posix-functions/getpeername.texi: Mention the new module
53974         'getpeername'.
53975         * doc/posix-functions/getsockname.texi: Mention the new module
53976         'getsockname'.
53977         * doc/posix-functions/getsockopt.texi: Mention the new module
53978         'getsockopt'.
53979         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
53980         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
53981         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
53982         * doc/posix-functions/send.texi: Mention the new module 'send'.
53983         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
53984         * doc/posix-functions/setsockopt.texi: Mention the new module
53985         'setsockopt'.
53986         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
53987         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
53988         listen, connect, accept.
53989         * modules/select-tests (Depends-on): Likewise.
53990
53991 2008-10-05  Bruno Haible  <bruno@clisp.org>
53992
53993         * lib/winsock.c (strerror): Remove unused #undef.
53994         (rpl_close): Remove unused local variable.
53995
53996         * modules/sys_socket (Depends-on); Add errno.
53997
53998 2008-10-05  Bruno Haible  <bruno@clisp.org>
53999
54000         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54001         (select): Add a link warning when the 'select' module is not used.
54002         * modules/sys_select (Depends-on): Add link-warning.
54003         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54004         Suggested by Paolo Bonzini.
54005
54006 2008-10-05  Jim Meyering  <meyering@redhat.com>
54007
54008         bootstrap: check for LT_INIT more portably
54009         * build-aux/bootstrap: Avoid using grep -E, since it's not
54010         portable enough.  Suggestion from Bruno Haible.
54011
54012 2008-10-05  Bruno Haible  <bruno@clisp.org>
54013
54014         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54015         as being fixed by gnulib.
54016
54017 2008-10-05  Bruno Haible  <bruno@clisp.org>
54018
54019         * modules/select-tests: New file, mostly copied from
54020         modules/sys_select-tests.
54021         * tests/test-select.c: New file, mostly copied from
54022         tests/test-sys_select.c.
54023         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54024         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54025         (Makefile.am): Remove test_sys_select_LDADD.
54026
54027         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54028         to an undefined symbol, for an error message.
54029         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54030         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54031         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54032         winsock-select.c here.
54033         * modules/sys_select (Files): Remove lib/winsock-select.c.
54034         (Depends-on): Remove alloca.
54035         (Makefile.am): Substitute GNULIB_SELECT.
54036         * modules/select: New file.
54037         * doc/posix-functions/select.texi: Update.
54038
54039 2008-10-05  Bruno Haible  <bruno@clisp.org>
54040
54041         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54042         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54043         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54044         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54045         getdtablesize.
54046         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54047         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54048
54049 2008-10-05  Bruno Haible  <bruno@clisp.org>
54050
54051         * modules/getdtablesize-tests: New file.
54052         * tests/test-getdtablesize.c: New file.
54053
54054         New module 'getdtablesize'.
54055         * lib/unistd.in.h (getdtablesize): New declaration.
54056         * lib/getdtablesize.c: New file.
54057         * m4/getdtablesize.m4: New file.
54058         * modules/getdtablesize: New file.
54059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54060         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54061         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54062         HAVE_GETDTABLESIZE.
54063         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54064
54065 2008-10-05  Bruno Haible  <bruno@clisp.org>
54066
54067         * modules/sched (Makefile.am): Fix typo.
54068         Reported by Simon Josefsson.
54069
54070 2008-10-05  Jim Meyering  <meyering@redhat.com>
54071
54072         bootstrap: check for LT_INIT, too
54073         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54074         are deprecated.  Suggestion from Ralf Wildenhues.
54075
54076 2008-10-05  Bruno Haible  <bruno@clisp.org>
54077
54078         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54079         overriding them by ours.
54080         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54081
54082 2008-10-05  Jim Meyering  <meyering@redhat.com>
54083
54084         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54085         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54086         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54087
54088 2008-10-04  Bruno Haible  <bruno@clisp.org>
54089
54090         * modules/dup2 (License): Change to LGPLv2+.
54091         * modules/sleep (License): Likewise.
54092         * modules/perror (License): Likewise.
54093         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54094         Blake.
54095         * modules/signal (License): Likewise.
54096         * modules/sigprocmask (License): Likewise.
54097         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54098         Meyering.
54099
54100 2008-10-04  Bruno Haible  <bruno@clisp.org>
54101
54102         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54103         Reported by Rainer Tammer <tammer@tammer.net>.
54104
54105 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54106             Bruno Haible  <bruno@clisp.org>
54107
54108         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54109         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54110         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54111
54112 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54113
54114         filevercmp: new module
54115         * lib/filevercmp.h: New function filevercmp comparing version strings.
54116         * lib/filevercmp.c: Implementation of filevercmp function.
54117         * modules/filevercmp: Module metadata.
54118         * tests/test-filevercmp.c: Unit test for new module.
54119         * modules/filevercmp-tests: Unit test metadata.
54120         * MODULES.html.sh: Add filevercmp module.
54121
54122 2008-10-03  Bruno Haible  <bruno@clisp.org>
54123
54124         * lib/c-ctype.h: Add comment.
54125         Reported by Jim Meyering.
54126
54127 2008-10-02  Bruno Haible  <bruno@clisp.org>
54128
54129         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54130
54131 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54132
54133         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54134         name of bootstrap.conf accordingly.
54135
54136 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54137
54138         * build-aux/bootstrap: Install git-merge-changelog configuration
54139         items into .gitconfig if needed.
54140
54141 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54142
54143         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54144         git repository, and initialize/update it accordingly.
54145
54146 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54147
54148         * modules/fsync-tests: New file.
54149         * tests/test-fsync.c: New file.
54150
54151         New module 'fsync'.
54152         * lib/fsync.c: New file.
54153         * m4/fsync.m4: New file.
54154         * modules/fsync: New file.
54155         * lib/unistd.in.h (fsync): New declaration.
54156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54157         GNULIB_FSYNC and HAVE_FSYNC.
54158         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54159         * MODULES.html.sh (posix_functions): Add fsync.
54160         * doc/posix-functions/fsync.texi: Mention the new module.
54161
54162 2008-10-02  Jim Meyering  <meyering@redhat.com>
54163
54164         fts.c: sync with similar code from coreutils' remove.c
54165         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54166         Guard also with "#if defined __linux__", since for now at least,
54167         this code is Linux-kernel-specific.
54168
54169 2008-10-02  Jim Meyering  <meyering@redhat.com>
54170
54171         fts: bug fixes
54172         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54173         Include <sys/vfs.h>, not <sys/statfs.h>.
54174
54175         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54176         Include <sys/vfs.h>, not <sys/statfs.h>.
54177
54178 2008-10-01  Bruno Haible  <bruno@clisp.org>
54179
54180         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54181         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54182         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54183         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54184         * doc/posix-functions/posix_spawnp.texi: Likewise.
54185         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54186         whether posix_spawn actually works.
54187         * m4/pipe.m4 (gl_PIPE): Likewise.
54188         * modules/execute (Files): Add m4/posix_spawn.m4.
54189         * modules/pipe (Files): Add m4/posix_spawn.m4.
54190         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54191
54192 2008-10-01  Jim Meyering  <meyering@redhat.com>
54193
54194         remove trailing spaces
54195         * NEWS: Likewise.
54196         * lib/poll.c (poll): Likewise.
54197         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54198         * lib/winsock.c (rpl_close): Likewise.
54199         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54200         * modules/yield: Likewise.
54201         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54202         * tests/test-sys_select.c (connect_to_socket): Likewise.
54203
54204         fts.c: adjust a new interface to be more generally useful
54205         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54206         (fts_build): Adjust caller.
54207
54208 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54209
54210         * modules/cond-tests: New file.
54211         * tests/test-cond.c: New file.
54212
54213 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54214             Bruno Haible  <bruno@clisp.org>
54215
54216         * modules/cond (Dependencies): Add errno, time.
54217         * lib/glthread/cond.h: Include <time.h>.
54218         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54219         across platforms.
54220
54221 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54222             Bruno Haible  <bruno@clisp.org>
54223
54224         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54225
54226 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54227             Bruno Haible  <bruno@clisp.org>
54228
54229         * modules/tls-tests (Depends-on): Add thread, yield.
54230         (configure.ac): Remove all checks.
54231         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54232         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54233         gl_thread_self): Remove definitions. Include glthread/thread.h and
54234         glthread/yield.h instead.
54235         (test_tls): Pass an additional NULL argument to gl_thread_join.
54236
54237 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54238             Bruno Haible  <bruno@clisp.org>
54239
54240         * modules/lock-tests (Depends-on): Add thread, yield.
54241         (configure.ac): Remove all checks.
54242         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54243         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54244         gl_thread_self): Remove definitions. Include glthread/thread.h and
54245         glthread/yield.h instead.
54246         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54247         additional NULL argument to gl_thread_join.
54248
54249 2008-09-30  Bruno Haible  <bruno@clisp.org>
54250
54251         Fix the Win32 implementation of the 'thread' module.
54252         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54253         pointer type.
54254         (gl_thread_self): Invoke gl_thread_self_func.
54255         (gl_thread_self_func): New declaration.
54256         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54257         (do_init_self_key, init_self_key): New functions.
54258         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54259         Remove some fields.
54260         (running_threads, running_lock): Remove variables.
54261         (get_current_thread_handle): New function.
54262         (gl_thread_self_func, wrapper_func, glthread_create_func,
54263         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54264         simplified.
54265
54266 2008-09-30  Bruno Haible  <bruno@clisp.org>
54267
54268         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54269         files.
54270
54271 2008-09-30  Jim Meyering  <meyering@redhat.com>
54272
54273         fts.m4: correct the test for statfs.f_type
54274         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54275         when checking for statfs.f_type.
54276
54277 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54278
54279         tests: avoid some compiler warnings
54280         * tests/test-memchr.c (main): Pass NULL indirectly.
54281         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54282
54283 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
54284
54285         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54286         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54287         exactly specified dayshifts.
54288         (dayshift): New rule.
54289         (rel): Add dayshift.
54290         (relative_time_table) [tomorrow, yesterday, today, now]:
54291         Use tDAY_SHIFT in place of tDAY_UNIT.
54292         * tests/test-getdate.c: Add tests for now-disallowed countable
54293         dayshifts, e.g., "4 yesterday ago".
54294
54295 2008-09-29  Bruno Haible  <bruno@clisp.org>
54296
54297         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54298         * tests/test-posix_spawn1.in.sh: Renamed from
54299         tests/test-posix_spawn.in.sh.
54300         * tests/test-posix_spawn2.c: New file.
54301         * tests/test-posix_spawn2.in.sh: New file.
54302         * modules/posix_spawnp-tests (Files): Update.
54303         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54304
54305 2008-09-29  Bruno Haible  <bruno@clisp.org>
54306
54307         Propagate effects of putenv/setenv/unsetenv to child processes.
54308         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54309         * lib/pipe.c (create_pipe): Likewise.
54310
54311 2008-09-29  Bruno Haible  <bruno@clisp.org>
54312
54313         Enable use of shell scripts as executables in mingw.
54314         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54315         run the program as a shell script.
54316         * lib/pipe.c (create_pipe): Likewise.
54317         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54318         resulting array.
54319
54320 2008-09-29  Eric Blake  <ebb9@byu.net>
54321
54322         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54323
54324 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54325
54326         * doc/posix-functions/accept.texi: Update mingw problems.
54327         * doc/posix-functions/bind.texi: Update mingw problems.
54328         * doc/posix-functions/close.texi: Update mingw problems.
54329         * doc/posix-functions/connect.texi: Update mingw problems.
54330         * doc/posix-functions/getpeername.texi: Update mingw problems.
54331         * doc/posix-functions/getsockname.texi: Update mingw problems.
54332         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54333         * doc/posix-functions/ioctl.texi: Update mingw problems.
54334         * doc/posix-functions/listen.texi: Update mingw problems.
54335         * doc/posix-functions/recv.texi: Update mingw problems.
54336         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54337         * doc/posix-functions/select.texi: Update mingw problems.
54338         * doc/posix-functions/send.texi: Update mingw problems.
54339         * doc/posix-functions/sendto.texi: Update mingw problems.
54340         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54341         * doc/posix-functions/socket.texi: Update mingw problems.
54342
54343 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54344             Bruno Haible  <bruno@clisp.org>
54345
54346         * lib/sys_select.in.h: Include sys/time.h.
54347         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54348         * modules/sys_select: Depend on sys_time.
54349         * tests/test-sys_select.c: Test that sys/select.h defines struct
54350         timeval fully.
54351
54352 2008-09-29  Bruno Haible  <bruno@clisp.org>
54353
54354         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54355         * lib/sys_select.in.h: Likewise.
54356
54357 2008-09-29  Bruno Haible  <bruno@clisp.org>
54358
54359         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54360
54361 2008-09-29  Bruno Haible  <bruno@clisp.org>
54362
54363         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54364         Set LIBSOCKET instead of augmenting LIBS.
54365         * modules/sockets (Link): New section.
54366         * modules/sockets-tests (test_sockets_LDADD): New variable.
54367         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54368         * modules/poll-tests (test_poll_LDADD): New variable.
54369         * NEWS: Document the change.
54370
54371 2008-09-29  Bruno Haible  <bruno@clisp.org>
54372
54373         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54374         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54375         ARPA_INET_H directly.
54376         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54377
54378 2008-09-28  Bruno Haible  <bruno@clisp.org>
54379
54380         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54381         from gl_HEADER_SYS_SOCKET.
54382         (gl_HEADER_SYS_SOCKET): Invoke it.
54383         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54384
54385 2008-09-28  Bruno Haible  <bruno@clisp.org>
54386
54387         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54388         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54389         Needed on OSF/1 4.0.
54390
54391 2008-09-28  Bruno Haible  <bruno@clisp.org>
54392
54393         Override open more carefully.
54394         * lib/open.c (orig_open): New function.
54395         (rpl_open): Use orig_open instead of open.
54396         * lib/fcntl.in.h: Add special invocation convention.
54397         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54398         (gl_FUNC_OPEN): Invoke it.
54399
54400         Override freopen more carefully.
54401         * lib/freopen.c (orig_freopen): New function.
54402         (rpl_freopen): Use orig_freopen instead of freopen.
54403         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54404         (gl_FUNC_FREOPEN): Invoke it.
54405
54406         Override fopen more carefully.
54407         * lib/fopen.c (orig_fopen): New function.
54408         (rpl_fopen): Use orig_fopen instead of fopen.
54409         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54410         (gl_FUNC_FOPEN): Invoke it.
54411         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54412
54413 2008-09-28  Bruno Haible  <bruno@clisp.org>
54414
54415         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54416         SIGPIPE.
54417
54418 2008-09-28  Bruno Haible  <bruno@clisp.org>
54419
54420         * tests/test-sigaction.c (handler, main): Disable the check whether
54421         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54422         glibc systems with LinuxThreads.
54423
54424 2008-09-28  Bruno Haible  <bruno@clisp.org>
54425
54426         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54427
54428         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54429         with AIX xlc.
54430         * lib/fcntl.in.h (open): Likewise.
54431         Reported by Rainer Tammer <tammer@tammer.net>.
54432
54433 2008-09-28  Bruno Haible  <bruno@clisp.org>
54434
54435         * modules/posix_spawnp-tests: New file.
54436         * tests/test-posix_spawn.c: New file.
54437         * tests/test-posix_spawn.in.sh: New file.
54438
54439         New module 'posix_spawnp'.
54440         * modules/posix_spawnp: New file.
54441         * lib/spawnp.c: New file, from GNU libc with modifications.
54442         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54443
54444         New module 'posix_spawn'.
54445         * modules/posix_spawn: New file.
54446         * lib/spawn.c: New file, from GNU libc with modifications.
54447         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54448
54449         New module 'posix_spawnattr_destroy'.
54450         * modules/posix_spawnattr_destroy: New file.
54451         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54452         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54453         module.
54454
54455         New module 'posix_spawnattr_setsigmask'.
54456         * modules/posix_spawnattr_setsigmask: New file.
54457         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54458         modifications.
54459         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54460         new module.
54461
54462         New module 'posix_spawnattr_getsigmask'.
54463         * modules/posix_spawnattr_getsigmask: New file.
54464         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54465         modifications.
54466         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54467         new module.
54468
54469         New module 'posix_spawnattr_setsigdefault'.
54470         * modules/posix_spawnattr_setsigdefault: New file.
54471         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54472         modifications.
54473         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54474         new module.
54475
54476         New module 'posix_spawnattr_getsigdefault'.
54477         * modules/posix_spawnattr_getsigdefault: New file.
54478         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54479         modifications.
54480         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54481         new module.
54482
54483         New module 'posix_spawnattr_setschedpolicy'.
54484         * modules/posix_spawnattr_setschedpolicy: New file.
54485         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54486         modifications.
54487         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54488         new module.
54489
54490         New module 'posix_spawnattr_getschedpolicy'.
54491         * modules/posix_spawnattr_getschedpolicy: New file.
54492         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54493         modifications.
54494         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54495         new module.
54496
54497         New module 'posix_spawnattr_setschedparam'.
54498         * modules/posix_spawnattr_setschedparam: New file.
54499         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54500         modifications.
54501         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54502         new module.
54503
54504         New module 'posix_spawnattr_getschedparam'.
54505         * modules/posix_spawnattr_getschedparam: New file.
54506         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54507         modifications.
54508         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54509         new module.
54510
54511         New module 'posix_spawnattr_setpgroup'.
54512         * modules/posix_spawnattr_setpgroup: New file.
54513         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54514         modifications.
54515         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54516         module.
54517
54518         New module 'posix_spawnattr_getpgroup'.
54519         * modules/posix_spawnattr_getpgroup: New file.
54520         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54521         modifications.
54522         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54523         module.
54524
54525         New module 'posix_spawnattr_setflags'.
54526         * modules/posix_spawnattr_setflags: New file.
54527         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
54528         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
54529         module.
54530
54531         New module 'posix_spawnattr_getflags'.
54532         * modules/posix_spawnattr_getflags: New file.
54533         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
54534         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
54535         module.
54536
54537         New module 'posix_spawnattr_init'.
54538         * modules/posix_spawnattr_init: New file.
54539         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
54540         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
54541         module.
54542
54543         New module 'posix_spawn_file_actions_destroy'.
54544         * modules/posix_spawn_file_actions_destroy: New file.
54545         * lib/spawn_faction_destroy.c: New file, from GNU libc with
54546         modifications.
54547         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
54548         the new module.
54549
54550         New module 'posix_spawn_file_actions_addopen'.
54551         * modules/posix_spawn_file_actions_addopen: New file.
54552         * lib/spawn_faction_addopen.c: New file, from GNU libc with
54553         modifications.
54554         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
54555         the new module.
54556
54557         New module 'posix_spawn_file_actions_adddup2'.
54558         * modules/posix_spawn_file_actions_adddup2: New file.
54559         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
54560         modifications.
54561         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
54562         the new module.
54563
54564         New module 'posix_spawn_file_actions_addclose'.
54565         * modules/posix_spawn_file_actions_addclose: New file.
54566         * lib/spawn_faction_addclose.c: New file, from GNU libc with
54567         modifications.
54568         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
54569         the new module.
54570
54571         New module 'posix_spawn_file_actions_init'.
54572         * modules/posix_spawn_file_actions_init: New file.
54573         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
54574         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
54575         new module.
54576
54577         New module 'posix_spawn-internal'.
54578         * modules/posix_spawn-internal: New file.
54579         * lib/spawn_int.h: New file, from GNU libc with modifications.
54580         * lib/spawni.c: New file, from GNU libc with modifications.
54581         * m4/posix_spawn.m4: New file.
54582
54583         New module 'spawn'.
54584         * modules/spawn: New file.
54585         * lib/spawn.in.h: New file, from GNU libc with modifications.
54586         * m4/spawn_h.m4: New file.
54587         * doc/posix-headers/spawn.texi: Mention the new module.
54588
54589 2008-09-28  Bruno Haible  <bruno@clisp.org>
54590
54591         * modules/sched-tests: New file.
54592         * tests/test-sched.c: New file.
54593
54594         New module 'sched'.
54595         * modules/sched: New file.
54596         * lib/sched.in.h: New file.
54597         * m4/sched_h.m4: New file.
54598         * doc/posix-headers/sched.texi: Mention the new module.
54599
54600 2008-09-27  Eric Blake  <ebb9@byu.net>
54601
54602         Fix previous patch, and tweak references to $0.
54603         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
54604         (func_version, func_gnulib_dir): Don't call this program
54605         gnulib-tool.
54606         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
54607         with using $0 in function.
54608         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
54609         (func_fatal_error): Reuse the name the user invoked us with.
54610
54611 2008-09-27  Bruno Haible  <bruno@clisp.org>
54612
54613         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
54614         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
54615         (gl_ICONV_H): Not here.
54616         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
54617         instead of assigning ICONV_H directly.
54618
54619         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
54620         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
54621         WCHAR_H directly.
54622
54623 2008-09-27  Bruno Haible  <bruno@clisp.org>
54624
54625         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
54626         * modules/arpa_inet (Depends-on): Add link-warning.
54627         (Makefile.am): Insert the definition of GL_LINK-WARNING.
54628         * modules/unistd (Makefile.am): Likewise.
54629
54630 2008-09-26  Bruno Haible  <bruno@clisp.org>
54631
54632         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
54633         variables.
54634         (func_version): Essentially copied from gnulib-tool.
54635         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
54636         func_readlink): Copied from gnulib-tool.
54637
54638 2008-09-26  Bruno Haible  <bruno@clisp.org>
54639
54640         * gnulib-tool (func_version): Change directory to $gnulib_dir before
54641         invoking git-version-gen.
54642
54643 2008-09-26  Bruno Haible  <bruno@clisp.org>
54644
54645         * posix-modules: Update to directory names changed on 2008-01-19.
54646         Remove commas in output before splitting into words. No more need to
54647         avoid 'ftruncate' since 2007-02-19.
54648
54649 2008-09-26  Bruno Haible  <bruno@clisp.org>
54650
54651         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
54652
54653 2008-09-26  Bruno Haible  <bruno@clisp.org>
54654
54655         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
54656         * modules/fwriteerror (Depends-on): Add errno.
54657
54658 2008-09-26  Bruno Haible  <bruno@clisp.org>
54659
54660         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
54661         * tests/test-vc-list-files-cvs.sh: Likewise.
54662
54663 2008-09-26  Bruno Haible  <bruno@clisp.org>
54664
54665         * doc/posix-headers/sys_resource.texi: Reorder items.
54666
54667 2008-09-26  Jim Meyering  <meyering@redhat.com>
54668
54669         fts: tweak inode comparison function
54670         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
54671         inode numbers, as documented.
54672
54673         fts: sort dirent entries on inode number before traversing
54674         This avoids a quadratic, seek-related performance penalty when
54675         operating on a directory containing many entries (measurable at 10k;
54676         3.5 hours at 2 million entries with a cold cache) on certain types
54677         of file systems, including ext3 and ext4, but not tmpfs.
54678         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
54679         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
54680         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
54681         (fs_handles_readdir_ordered_dirents_efficiently): New function.
54682         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
54683         (fts_build): Set the stat.st_ino member from D_INO.
54684         If it is likely to be useful, sort dirent entries on inode number.
54685
54686         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
54687         and the struct statfs.f_type member.
54688         * modules/fts (Depends-on): Add d-ino.
54689
54690 2008-09-26  Bruno Haible  <bruno@clisp.org>
54691
54692         * modules/sigpipe-die (Depends-on): Add sigpipe.
54693
54694         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
54695         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
54696         and GNULIB_STDIO_H_SIGPIPE are set.
54697         * lib/stdio-write.c: New file.
54698         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
54699         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54700         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54701         REPLACE_STDIO_WRITE_FUNCS.
54702         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
54703         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54704         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54705         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54706         * modules/stdio (Files): Add lib/stdio-write.c.
54707         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
54708         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54709         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54710         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54711         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
54712         REPLACE_FPRINTF_POSIX.
54713         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
54714         REPLACE_PRINTF_POSIX.
54715         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
54716         REPLACE_VFPRINTF_POSIX.
54717         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
54718         REPLACE_VPRINTF_POSIX.
54719         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
54720         SIGPIPE issue.
54721         * doc/posix-functions/fputc.texi: Likewise.
54722         * doc/posix-functions/fputs.texi: Likewise.
54723         * doc/posix-functions/fwrite.texi: Likewise.
54724         * doc/posix-functions/printf.texi: Likewise.
54725         * doc/posix-functions/putc.texi: Likewise.
54726         * doc/posix-functions/putchar.texi: Likewise.
54727         * doc/posix-functions/puts.texi: Likewise.
54728         * doc/posix-functions/vfprintf.texi: Likewise.
54729         * doc/posix-functions/vprintf.texi: Likewise.
54730
54731         * modules/safe-write (Depends-on): Add write.
54732
54733         * modules/sigpipe-tests: New file.
54734         * tests/test-sigpipe.c: New file.
54735         * tests/test-sigpipe.sh: New file.
54736
54737         * modules/write: New file.
54738         * lib/unistd.in.h: Include <sys/types.h>.
54739         (write): New declaration.
54740         * lib/write.c: New file.
54741         * m4/write.m4: New file.
54742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54743         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
54744         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
54745         GNULIB_WRITE, REPLACE_WRITE.
54746         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
54747         and the SIGPIPE issue.
54748
54749         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
54750         (raise): New declaration.
54751         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
54752         (ext_signal): New function.
54753         (rpl_raise): New function.
54754         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
54755         GNULIB_SIGNAL_H_SIGPIPE.
54756         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
54757         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
54758
54759         * modules/sigpipe: New file.
54760         * m4/sigpipe.m4: New file.
54761
54762 2008-09-25  Derek Price  <derek@ximbiot.com>
54763             Bruno Haible  <bruno@clisp.org>
54764
54765         * gnulib-tool (func_import): Report all license incompatibilities, not
54766         just the first one.
54767
54768 2008-09-25  Bruno Haible  <bruno@clisp.org>
54769
54770         * gnulib-tool (func_import): When computing the edits, consider not
54771         only the Makefile.ams that exist but also those that will be generated.
54772
54773 2008-09-25  Simon Josefsson  <simon@josefsson.org>
54774
54775         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
54776         fixes gnulib-tool --test warning about duplicate dependency.
54777
54778 2008-09-25  Bruno Haible  <bruno@clisp.org>
54779
54780         * gnulib-tool: Don't ask the user to perform edits in the generated
54781         Makefile.ams.
54782         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
54783         apply to the Makefile.am being generated.
54784         (func_emit_tests_Makefile_am): Execute edits that apply to the
54785         Makefile.am being generated.
54786         (func_import): Setup list of Makefile.am edits before emitting the
54787         Makefile.ams, not at the end.
54788         (func_create_testdir): Update.
54789         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54790
54791 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54792
54793         * gnulib-tool (func_import): Store the --tests-base option in the
54794         comment in gnulib-cache.m4.
54795
54796 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
54797
54798         * NEWS: Document increased portability that sys_select now provides.
54799
54800         * lib/sys_select.in.h: Install select wrapper.
54801         * lib/sys_socket.in.h: Use more descriptive name when there is no
54802         select wrapper.
54803         * lib/winsock-select.c: New.
54804         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
54805         Require gl_HEADER_SYS_SOCKET.
54806         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
54807         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
54808         * tests/test-sys_select.c: Add functional tests.
54809
54810 2008-09-24  Eric Blake  <ebb9@byu.net>
54811
54812         open, fopen: close fd leak in last patch
54813         * lib/open.c (rpl_open): Close fd before returning error.
54814         * lib/fopen.c (rpl_fopen): Close fd before returning error.
54815         * doc/posix-functions/open.texi (open): Document that Irix also
54816         has the bug.
54817         * doc/posix-functions/fopen.texi (fopen): Likewise.
54818         Reported by Paolo Bonzini.
54819
54820 2008-09-24  Bruno Haible  <bruno@clisp.org>
54821
54822         Ensure that a filename ending in a slash cannot be used to access a
54823         non-directory.
54824         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
54825         to check whether it's really a directory.
54826         * lib/fopen.c: Include fcntl.h, unistd.h.
54827         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
54828         and fdopen().
54829         * modules/fopen (Depends-on): Add unistd.
54830         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
54831         * tests/test-fopen.c (main): Likewise.
54832         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
54833         * doc/posix-functions/fopen.texi: Likewise.
54834         Reported by Eric Blake.
54835
54836 2008-09-23  Eric Blake  <ebb9@byu.net>
54837
54838         c-stack: avoid compiler optimizations when provoking overflow
54839         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
54840         recursion harder to optimize, to ensure a stack overflow occurs.
54841         * tests/test-c-stack.c (recurse): Likewise.
54842         Borrowed from libsigsegv.
54843
54844         c-stack: work around Irix sigaltstack bug
54845         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
54846         whether sigaltstack uses wrong end of stack_t (copied in part from
54847         libsigsegv).
54848         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
54849         Irix bug, without requiring an over-allocation.
54850         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
54851         bug.
54852
54853         fopen: document mingw bug on directories
54854         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
54855         not allowing a stream visiting a directory, even though reading
54856         from such a stream is not portable.
54857
54858 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54859
54860         * lib/poll.c: Rewrite.
54861         * modules/poll: Depend on alloca.
54862
54863 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54864
54865         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
54866         instead define prototypes for a full set of wrappers.  Ensure
54867         that Cygwin does not use the compatibility code, which is only
54868         for MinGW.
54869         * lib/winsock.c: New.
54870         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
54871         * modules/sys_socket: Add lib/winsock.c.
54872
54873         * modules/poll-tests: Add errno and perror.
54874         * tests/test-poll.c: Use ioctl, not ioctlsocket.
54875
54876 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54877
54878         * tests/test-poll.c: Downgrade minimum needed Winsock version.
54879
54880 2008-09-23  Bruno Haible  <bruno@clisp.org>
54881
54882         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
54883         * doc/glibc-functions/*: Likewise.
54884
54885 2008-09-23  Simon Josefsson  <simon@josefsson.org>
54886
54887         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
54888         success.
54889
54890 2008-09-22  Eric Blake  <ebb9@byu.net>
54891             Bruno Haible  <bruno@clisp.org>
54892
54893         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
54894         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
54895         supply %A but mishandle pseudo-NaN.
54896         Reported by Simon Josefsson.
54897
54898 2008-09-21  Bruno Haible  <bruno@clisp.org>
54899
54900         * tests/test-lock.c (main): Tweak skip message.
54901         * tests/test-tls.c (main): Likewise.
54902
54903 2008-09-21  Bruno Haible  <bruno@clisp.org>
54904
54905         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
54906         whether 'struct sigaction' has sa_sigaction here...
54907         (gl_PREREQ_SIG_HANDLER_H): ... not here.
54908         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
54909
54910 2008-09-21  Bruno Haible  <bruno@clisp.org>
54911
54912         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
54913         section.
54914         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
54915         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
54916         the new section.
54917         (Support for obsolete systems lacking POSIX:2001): New section.
54918         (String handling <string.h>): Move strdup to the new section.
54919         Suggested by Simon Josefsson and Paolo Bonzini.
54920
54921 2008-09-21  Bruno Haible  <bruno@clisp.org>
54922
54923         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
54924         exponents in %e and %g results on 'long double'. Needed for mingw's
54925         improved *printf functions.
54926         * tests/test-vasprintf-posix.c (test_function): Likewise.
54927         * tests/test-snprintf-posix.h (test_function): Likewise.
54928         * tests/test-sprintf-posix.h (test_function): Likewise.
54929         Reported by Eric Blake.
54930
54931 2008-09-21  Bruno Haible  <bruno@clisp.org>
54932
54933         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
54934         * tests/test-sprintf-posix.h (test_function): Likewise.
54935
54936 2008-09-21  Bruno Haible  <bruno@clisp.org>
54937
54938         * modules/getpass (Depends-on): Add strdup-posix.
54939
54940         New module 'strdup-posix'.
54941         * modules/strdup-posix: New file.
54942         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
54943         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
54944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54945         REPLACE_STRDUP.
54946         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
54947         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
54948         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54949         strdup-posix.
54950
54951         * modules/strdup (Depends-on): Remove malloc-posix.
54952
54953 2008-09-20  Bruno Haible  <bruno@clisp.org>
54954
54955         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
54956         Wildenhues.
54957
54958 2008-09-20  Bruno Haible  <bruno@clisp.org>
54959
54960         Ensure that wint_t gets defined on IRIX 5.3.
54961         * lib/wchar.in.h (wint_t): Define if not defined by the system.
54962         * lib/wctype.in.h (wint_t): Likewise.
54963         (__wctype_wint_t): Remove type.
54964         (isw*): Use wint_t instead of __wctype_wint_t.
54965         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
54966         * modules/wchar (Files): Add m4/wint_t.m4.
54967         (Makefile.am): Substitute HAVE_WINT_T.
54968         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
54969         * tests/test-wctype.c: Check that wint_t is defined.
54970         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
54971         * doc/posix-headers/wctype.texi: Likewise.
54972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54973
54974 2008-09-18  Bruno Haible  <bruno@clisp.org>
54975
54976         * gnulib-tool (func_exit): Update comment.
54977
54978 2008-09-18  Simon Josefsson  <simon@josefsson.org>
54979
54980         * modules/getaddrinfo (Depends-on): Remove strdup, this module
54981         assumes strdup exists and does not depend on strdup to return
54982         ENOMEM on out of memory conditions.
54983
54984 2008-09-18  Bruno Haible  <bruno@clisp.org>
54985
54986         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
54987         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
54988         digits for the exponent.
54989
54990 2008-09-18  Jim Meyering  <meyering@redhat.com>
54991             Bruno Haible  <bruno@clisp.org>
54992
54993         * lib/vasnprintf.c (decimal_point_char): Define also if
54994         NEED_PRINTF_INFINITE_LONG_DOUBLE.
54995
54996 2008-09-16  Bruno Haible  <bruno@clisp.org>
54997         and Eric Blake  <ebb9@byu.net>
54998
54999         vasnprintf: support Irix 5.3
55000         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55001         that mishandle long double infinity.
55002         Reported by Tom G. Christensen.
55003
55004 2008-09-16  Bruno Haible  <bruno@clisp.org>
55005
55006         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55007         Solaris 9.
55008         * doc/glibc-functions/alphasort.texi: Likewise.
55009         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55010
55011 2008-09-16  Jim Meyering  <meyering@redhat.com>
55012
55013         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55014         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55015         a umask modification leak out of a subshell.  Otherwise, the
55016         opensolaris /bin/sh would be accepted and thus cause unwarranted
55017         failures in the coreutils test suite.
55018
55019 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55020
55021         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55022         to succeed.
55023
55024 2008-09-16  Jim Meyering  <meyering@redhat.com>
55025
55026         avoid spurious test failure when library is built without ACL support
55027         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55028         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55029         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55030         * tests/test-copy-acl.sh: Likewise.
55031
55032 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55033
55034         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55035         based on character occurrence counts.
55036
55037 2008-09-15  Eric Blake  <ebb9@byu.net>
55038
55039         tests: avoid some compiler warnings
55040         * tests/test-memchr.c (main): Pass NULL indirectly.
55041         * tests/test-closein.c (main): Avoid unused variable.
55042
55043 2008-09-15  Bruno Haible  <bruno@clisp.org>
55044
55045         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55046         are missing on OpenBSD 4.0 individually.
55047         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55048
55049 2008-09-15  Bruno Haible  <bruno@clisp.org>
55050
55051         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55052         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55053         * doc/posix-functions/perror.texi: Likewise.
55054         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55055         is missing.
55056         Reported by Eric Blake.
55057
55058         * lib/errno.in.h: Use replacement values >= 2000.
55059         Reported by Eric Blake.
55060
55061 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55062
55063         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55064         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55065         limit.
55066         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55067         compareseq was aborted.
55068
55069 2008-09-14  Bruno Haible  <bruno@clisp.org>
55070
55071         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55072         yvec_edit_count.
55073         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55074         (fstrcmp_bounded): Simplify result computation accordingly.
55075
55076 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55077
55078         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55079         (fstrcmp): Define in terms of fstrcmp_bounded.
55080         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55081         lower_bound argument.
55082         Return quickly if the result is certainly < lower_bound.
55083         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55084
55085 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55086
55087         * lib/diffseq.h (EARLY_ABORT): New macro.
55088         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55089         evaluates to true.
55090
55091 2008-09-14  Bruno Haible  <bruno@clisp.org>
55092
55093         * modules/perror-tests: New file.
55094         * tests/test-perror.sh: New file.
55095         * tests/test-perror.c: New file.
55096
55097         New module 'perror'.
55098         * lib/stdio.in.h (perror): New declaration.
55099         * lib/perror.c: New file.
55100         * m4/perror.m4: New file.
55101         * modules/perror: New file.
55102         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55103         * doc/posix-functions/perror.texi: Mention the perror module.
55104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55105         REPLACE_PERROR.
55106         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55107         REPLACE_PERROR.
55108
55109 2008-09-14  Bruno Haible  <bruno@clisp.org>
55110
55111         * modules/stdio (Makefile.am): Reorder to match the order in
55112         lib/stdio.in.h.
55113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55114
55115 2008-09-13  Bruno Haible  <bruno@clisp.org>
55116
55117         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55118
55119 2008-09-13  Bruno Haible  <bruno@clisp.org>
55120
55121         Extend strerror to cover the added errno values.
55122         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55123         (rpl_strerror): Provide error messages for the added errno values and
55124         for the WSA* values.
55125         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55126         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55127         strerror.
55128         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55129         * modules/strerror (Depends-on): Add errno.
55130         * doc/posix-functions/strerror.texi: Document the change.
55131         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55132         and EOVERFLOW.
55133
55134 2008-09-13  Bruno Haible  <bruno@clisp.org>
55135
55136         * modules/EOVERFLOW: Remove file.
55137         * m4/eoverflow.m4: Remove file.
55138         * modules/EOVERFLOW-tests: Remove file.
55139         * tests/test-EOVERFLOW.c: Remove file.
55140         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55141         * modules/ftell (Depends-on): Likewise.
55142         * modules/getdelim (Depends-on): Likewise.
55143         * modules/getugroups (Depends-on): Likewise.
55144         * modules/poll (Depends-on): Likewise.
55145         * modules/snprintf (Depends-on): Likewise.
55146         * modules/sprintf-posix (Depends-on): Likewise.
55147         * modules/vasnprintf (Depends-on): Likewise.
55148         * modules/vasprintf (Depends-on): Likewise.
55149         * modules/vfprintf-posix (Depends-on): Likewise.
55150         * modules/vsnprintf (Depends-on): Likewise.
55151         * modules/vsprintf-posix (Depends-on): Likewise.
55152         * modules/xvasprintf (Depends-on): Likewise.
55153         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55154         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55155         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55156         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55157         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55158         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55159         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55160         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55161         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55162         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55163         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55164         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55165         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55166         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55167         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55168         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55169         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55170         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55171         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55172         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55173         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55174         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55175         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55176         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55177         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55178         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55179         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55180         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55181         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55182         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55183         * MODULES.html.sh: Remove EOVERFLOW.
55184         * NEWS: Mention the change.
55185
55186 2008-09-13  Bruno Haible  <bruno@clisp.org>
55187
55188         * modules/errno-tests: New file.
55189         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55190
55191         * lib/errno.in.h: New file.
55192         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55193         * modules/errno: New file.
55194         * doc/posix-headers/errno.texi: Update documentation.
55195         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55196
55197 2008-09-13  Bruno Haible  <bruno@clisp.org>
55198
55199         * tests/test-poll.c: Use #if for native Windows, rather than testing
55200         __MSVCRT__.
55201
55202 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55203             Bruno Haible  <bruno@clisp.org>
55204
55205         * lib/glob.c: Don't include <pwd.h> on native Windows.
55206         (WINDOWS32): New macro.
55207         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55208
55209 2008-09-13  Bruno Haible  <bruno@clisp.org>
55210
55211         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55212         (ETIMEDOUT): Remove macro.
55213         (glthread_cond_timedwait_multithreaded): New declaration.
55214         (glthread_cond_timedwait): Use it.
55215         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55216         (glthread_cond_timedwait_multithreaded): New function.
55217
55218 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55219
55220         * modules/poll-tests: Do not check for io.h.
55221         * tests/test-poll.c: Check for __MSVCRT__ instead.
55222
55223 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55224
55225         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55226         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55227         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55228
55229 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55230
55231         * modules/poll-tests: New.
55232         * tests/test-poll.c: New.
55233
55234 2008-09-12  Eric Blake  <ebb9@byu.net>
55235
55236         frexp: test for NetBSD failure on -0.0
55237         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55238         not all, bugs from NetBSD 3.0 have been fixed.
55239         * doc/posix-functions/frexp.texi (frexp): Document bug.
55240         Reported by Thomas Klausner.
55241
55242         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55243         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55244         literal -0.0.
55245         Reported by Jonathan C. Patschke <jp@centtech.com>.
55246
55247 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55248
55249         * lib/glthread/cond.h: Use dummy implementation also if
55250         USE_WIN32_THREADS.
55251
55252 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55253
55254         * modules/fnmatch-posix (License): Change to LGPLv2+.
55255         * modules/fnmatch-gnu (License): Likewise.
55256
55257 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55258
55259         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55260
55261 2008-09-11  Jim Meyering  <meyering@redhat.com>
55262
55263         * users.txt: Add gtk-vnc.
55264
55265 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55266
55267         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55268         rotate amounts.
55269
55270         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55271         required for 16-bit and 8-bit rotates.
55272         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55273         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55274         UINT8_MAX instead of hard-coded constants.
55275         Suggested by Paul Eggert.
55276
55277 2008-09-07  Bruno Haible  <bruno@clisp.org>
55278
55279         * tests/test-striconveh.c (main): Check behaviour when converting from
55280         UTF-7.
55281
55282         Make striconveh work better with stateful encodings.
55283         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55284         that iconv does not increment the inptr when returning -1/EINVAL.
55285
55286 2008-09-07  Bruno Haible  <bruno@clisp.org>
55287
55288         * build-aux/config.rpath: Update according to libtool-2.2.6.
55289         * build-aux/config.libpath: Likewise.
55290
55291 2008-09-06  Bruno Haible  <bruno@clisp.org>
55292
55293         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55294         * lib/freadptr.c (freadptr): Likewise.
55295         * lib/freadseek.c (freadptrinc): Likewise.
55296         Reported by Simon Josefsson.
55297
55298 2008-09-06  Bruno Haible  <bruno@clisp.org>
55299
55300         * modules/freadptr (License): Change to LGPLv2+.
55301         * modules/freadseek (License): Likewise.
55302         Suggested by Eric Blake.
55303
55304         * modules/memchr2 (License): Change to LGPLv2+.
55305         Approved by Eric Blake.
55306
55307 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55308             Bruno Haible  <bruno@clisp.org>
55309
55310         Make gnulib-tool work with native 'sed' on AIX.
55311         * gnulib-tool (sed_noop): New variable.
55312         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55313         func_add_or_update, func_create_testdir): Use it to initialize sed
55314         script variables.
55315         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55316
55317 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55318             Bruno Haible  <bruno@clisp.org>
55319
55320         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55321         also works after #include directives.
55322
55323 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
55324
55325         getdate.y: reject an out-of-range timezone value
55326         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55327         the range [-24...+24].  When specified with only one or two digits,
55328         * tests/test-getdate.c: Tests for the fix.
55329         * doc/getdate.texi: Document this change.
55330
55331 2008-09-03  Bruno Haible  <bruno@clisp.org>
55332
55333         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55334
55335 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55336
55337         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55338         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55339         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55340         Blake <ebb9@byu.net>.
55341
55342         * tests/test-bitrotate.c: Add more test vectors.
55343
55344 2008-09-02  Eric Blake  <ebb9@byu.net>
55345
55346         vasnprintf-posix: handle large precision via %.*d
55347         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55348         when handling it ourselves.
55349         * tests/test-vasnprintf-posix.c (test_function): Add test.
55350         * tests/test-snprintf-posix.h (test_function): Likewise.
55351         * tests/test-sprintf-posix.h (test_function): Likewise.
55352         * tests/test-vasprintf-posix.c (test_function): Likewise.
55353         Reported by Alain Guibert.
55354
55355 2008-09-01  Eric Blake  <ebb9@byu.net>
55356
55357         c-stack: make configure-time check more robust
55358         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55359         successful sigaction call.
55360         Reported by Tom G. Christensen.
55361
55362 2008-09-01  Bruno Haible  <bruno@clisp.org>
55363
55364         New module 'findprog-lgpl'.
55365         * modules/findprog-lgpl: New file.
55366         * lib/findprog-lgpl.c: New file.
55367         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55368         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55369         to decide whether to use strdup or xstrdup, concatenated_filename or
55370         xconcatenated_filename.
55371
55372 2008-09-01  Bruno Haible  <bruno@clisp.org>
55373
55374         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55375         'xconcat-filename' (GPL).
55376         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55377         (License): Change to LGPLv2+.
55378         * modules/xconcat-filename: New file.
55379         * lib/concat-filename.h (concatenated_filename): Change specification.
55380         (xconcatenated_filename): New declaration.
55381         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55382         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55383         memory situations.
55384         * lib/xconcat-filename.c: New file.
55385         * NEWS: Mention the change.
55386         * lib/findprog.c: Include concat-filename.h, not filename.h.
55387         (find_in_path): Use xconcatenated_filename instead of
55388         concatenated_filename.
55389         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55390         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55391         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55392         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55393         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55394         instead of concatenated_filename.
55395         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55396         (execute_java_class): Use xconcatenated_filename instead of
55397         concatenated_filename.
55398         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55399         * modules/javacomp (Depends-on): Likewise.
55400         * modules/javaexec (Depends-on): Likewise.
55401
55402 2008-09-01  Bruno Haible  <bruno@clisp.org>
55403
55404         Split module 'filename' into 'filename' and 'concat-filename'.
55405         * modules/filename: Keep only lib/filename.h.
55406         (License): Change to LGPLv2+.
55407         * modules/concat-filename: New file, extracted from modules/filename.
55408         * lib/filename.h (concatenated_filename): Remove declaration.
55409         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55410         * lib/concat-filename.c: Include concat-filename.h.
55411         * NEWS: Mention the change.
55412
55413 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55414
55415         * lib/bitrotate.h (rotl8, rotr8): Add.
55416
55417         * modules/bitrotate (configure.ac): Need
55418         AC_REQUIRE([AC_C_INLINE]).
55419         (Description): Mention stdint.h.  Reported by Bruno Haible
55420         <bruno@clisp.org>.
55421
55422         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55423         Paolo Bonzini <bonzini@gnu.org>.
55424
55425 2008-08-31  Bruno Haible  <bruno@clisp.org>
55426
55427         Assume Solaris specific bi-arch conventions on Solaris systems.
55428         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55429         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55430         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55431         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55432         like acl_libdirstem.
55433         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55434         acl_libdirstem.
55435         * NEWS: Mention the change.
55436         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55437
55438 2008-08-31  Jim Meyering  <meyering@redhat.com>
55439
55440         * lib/strftime.h: Add comments describing the two added arguments.
55441
55442         remove duplicate #include directives
55443         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55444         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55445
55446 2008-08-31  Bruno Haible  <bruno@clisp.org>
55447
55448         New module 'sigpipe-die'.
55449         * modules/sigpipe-die: New file.
55450         * lib/sigpipe-die.h: New file.
55451         * lib/sigpipe-die.c: New file.
55452         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55453
55454 2008-08-31  Bruno Haible  <bruno@clisp.org>
55455
55456         Don't override previously installed signal handlers.
55457         * lib/fatal-signal.c (saved_sigactions): New variable.
55458         (uninstall_handlers): Reset the signal to the saved handler, not
55459         to SIG_DFL (except when ignored).
55460         (install_handlers): Save the previous handlers.
55461
55462 2008-08-30  Bruno Haible  <bruno@clisp.org>
55463
55464         * gnulib-tool (func_reset_sigpipe): New function.
55465         (func_get_automake_snippet, func_modules_transitive_closure,
55466         func_import): Invoke it before a join command that reads from stdin,
55467         to avoid "echo: write error: Broken pipe" error messages on stderr.
55468         Reported by Sam Steingold <sds@gnu.org>.
55469
55470 2008-08-30  Bruno Haible  <bruno@clisp.org>
55471
55472         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55473         Code copied from m4/open.m4.
55474         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55475         access and the filename ends in a slash. Code copied from lib/open.c.
55476         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55477         * tests/test-fopen.c (main): Check against bug with trailing slash.
55478
55479 2008-08-29  Bruno Haible  <bruno@clisp.org>
55480
55481         Avoid some "gcc -pedantic" warnings.
55482         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55483         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55484         * lib/dirent.in.h: Likewise.
55485         * lib/fcntl.in.h: Likewise.
55486         * lib/float.in.h: Likewise.
55487         * lib/iconv.in.h: Likewise.
55488         * lib/inttypes.in.h: Likewise.
55489         * lib/locale.in.h: Likewise.
55490         * lib/math.in.h: Likewise.
55491         * lib/netinet_in.in.h: Likewise.
55492         * lib/search.in.h: Likewise.
55493         * lib/signal.in.h: Likewise.
55494         * lib/stdarg.in.h: Likewise.
55495         * lib/stdint.in.h: Likewise.
55496         * lib/stdio.in.h: Likewise.
55497         * lib/stdlib.in.h: Likewise.
55498         * lib/string.in.h: Likewise.
55499         * lib/strings.in.h: Likewise.
55500         * lib/sys_select.in.h: Likewise.
55501         * lib/sys_socket.in.h: Likewise.
55502         * lib/sys_stat.in.h: Likewise.
55503         * lib/sys_time.in.h: Likewise.
55504         * lib/sysexits.in.h: Likewise.
55505         * lib/time.in.h: Likewise.
55506         * lib/unistd.in.h: Likewise.
55507         * lib/wchar.in.h: Likewise.
55508         * lib/wctype.in.h: Likewise.
55509         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55510         * modules/fchdir (Makefile.am): Likewise.
55511         * modules/fcntl (Makefile.am): Likewise.
55512         * modules/float (Makefile.am): Likewise.
55513         * modules/iconv_open (Makefile.am): Likewise.
55514         * modules/inttypes (Makefile.am): Likewise.
55515         * modules/locale (Makefile.am): Likewise.
55516         * modules/math (Makefile.am): Likewise.
55517         * modules/netinet_in (Makefile.am): Likewise.
55518         * modules/search (Makefile.am): Likewise.
55519         * modules/signal (Makefile.am): Likewise.
55520         * modules/stdarg (Makefile.am): Likewise.
55521         * modules/stdint (Makefile.am): Likewise.
55522         * modules/stdio (Makefile.am): Likewise.
55523         * modules/stdlib (Makefile.am): Likewise.
55524         * modules/string (Makefile.am): Likewise.
55525         * modules/strings (Makefile.am): Likewise.
55526         * modules/sys_select (Makefile.am): Likewise.
55527         * modules/sys_socket (Makefile.am): Likewise.
55528         * modules/sys_stat (Makefile.am): Likewise.
55529         * modules/sys_time (Makefile.am): Likewise.
55530         * modules/sysexits (Makefile.am): Likewise.
55531         * modules/time (Makefile.am): Likewise.
55532         * modules/unistd (Makefile.am): Likewise.
55533         * modules/wchar (Makefile.am): Likewise.
55534         * modules/wctype (Makefile.am): Likewise.
55535         Reported by Reuben Thomas <rrt@sc3d.org>.
55536
55537 2008-08-29  Bruno Haible  <bruno@clisp.org>
55538
55539         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
55540         any more.
55541
55542 2008-08-29  Simon Josefsson  <simon@josefsson.org>
55543
55544         * MODULES.html.sh (Misc): Add bitrotate.
55545
55546         * modules/bitrotate: New file.
55547
55548         * lib/bitrotate.h: New file.
55549
55550         * modules/bitrotate-tests: New file.
55551
55552         * tests/test-bitrotate.c: New file.
55553
55554         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
55555         on the bitrotate module.
55556
55557         * lib/arctwo.c: Use new bitrotate module.
55558
55559 2008-08-29  Jim Meyering  <meyering@redhat.com>
55560
55561         bootstrap: merge changes from coreutils
55562         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
55563         of copied files.  Remove a kludge, now that this is fixed.
55564         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
55565         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
55566         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
55567
55568 2008-08-29  Bruno Haible  <bruno@clisp.org>
55569
55570         * MODULES.html.sh: Remove --cvs-urls option.
55571
55572 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
55573
55574         maint.mk: adjust to file name change
55575         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
55576
55577 2008-08-28  Jim Meyering  <meyering@redhat.com>
55578
55579         * modules/getndelim2 (License): Relicense to LGPLv2+.
55580         Approved by Richard Stallman for the version of 1995, and by
55581         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
55582
55583 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
55584
55585         * lib/getdelim.c (flockfile, funlockfile): Make all of them
55586         dummy if one is not available.  Do not touch them if
55587         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
55588         (getc_maybe_unlocked): New.
55589         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
55590
55591 2008-08-26  Eric Blake  <ebb9@byu.net>
55592
55593         doc/INSTALL: resync from autoconf
55594         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
55595         (INSTALL_PRELUDE): Delete; this is done more efficiently by
55596         moving...
55597         * install.texi [!autoconf]: ...here.  Resync from autoconf.
55598         * INSTALL: Regenerate.
55599         * INSTALL.ISO: New file.
55600         * INSTALL.UTF-8: Likewise.
55601
55602 2008-08-26  Jim Meyering  <meyering@redhat.com>
55603
55604         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
55605         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
55606         these definitions conditional, so that they may be overridden, too.
55607
55608 2008-08-26  Bruno Haible  <bruno@clisp.org>
55609
55610         Generate INSTALL file variants with prettier quotes.
55611         * doc/Makefile (INSTALL_PRELUDE): New macro.
55612         (INSTALL): Use it.
55613         (INSTALL.ISO, INSTALL.UTF-8): New rules.
55614
55615 2008-08-26  Bruno Haible  <bruno@clisp.org>
55616
55617         Run makeinfo in an English locale.
55618         * doc/Makefile (MAKEINFO): New variable.
55619
55620 2008-08-26  Bruno Haible  <bruno@clisp.org>
55621
55622         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
55623         Suggested by Eric Blake.
55624
55625 2008-08-25  Bruno Haible  <bruno@clisp.org>
55626
55627         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
55628
55629 2008-08-25  Eric Blake  <ebb9@byu.net>
55630
55631         c-stack: test that stack overflow can be caught
55632         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
55633         that platform allows handling stack overflow; at least OS/2 EMX
55634         has sigaltstack, but crashes before transferring control to
55635         handler on stack overflow.
55636         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
55637         check for HAVE_STACK_OVERFLOW_HANDLING.
55638         Reported by Elbert Pol.
55639
55640 2008-08-25  Bruno Haible  <bruno@clisp.org>
55641
55642         * doc/posix-functions/strftime.texi: Fix description of strftime
55643         module.
55644
55645 2008-08-24  Bruno Haible  <bruno@clisp.org>
55646
55647         * tests/uniwidth/test-uc_width2.c: New file.
55648         * tests/uniwidth/test-uc_width2.sh: New file.
55649         * modules/uniwidth/width-tests (Files): Add the new files.
55650         (TESTS): Add uniwidth/test-uc_width2.sh.
55651         (TESTS_ENVIRONMENT): New variable.
55652         (check_PROGRAMS): Add test-uc_width2.
55653         (test_uc_width2_SOURCES): New variable.
55654
55655         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
55656         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
55657         not 0x00AB.
55658         Reported by Alexander V. Lukyanov <lav@netis.ru>.
55659
55660 2008-08-22  Eric Blake  <ebb9@byu.net>
55661
55662         test-lock, test-tls: mention why a test is skipped
55663         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
55664         skipped.
55665         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
55666
55667         count-one-bits: relax license
55668         * modules/count-one-bits (License): Relicense to LGPLv2+.
55669         Suggested by Ludovic Courtès, approved by Ben Pfaff.
55670
55671 2008-08-22  Andreas Schwab  <schwab@suse.de>
55672
55673         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55674         Remove spurious space in assignment.
55675
55676 2008-08-21  Simon Josefsson  <simon@josefsson.org>
55677
55678         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
55679         Paul Eggert <eggert@CS.UCLA.EDU>.
55680
55681 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
55682
55683         * modules/gettext: Add m4/threadlib.m4.
55684
55685 2008-08-19  Eric Blake  <ebb9@byu.net>
55686
55687         test-c-stack: fix compilation failure on FreeBSD 5.0
55688         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
55689         headers before <sys/resource.h>.
55690         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
55691         the bug.
55692         Reported by Nelson H. F. Beebe.
55693
55694         strverscmp: migrate from "strverscmp.h" to <string.h>
55695         * modules/string (Makefile.am): Add new hooks.
55696         * modules/strverscmp (Files): Remove strverscmp.h.
55697         (Depends-on): Add string.
55698         (configure.ac): Add indicator.
55699         (Include): Mention new header.
55700         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
55701         defaults.
55702         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
55703         results.
55704         * lib/strverscmp.h: Delete.
55705         * lib/string.in.h (strverscmp): Provide declaration, when needed.
55706         * tests/test-strverscmp.c (includes): Adjust client.
55707         * lib/check-version.c (includes): Likewise.
55708         * NEWS: Document the change.
55709
55710         strverscmp: add unit test
55711         * modules/strverscmp-tests: New file.
55712         * tests/test-strverscmp.c: Likewise.
55713
55714 2008-08-19  Simon Josefsson  <simon@josefsson.org>
55715
55716         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
55717         regarding Windows crypto stuff, from Mono.
55718
55719 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
55720
55721         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
55722         if present, for intel RND.  Return error on failures.
55723
55724 2008-08-18  Ben Pfaff  <blp@gnu.org>
55725
55726         gitlog-to-changelog: give better diagnostic for failed pipe-open
55727         * build-aux/gitlog-to-changelog: Improve error message: suggest
55728         that the version of Git may be too old.
55729
55730 2008-08-18  Simon Josefsson  <simon@josefsson.org>
55731
55732         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
55733         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
55734
55735 2008-08-18  Bruno Haible  <bruno@clisp.org>
55736
55737         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
55738         pthread_in_use().
55739
55740 2008-08-18  Bruno Haible  <bruno@clisp.org>
55741
55742         * lib/glthread/threadlib.c: Include <pthread.h>.
55743
55744 2008-08-18  Bruno Haible  <bruno@clisp.org>
55745
55746         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
55747         glthread_recursive_lock_* macros.
55748         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
55749         Fix syntax error.
55750
55751 2008-08-18  Bruno Haible  <bruno@clisp.org>
55752
55753         * lib/glthread/thread.c: Avoid forcing a context switch right after
55754         thread creation.
55755
55756 2008-08-17  Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
55759         * lib/glthread/thread.h: Provide Win32 specific implementation.
55760         * modules/thread (Files): Add lib/glthread/thread.c.
55761         (Depends-on): Add lock.
55762         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
55763
55764 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55765
55766         New module 'yield'.
55767         * modules/yield: New file.
55768         * lib/glthread/yield.h: New file.
55769         * m4/yield.m4: New file.
55770         * MODULES.html.sh (Multithreading): Add yield.
55771
55772 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55773
55774         New module 'thread'.
55775         * modules/thread: New file.
55776         * lib/glthread/thread.h: New file.
55777         * m4/thread.m4: New file.
55778         * MODULES.html.sh (Multithreading): Add thread.
55779
55780 2008-08-17  Bruno Haible  <bruno@clisp.org>
55781
55782         * lib/glthread/lock.h: Include <stdlib.h> always.
55783         * lib/glthread/tls.h: Likewise.
55784         * lib/glthread/cond.h: Likewise.
55785
55786 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55787
55788         New module 'cond'.
55789         * modules/cond: New file.
55790         * lib/glthread/cond.h: New file.
55791         * lib/glthread/cond.c: New file.
55792         * m4/cond.m4: New file.
55793         * MODULES.html.sh (Multithreading): Add cond.
55794
55795 2008-08-16  Eric Blake  <ebb9@byu.net>
55796
55797         c-stack: fix regression on Irix 5.3 from 2008-06-21
55798         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
55799         sa_sigaction...
55800         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
55801         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
55802         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
55803         * modules/signal (Makefile.am): Use the value.
55804         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
55805         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
55806         * doc/posix-headers/signal.texi (signal.h): Document this
55807         portability issue.
55808         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
55809         Reported by Tom G. Christensen.
55810
55811 2008-08-17  Bruno Haible  <bruno@clisp.org>
55812
55813         New module 'threadlib'.
55814         * modules/threadlib: New file.
55815         * lib/glthread/threadlib.c: New file, extracted from
55816         lib/glthread/lock.c.
55817         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
55818         functions.
55819         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
55820         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
55821         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
55822         macros.
55823         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
55824         (gl_DISABLE_THREADS): Remove macro.
55825         * modules/lock (Files): Remove build-aux/config.rpath.
55826         (Depends-on): Remove havelib. Add threadlib.
55827         (configure.ac-early): Remove section.
55828         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
55829         * modules/tls (Depends-on): Remove lock. Add threadlib.
55830         (Link): New section, copied from threadlib.
55831         * MODULES.html.sh (Multithreading): Add threadlib.
55832
55833 2008-08-14  Bruno Haible  <bruno@clisp.org>
55834
55835         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
55836         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
55837         glthread_rwlock_unlock, glthread_rwlock_destroy,
55838         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
55839         glthread_recursive_lock_destroy): Define as macros always.
55840         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
55841         glthread_lock_lock.
55842         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
55843         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
55844         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
55845         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
55846         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
55847         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
55848         (glthread_recursive_lock_lock_func): Renamed from
55849         glthread_recursive_lock_lock.
55850         (glthread_recursive_lock_unlock_func): Renamed from
55851         glthread_recursive_lock_unlock.
55852         (glthread_recursive_lock_destroy_func): Renamed from
55853         glthread_recursive_lock_destroy.
55854
55855 2008-08-14  Bruno Haible  <bruno@clisp.org>
55856
55857         * lib/glthread/lock.h: Renamed from lib/lock.h.
55858         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
55859         * lib/glthread/tls.h: Renamed from lib/tls.h.
55860         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
55861         * lib/fstrcmp.c: Update includes.
55862         * lib/strsignal.c: Update includes.
55863         * modules/lock (Files, Makefile.am): Update.
55864         (Include): Change to "glthread/lock.h".
55865         * modules/tls (Files, Makefile.am): Update.
55866         (Include): Change to "glthread/tls.h".
55867         * tests/test-lock.c: Update includes.
55868         * tests/test-tls.c: Update includes.
55869         * NEWS: Mention the renamed header files.
55870
55871 2008-08-11  Jim Meyering  <meyering@redhat.com>
55872
55873         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
55874
55875 2008-08-11  Eric Blake  <ebb9@byu.net>
55876
55877         test-c-stack: avoid C99-ism
55878         * tests/test-c-stack.c (main): Fix whitespace, move declaration
55879         before statement.
55880         Reported by Alain Guibert.
55881
55882 2008-08-10  Jim Meyering  <meyering@redhat.com>
55883
55884         ensure that return value of uinttostr et al are not ignored
55885         * lib/inttostr.h (__GNUC_PREREQ): Define.
55886         (__attribute_warn_unused_result__): Define.
55887         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
55888
55889 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
55890
55891         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
55892         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
55893
55894 2008-08-07  Jim Meyering  <meyering@redhat.com>
55895
55896         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
55897
55898         * modules/mkstemp (License): Relicense under LGPLv2+.
55899         * modules/tempname (License): Likewise.
55900
55901 2008-08-06  Bruno Haible  <bruno@clisp.org>
55902
55903         * lib/poll.c (poll): Further micro-optimization.
55904
55905 2008-08-06  Jim Meyering  <meyering@redhat.com>
55906
55907         inet_pton.c: use locale-independent tolower
55908         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
55909         (inet_pton6): Use c_tolower rather than tolower.
55910         * modules/inet_pton (Depends-on): Add c-ctype.
55911
55912 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
55913
55914         * lib/poll.c (poll): Avoid division when timeout is 0, cache
55915         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
55916
55917 2008-08-06  Jim Meyering  <meyering@redhat.com>
55918
55919         * modules/inet_pton (License): Relicense under LGPLv2+.
55920
55921 2008-08-03  Bruno Haible  <bruno@clisp.org>
55922
55923         Additional non-aborting API for lock and tls.
55924         * lib/lock.h: Include <errno.h>.
55925         (glthread_lock_init): New macro/function.
55926         (gl_lock_init): Define as wrapper around glthread_lock_init.
55927         (glthread_lock_lock): New macro/function.
55928         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
55929         (glthread_lock_unlock): New macro/function.
55930         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
55931         (glthread_lock_destroy): New macro/function.
55932         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
55933         (glthread_rwlock_init): New macro/function.
55934         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
55935         (glthread_rwlock_rdlock): New macro/function.
55936         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
55937         (glthread_rwlock_wrlock): New macro/function.
55938         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
55939         (glthread_rwlock_unlock): New macro/function.
55940         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
55941         (glthread_rwlock_destroy): New macro/function.
55942         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
55943         (glthread_recursive_lock_init): New macro/function.
55944         (gl_recursive_lock_init): Define as wrapper around
55945         glthread_recursive_lock_init.
55946         (glthread_recursive_lock_lock): New macro/function.
55947         (gl_recursive_lock_lock): Define as wrapper around
55948         glthread_recursive_lock_lock.
55949         (glthread_recursive_lock_unlock): New macro/function.
55950         (gl_recursive_lock_unlock): Define as wrapper around
55951         glthread_recursive_lock_unlock.
55952         (glthread_recursive_lock_destroy): New macro/function.
55953         (gl_recursive_lock_destroy): Define as wrapper around
55954         glthread_recursive_lock_destroy.
55955         (glthread_once): New macro/function.
55956         (gl_once): Define as wrapper around glthread_once.
55957         Update function declarations.
55958         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
55959         glthread_rwlock_init. Return error code.
55960         (glthread_rwlock_rdlock_multithreaded): Renamed from
55961         glthread_rwlock_rdlock. Return error code.
55962         (glthread_rwlock_wrlock_multithreaded): Renamed from
55963         glthread_rwlock_wrlock. Return error code.
55964         (glthread_rwlock_unlock_multithreaded): Renamed from
55965         glthread_rwlock_unlock. Return error code.
55966         (glthread_rwlock_destroy_multithreaded): Renamed from
55967         glthread_rwlock_destroy. Return error code.
55968         (glthread_recursive_lock_init_multithreaded): Renamed from
55969         glthread_recursive_lock_init. Return error code.
55970         (glthread_recursive_lock_lock_multithreaded): Renamed from
55971         glthread_recursive_lock_lock. Return error code.
55972         (glthread_recursive_lock_unlock_multithreaded): Renamed from
55973         glthread_recursive_lock_unlock. Return error code.
55974         (glthread_recursive_lock_destroy_multithreaded): Renamed from
55975         glthread_recursive_lock_destroy. Return error code.
55976         (glthread_once_call): Make static.
55977         (glthread_once_multithreaded): Renamed from glthread_once.
55978         * lib/tls.h: Include <errno.h>.
55979         (glthread_tls_key_init): New macro/function.
55980         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
55981         (glthread_tls_set): New macro/function.
55982         (gl_tls_set): Define as wrapper around glthread_tls_set.
55983         (glthread_tls_key_destroy): New macro/function.
55984         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
55985         Update function declarations.
55986         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
55987         glthread_tls_get.
55988         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55989
55990 2008-08-04  Eric Blake  <ebb9@byu.net>
55991
55992         gnumakefile: use space, not TAB, outside of targets
55993         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
55994
55995 2008-08-02  Jim Meyering  <meyering@redhat.com>
55996
55997         getdate.y: avoid locale-dependent date parsing failure
55998         In Turkish locales, getdate would fail to recognize keywords
55999         containing a lowercase "i".  The solution is not to rely on
56000         locale-sensitive case-conversion.
56001         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56002         (lookup_word): Use c_toupper in place of toupper.
56003         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56004         Reported by Vefa Bicakci <bicave@superonline.com> in
56005         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56006         * modules/getdate (Depends-on): Add c-ctype.
56007
56008 2008-08-02  Bruno Haible  <bruno@clisp.org>
56009
56010         * gnulib-tool (func_import): When updating or creating a .gitignore
56011         file, prepend each added line with a slash, and ignore leading slashes
56012         from the existing lines.
56013         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56014
56015 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56016
56017         Portability fix for GNU make 3.79.1.
56018         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56019         versions do not understand.
56020
56021 2008-08-01  Bruno Haible  <bruno@clisp.org>
56022
56023         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56024         * tests/test-isnanf.h (zero): New variable.
56025         (main): Avoid literal -0.0f.
56026         * tests/test-isnand.h (zero): New variable.
56027         (main): Avoid literal -0.0.
56028         * tests/test-isnanl.h (zero): New variable.
56029         (main): Avoid literal -0.0L.
56030         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56031         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56032         -0.0, -0.0L.
56033         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56034         (test_signbitd): Avoid literal -0.0.
56035         (test_signbitl): Avoid literal -0.0L.
56036         * tests/test-ceilf1.c (zero): New variable.
56037         (main): Avoid literal -0.0f.
56038         * tests/test-ceill.c (zero): New variable.
56039         (main): Avoid literal -0.0L.
56040         * tests/test-floorf1.c (zero): New variable.
56041         (main): Avoid literal -0.0f.
56042         * tests/test-floorl.c (zero): New variable.
56043         (main): Avoid literal -0.0L.
56044         * tests/test-roundf1.c (zero): New variable.
56045         (main): Avoid literal -0.0f.
56046         * tests/test-round1.c (zero): New variable.
56047         (main): Avoid literal -0.0.
56048         * tests/test-roundl.c (zero): New variable.
56049         (main): Avoid literal -0.0L.
56050         * tests/test-truncf1.c (zero): New variable.
56051         (main): Avoid literal -0.0f.
56052         * tests/test-trunc1.c (zero): New variable.
56053         (main): Avoid literal -0.0.
56054         * tests/test-truncl.c (zero): New variable.
56055         (main): Avoid literal -0.0L.
56056         * tests/test-frexp.c (zero): New variable.
56057         (main): Avoid literal -0.0.
56058         * tests/test-frexpl.c (zero): New variable.
56059         (main): Avoid literal -0.0L.
56060         * tests/test-ldexpl.c (zero): New variable.
56061         (main): Avoid literal -0.0L.
56062         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56063         (zerod, zerol): New variables.
56064         (test_function): Avoid literals -0.0, -0.0L.
56065         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56066         (zerod, zerol): New variables.
56067         (test_function): Avoid literals -0.0, -0.0L.
56068         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56069         (zerod, zerol): New variables.
56070         (test_function): Avoid literals -0.0, -0.0L.
56071         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56072         (zerod, zerol): New variables.
56073         (test_function): Avoid literals -0.0, -0.0L.
56074         * tests/test-strtod.c (zero): New variable.
56075         (main): Avoid literal -0.0.
56076         Reported by Jonathan C. Patschke <jp@centtech.com>.
56077
56078 2008-07-31  Jim Meyering  <meyering@redhat.com>
56079
56080         sha256.h: correct definition of SHA224_DIGEST_SIZE
56081         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56082         Reported by Paulie Pena IV <paulie4@gmail.com>.
56083         Define as 224 / 8, rather than as a literal.
56084         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56085         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56086         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56087
56088 2008-07-31  Bruno Haible  <bruno@clisp.org>
56089
56090         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56091         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56092         Reported by Jonathan Patschke <jp@centtech.com>.
56093
56094 2008-07-31  Bruno Haible  <bruno@clisp.org>
56095
56096         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56097         Reported by Paolo Bonzini <bonzini@gnu.org>.
56098
56099 2008-07-30  Eric Blake  <ebb9@byu.net>
56100
56101         test-strtod: allow compilation without -lm
56102         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56103         Reported by Dennis Clarke <blastwave@gmail.com>.
56104
56105 2008-07-28  Jim Meyering  <meyering@redhat.com>
56106
56107         bootstrap: work also when there are no .po files in po/
56108         * build-aux/bootstrap (update_po_files): Complete the change
56109         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56110
56111 2008-07-27  Jim Meyering  <meyering@redhat.com>
56112
56113         * users.txt: Add zile.
56114
56115 2008-07-26  Ben Pfaff  <blp@gnu.org>
56116
56117         Add missing dependencies on new m4/exponent[fdl].m4 files.
56118         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56119         * modules/isnand-nolibm: Add m4/exponentd.m4.
56120         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56121         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56122         m4/isnan[fdl].m4, because the macros actually used moved.
56123         Reported by Jim Meyering.
56124
56125 2008-07-14  Ben Pfaff  <blp@gnu.org>
56126
56127         Add isinf module.
56128         * lib/isinf.c: New file.
56129         * lib/math.in.h: Define isinf macro if we have decided to replace
56130         it.
56131         * m4/isinf.m4: New file.
56132         * m4/math_h.m4: Initialize and substitute variables for isinf
56133         module.
56134         * modules/isinf: New file.
56135         * modules/isinf-tests: New file.
56136         * modules/math: Add substitutions for new module.
56137         * tests/test-isinf.c: New file.
56138         * doc/posix-functions/isinf.texi: Mention new module.
56139         * MODULES.html.sh: Mention new module.
56140
56141 2008-07-14  Ben Pfaff  <blp@gnu.org>
56142
56143         Factor out some macros for use by additional modules.
56144         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56145         exponentf.m4.
56146         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56147         exponentd.m4.
56148         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56149         file exponentl.m4.
56150         * m4/exponentf.m4: New file.
56151         * m4/exponentd.m4: New file.
56152         * m4/exponentl.m4: New file.
56153         * modules/isnanf: Use new file m4/exponentf.m4.
56154         * modules/isnand: Use new file m4/exponentd.m4.
56155         * modules/isnanl: Use new file m4/exponentl.m4.
56156
56157 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56158
56159         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56160         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56161         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56162         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56163
56164         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56165         readlink on platforms without PATH_MAX.
56166
56167 2008-07-21  Eric Blake  <ebb9@byu.net>
56168
56169         Warn, not fail, on stale version.
56170         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56171
56172         Don't allow installation with stale devel version number.
56173         * top/GNUmakefile (_is-install-target): New macro.
56174         (_curr-ver): Forbid installation with stale version number.
56175
56176 2008-07-20  Bruno Haible  <bruno@clisp.org>
56177
56178         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56179         TESTS_ENVIRONMENT.
56180         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56181
56182 2008-07-20  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/c-stack.h (c_stack_action): Add documentation.
56185         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56186
56187 2008-07-20  Bruno Haible  <bruno@clisp.org>
56188
56189         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56190         * modules/readlink (License): Likewise.
56191
56192 2008-07-17  Eric Blake  <ebb9@byu.net>
56193
56194         * modules/c-stack (Link): Fix typo.
56195
56196         Make c-stack use libsigsegv, when available.
56197         * modules/c-stack (Depends-on): Add libsigsegv.
56198         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56199         needed.
56200         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56201         (segv_handler, overflow_handler, c_stack_action)
56202         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56203         implementation when libsigsegv is available, but only when using
56204         the library is necessary.
56205         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56206         comment, explaining why XSI check fails on Linux.
56207         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56208         * tests/test-c-stack2.sh: Tweak skip message.
56209         * NEWS: Document new link-time requirements.
56210
56211 2008-07-16  Eric Blake  <ebb9@byu.net>
56212
56213         c-stack: Expose false positives when not using libsigsegv.
56214         * modules/c-stack-tests (Files): Expand test.
56215         * tests/test-c-stack.c (main): Add means to conditionally trigger
56216         non-overflow SIGSEGV.
56217         * tests/test-c-stack2.sh: New file.
56218
56219 2008-07-14  Bruno Haible  <bruno@clisp.org>
56220
56221         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56222         Reported by Eric Blake.
56223
56224 2008-07-14  Sam Steingold  <sds@gnu.org>
56225             Bruno Haible  <bruno@clisp.org>
56226
56227         New module libsigsegv.
56228         * modules/libsigsegv: New file.
56229         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56230         modifications.
56231         * MODULES.html.sh (Signal handling): New section.
56232
56233 2008-07-14  Bruno Haible  <bruno@clisp.org>
56234
56235         * modules/unictype/ctype-* (Description): Add the word "function".
56236         Improves the resulting doc in MODULES.html.
56237
56238 2008-07-12  Ben Pfaff  <blp@gnu.org>
56239
56240         Add longlong module.
56241         * modules/longlong: New file.
56242
56243 2008-07-12  Bruno Haible  <bruno@clisp.org>
56244
56245         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56246         to empty.
56247
56248 2008-07-10  Ben Pfaff  <blp@gnu.org>
56249
56250         Add isnan module.
56251         * doc/posix-functions/isnan.texi: Mention new module.
56252         * lib/math.in.h: Define isnan macro if we have decided to replace
56253         it.
56254         * m4/isnan.m4: New file.
56255         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56256         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56257         also.
56258         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56259         redundancy.
56260         * m4/math_h.m4: Initialize and substitute variables for isnan
56261         module.
56262         * modules/isnan: New file.
56263         * modules/isnan-tests: New file.
56264         * modules/math: Add substitutions for new module.
56265         * tests/test-isnan.c: New file.
56266         * MODULES.html.sh: Mention new module.
56267
56268 2008-07-10  Ben Pfaff  <blp@gnu.org>
56269
56270         Add isnanf module.
56271         * lib/isnanf.m4: New file.
56272         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56273         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56274         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56275         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56276         * modules/isnanf: New file.
56277         * modules/isnanf-tests: New file.
56278         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56279         files.
56280         * tests/test-isnanf-nolibm.c: factored most of its contents into
56281         new file tests/test-isnanf.h.
56282         * tests/test-isnanf.h: New file.
56283         * tests/test-isnanf.c: New file.
56284         * MODULES.html.sh: Mention new module.
56285         * doc/glibc-functions/isnanf.texi: Mention new module.
56286
56287 2008-07-10  Ben Pfaff  <blp@gnu.org>
56288
56289         Add isnand module.
56290         * lib/isnand.h: New file.
56291         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56292         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56293         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56294         functionality also.
56295         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56296         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56297         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56298         * modules/isnand: New file.
56299         * modules/isnand-tests: New file.
56300         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56301         files.
56302         * tests/test-isnand-nolibm.c: factored most of its contents into
56303         new file tests/test-isnand.h.
56304         * tests/test-isnand.h: New file.
56305         * tests/test-isnand.c: New file.
56306         * MODULES.html.sh: Mention new module.
56307
56308 2008-07-10  Ben Pfaff  <blp@gnu.org>
56309
56310         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56311         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56312         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56313         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56314         * modules/isnanf-nolibm: Update references to renamed files.
56315         * modules/isnand-nolibm: Likewise.
56316         * modules/isnanf-nolibm-tests: Likewise.
56317         * modules/isnand-nolibm-tests: Likewise.
56318         * lib/frexp.c: Likewise.
56319         * lib/isfinite.c: Likewise.
56320         * lib/signbitd.c: Likewise.
56321         * lib/signbitf.c: Likewise.
56322         * lib/vasnprintf.c: Likewise.
56323         * tests/test-ceilf1.c: Likewise.
56324         * tests/test-ceilf2.c: Likewise.
56325         * tests/test-floorf1.c: Likewise.
56326         * tests/test-floorf2.c: Likewise.
56327         * tests/test-frexp.c: Likewise.
56328         * tests/test-round1.c: Likewise.
56329         * tests/test-round2.c: Likewise.
56330         * tests/test-roundf1.c: Likewise.
56331         * tests/test-strtod.c: Likewise.
56332         * tests/test-trunc1.c: Likewise.
56333         * tests/test-trunc2.c: Likewise.
56334         * tests/test-truncf1.c: Likewise.
56335         * tests/test-truncf2.c: Likewise.
56336         * NEWS: Mention the renamed header files.
56337
56338 2008-07-11  Jim Meyering  <meyering@redhat.com>
56339
56340         vc-list-files: make the last-resort awk code more portable
56341         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56342         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56343         does not support it.
56344
56345 2008-07-10  Eric Blake  <ebb9@byu.net>
56346
56347         Work with tar's bootstrap.
56348         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56349         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56350         an m4 comment.
56351
56352 2008-07-09  Jim Meyering  <meyering@redhat.com>
56353
56354         posix-shell.m4: fix typo that made this test malfunction
56355         * m4/posix-shell.m4: Remove capitalization in variable name.
56356
56357 2008-07-08  Bruno Haible  <bruno@clisp.org>
56358
56359         * m4/onceonly.m4: Update comments.
56360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56361
56362 2008-07-04  Jim Meyering  <meyering@redhat.com>
56363
56364         * users.txt: Add vc-dwim.
56365         (bison, coreutils): Use the gitweb URL.
56366
56367 2008-07-03  Jim Meyering  <meyering@redhat.com>
56368
56369         * users.txt: Add libffcall.  From Sam Steingold.
56370
56371 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
56372
56373         getdate.y: do not ignore TZ with relative day, month or year offset
56374         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56375         relative-date-handling, since otherwise, the latter would clobber the
56376         sole output (an updated Start value) of the tz-handling block.
56377         * tests/test-getdate.c: Tests for the fix
56378
56379 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56380
56381         Recognize 'foo_LIBRARIES += libgnu.a'.
56382         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56383         makefile snippet has already specified an installation location,
56384         also using '+='.
56385
56386 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
56387
56388         getdate.y: factor out common actions
56389         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56390         Use them in place of open-coded actions.
56391
56392 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56393
56394         Add self-test for getdate module.
56395         * modules/getdate-tests: New file.
56396         * tests/test-getdate.c: New file.
56397
56398 2008-06-29  Bruno Haible  <bruno@clisp.org>
56399
56400         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56401         .gitignore.
56402         Reported by Sylvain Beucler <beuc@beuc.net>.
56403
56404 2008-06-29  Bruno Haible  <bruno@clisp.org>
56405
56406         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56407         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56408
56409 2008-06-29  Bruno Haible  <bruno@clisp.org>
56410
56411         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56412         EXTRA_DIST.
56413         Reported by Sylvain Beucler <beuc@beuc.net>.
56414
56415 2008-06-26  Jim Meyering  <meyering@redhat.com>
56416
56417         make several modules depend on the "open" module
56418         This provides slightly increased consistency when opening-for-write
56419         the name of a non-directory spelled with a trailing slash.
56420         * modules/chdir-safer: Likewise.
56421         * modules/chown: Likewise.
56422         * modules/clean-temp: Likewise.
56423         * modules/copy-file: Likewise.
56424         * modules/fchdir: Likewise.
56425         * modules/fcntl-safer: Likewise.
56426         * modules/pipe: Likewise.
56427         * modules/utime: Likewise.
56428         Prompted by Eric Blake and Bruno Haible.
56429
56430 2008-06-24  Andreas Schwab  <schwab@suse.de>
56431
56432         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56433         literals can be used as initializers for global variables.
56434
56435 2008-06-23  Eric Blake  <ebb9@byu.net>
56436
56437         Make gnulib-cache.m4 easier to diff.
56438         * gnulib-tool (func_import): Allow newlines when reading cached
56439         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56440
56441 2008-06-23  Bruno Haible  <bruno@clisp.org>
56442
56443         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56444         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56445         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56446         m4/signalblocking.m4.
56447         (gl_PREREQ_SIGACTION): Don't invoke it.
56448         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56449         gl_PREREQ_SIG_HANDLER_H.
56450         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56451         Don't check for sigaction here.
56452
56453 2008-06-23  Bruno Haible  <bruno@clisp.org>
56454
56455         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56456         (install_handlers): Don't set the SA_RESETHAND flag.
56457
56458 2008-06-23  Bruno Haible  <bruno@clisp.org>
56459
56460         * m4/sigaction.m4: Comment fixes.
56461         * lib/signal.in.h: Likewise.
56462
56463 2008-06-23  Eric Blake  <ebb9@byu.net>
56464
56465         Fix typo.
56466         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56467
56468         Avoid SA_ namespace.
56469         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56470         Reported by Ralf Wildenhues.
56471
56472         Avoid test failure due to SA_RESTORER.
56473         * tests/test-sigaction.c (SA_MASK): New macro.
56474         (main): Avoid failing due to extension flags being set.
56475         Reported by Jim Meyering.
56476
56477         Revert use of sig-handler.h in sigprocmask.c.
56478         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56479         it requires the existence of struct sigaction.
56480         * lib/sigprocmask.c (handler_t): Restore typedef.
56481         (rpl_signal, old_handlers): Use local type.
56482
56483 2008-06-22  Bruno Haible  <bruno@clisp.org>
56484
56485         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56486         conditionally.
56487         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56488
56489 2008-06-22  Bruno Haible  <bruno@clisp.org>
56490
56491         * doc/posix-functions/siginterrupt.texi: Move note.
56492
56493         * lib/signal.in.h (SA_RESTART): New macro.
56494         * lib/sigaction.c: Update comment.
56495
56496         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56497
56498         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56499         (gl_PREREQ_SIGPROCMASK): Invoke it.
56500         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56501
56502         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56503
56504         * lib/sigprocmask.c: Update a comment.
56505
56506 2008-06-21  Eric Blake  <ebb9@byu.net>
56507
56508         Use sigaction module rather than signal().
56509         * modules/c-stack (Depends-on): Add sigaction.
56510         * modules/fatal-signal (Depends-on): Likewise.
56511         * modules/nanosleep (Depends-on): Likewise.
56512         * modules/sigprocmask (Files): Add sig-handler.h.
56513         * modules/sigaction (Files): Likewise.
56514         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56515         Eggert.
56516         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56517         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56518         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56519         (init_fatal_signals): Likewise.
56520         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56521         (siginterrupt): Delete fallback.
56522         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56523         instead.
56524         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56525         siginterrupt.
56526
56527         New module sigaction, for mingw.
56528         * modules/sigaction: New module...
56529         * modules/sigaction-tests: ...and its test.
56530         * m4/sigaction.m4: New file.
56531         * lib/sigaction.c: Likewise.
56532         * tests/test-sigaction.c: Likewise.
56533         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
56534         * modules/signal (Makefile.am): Likewise.
56535         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
56536         needed.
56537         * doc/posix-headers/signal.texi (signal.h): Mention provided
56538         types.
56539         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
56540         that sigaction is preferable.
56541         * doc/posix-functions/sigaction.texi (sigaction): Mention new
56542         module.
56543         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56544         sigaction.
56545
56546         Improve robustness of sigprocmask by overriding signal.
56547         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
56548         is in use.
56549         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
56550         (SIGKILL, SIGSTOP): Provide fallbacks.
56551         (rpl_signal): Implement.
56552         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
56553         signal can be called inside handlers.
56554
56555         Fix nanosleep module on mingw.
56556         * modules/nanosleep (Depends-on): Add sys_select.
56557         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
56558
56559         Fix licensing of sigprocmask.
56560         * modules/raise (License): Relicense as LGPL.
56561
56562 2008-06-21  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/propername.c (proper_name_utf8): Don't use the transliterated
56565         result if it contains question marks.
56566         Reported by Michael Geng <linux@michaelgeng.de>.
56567
56568 2008-06-19  Bruno Haible  <bruno@clisp.org>
56569
56570         Fix CVS-ism.
56571         * doc/gnulib.texi: Include updated-stamp.texi.
56572         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
56573         (updated-stamp.texi): New rule.
56574         (gnulib.info): Depend on it.
56575         * doc/.gitignore: Add updated-stamp.texi.
56576         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
56577
56578 2008-06-19  Bruno Haible  <bruno@clisp.org>
56579
56580         * doc/Makefile (gnulib.info): Update and simplify dependencies.
56581         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56582
56583 2008-06-19  Eric Blake  <ebb9@byu.net>
56584
56585         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
56586         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
56587         Reported by Stepan Kasal.
56588
56589 2008-06-18  Bruno Haible  <bruno@clisp.org>
56590
56591         * lib/fatal-signal.c (init_fatal_signals): Add comment.
56592         Reported by Eric Blake.
56593
56594 2008-06-18  Eric Blake  <ebb9@byu.net>
56595
56596         Work around cygwin 1.5.25 strsignal bug.
56597         * tests/test-strsignal.c: Allow for const char *.
56598         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
56599
56600 2008-06-18  Simon Josefsson  <simon@josefsson.org>
56601
56602         * users.txt: Update URL to article and add author/date
56603         information.
56604
56605 2008-06-17  Bruno Haible  <bruno@clisp.org>
56606
56607         New macro gl_DISABLE_THREADS.
56608         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
56609         if the user did not pass --enable-threads or --disable-threads option.
56610         (gl_DISABLE_THREADS): New macro.
56611         Reported by Eric Blake <ebb9@byu.net>.
56612
56613 2008-06-17  Bruno Haible  <bruno@clisp.org>
56614
56615         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
56616         when the macro ignores it.
56617         Based on a patch by Eric Blake <ebb9@byu.net>.
56618
56619 2008-06-17  Bruno Haible  <bruno@clisp.org>
56620
56621         * modules/tls (License): Change to LGPLv2+.
56622         Reported by Eric Blake.
56623
56624 2008-06-17  Eric Blake  <ebb9@byu.net>
56625
56626         Simplify c-stack prerequisites.
56627         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
56628         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
56629         no longer requires <ucontext.h> to exist.  Optimize setrlimit
56630         check.
56631         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
56632         <sys/resource.h>.
56633
56634         Move c-stack test into testsuite.
56635         * modules/c-stack-tests: New file.
56636         * lib/c-stack.c [DEBUG]: Move test program...
56637         * tests/test-c-stack.c: ...into this new file.  Skip rather than
56638         fail test if sigaltstack is lacking.
56639         * tests/test-c-stack.sh: New driver file.
56640
56641 2008-06-16  Eric Blake  <ebb9@byu.net>
56642
56643         Use raise module consistently.
56644         * modules/fatal-signal (Depends-on): Add raise.
56645         * modules/sigprocmask (Depends-on): Likewise.
56646         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
56647         * lib/sigprocmask.c (sigprocmask): Likewise.
56648         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56649         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
56650
56651         Fix compliance bug in sigpending.
56652         * lib/sigprocmask.c (sigpending): Return pending array via
56653         parameter, not return value.
56654
56655 2008-06-14  Eric Blake  <ebb9@byu.net>
56656
56657         Improve obstack-printf test code.
56658         * tests/test-obstack-printf.c (test_function): Fix comment, and
56659         simplify usage of obstack_* in macros.  Add a test for coverage.
56660         Reported by Bruno Haible.
56661
56662 2008-06-14  Bruno Haible  <bruno@clisp.org>
56663
56664         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
56665         array size as a constant, not as a const variable.
56666         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
56667         AC_USE_SYSTEM_EXTENSIONS.
56668         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
56669         Test whether the obstack_printf function actually exists.
56670         * modules/obstack-printf (Depends-on): Add extensions.
56671         (Include): Remove obstack.h.
56672         * modules/obstack-printf-posix (Depends-on): Add extensions.
56673         (Include): Remove obstack.h.
56674
56675 2008-06-13  Eric Blake  <ebb9@byu.net>
56676
56677         Add obstack-printf and obstack-printf-posix modules.
56678         * modules/obstack-printf: New file.
56679         * modules/obstack-printf-posix: Likewise.
56680         * MODULES.html.sh (Misc): Mention them.
56681         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
56682         Likewise.
56683         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
56684         Likewise.
56685         * modules/stdio (Makefile.am): Accomodate new modules.
56686         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56687         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
56688         Declare.
56689         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
56690         functions.
56691         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
56692         (gl_REPLACE_OBSTACK_PRINTF): New macros
56693         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
56694         * tests/test-obstack-printf.c: New file.
56695         * modules/obstack-printf-tests: Likewise.
56696         * modules/obstack-printf-posix-tests: Likewise.
56697
56698 2008-06-11  Bruno Haible  <bruno@clisp.org>
56699
56700         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
56701         * lib/open.c: Include errno.h.
56702         (open): Fail when attempting to write to a file that has a trailing
56703         slash.
56704         * tests/test-open.c (main): Test against trailing slash bug.
56705         * doc/posix-functions/open.texi: Mention the trailing slash bug.
56706
56707 2008-06-10  Bruno Haible  <bruno@clisp.org>
56708
56709         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
56710         for $? to work inside the trap command, with various /bin/sh-s.
56711         * tests/test-vc-list-files-cvs.sh: Likewise.
56712
56713 2008-06-10  Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/acl-internal.h: Don't include gettext.h here.
56716         * lib/set-mode-acl.c: Include gettext.h here.
56717         * lib/copy-acl.c: Likewise.
56718
56719 2008-06-10  Bruno Haible  <bruno@clisp.org>
56720
56721         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
56722         * lib/wait-process.c (wait_subprocess): Likewise.
56723         * lib/execute.h (execute): Add termsigp argument.
56724         * lib/execute.c (execute): Likewise.
56725         * lib/csharpcomp.c (compile_csharp_using_pnet,
56726         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
56727         * lib/csharpexec.c (execute_csharp_using_pnet,
56728         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
56729         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
56730         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
56731         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
56732         is_jikes_present): Update.
56733         * lib/javaexec.c (execute_java_class): Update.
56734         * lib/javaversion.c (execute_and_read_line): Update.
56735         * NEWS: Document the changes.
56736         Reported by Eric Blake.
56737
56738 2008-06-10  Eric Blake  <ebb9@byu.net>
56739
56740         Add missing include.
56741         * tests/test-strstr.c (includes): Add <signal.h>.
56742         * tests/test-strcasestr.c (includes): Likewise.
56743         * tests/test-memmem.c (includes): Likewise.
56744
56745 2008-06-10  Bruno Haible  <bruno@clisp.org>
56746
56747         * lib/wait-process.c (wait_subprocess): Add an assertion.
56748
56749 2008-06-10  Bruno Haible  <bruno@clisp.org>
56750
56751         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
56752
56753 2008-06-10  Bruno Haible  <bruno@clisp.org>
56754
56755         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
56756         using alarm().
56757         * tests/test-strcasestr.c (main): Likewise.
56758         * tests/test-strstr.c (main): Likewise.
56759
56760 2008-06-09  Bruno Haible  <bruno@clisp.org>
56761
56762         Work around the Solaris 10 ACE ACLs ABI change.
56763         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
56764         declare if ACL_NO_TRIVIAL is present.
56765         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
56766         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
56767         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
56768         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
56769         define if ACL_NO_TRIVIAL is present.
56770         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
56771         and use the current ABI.
56772         (file_has_acl): Use same #if condition as elsewhere.
56773         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
56774         in use, and use the current ABI.
56775         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
56776         Reported by Jim Meyering.
56777
56778 2008-06-09  Eric Blake  <ebb9@byu.net>
56779
56780         Work around environments that (stupidly) ignore SIGALRM.
56781         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
56782         before using alarm().
56783         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56784         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56785         Reported by Ian Beckwith <ianb@erislabs.net>.
56786
56787         Produce autobuild blurb earlier in log.
56788         * modules/autobuild (configure.ac-early): Move AB_INIT here.
56789
56790 2008-06-09  Jim Meyering  <meyering@redhat.com>
56791         and Ondřej Vašík  <ovasik@redhat.com>
56792
56793         utimens.c: correct kernel bug work-around
56794         Ondřej Vašík found that the invalid return value of 280 indicates
56795         failure, not success, and the kernel bug we're trying to work
56796         around affects not just the utimensat call, but also the fallback
56797         futimens call.
56798         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
56799         not success.
56800         [HAVE_FUTIMENS]: Use the same work-around, here.
56801
56802 2008-06-09  Jim Meyering  <meyering@redhat.com>
56803
56804         add more guards around definition of ACE_-related code
56805         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
56806         ALLOW and ACE_OWNER are also defined.
56807
56808 2008-06-08  Bruno Haible  <bruno@clisp.org>
56809
56810         * lib/acl-internal.h: Add me as co-author.
56811         * lib/file-has-acl.c: Likewise.
56812         * lib/set-mode-acl.c: Likewise.
56813         * lib/copy-acl.c: Likewise.
56814
56815 2008-06-08  Bruno Haible  <bruno@clisp.org>
56816
56817         Add support for AIX ACLs.
56818         * lib/acl-internal.h (acl_nontrivial): New declaration.
56819         * lib/file-has-acl.c (acl_nontrivial): New function.
56820         (file_has_acl): Add implementation using AIX 4 ACL API.
56821         * lib/set-mode-acl.c (qset_acl): Likewise.
56822         * lib/copy-acl.c (qcopy_acl): Likewise.
56823
56824 2008-06-08  Bruno Haible  <bruno@clisp.org>
56825
56826         Add support for HP-UX ACLs.
56827         * lib/acl-internal.h (acl_nontrivial): New declaration.
56828         * lib/file-has-acl.c (acl_nontrivial): New function.
56829         (file_has_acl): Add implementation using HP-UX 11 ACL API.
56830         * lib/set-mode-acl.c (qset_acl): Likewise.
56831         * lib/copy-acl.c (qcopy_acl): Likewise.
56832
56833 2008-06-08  Bruno Haible  <bruno@clisp.org>
56834
56835         Add support for Cygwin ACLs.
56836         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
56837         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
56838         the chmod_or_fchmod call.
56839         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
56840
56841 2008-06-08  Bruno Haible  <bruno@clisp.org>
56842
56843         Fix bug with setuid modes in Solaris 10+ code.
56844         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
56845         succeeded, when the mode contains some special bits.
56846
56847 2008-06-08  Bruno Haible  <bruno@clisp.org>
56848
56849         Add support for Solaris 7..10 ACLs.
56850         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
56851         declarations.
56852         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
56853         functions.
56854         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
56855         * lib/set-mode-acl.c (qset_acl): Likewise.
56856         * lib/copy-acl.c (qcopy_acl): Likewise.
56857
56858 2008-06-08  Bruno Haible  <bruno@clisp.org>
56859
56860         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
56861         declaration.
56862         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
56863         (acl_access_nontrivial): Remove MacOS X case.
56864         (file_has_acl): Use acl_extended_nontrivial.
56865         * lib/copy-acl.c (qcopy_acl): Likewise.
56866
56867 2008-06-08  Bruno Haible  <bruno@clisp.org>
56868
56869         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
56870
56871 2008-06-08  Jim Meyering  <meyering@redhat.com>
56872
56873         * modules/acl (Maintainer): Add Bruno Haible.
56874
56875 2008-06-07  Bruno Haible  <bruno@clisp.org>
56876
56877         Improve support for Tru64 ACLs.
56878         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
56879         ACL on OSF/1.
56880
56881 2008-06-07  Bruno Haible  <bruno@clisp.org>
56882
56883         Add support for MacOS X ACLs.
56884         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
56885         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
56886         * lib/set-mode-acl.c (qset_acl): Likewise.
56887         * lib/copy-acl.c (qcopy_acl): Likewise.
56888
56889 2008-06-07  Bruno Haible  <bruno@clisp.org>
56890
56891         Fix memory leak introduced on 2008-05-22.
56892         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
56893         use.
56894
56895 2008-06-07  Bruno Haible  <bruno@clisp.org>
56896
56897         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
56898         to construct an empty ACL.
56899
56900 2008-06-07  Bruno Haible  <bruno@clisp.org>
56901
56902         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
56903         precisely.
56904         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
56905
56906 2008-06-07  Bruno Haible  <bruno@clisp.org>
56907
56908         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
56909         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
56910
56911 2008-06-07  Bruno Haible  <bruno@clisp.org>
56912
56913         * doc/posix-functions/_setjmp.texi: Explain the use of this function
56914         regardless of POSIX.
56915         * doc/posix-functions/_longjmp.texi: Likewise.
56916         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
56917         SystemV platform in this case.
56918
56919 2008-06-06  Eric Blake  <ebb9@byu.net>
56920
56921         Document abort() bugs.
56922         * doc/posix-functions/abort.texi (abort): Mention anomalies.
56923
56924         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
56925         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
56926         sigsetjmp.
56927         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
56928         siglongjmp, but only as a macro.
56929         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
56930         is obsolete.
56931         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
56932
56933         Tweak documentation to cover cygwin argz bugs.
56934         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
56935         argz bug fix; no code change needed since no cygwin releases
56936         occurred between the last fix and the bug being tested.
56937         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
56938         module and recently fixed cygwin bugs.
56939         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
56940         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
56941         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
56942         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
56943         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
56944         Likewise.
56945         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
56946         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
56947         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
56948         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
56949         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
56950         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
56951         Likewise.
56952
56953         Avoid gcc warning on cygwin.
56954         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
56955         !ACL_NO_TRIVIAL]: Avoid unused variable.
56956
56957 2008-06-05  Eric Blake  <ebb9@byu.net>
56958
56959         Be tolerant of UNKNOWN version in gnulib-tool test dir.
56960         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
56961         git-version-gen fails to come up with a version.
56962         Reported by Simon Josefsson.
56963
56964 2008-06-05  Jim Meyering  <meyering@redhat.com>
56965             Paul Eggert  <eggert@cs.ucla.edu>
56966
56967         utimens.c: work around a probable Linux kernel bug
56968         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
56969         appears to be a kernel bug that causes utimensat to return 280
56970         instead of 0, indicating success.
56971
56972 2008-06-04  Bruno Haible  <bruno@clisp.org>
56973
56974         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
56975         2008-06-01 commit.
56976
56977 2008-06-04  Bruno Haible  <bruno@clisp.org>
56978
56979         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
56980         * lib/file-has-acl.c (acl_access_nontrivial): New function.
56981         (file_has_acl): Use it. Save errno afterwards.
56982         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
56983
56984 2008-06-03  Bruno Haible  <bruno@clisp.org>
56985
56986         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
56987         draft code. Simplify #ifs.
56988         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
56989         Put Solaris code after POSIX-draft code. Fix comments regarding
56990         Solaris 10, HP-UX. Mention Cygwin.
56991         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
56992
56993 2008-06-03  Eric Blake  <ebb9@byu.net>
56994
56995         Provide fallback for older kernels.
56996         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
56997         Provide runtime fallback if kernel lacks support.
56998         Reported by Mike Frysinger.
56999
57000 2008-06-02  Bruno Haible  <bruno@clisp.org>
57001
57002         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57003         it exists.
57004
57005 2008-06-02  Bruno Haible  <bruno@clisp.org>
57006
57007         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57008         * lib/copy-acl.c (qcopy_acl): Update comment.
57009
57010 2008-06-02  Bruno Haible  <bruno@clisp.org>
57011
57012         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57013         like ACL APIs.
57014
57015 2008-06-02  Bruno Haible  <bruno@clisp.org>
57016
57017         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57018         * tests/test-set-mode-acl.sh: Likewise.
57019         * tests/test-copy-acl.sh: Likewise.
57020         * tests/test-copy-file.sh: Likewise.
57021
57022 2008-06-02  Bruno Haible  <bruno@clisp.org>
57023
57024         * tests/test-file-has-acl.sh: Remove unused code.
57025
57026 2008-06-01  Bruno Haible  <bruno@clisp.org>
57027
57028         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57029         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57030         messages.
57031         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57032
57033 2008-06-01  Bruno Haible  <bruno@clisp.org>
57034
57035         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57036         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57037         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57038         APIs.
57039         * modules/acl-tests (configure.ac): Remove tests now contained in
57040         m4/acl.m4.
57041
57042 2008-06-02  Jim Meyering  <meyering@redhat.com>
57043
57044         announce-gen: use a better key-server host name
57045         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57046         it may be more consistently reliable.  Suggested by Werner Koch
57047         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57048
57049 2008-06-01  Bruno Haible  <bruno@clisp.org>
57050
57051         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57052         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57053
57054 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57055
57056         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57057
57058 2008-06-01  Bruno Haible  <bruno@clisp.org>
57059
57060         New ACL tests.
57061         * tests/test-file-has-acl.sh: New file.
57062         * tests/test-file-has-acl.c: New file.
57063         * tests/test-set-mode-acl.sh: New file.
57064         * tests/test-set-mode-acl.c: New file.
57065         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57066         * tests/test-copy-acl.c: New file.
57067         * modules/acl-tests: New file, based on modules/copy-file-tests.
57068         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57069         (Depends-on): Add acl-tests.
57070         (configure.ac): Remove checks.
57071         (Makefile.am): Don't create test-sameacls program here any more.
57072
57073 2008-06-01  Bruno Haible  <bruno@clisp.org>
57074
57075         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57076         * tests/test-sameacls.c: Include progname.h.
57077         (main): Invoke set_program_name. Portability fixes for MacOS X,
57078         Solaris, HP-UX.
57079
57080 2008-06-01  Bruno Haible  <bruno@clisp.org>
57081
57082         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57083         function.
57084         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57085
57086 2008-06-01  Bruno Haible  <bruno@clisp.org>
57087
57088         * modules/rpmatch (Depends-on): Add strdup.
57089
57090 2008-06-01  Bruno Haible  <bruno@clisp.org>
57091
57092         * lib/pipe.c: Include unistd-safer.h.
57093         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57094         * modules/pipe (Depends-on): Add unistd-safer.
57095
57096 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57097
57098         * modules/autobuild (configure.ac): Call AB_INIT.
57099
57100 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57101
57102         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57103         Suggested by Bruno Haible <bruno@clisp.org>.
57104
57105 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57106
57107         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57108         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57109         <bruno@clisp.org>.
57110
57111 2008-05-29  Eric Blake  <ebb9@byu.net>
57112
57113         Prefer new POSIX 200x interfaces over futimesat.
57114         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57115         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57116         when available.
57117         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57118
57119 2008-05-28  Bruno Haible  <bruno@clisp.org>
57120
57121         * modules/stpcpy (License): Change to LGPLv2+.
57122         Requested by David Lutterkort <dlutter@redhat.com>.
57123
57124 2008-05-27  Bruno Haible  <bruno@clisp.org>
57125
57126         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57127         current mingw.
57128         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57129
57130 2008-05-27  Bruno Haible  <bruno@clisp.org>
57131
57132         * modules/iconv_open (Link): New section, from module 'iconv'.
57133         * modules/striconv (Link): Likewise.
57134         * modules/striconveh (Link): Likewise.
57135         * modules/xstriconv (Link): Likewise.
57136         * modules/unicodeio (Link): Likewise.
57137         * modules/propername (Link): Likewise.
57138         Reported by Jim Meyering.
57139
57140 2008-05-26  Jim Meyering  <meyering@redhat.com>
57141
57142         sha256: do not artificially restrict buffer length to be < 2^32
57143         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57144         uint32_t to size_t.
57145         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57146         to match.
57147
57148         avoid unaligned access errors, e.g., on sparc
57149         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57150         direct access through a possibly-unaligned uint64* pointer.
57151         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57152         direct access through a possibly-unaligned uint32* pointer.
57153         Prompted by this patch from Tom "spot" Callaway:
57154         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57155
57156         sha512.c: fix typo in comment
57157         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57158
57159 2008-05-25  Bruno Haible  <bruno@clisp.org>
57160
57161         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57162         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57163         (Makefile.am): Update lib_SOURCES.
57164
57165 2008-05-25  Bruno Haible  <bruno@clisp.org>
57166
57167         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57168
57169 2008-05-25  Jim Meyering  <meyering@redhat.com>
57170
57171         useless-if-before-free: freed expr may have white-space differences
57172         * build-aux/useless-if-before-free: Recognize cases in which the
57173         freed expression differs from the tested one in embedded white
57174         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57175         $1 was used, so we can't make any regexp shy.  Improved tests now
57176         detect this.
57177
57178         useless-if-before-free: accept white space in the expression.
57179         * build-aux/useless-if-before-free: For now, any white space
57180         in the expression must be identical in the free argument.
57181
57182         useless-if-before-free: efficiency tweak
57183         * build-aux/useless-if-before-free: Make the expression-matching
57184         regexp "shy".
57185         Make the *outer* regexp shy, not the expr-matching one.
57186
57187         update code-in-comment to accept cast of free arg
57188         * build-aux/useless-if-before-free: Update regexp.
57189
57190 2008-05-25  Bruno Haible  <bruno@clisp.org>
57191
57192         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57193         * modules/copy-file-tests (Files, Makefile.am): Update.
57194         * tests/test-copy-file.c (func_test_copy): Update.
57195
57196 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57197
57198         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57199
57200 2008-05-23  Bruno Haible  <bruno@clisp.org>
57201
57202         Improve support for ACLs on OSF/1.
57203         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57204         Remove fallback for unknown flavors of ACLs.
57205
57206 2008-05-22  Bruno Haible  <bruno@clisp.org>
57207
57208         Add support for ACLs on OSF/1.
57209         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57210         replacements.
57211         (acl_free_text): New macro fallback.
57212         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57213         acl_free.
57214         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57215         acl_free_text function. Require AC_C_INLINE.
57216
57217 2008-05-22  Bruno Haible  <bruno@clisp.org>
57218
57219         Make copy_acl work on MacOS X 10.5.
57220         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57221         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57222         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57223         If MODE_INSIDE_ACL, don't assume that every system has the same text
57224         representation for ACLs as FreeBSD.
57225         * lib/copy-acl.c (copy_acl): Add support for platforms with
57226         !MODE_INSIDE_ACL.
57227         * lib/file-has-acl.c (file_has_acl): Likewise.
57228         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57229         FreeBSD, MacOS X, or IRIX, respectively.
57230
57231 2008-05-22  Bruno Haible  <bruno@clisp.org>
57232
57233         * lib/acl.h: Don't include <sys/acl.h>.
57234         (GETACLCNT): Move fallback to lib/acl-internal.h.
57235         * lib/acl-internal.h: Include <sys/acl.h> here.
57236         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57237
57238 2008-05-22  Bruno Haible  <bruno@clisp.org>
57239
57240         Split off copy_acl function to separate file.
57241         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57242         * lib/acl.c (copy_acl): Moved function to separate file.
57243         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57244         * modules/acl (Files): Add lib/copy-acl.c.
57245         (Makefiles.am): Augment lib_SOURCES.
57246
57247 2008-05-22  Bruno Haible  <bruno@clisp.org>
57248
57249         * modules/copy-file-tests: New file.
57250         * tests/test-copy-file.sh: New file.
57251         * tests/test-copy-file.c: New file.
57252         * tests/test-copy-file-sameacls.c: New file.
57253
57254 2008-05-22  Eric Blake  <ebb9@byu.net>
57255
57256         Avoid gcc warning.
57257         * tests/test-memcmp.c (main): Pass NULL indirectly.
57258
57259 2008-05-21  Bruno Haible  <bruno@clisp.org>
57260
57261         Add reference doc about ACLs.
57262         * doc/acl-resources.txt: New file.
57263         * doc/acl-cygwin.txt: New file.
57264
57265 2008-05-21  Bruno Haible  <bruno@clisp.org>
57266
57267         Avoid one more warning from gcc.
57268         * lib/vasnprintf.c (IF_LINT): Update comments.
57269         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57270
57271 2008-05-21  Jim Meyering  <meyering@redhat.com>
57272
57273         avoid a warning from gcc
57274         * lib/vasnprintf.c (IF_LINT): Define.
57275         (scale10_round_decimal_long_double):
57276         Use it to avoid a "may be used uninitialized" warning.
57277         (scale10_round_decimal_double): Likewise.
57278
57279 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57280
57281         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57282         declared.
57283
57284 2008-05-20  Bruno Haible  <bruno@clisp.org>
57285
57286         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57287         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57288
57289 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57290
57291         * modules/memcmp-tests: New file.
57292         * tests/test-memcmp.c: New file.
57293
57294 2008-05-19  Bruno Haible  <bruno@clisp.org>
57295
57296         * modules/propername (Notice, configure.ac): Put quoted "..." into
57297         --keyword option.
57298         * lib/propername.h: Update comments accordingly.
57299         Reported by Eric Blake.
57300
57301 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57302
57303         * modules/getpass-gnu (Depends-on): Add fseeko.
57304
57305 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57306
57307         * modules/base64-tests: New file.
57308
57309 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57310
57311         * lib/base64.c (base64_decode_ctx): If a decode context structure
57312         was passed in use it to ignore newlines.  If a context structure
57313         was _not_ passed in, continue to treat newlines as garbage (this
57314         is the historical behavior).  Formerly base64_decode.
57315         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57316         takes a decode context structure.
57317         * lib/base64.h (base64_decode): Macro for four-argument calls.
57318         (base64_decode_alloc): Likewise.
57319         * lib/base64.c (base64_decode_ctx): If a decode context structure
57320         was passed in use it to ignore newlines.  If a context structure
57321         was _not_ passed in, continue to treat newlines as garbage (this
57322         is the historical behavior).  Formerly base64_decode.
57323         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57324         takes a decode context structure.
57325         * lib/base64.h (base64_decode): Macro for four-argument calls.
57326         (base64_decode_alloc): Likewise.
57327
57328 2008-05-19  Jim Meyering  <meyering@redhat.com>
57329
57330         avoid a warning from gcc
57331         * lib/trim.c (IF_LINT): Define.
57332         (trim2): Use it to avoid a "may be used uninitialized" warning.
57333
57334         Fix doc typo.
57335         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57336
57337 2008-05-19  Bruno Haible  <bruno@clisp.org>
57338
57339         * doc/glibc-functions/getpass.texi: Document limits of other
57340         implementations.
57341
57342 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57343             Bruno Haible <bruno@clisp.org>
57344
57345         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57346
57347 2008-05-18  Bruno Haible  <bruno@clisp.org>
57348
57349         * modules/propername: New file, from GNU gettext.
57350         * lib/propername.h: New file, from GNU gettext.
57351         * lib/propername.c: New file, from GNU gettext.
57352         * MODULES.html.sh (Internationalization functions): Add propername.
57353
57354 2008-05-16  Jim Meyering  <meyering@redhat.com>
57355             Bruno Haible  <bruno@clisp.org>
57356
57357         Avoid some warnings from "gcc -Wshadow".
57358         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57359
57360 2008-05-15  Eric Blake  <ebb9@byu.net>
57361
57362         Extend previous patch to cygwin 1.7.0.
57363         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57364         fast implementation in cygwin >= 1.7.0.
57365         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57366         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57367
57368 2008-05-15  Bruno Haible  <bruno@clisp.org>
57369
57370         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57371         implementation in glibc >= 2.9.
57372         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57373         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57374
57375 2008-05-15  Bruno Haible  <bruno@clisp.org>
57376
57377         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57378         (Unicode string functions): Add unilbrk/*.
57379         Reported by Karl Berry.
57380
57381 2008-05-15  Eric Blake  <ebb9@byu.net>
57382
57383         Fix violation of <stdbool.h> replacement in regex.
57384         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57385         * lib/regexec.c (re_search_internal): Likewise.
57386         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57387
57388 2008-05-15  Jim Meyering  <meyering@redhat.com>
57389
57390         avoid distracting test output when git or cvs is not found
57391         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57392         * tests/test-vc-list-files-git.sh: Likewise.
57393
57394 2008-05-15  Eric Blake  <ebb9@byu.net>
57395
57396         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57397         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57398         glibc version.
57399         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57400         * doc/posix-functions/strstr.texi (strstr): Likewise.
57401         * lib/str-two-way.h (MAX): Sychronize with glibc.
57402
57403 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57404
57405         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57406         opr.ctx_type.
57407         (calc_first): Initialize constraint field.
57408         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57409         Fix grammar.
57410         (duplicate_node): Merge constraint field for all node types.
57411         (calc_eclosure_iter): Look at constraint field for all node types.
57412         * lib/regex_internal.c (create_cd_newstate): Don't look at
57413         opr.ctx_type.
57414
57415 2008-05-14  Bruno Haible  <bruno@clisp.org>
57416
57417         Help GCC to do better code generation.
57418         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57419         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57420         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57421         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57422         Declare with attribute 'malloc' if supported.
57423
57424 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57425
57426         use "echo STR|wc -c" rather than unportable "expr length STR"
57427         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57428         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57429
57430 2008-05-14  Jim Meyering  <meyering@redhat.com>
57431
57432         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57433         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57434         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57435         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57436         via Collin Lasse.
57437
57438 2008-05-14  Eric Blake  <ebb9@byu.net>
57439
57440         Avoid quadratic growth in gl_LIBSOURCES.
57441         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57442         Suggested by Bruno Haible.
57443
57444         Test xmemdup0.
57445         * modules/xmemdup0-tests: New file.
57446         * tests/test-xmemdup0.c: Likewise.
57447
57448 2008-05-13  Eric Blake  <ebb9@byu.net>
57449
57450         Split xmemdup0 into its own module.
57451         * modules/xmemdup0: New file.
57452         * lib/xmemdup0.h: Likewise.
57453         * lib/xmemdup0.c: Likewise.
57454         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57455         * lib/xalloc.h (xmemdup0): Remove.
57456         * lib/xmalloc.c (xmemdup0): Likewise.
57457
57458 2008-05-13  Eric Blake  <ebb9@byu.net>
57459             Bruno Haible  <bruno@clisp.org>
57460
57461         Reduce number of forks required during autoconf.
57462         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57463         and gl_LIBSOURCES_DIR.
57464         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57465         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57466         m4_syscmd per file.
57467         <m4_foreach_w>: Move...
57468         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57469
57470 2008-05-13  Eric Blake  <ebb9@byu.net>
57471
57472         * gnulib-tool: Fix various comment typos.
57473
57474 2008-05-12  Bruno Haible  <bruno@clisp.org>
57475
57476         Tailor the linebreaking algorithm.
57477         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57478
57479 2008-05-12  Bruno Haible  <bruno@clisp.org>
57480
57481         Update to Unicode 5.0.0.
57482         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57483         LBP_JV, LBP_JT. Redistribute values.
57484         (unilbrk_table): Change size.
57485         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57486         Unicode TR#14 rev. 22.
57487         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57488         LBP_JV, LBP_JT. Redistribute values.
57489         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57490         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57491         Update.
57492         * lib/unilbrk/lbrkprop1.h: Regenerated.
57493         * lib/unilbrk/lbrkprop2.h: Regenerated.
57494         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57495         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57496         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57497         Likewise.
57498         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57499         Likewise.
57500         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57501         result.
57502         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57503         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57504         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57505         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57506         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57507         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57508
57509 2008-05-11  Bruno Haible  <bruno@clisp.org>
57510
57511         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57512
57513 2008-05-11  Bruno Haible  <bruno@clisp.org>
57514
57515         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57516         * modules/unilbrk/gen-lbrk: New file.
57517
57518 2008-05-11  Bruno Haible  <bruno@clisp.org>
57519
57520         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57521         * m4/sha512.m4 (gl_SHA512): Likewise.
57522
57523 2008-05-11  Jim Meyering  <meyering@redhat.com>
57524
57525         New modules: crypto/sha256, crypto/sha512 (from coreutils)
57526         * modules/crypto/sha256: New file.
57527         * modules/crypto/sha512: Likewise.
57528         * lib/sha256.c: Likewise.
57529         * lib/sha256.h: Likewise.
57530         * lib/sha512.c: Likewise.
57531         * lib/sha512.h: Likewise.
57532         * lib/u64.h: Likewise.
57533         * m4/sha256.m4: Likewise.
57534         * m4/sha512.m4: Likewise.
57535         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
57536
57537 2008-05-10  Bruno Haible  <bruno@clisp.org>
57538
57539         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
57540         (Input/Output <stdio.h>): Add xprintf.
57541         (Signal handling <signal.h>): Add strsignal.
57542         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
57543         (Core language properties): Add func.
57544         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
57545         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
57546         strings.
57547         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
57548         (Input/output): New section.
57549         (File system functions): Add openat-die, stat-macros.
57550         (Networking functions): Add sockets.
57551         (Unicode string functions): Add unictype/*.
57552         (Support for building libraries and executables): Add gperf.
57553         (Support for building documentation): Add agpl-3.0.
57554         (Misc): Add nocrash.
57555
57556 2008-05-10  Bruno Haible  <bruno@clisp.org>
57557
57558         * modules/unictype/gen-ctype: New file.
57559
57560 2008-05-10  Jim Meyering  <meyering@redhat.com>
57561
57562         Make chdir-safer.c more efficient on a system with no symlinks.
57563         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
57564         also if ELOOP is zero.  Suggested by Bruno Haible.
57565
57566         Make chdir-safer.c slightly safer.
57567         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
57568         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
57569
57570         Avoid compile failure on systems without ELOOP (like mingw).
57571         * lib/chdir-safer.c (ELOOP): Define if not already defined.
57572         Reported by Bruno Haible.
57573
57574 2008-05-10  Bruno Haible  <bruno@clisp.org>
57575
57576         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
57577         (is_utf8_encoding): Use a case-insensitive comparison.
57578         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
57579         streq.
57580
57581 2008-05-10  Bruno Haible  <bruno@clisp.org>
57582
57583         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
57584         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
57585         * lib/unilbrk/ulc-common.h (iconv_string_length,
57586         iconv_string_keeping_offsets): Remove declarations.
57587         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
57588         Don't include <iconv.h>, streq.h, xsize.h.
57589         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
57590         conversion.
57591         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
57592         <iconv.h>, streq.h, xsize.h.
57593         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
57594         conversion.
57595         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
57596         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
57597         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
57598         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
57599
57600 2008-05-10  Bruno Haible  <bruno@clisp.org>
57601
57602         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
57603         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
57604
57605         * modules/unilbrk/u32-width-linebreaks-tests: New file.
57606         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
57607
57608         * modules/unilbrk/u16-width-linebreaks-tests: New file.
57609         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
57610
57611         * modules/unilbrk/u8-width-linebreaks-tests: New file.
57612         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
57613
57614         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
57615         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
57616
57617         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
57618         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
57619
57620         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
57621         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
57622
57623         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
57624         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
57625
57626 2008-05-10  Bruno Haible  <bruno@clisp.org>
57627
57628         Split up 'linebreak' module.
57629         * lib/unilbrk.h: New file, based on lib/linebreak.h.
57630         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
57631         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
57632         modifications.
57633         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
57634         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
57635         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
57636         lib/linebreak.c.
57637         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
57638         lib/linebreak.c.
57639         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
57640         lib/linebreak.c.
57641         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
57642         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
57643         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
57644         lib/linebreak.c.
57645         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
57646         lib/linebreak.c.
57647         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
57648         lib/linebreak.c.
57649         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
57650         lib/linebreak.c.
57651         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
57652         lib/linebreak.c.
57653         * modules/unilbrk/base: New file.
57654         * modules/unilbrk/tables: New file.
57655         * modules/unilbrk/u8-possible-linebreaks: New file.
57656         * modules/unilbrk/u16-possible-linebreaks: New file.
57657         * modules/unilbrk/u32-possible-linebreaks: New file.
57658         * modules/unilbrk/ulc-common: New file.
57659         * modules/unilbrk/ulc-possible-linebreaks: New file.
57660         * modules/unilbrk/u8-width-linebreaks: New file.
57661         * modules/unilbrk/u16-width-linebreaks: New file.
57662         * modules/unilbrk/u32-width-linebreaks: New file.
57663         * modules/unilbrk/ulc-width-linebreaks: New file.
57664         * lib/linebreak.h: Remove file.
57665         * lib/linebreak.c: Remove file.
57666         * m4/linebreak.m4: Remove file.
57667         * modules/linebreak: Remove file.
57668         * NEWS: Mention the changes.
57669
57670 2008-05-09  Eric Blake  <ebb9@byu.net>
57671
57672         Add xmemdup0.
57673         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
57674         implementation.
57675         * lib/xmalloc.c (xmemdup0): New C implementation.
57676
57677 2008-05-08  Bruno Haible  <bruno@clisp.org>
57678
57679         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
57680
57681 2008-05-07  Eric Blake  <ebb9@byu.net>
57682
57683         Support cross-compilation of <wctype.h>.
57684         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
57685         AC_CACHE_CHECK.
57686
57687 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
57688
57689         * build-aux/vc-list-files: Add support for bzr.
57690
57691 2008-05-03  Jim Meyering  <meyering@redhat.com>
57692
57693         avoid failed assertion with tight malloc
57694         * tests/test-getndelim2.c: Correct an off-by-one assertion.
57695
57696 2008-05-03  Simon Josefsson  <simon@josefsson.org>
57697
57698         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
57699         are needed from arpa/inet.h.
57700         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
57701         Reported by Bruno Haible.
57702
57703 2008-05-02  Jim Meyering  <meyering@redhat.com>
57704
57705         avoid compilation error on FreeBSD 6
57706         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
57707
57708 2008-05-01  Jim Meyering  <meyering@redhat.com>
57709
57710         useless-if-before-free: correct --help's exit status description
57711         * build-aux/useless-if-before-free (usage): Like grep, exit 0
57712         for one or more matches, etc.  Reported by Bruno Haible.
57713
57714         vc-list-files: make the stand-alone gnulib test work
57715         * modules/vc-list-files-tests (configure.ac):
57716         Define and AC_SUBST abs_aux_dir.
57717         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
57718         $(abs_top_srcdir) to each script and having each of them
57719         duplicate the work of setting PATH, set PATH here, using
57720         the new variable, abs_aux_dir instead.
57721         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
57722         * tests/test-vc-list-files-git.sh: Likewise.
57723         Reported by Bruno Haible.
57724
57725 2008-05-01  Bruno Haible  <bruno@clisp.org>
57726
57727         * lib/getndelim2.c (getndelim2): Fix newsize computation during
57728         reallocation. Rename 'done' to 'found_delimiter'.
57729
57730 2008-05-01  Jim Meyering  <meyering@redhat.com>
57731
57732         vc-list-files: accommodate /bin/sh like the one from Solaris 10
57733         * build-aux/vc-list-files: Use `...`, not $(...).
57734
57735 2008-04-30  Jim Meyering  <meyering@redhat.com>
57736
57737         add tests for vc-list-files
57738         * modules/vc-list-files-tests: New module.
57739         * tests/test-vc-list-files-cvs.sh: New file.
57740         * tests/test-vc-list-files-git.sh: New file.
57741
57742         avoid a warning from gcc
57743         * lib/getndelim2.c (IF_LINT): Define.
57744         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
57745
57746         vc-list-files: work properly with build-aux/cvsu, too
57747         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
57748         to all cvs-based clauses.
57749
57750         vc-list-files: work properly in the CVS+awk case, too
57751         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
57752
57753         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
57754         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
57755         take more than one file argument, so .  Add quotes, just in case $dir
57756         ever contains a shell meta-character.  Prompted by Soren Hansen in
57757         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
57758
57759 2008-04-29  Eric Blake  <ebb9@byu.net>
57760
57761         Optimize getndelim2 to use block operations when possible.
57762         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
57763         freadseek, and memchr2.
57764         * lib/getndelim2.c (getndelim2): Use them for block reads.
57765
57766 2008-04-29  Bruno Haible  <bruno@clisp.org>
57767
57768         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
57769         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57770         * modules/inet_ntop (Depends-on): Add extensions.
57771         * modules/inet_pton (Depends-on): Likewise.
57772         Reported by Simon Josefsson.
57773
57774 2008-04-29  Jim Meyering  <meyering@redhat.com>
57775
57776         When the is more than one match in a block, match all of them.
57777         * build-aux/useless-if-before-free: Iterate through each block
57778         until there are no more matches.
57779
57780         Fix broken useless-if-before-free script.
57781         * build-aux/useless-if-before-free: Fix typo: missing "?" after
57782         the expression to match cast of argument to free-like function.
57783
57784 2008-04-29  Eric Blake  <ebb9@byu.net>
57785
57786         Use new header.
57787         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
57788
57789 2008-04-29  Jim Meyering  <meyering@redhat.com>
57790
57791         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
57792         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
57793         by gnulib to exist and to declare e.g., inet_ntop.
57794         Don't include "inet_ntop.h", now removed.
57795
57796         * m4/arpa_inet_h.m4: Remove trailing blanks.
57797
57798 2008-04-29  Eric Blake  <ebb9@byu.net>
57799
57800         Silence valgrind on safe reads beyond potential array bounds.
57801         * lib/rawmemchr.valgrind: New file.
57802         * lib/strchrnul.valgrind: Likewise.
57803         * modules/rawmemchr (Files): Distribute new file.
57804         * modules/strchrnul (Files): Likewise.
57805         Suggested by Bruno Haible.
57806
57807 2008-04-29  Bruno Haible  <bruno@clisp.org>
57808
57809         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
57810         (inet_ntop, inet_pton): Change portability warning's wording.
57811         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
57812         Invoke gl_CHECK_NEXT_HEADERS.
57813         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
57814         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
57815         set ARPA_INET_H.
57816         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57817         * modules/arpa_inet (Description): No longer only for systems that
57818         lack it.
57819         (Depends-on): Add include_next.
57820         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
57821         HAVE_ARPA_INET_H.
57822
57823 2008-04-29  Jim Meyering  <meyering@redhat.com>
57824
57825         * modules/mkdir (License): Re-license as LGPLv2+.
57826
57827 2008-04-29  Bruno Haible  <bruno@clisp.org>
57828
57829         * modules/rawmemchr (Maintainer): Set to Eric.
57830         * modules/strchrnul (Maintainer): Likewise.
57831
57832 2008-04-29  Simon Josefsson  <simon@josefsson.org>
57833
57834         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
57835         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
57836
57837         * modules/arpa_inet (arpa/inet.h): Use them.
57838
57839 2008-04-28  Eric Blake  <ebb9@byu.net>
57840
57841         Test getndelim2.
57842         * modules/getndelim2-tests: New file.
57843         * tests/test-getndelim2.c: Likewise.
57844         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
57845         stream.
57846         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
57847
57848         * MODULES.html.sh: Document new module.
57849
57850 2008-04-20  Bruno Haible  <bruno@clisp.org>
57851
57852         * lib/c-stack.c (die): Use raise.
57853         * modules/c-stack (Depends-on): Add raise.
57854
57855 2008-04-28  Bruno Haible  <bruno@clisp.org>
57856
57857         Expect rpmatch to be declared.
57858         * lib/yesno.c (rpmatch): Remove declaration.
57859
57860         Declare rpmatch.
57861         * lib/stdlib.in.h (rpmatch): New declaration.
57862         * lib/rpmatch.c: Include <stdlib.h> first.
57863         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
57864         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
57865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
57866         HAVE_RPMATCH.
57867         * modules/rpmatch (Depends-on): Add stdlib, extensions.
57868         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57869         (Include): Set to <stdlib.h>.
57870         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
57871         HAVE_RPMATCH.
57872         * NEWS: Document the change.
57873
57874 2008-04-28  Bruno Haible  <bruno@clisp.org>
57875
57876         Change rpmatch to use nl_langinfo when appropriate.
57877         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
57878         (N_): New macro.
57879         (localized_pattern): New function/macro.
57880         (try): Remove match, nomatch arguments. Copy the pattern into safe
57881         memory before caching it.
57882         (rpmatch): Use localized_pattern. Add translator comments.
57883         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
57884         Suggested by Eric Blake.
57885         * modules/rpmatch (Depends-on): Add stdbool.
57886
57887 2008-04-28  Eric Blake  <ebb9@byu.net>
57888
57889         Add rawmemchr module, matching glibc.
57890         * modules/string (Makefile.am): New indicator.
57891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
57892         * lib/string.in.h (rawmemchr): Declare when appropriate.
57893         * modules/rawmemchr: New file.
57894         * m4/rawmemchr.m4: Likewise.
57895         * lib/rawmemchr.c: Likewise.
57896         * modules/rawmemchr-tests: Likewise.
57897         * tests/test-rawmemchr.c: Likewise.
57898         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
57899         module.
57900         * modules/strchrnul (Depends-on): Add rawmemchr.
57901         * lib/strchrnul.c (strchrnul): Optimize a corner case.
57902
57903         Whitespace cleanup.
57904         * tests/test-strchrnul.c: Reindent.
57905         * lib/strchrnul.c: Likewise.
57906
57907         Optimize and test strchrnul.
57908         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
57909         * modules/strchrnul-tests: New file.
57910         * tests/test-strchrnul.c: Likewise.
57911
57912         Remove intprops dependency.
57913         * modules/memchr (Depends-on): Remove intprops.
57914         * modules/memrchr (Depends-on): Likewise.
57915         * modules/memchr2 (Depends-on): Likewise.
57916         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
57917         * lib/memrchr.c (__memrchr): Likewise.
57918         * lib/memrchr2.c (memchr2): Likewise.
57919         Reported by Simon Josefsson.
57920
57921 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57922
57923         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
57924         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57925
57926 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57927
57928         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
57929
57930         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
57931
57932         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
57933
57934         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
57935         declarations.
57936         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
57937
57938         * m4/inet_pton.m4: Don't check for header files.
57939
57940         * m4/inet_ntop.m4: Don't check for header files.
57941
57942 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57943
57944         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
57945         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
57946         trigger for cygwin).
57947         Reported by Bruno Haible  <bruno@clisp.org>.
57948
57949 2008-04-28  Bruno Haible  <bruno@clisp.org>
57950
57951         * doc/posix-functions/strdup.texi: Mention mingw problem.
57952
57953 2008-04-27  Bruno Haible  <bruno@clisp.org>
57954
57955         * modules/stat-time-tests (Depends-on): Add sleep.
57956         * tests/test-stat-time.c (force_unlink): New function.
57957         (cleanup): Use it.
57958         (test_mtime): Remove the ctime related tests.
57959         (test_ctime): New function, containing the ctime related tests.
57960         (main): Call test_ctime, except on native Windows platforms.
57961
57962 2008-04-27  Bruno Haible  <bruno@clisp.org>
57963
57964         * lib/rpmatch.c (rpmatch): Add some comments.
57965         Reported by James Youngman <jay@gnu.org>.
57966
57967 2008-04-27  Bruno Haible  <bruno@clisp.org>
57968
57969         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
57970         quiet NaNs.
57971
57972 2008-04-27  Bruno Haible  <bruno@clisp.org>
57973
57974         Make test-yesno.sh work on mingw.
57975         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
57976         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
57977         (main): Set stdin to binary mode.
57978         * modules/yesno-tests (Depends-on): Add binary-io.
57979
57980 2008-04-27  Bruno Haible  <bruno@clisp.org>
57981
57982         Fix 'isfinite' on x86, x86_64, ia64 platforms.
57983         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
57984         argument that lie outside the IEEE 854 domain.
57985         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
57986         (gl_ISFINITE): Use it.
57987         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
57988
57989 2008-04-27  Bruno Haible  <bruno@clisp.org>
57990
57991         Allow local renaming in config.h.
57992         * lib/memrchr.c (memrchr): Don't undefine outside libc.
57993
57994 2008-04-27  Bruno Haible  <bruno@clisp.org>
57995
57996         * lib/memchr.c (__memchr): Change type of 'i'.
57997         * lib/memchr2.c (memchr2): Likewise.
57998
57999 2008-04-26  Eric Blake  <ebb9@byu.net>
58000         and Bruno Haible  <bruno@clisp.org>
58001
58002         Optimize and test memrchr.
58003         * modules/memrchr (Depends-on): Add intprops.
58004         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58005         * modules/memrchr-tests: New file.
58006         * tests/test-memrchr.c: New file.
58007
58008 2008-04-26  Bruno Haible  <bruno@clisp.org>
58009
58010         Add tentative support for DragonFly BSD.
58011         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58012         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58013         fp.
58014         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58015         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58016         * lib/fpurge.c (fpurge): Likewise.
58017         * lib/freadable.c (freaadable): Likewise.
58018         * lib/freadahead.c (freadahead): Likewise.
58019         * lib/freading.c (freading): Likewise.
58020         * lib/freadptr.c (freadptr): Likewise.
58021         * lib/freadseek.c (freadptrinc): Likewise.
58022         * lib/fseeko.c (fseeko): Likewise.
58023         * lib/fseterr.c (fseterr): Likewise.
58024         * lib/fwritable.c (fwritable): Likewise.
58025         * lib/fwriting.c (fwriting): Likewise.
58026
58027 2008-04-26  Bruno Haible  <bruno@clisp.org>
58028
58029         * lib/stdio-impl.h: New file.
58030         * lib/fbufmode.c: Include stdio-impl.h.
58031         (fbufmode): Use fp_, remove redundant #defines.
58032         * lib/fflush.c: Include stdio-impl.h.
58033         (clear_ungetc_buffer): Remove redundant #defines.
58034         * lib/fpurge.c: Include stdio-impl.h.
58035         (fpurge): Remove redundant #defines.
58036         * lib/freadable.c: Include stdio-impl.h.
58037         (freadable): Remove redundant #defines.
58038         * lib/freadahead.c: Include stdio-impl.h.
58039         (freadahead): Remove redundant #defines.
58040         * lib/freading.c: Include stdio-impl.h.
58041         (freading): Remove redundant #defines.
58042         * lib/freadptr.c: Include stdio-impl.h.
58043         (freadptr): Remove redundant #defines.
58044         * lib/freadseek.c: Include stdio-impl.h.
58045         (freadptrinc): Remove redundant #defines.
58046         * lib/fseeko.c: Include stdio-impl.h.
58047         (rpl_fseeko): Remove redundant #defines.
58048         * lib/fseterr.c: Include stdio-impl.h.
58049         (fseterr): Remove redundant #defines.
58050         * lib/fwritable.c: Include stdio-impl.h.
58051         (fwritable: Remove redundant #defines.
58052         * lib/fwriting.c: Include stdio-impl.h.
58053         (fwriting): Remove redundant #defines.
58054         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58055         * modules/fflush (Files): Likewise.
58056         * modules/fpurge (Files): Likewise.
58057         * modules/freadable (Files): Likewise.
58058         * modules/freadahead (Files): Likewise.
58059         * modules/freading (Files): Likewise.
58060         * modules/freadptr (Files): Likewise.
58061         * modules/freadseek (Files): Likewise.
58062         * modules/fseeko (Files): Likewise.
58063         * modules/fseterr (Files): Likewise.
58064         * modules/fwritable (Files): Likewise.
58065         * modules/fwriting (Files): Likewise.
58066
58067 2008-04-26  Bruno Haible  <bruno@clisp.org>
58068
58069         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58070         restore_seek_optimization, update_fpos_cache): New functions, extracted
58071         from rpl_fflush.
58072         (rpl_fflush): Use them.
58073         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58074         (gl_REPLACE_FFLUSH): Use it.
58075
58076 2008-04-26  Bruno Haible  <bruno@clisp.org>
58077
58078         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58079         on Solaris.
58080         * tests/test-xstrtoimax.sh: Likewise.
58081         * tests/test-xstrtoumax.sh: Likewise.
58082         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58083
58084 2008-04-26  Bruno Haible  <bruno@clisp.org>
58085
58086         * modules/memchr-tests: New file.
58087         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58088
58089 2008-04-26  Eric Blake  <ebb9@byu.net>
58090             Bruno Haible  <bruno@clisp.org>
58091
58092         * lib/memchr.c: Include intprops.h.
58093         (__memchr): Optimize parallel detection of matching bytes. Rename local
58094         variables. Add explanatory comments.
58095
58096 2008-04-26  Bruno Haible  <bruno@clisp.org>
58097
58098         Fix module 'memchr', broken since 2000-10-28.
58099         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58100
58101 2008-04-26  Bruno Haible  <bruno@clisp.org>
58102
58103         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58104         comments.
58105
58106 2008-04-25  Eric Blake  <ebb9@byu.net>
58107
58108         Use native fstatat on cygwin 1.7.0.
58109         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58110         first.
58111
58112 2008-04-23  Eric Blake  <ebb9@byu.net>
58113
58114         Improve memchr2 performance.
58115         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58116         NUL bytes.
58117         * modules/memchr2 (Depends-on): Use intprops.h.
58118
58119 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58120
58121         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58122         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58123         <blp@cs.stanford.edu>.
58124
58125 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58126
58127         * lib/arpa_inet.in.h: New file.
58128
58129         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58130         (Makefile.am): Sed in substitute header file.
58131
58132         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58133         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58134
58135         * modules/inet_ntop (configure.ac): Use
58136         gl_ARPA_INET_MODULE_INDICATOR.
58137
58138         * modules/inet_pton (configure.ac): Use
58139         gl_ARPA_INET_MODULE_INDICATOR.
58140
58141 2008-04-22  Jim Meyering  <meyering@redhat.com>
58142
58143         * modules/verify (License): Re-license as LGPLv2+.
58144
58145 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58146
58147         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58148         parameter to void* as per POSIX standard (MinGW uses char*).
58149
58150 2008-04-21  Bruno Haible  <bruno@clisp.org>
58151
58152         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58153         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58154         Define to replacements if REPLACE_ISWCNTRL is 1.
58155         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58156         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58157         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58158         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58159         what it fixes.
58160         * doc/posix-functions/iswalpha.texi: Likewise.
58161         * doc/posix-functions/iswblank.texi: Likewise.
58162         * doc/posix-functions/iswcntrl.texi: Likewise.
58163         * doc/posix-functions/iswdigit.texi: Likewise.
58164         * doc/posix-functions/iswgraph.texi: Likewise.
58165         * doc/posix-functions/iswlower.texi: Likewise.
58166         * doc/posix-functions/iswprint.texi: Likewise.
58167         * doc/posix-functions/iswpunct.texi: Likewise.
58168         * doc/posix-functions/iswspace.texi: Likewise.
58169         * doc/posix-functions/iswupper.texi: Likewise.
58170         * doc/posix-functions/iswxdigit.texi: Likewise.
58171         Reported by Alain Guibert.
58172
58173 2008-04-21  Bruno Haible  <bruno@clisp.org>
58174
58175         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58176         Patch by Alain Guibert.
58177
58178 2008-04-21  Bruno Haible  <bruno@clisp.org>
58179
58180         Fix test failures on mingw.
58181         * tests/test-xstrtol.c (print_no_progname): New function.
58182         (main): Install it in error_print_progname hook.
58183         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58184         * tests/test-xstrtoimax.sh: Likewise.
58185         * tests/test-xstrtoumax.sh: Likewise.
58186
58187 2008-04-21  Bruno Haible  <bruno@clisp.org>
58188
58189         Fix test failure on mingw.
58190         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58191
58192 2008-04-21  Bruno Haible  <bruno@clisp.org>
58193
58194         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58195         Actually assign a value.
58196
58197 2008-04-20  Bruno Haible  <bruno@clisp.org>
58198
58199         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58200         take 2.
58201         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58202         'canonicalize-lgpl' module is also used.
58203         * lib/canonicalize-lgpl.c: Undo last change.
58204         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58205
58206 2008-04-20  Bruno Haible  <bruno@clisp.org>
58207
58208         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58209         config.h. Provide _mkdir based fallback for mingw.
58210         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58211         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58212         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58213         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58214         rather than defining mkdir in config.h.
58215         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58216         (gl_SYS_STAT_H_DEFAULTS): New macro.
58217         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58218         HAVE_IO_H any more.
58219         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58220         HAVE_DECL_MKDIR and HAVE_IO_H.
58221
58222 2008-04-20  Bruno Haible  <bruno@clisp.org>
58223
58224         * lib/isapipe.c: Port to native Windows platforms.
58225
58226 2008-04-20  Bruno Haible  <bruno@clisp.org>
58227
58228         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58229
58230 2008-04-21  Eric Blake  <ebb9@byu.net>
58231
58232         Work around preprocessors that don't handle UINTMAX_MAX.
58233         * lib/memchr2.c (memchr2): Avoid embedded #if.
58234         Reported by Alain Guibert, fix suggested by Bruno Haible.
58235
58236 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58237
58238         * doc/posix-functions/strftime.texi (strftime): Explain better
58239         Windows incompatibility.  Suggested by Micah Cowan
58240         <micah@cowan.name>.
58241
58242 2008-04-20  Bruno Haible  <bruno@clisp.org>
58243
58244         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58245         unistr/u8-mblen.
58246
58247 2008-04-20  Bruno Haible  <bruno@clisp.org>
58248
58249         Fix test failure on platforms with non-GNU iconv.
58250         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58251         (U_TO_U8): Use it, rather than u16_to_u8.
58252         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58253         units at the end of the input string.
58254         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58255
58256 2008-04-20  Bruno Haible  <bruno@clisp.org>
58257
58258         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58259         when the resulting length is 0.
58260         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58261
58262 2008-04-20  Bruno Haible  <bruno@clisp.org>
58263
58264         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58265         works.
58266         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58267
58268 2008-04-20  Bruno Haible  <bruno@clisp.org>
58269
58270         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58271         * modules/tsearch-tests (configure.ac): Test for initstate function.
58272
58273 2008-04-20  Bruno Haible  <bruno@clisp.org>
58274
58275         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58276         for nlink_t if missing.
58277         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58278
58279 2008-04-19  Bruno Haible  <bruno@clisp.org>
58280
58281         Work around snprintf bug on Linux libc5.
58282         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58283         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58284         gl_SNPRINTF_SIZE1.
58285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58286         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58287         that test failed.
58288         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58289         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58290         * modules/snprintf (Files): Add m4/printf.m4.
58291         * modules/vsnprintf (Files): Likewise.
58292         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58293         * doc/posix-functions/vsnprintf.texi: Likewise.
58294
58295 2008-04-19  Bruno Haible  <bruno@clisp.org>
58296
58297         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58298         from 0.0058 to less than 10^-7.
58299
58300 2008-04-19  Bruno Haible  <bruno@clisp.org>
58301
58302         Fix rounding when a precision is given.
58303         * lib/vasnprintf.c (is_borderline): New function.
58304         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58305         9...9x.
58306         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58307         %e, %g.
58308         * tests/test-vasprintf-posix.c (test_function): Likewise.
58309         * tests/test-snprintf-posix.h (test_function): Likewise.
58310         * tests/test-sprintf-posix.h (test_function): Likewise.
58311         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58312         * tests/test-printf-posix.h (test_function): Likewise.
58313         * tests/test-printf-posix.output: Update.
58314         Reported by John Darrington <john@darrington.wattle.id.au> via
58315         Ben Pfaff <blp@cs.stanford.edu>.
58316
58317 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58318
58319         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58320         Suggested by Bruno Haible <bruno@clisp.org>.
58321
58322 2008-04-17  Bruno Haible  <bruno@clisp.org>
58323
58324         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58325         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58326         implementation.
58327         Patch by Bruce Merry <bmerry@gmail.com>.
58328
58329 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58330
58331         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58332         doesn't work under Windows.
58333
58334 2008-04-16  Bruno Haible  <bruno@clisp.org>
58335
58336         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58337         New macros.
58338         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58339         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58340         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58341         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58342         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58343         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58344         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58345         macros.
58346         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58347         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58348         Northern Sotho, Uighur.
58349
58350 2008-04-16  Bruno Haible  <bruno@clisp.org>
58351
58352         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58353         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58354         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58355         Reported by Daniel Bergström <daniel@octocode.com>.
58356
58357 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58358             Bruno Haible  <bruno@clisp.org>
58359
58360         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58361         function.
58362         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58363         New functions, mostly extracted from gl_locale_name_default.
58364         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58365
58366 2008-04-16  Eric Blake  <ebb9@byu.net>
58367
58368         Adjust strtod detection to catch glibc 2.7 bug.
58369         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58370         Reported by John Gatewood Ham.
58371
58372 2008-04-16  Bruno Haible  <bruno@clisp.org>
58373
58374         Add tentative support for Linux libc5.
58375         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58376         * lib/fpurge.c (fpurge): Likewise.
58377         * lib/freadable.c (freadable): Likewise.
58378         * lib/freadahead.c (freadahead): Likewise.
58379         * lib/freading.c (freading): Likewise.
58380         * lib/freadptr.c (freadptr): Likewise.
58381         * lib/freadseek.c (freadptrinc): Likewise.
58382         * lib/fseeko.c (rpl_fseeko): Likewise.
58383         * lib/fseterr.c (fseterr): Likewise.
58384         * lib/fwritable.c (fwritable): Likewise.
58385         * lib/fwriting.c (fwriting): Likewise.
58386         Reported by Alain Guibert <alguibert+bts@free.fr>.
58387
58388 2008-04-15  Bruno Haible  <bruno@clisp.org>
58389
58390         * modules/mathl (configure.ac): Define module indicator.
58391
58392 2008-04-15  Bruno Haible  <bruno@clisp.org>
58393
58394         * lib/logl.c (logl): Remove unused variables.
58395
58396 2008-04-15  Bruno Haible  <bruno@clisp.org>
58397
58398         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58399         fails.
58400
58401 2008-04-15  Bruno Haible  <bruno@clisp.org>
58402
58403         * lib/trim.c (trim2): Fix argument of isspace() macro.
58404
58405 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58406
58407         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58408         to 0.
58409         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58410
58411 2008-04-14  Bruno Haible  <bruno@clisp.org>
58412
58413         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58414         AC_LANG_PROGRAM argument.
58415         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58416         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58418         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58419         * m4/math_h.m4 (gl_MATH_H): Likewise.
58420         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58421         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58422         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58423         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58424         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58425         * m4/regex.m4 (gl_REGEX): Likewise.
58426         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58427         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58429         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58430         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58431         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58432         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58433         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58434
58435 2008-04-14  Jim Meyering  <meyering@redhat.com>
58436
58437         test-strtod: fix typos: s/abs/fabs/
58438         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58439
58440 2008-04-13  Bruno Haible  <bruno@clisp.org>
58441
58442         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58443         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58444         module is also used and while not building the reloc-wrapper.
58445
58446 2008-04-13  Bruno Haible  <bruno@clisp.org>
58447
58448         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58449
58450 2008-04-13  Bruno Haible  <bruno@clisp.org>
58451
58452         Fix AIX compilation failure introduced on 2008-04-02.
58453         * tests/test-frexp.c (exp): Undefine before redefining.
58454         * tests/test-frexpl.c (exp): Likewise.
58455
58456 2008-04-13  Bruno Haible  <bruno@clisp.org>
58457
58458         Work around a HP-UX stdio bug.
58459         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58460         * tests/test-ftello.c (main): Likewise.
58461         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58462         * doc/posix-functions/ftello.texi: Likewise.
58463
58464 2008-04-13  Bruno Haible  <bruno@clisp.org>
58465
58466         Make test-signbit pass on HP-UX/hppa.
58467         * tests/test-signbit.c (minus_zerol): New variable.
58468         (test_signbitl): Use it.
58469
58470 2008-04-13  Bruno Haible  <bruno@clisp.org>
58471
58472         Make truncl work on OSF/1 4.0.
58473         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58474         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58475         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58477         HAVE_DECL_TRUNCL.
58478         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58479         HAVE_DECL_TRUNCL.
58480         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58481
58482 2008-04-13  Bruno Haible  <bruno@clisp.org>
58483
58484         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58485
58486 2008-04-13  Bruno Haible  <bruno@clisp.org>
58487
58488         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58489         expression, so as to avoid HP-UX 11 cc compiler bug.
58490
58491 2008-04-13  Bruno Haible  <bruno@clisp.org>
58492
58493         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58494
58495 2008-04-13  Bruno Haible  <bruno@clisp.org>
58496
58497         * lib/git-merge-changelog.c: Remove empty declaration outside of
58498         functions.
58499
58500 2008-04-13  Bruno Haible  <bruno@clisp.org>
58501
58502         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58503
58504 2008-04-13  Bruno Haible  <bruno@clisp.org>
58505
58506         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58507         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58508         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58509         also if it exists but lacks definitions of the SHUT_* macros.
58510         * modules/sys_socket (Description): Update.
58511         Reported by Elbert Pol <e.pol@chello.nl>.
58512
58513 2008-04-13  Bruno Haible  <bruno@clisp.org>
58514
58515         * lib/localcharset.c (OS2): Don't redefine if already defined.
58516         Reported by Elbert Pol <e.pol@chello.nl>.
58517
58518 2008-04-13  Bruno Haible  <bruno@clisp.org>
58519
58520         * lib/binary-io.h [__EMX__]: Include <io.h>.
58521         Reported by Elbert Pol <e.pol@chello.nl>.
58522
58523 2008-04-12  Bruno Haible  <bruno@clisp.org>
58524
58525         * lib/fpucw.h: Enable the definitions also for x86_64.
58526         Needed for NetBSD/x86_64.
58527         Reported by Thomas Klausner <tk@giga.or.at>.
58528
58529 2008-04-12  Bruno Haible  <bruno@clisp.org>
58530
58531         * tests/test-strtod.c: Include isnand.h.
58532         (main): Use isnand instead of isnan.
58533         Reported by Jim Meyering.
58534
58535 2008-04-12  Bruno Haible  <bruno@clisp.org>
58536
58537         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
58538         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58539
58540 2008-04-12  Jim Meyering  <meyering@redhat.com>
58541
58542         * m4/math_h.m4 (gl_MATH_H): Fix typos.
58543
58544 2008-04-12  Bruno Haible  <bruno@clisp.org>
58545
58546         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
58547         Reported by Elbert Pol <e.pol@chello.nl>.
58548
58549 2008-04-12  Eric Blake  <ebb9@byu.net>
58550
58551         Work around Solaris 10 math.h bug.
58552         * m4/math_h.m4 (gl_MATH_H): Check for bug.
58553         (gl_MATH_H_DEFAULTS): Set up default.
58554         * modules/math (Makefile.am): Replace new indicators.
58555         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
58556         * tests/test-math.c (main): Test this.
58557         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
58558         * doc/posix-headers/math.texi (math.h): Mention bug.
58559         Reported by Nelson H. F. Beebe and Jim Meyering.
58560
58561 2008-04-11  Bruno Haible  <bruno@clisp.org>
58562
58563         Adapt to future versions of Apple GCC.
58564         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
58565         Reported by Peter O'Gorman <peter@pogma.com>.
58566
58567 2008-04-11  Bruno Haible  <bruno@clisp.org>
58568
58569         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
58570
58571 2008-04-11  Bruno Haible  <bruno@clisp.org>
58572
58573         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
58574
58575         * modules/getaddrinfo-tests (Makefile.am): Define
58576         test_getaddrinfo_LDADD.
58577
58578 2008-04-11  Bruno Haible  <bruno@clisp.org>
58579
58580         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
58581         (init): Fix syntax error.
58582         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
58583         is declared.
58584
58585 2008-04-11  Bruno Haible  <bruno@clisp.org>
58586
58587         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
58588         * modules/glob (Depends-on): Add stdbool.
58589
58590 2008-04-11  Bruno Haible  <bruno@clisp.org>
58591
58592         * lib/trim.c: Include <string.h>.
58593
58594 2008-04-11  Eric Blake  <ebb9@byu.net>
58595
58596         Avoid compile failure on OS/2.
58597         * lib/regex_internal.h (internal_function): Disable optimization
58598         on OS/2 (__EMX__), where it caused compiler error.
58599         Reported by Elbert Pol.
58600
58601 2008-04-11  Bruno Haible  <bruno@clisp.org>
58602
58603         Flush the standard error stream before aborting. Needed on mingw.
58604         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
58605         * tests/test-array_list.c (ASSERT): Likewise.
58606         * tests/test-array_oset.c (ASSERT): Likewise.
58607         * tests/test-avltree_list.c (ASSERT): Likewise.
58608         * tests/test-avltree_oset.c (ASSERT): Likewise.
58609         * tests/test-avltreehash_list.c (ASSERT): Likewise.
58610         * tests/test-binary-io.c (ASSERT): Likewise.
58611         * tests/test-byteswap.c (ASSERT): Likewise.
58612         * tests/test-c-ctype.c (ASSERT): Likewise.
58613         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
58614         * tests/test-c-strcasestr.c (ASSERT): Likewise.
58615         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
58616         * tests/test-c-strstr.c (ASSERT): Likewise.
58617         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
58618         * tests/test-canonicalize.c (ASSERT): Likewise.
58619         * tests/test-carray_list.c (ASSERT): Likewise.
58620         * tests/test-ceilf1.c (ASSERT): Likewise.
58621         * tests/test-ceilf2.c (ASSERT): Likewise.
58622         * tests/test-ceill.c (ASSERT): Likewise.
58623         * tests/test-count-one-bits.c (ASSERT): Likewise.
58624         * tests/test-fbufmode.c (ASSERT): Likewise.
58625         * tests/test-fflush2.c (ASSERT): Likewise.
58626         * tests/test-floorf1.c (ASSERT): Likewise.
58627         * tests/test-floorf2.c (ASSERT): Likewise.
58628         * tests/test-floorl.c (ASSERT): Likewise.
58629         * tests/test-fopen.c (ASSERT): Likewise.
58630         * tests/test-fpending.c (ASSERT): Likewise.
58631         * tests/test-fprintf-posix.c (ASSERT): Likewise.
58632         * tests/test-fpurge.c (ASSERT): Likewise.
58633         * tests/test-freadable.c (ASSERT): Likewise.
58634         * tests/test-freadahead.c (ASSERT): Likewise.
58635         * tests/test-freading.c (ASSERT): Likewise.
58636         * tests/test-freadptr.c (ASSERT): Likewise.
58637         * tests/test-freadptr2.c (ASSERT): Likewise.
58638         * tests/test-freadseek.c (ASSERT): Likewise.
58639         * tests/test-freopen.c (ASSERT): Likewise.
58640         * tests/test-frexp.c (ASSERT): Likewise.
58641         * tests/test-frexpl.c (ASSERT): Likewise.
58642         * tests/test-fseek.c (ASSERT): Likewise.
58643         * tests/test-fseeko.c (ASSERT): Likewise.
58644         * tests/test-fstrcmp.c (ASSERT): Likewise.
58645         * tests/test-ftell.c (ASSERT): Likewise.
58646         * tests/test-ftello.c (ASSERT): Likewise.
58647         * tests/test-func.c (ASSERT): Likewise.
58648         * tests/test-fwritable.c (ASSERT): Likewise.
58649         * tests/test-fwriting.c (ASSERT): Likewise.
58650         * tests/test-getdelim.c (ASSERT): Likewise.
58651         * tests/test-getline.c (ASSERT): Likewise.
58652         * tests/test-i-ring.c (ASSERT): Likewise.
58653         * tests/test-iconv-utf.c (ASSERT): Likewise.
58654         * tests/test-iconv.c (ASSERT): Likewise.
58655         * tests/test-isfinite.c (ASSERT): Likewise.
58656         * tests/test-isnand.c (ASSERT): Likewise.
58657         * tests/test-isnanf.c (ASSERT): Likewise.
58658         * tests/test-isnanl.h (ASSERT): Likewise.
58659         * tests/test-ldexpl.c (ASSERT): Likewise.
58660         * tests/test-linked_list.c (ASSERT): Likewise.
58661         * tests/test-linkedhash_list.c (ASSERT): Likewise.
58662         * tests/test-localename.c (ASSERT): Likewise.
58663         * tests/test-lseek.c (ASSERT): Likewise.
58664         * tests/test-mbscasecmp.c (ASSERT): Likewise.
58665         * tests/test-mbscasestr1.c (ASSERT): Likewise.
58666         * tests/test-mbscasestr2.c (ASSERT): Likewise.
58667         * tests/test-mbscasestr3.c (ASSERT): Likewise.
58668         * tests/test-mbscasestr4.c (ASSERT): Likewise.
58669         * tests/test-mbschr.c (ASSERT): Likewise.
58670         * tests/test-mbscspn.c (ASSERT): Likewise.
58671         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
58672         * tests/test-mbspbrk.c (ASSERT): Likewise.
58673         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
58674         * tests/test-mbsrchr.c (ASSERT): Likewise.
58675         * tests/test-mbsspn.c (ASSERT): Likewise.
58676         * tests/test-mbsstr1.c (ASSERT): Likewise.
58677         * tests/test-mbsstr2.c (ASSERT): Likewise.
58678         * tests/test-mbsstr3.c (ASSERT): Likewise.
58679         * tests/test-memchr2.c (ASSERT): Likewise.
58680         * tests/test-memmem.c (ASSERT): Likewise.
58681         * tests/test-open.c (ASSERT): Likewise.
58682         * tests/test-printf-frexp.c (ASSERT): Likewise.
58683         * tests/test-printf-frexpl.c (ASSERT): Likewise.
58684         * tests/test-printf-posix.c (ASSERT): Likewise.
58685         * tests/test-quotearg.c (ASSERT): Likewise.
58686         * tests/test-rbtree_list.c (ASSERT): Likewise.
58687         * tests/test-rbtree_oset.c (ASSERT): Likewise.
58688         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
58689         * tests/test-round1.c (ASSERT): Likewise.
58690         * tests/test-roundf1.c (ASSERT): Likewise.
58691         * tests/test-roundl.c (ASSERT): Likewise.
58692         * tests/test-signbit.c (ASSERT): Likewise.
58693         * tests/test-sleep.c (ASSERT): Likewise.
58694         * tests/test-snprintf-posix.c (ASSERT): Likewise.
58695         * tests/test-snprintf.c (ASSERT): Likewise.
58696         * tests/test-sprintf-posix.c (ASSERT): Likewise.
58697         * tests/test-stat-time.c (ASSERT): Likewise.
58698         * tests/test-strcasestr.c (ASSERT): Likewise.
58699         * tests/test-strerror.c (ASSERT): Likewise.
58700         * tests/test-striconv.c (ASSERT): Likewise.
58701         * tests/test-striconveh.c (ASSERT): Likewise.
58702         * tests/test-striconveha.c (ASSERT): Likewise.
58703         * tests/test-strsignal.c (ASSERT): Likewise.
58704         * tests/test-strstr.c (ASSERT): Likewise.
58705         * tests/test-strtod.c (ASSERT): Likewise.
58706         * tests/test-trunc1.c (ASSERT): Likewise.
58707         * tests/test-trunc2.c (ASSERT): Likewise.
58708         * tests/test-truncf1.c (ASSERT): Likewise.
58709         * tests/test-truncf2.c (ASSERT): Likewise.
58710         * tests/test-truncl.c (ASSERT): Likewise.
58711         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
58712         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
58713         * tests/test-vasnprintf.c (ASSERT): Likewise.
58714         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
58715         * tests/test-vasprintf.c (ASSERT): Likewise.
58716         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
58717         * tests/test-vprintf-posix.c (ASSERT): Likewise.
58718         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
58719         * tests/test-vsnprintf.c (ASSERT): Likewise.
58720         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
58721         * tests/test-wcwidth.c (ASSERT): Likewise.
58722         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
58723         * tests/test-xprintf-posix.c (ASSERT): Likewise.
58724         * tests/test-xvasprintf.c (ASSERT): Likewise.
58725         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
58726         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
58727         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
58728         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
58729         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
58730         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
58731         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
58732         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
58733         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
58734         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
58735         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
58736         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
58737         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
58738         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
58739         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
58740         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
58741         * tests/unictype/test-block_list.c (ASSERT): Likewise.
58742         * tests/unictype/test-block_of.c (ASSERT): Likewise.
58743         * tests/unictype/test-block_test.c (ASSERT): Likewise.
58744         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
58745         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
58746         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
58747         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
58748         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
58749         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
58750         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
58751         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
58752         * tests/unictype/test-combining.c (ASSERT): Likewise.
58753         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
58754         * tests/unictype/test-digit.c (ASSERT): Likewise.
58755         * tests/unictype/test-mirror.c (ASSERT): Likewise.
58756         * tests/unictype/test-numeric.c (ASSERT): Likewise.
58757         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
58758         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
58759         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
58760         * tests/unictype/test-scripts.c (ASSERT): Likewise.
58761         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
58762         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
58763         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
58764         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
58765         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
58766         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
58767         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
58768         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
58769         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
58770         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
58771         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
58772         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
58773         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
58774         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
58775         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
58776         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
58777         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
58778         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
58779         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
58780         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
58781         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
58782         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
58783         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
58784         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
58785         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
58786         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
58787         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
58788         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
58789         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
58790         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
58791         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
58792         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
58793         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
58794         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
58795         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
58796         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
58797         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
58798         Reported by Eric Blake.
58799
58800 2008-04-11  Bruno Haible  <bruno@clisp.org>
58801
58802         * lib/wchar.in.h: Tweak comment.
58803
58804 2008-04-11  Bruno Haible  <bruno@clisp.org>
58805
58806         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
58807         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
58808         gl_COMMON.
58809         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
58810
58811 2008-04-11  Bruno Haible  <bruno@clisp.org>
58812
58813         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
58814
58815 2008-04-11  Simon Josefsson  <simon@josefsson.org>
58816
58817         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
58818         of attempting to use non-existing /dev/*random.  Based on patch
58819         from Adam Strzelecki <ono@java.pl> in
58820         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
58821
58822 2008-04-08  Bruno Haible  <bruno@clisp.org>
58823
58824         Add tentative support for emx+gcc.
58825         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
58826         * lib/fpurge.c (fpurge): Likewise.
58827         * lib/freadable.c (freadable): Likewise.
58828         * lib/freadahead.c (freadahead): Likewise.
58829         * lib/freading.c (freading): Likewise.
58830         * lib/freadptr.c (freadptr): Likewise.
58831         * lib/freadseek.c (freadptrinc): Likewise.
58832         * lib/fseeko.c (rpl_fseeko): Likewise.
58833         * lib/fseterr.c (fseterr): Likewise.
58834         * lib/fwritable.c (fwritable): Likewise.
58835         * lib/fwriting.c (fwriting): Likewise.
58836         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
58837
58838 2008-04-09  Eric Blake  <ebb9@byu.net>
58839
58840         Avoid some autoconf warnings.
58841         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
58842         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
58843         * m4/afs.m4 (gl_AFS): Likewise.
58844         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
58845         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
58846         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58847         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
58848         (gl_INTEGER_TYPE_SUFFIX): Likewise.
58849         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
58850         (AC_CHECK_DECLS_ONCE): Likewise.
58851         Rename file...
58852         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
58853         gnulib-tool requires autoconf 2.59 or better.
58854         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
58855
58856 2008-04-08  Eric Blake  <ebb9@byu.net>
58857
58858         Use 'git describe --match' if present (added in git 1.5.5).
58859         * build-aux/git-version-gen: Limit result to tags that match 'v*'
58860         if possible.
58861
58862 2008-04-08  Bruno Haible  <bruno@clisp.org>
58863
58864         Add tentative support for OpenServer.
58865         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
58866         _ptr, _cnt.
58867         * lib/fpurge.c (fpurge): Likewise.
58868         * lib/freadable.c (freadable): Likewise.
58869         * lib/freadahead.c (freadahead): Likewise.
58870         * lib/freading.c (freading): Likewise.
58871         * lib/freadptr.c (freadptr): Likewise.
58872         * lib/freadseek.c (freadptrinc): Likewise.
58873         * lib/fseeko.c (rpl_fseeko): Likewise.
58874         * lib/fseterr.c (fseterr): Likewise.
58875         * lib/fwritable.c (fwritable): Likewise.
58876         * lib/fwriting.c (fwriting): Likewise.
58877         Reported by Roger Cornelius <rac@tenzing.org> and
58878         Brian K. White <brian@aljex.com>.
58879
58880 2008-04-06  Jim Meyering  <meyering@redhat.com>
58881
58882         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
58883
58884 2008-04-06  Bruno Haible  <bruno@clisp.org>
58885
58886         Avoid possible error with non-ASCII bytes in UTF-8 locales.
58887         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
58888         * tests/test-printf-posix.sh: Likewise.
58889         * tests/test-vfprintf-posix.sh: Likewise.
58890         * tests/test-vprintf-posix.sh: Likewise.
58891         * tests/test-xprintf-posix.sh: Likewise.
58892
58893 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58894
58895         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
58896         hide error from 'ls', needed on OS/2.
58897         Report by Elbert Pol <elbert.pol@gmail.com>.
58898
58899 2008-04-04  Eric Blake  <ebb9@byu.net>
58900
58901         Make test-fseeko.c failures meaningful.
58902         * tests/test-fseeko.c: Print line number on failure.
58903         * tests/test-fseek.c: Likewise.
58904         Reported by Nelson H. F. Beebe.
58905
58906         Improve strtod bug detection check.
58907         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
58908         required for Solaris 10.
58909         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
58910
58911 2008-04-04  Bruno Haible  <bruno@clisp.org>
58912
58913         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
58914         by m4/setenv.m4.
58915
58916 2008-04-03  Eric Blake  <ebb9@byu.net>
58917
58918         Ensure sane .version contents.
58919         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
58920         version string.
58921         * build-aux/git-version-gen: Improve documentation.
58922
58923         Make GNU make output nicer.
58924         * top/GNUmakefile [!_have-Makefile]: Add dependency on
58925         MAKECMDGOALS to enforce message for all command line targets.  Set
58926         srcdir for use in maint.mk.
58927
58928         Another maintainer tweak.
58929         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
58930         a target that regenerates version.
58931
58932 2008-04-03  Jim Meyering  <meyering@redhat.com>
58933
58934         vc-list-files: don't cause coreutils "make po-check" failure
58935         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
58936
58937 2008-04-03  Eric Blake  <ebb9@byu.net>
58938
58939         Allow VPATH usage of vc-list-files.
58940         * build-aux/vc-list-files (scriptversion): Add timestamp.
58941         (options): Add --help, --version, -C.
58942         (CVS): Support installed cvsu.
58943
58944 2008-04-02  Bruno Haible  <bruno@clisp.org>
58945
58946         Avoid some "statement with no effect" warnings from gcc.
58947         * tests/test-wctype.c (main): Explicitly ignore unused values.
58948         Reported by Jim Meyering.
58949
58950 2008-04-02  Jim Meyering  <meyering@redhat.com>
58951
58952         Avoid some warnings from "gcc -Wshadow".
58953         * tests/test-frexp.c (exp): Define to a different identifier.
58954         * tests/test-frexpl.c (exp): Likewise.
58955
58956 2008-04-03  Jim Meyering  <meyering@redhat.com>
58957
58958         bootstrap: remove dangling *.[ch] symlinks from lib
58959         * build-aux/bootstrap [dangling symlink removal]: Move find's
58960         -depth option to precede all others, to avoid a warning.
58961         Remove *.[ch] files too, and from "$source_base" (usually lib/).
58962
58963 2008-04-02  Bruno Haible  <bruno@clisp.org>
58964
58965         Avoid some warnings from "gcc -Wshadow".
58966         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
58967         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
58968         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
58969         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
58970         Reported by Jim Meyering.
58971
58972 2008-04-01  Bruno Haible  <bruno@clisp.org>
58973
58974         Fix test to work on IRIX 6.5 with cc.
58975         * tests/test-math.c (numeric_equal): New function.
58976         (main): Use it.
58977
58978 2008-04-01  Bruno Haible  <bruno@clisp.org>
58979
58980         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
58981
58982 2008-04-01  Bruno Haible  <bruno@clisp.org>
58983
58984         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
58985         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58986         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
58987         (Depends-on): Remove math.
58988
58989         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
58990         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58991         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
58992         (Depends-on): Remove math.
58993
58994         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
58995         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58996         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
58997         (Depends-on): Remove math.
58998         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
58999         (Depends-on): Remove math.
59000
59001         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59002         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59003         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59004         (Depends-on): Remove math.
59005         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59006         (Depends-on): Remove math.
59007
59008         * tests/test-round1.c: Include nan.h.
59009         (main): Use NaNd instead of NAN.
59010         * modules/round-tests (Files): Add tests/nan.h.
59011
59012         * tests/test-trunc1.c: Include nan.h.
59013         (main): Use NaNd instead of NAN.
59014         * modules/trunc-tests (Files): Add tests/nan.h.
59015
59016         * tests/test-roundf1.c: Include nan.h.
59017         (main): Use NaNf instead of NAN.
59018         * modules/roundf-tests (Files): Add tests/nan.h.
59019
59020         * tests/test-truncf1.c: Include nan.h.
59021         (main): Use NaNf instead of NAN.
59022         * modules/truncf-tests (Files): Add tests/nan.h.
59023
59024         * tests/test-ceilf1.c: Include nan.h.
59025         (main): Use NaNf instead of NAN.
59026         * modules/ceilf-tests (Files): Add tests/nan.h.
59027
59028         * tests/test-floorf1.c: Include nan.h.
59029         (main): Use NaNf instead of NAN.
59030         * modules/floorf-tests (Files): Add tests/nan.h.
59031
59032         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59033         (main): Use NaNf instead of NAN.
59034         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59035
59036         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59037         (main): Use NaNd instead of NAN.
59038         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59039
59040         * tests/test-frexp.c: Include nan.h.
59041         (main): Use NaNd instead of NAN.
59042         * modules/frexp-tests (Files): Add tests/nan.h.
59043
59044         * lib/isnan.c: Don't include <math.h>.
59045         (FUNC): Don't use NAN macro.
59046         * modules/isnand-nolibm (Depends-on): Remove math.
59047         * modules/isnanf-nolibm (Depends-on): Remove math.
59048         * modules/isnanl (Depends-on): Remove math.
59049         * modules/isnanl-nolibm (Depends-on): Remove math.
59050
59051         * tests/nan.h: New file.
59052
59053 2008-04-01  Eric Blake  <ebb9@byu.net>
59054
59055         Fix typos.
59056         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59057         values to be the right type.
59058
59059         For now, cater to gnulib strtod inaccuracies.
59060         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59061         fractional results.  While not as nice from a QoI perspective, it
59062         is a quicker patch than correctly implementing decimal to binary
59063         rounding.
59064
59065 2008-03-31  Eric Blake  <ebb9@byu.net>
59066
59067         Guarantee a definition of NAN.
59068         * lib/math.in.h (NAN): Define if missing.
59069         * tests/test-math.c (main): Test it.
59070         * doc/posix-headers/math.texi (math.h): Document this.
59071         * lib/isnan.c (rpl_isnand): Use it.
59072         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59073         * tests/test-floorf1.c (NaN): Likewise.
59074         * tests/test-frexp.c (NaN): Likewise.
59075         * tests/test-isnand.c (NaN): Likewise.
59076         * tests/test-isnanf.c (NaN): Likewise.
59077         * tests/test-round1.c (NaN): Likewise.
59078         * tests/test-roundf1.c (NaN): Likewise.
59079         * tests/test-snprintf-posix.h (NaN): Likewise.
59080         * tests/test-sprintf-posix.h (NaN): Likewise.
59081         * tests/test-trunc1.c (NaN): Likewise.
59082         * tests/test-truncf1.c (NaN): Likewise.
59083         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59084         * tests/test-vasprintf-posix.c (NaN): Likewise.
59085         * modules/isnand-nolibm (Depends-on): Add math.
59086         * modules/isnanf-nolibm (Depends-on): Likewise.
59087         * modules/isnanl (Depends-on): Likewise.
59088         * modules/isnanl-nolibm (Depends-on): Likewise.
59089         * modules/snprintf-posix-tests (Depends-on): Likewise.
59090         * modules/sprintf-posix-tests (Depends-on): Likewise.
59091         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59092         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59093         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59094         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59095
59096 2008-03-31  Bruno Haible  <bruno@clisp.org>
59097
59098         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59099         * doc/posix-functions/strtod.texi: Likewise.
59100
59101 2008-03-31  Bruno Haible  <bruno@clisp.org>
59102
59103         * tests/test-strtod.c (main): Don't use C99 syntax.
59104
59105 2008-03-31  Bruno Haible  <bruno@clisp.org>
59106
59107         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59108         Reported by Eric Blake.
59109
59110 2008-03-31  Jim Meyering  <meyering@redhat.com>
59111
59112         Don't compare actual signbit return values.
59113         * tests/test-strtod.c (main): Rather, compare only their
59114         zero/non-zero nature.
59115
59116 2008-03-31  Eric Blake  <ebb9@byu.net>
59117
59118         More strtod documentation.
59119         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59120         failures as distinct bugs.
59121
59122 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59123
59124         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59125         Problem reported by Erik Benada in
59126         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59127
59128 2008-03-30  Bruno Haible  <bruno@clisp.org>
59129
59130         * tests/test-strtod.c: Add comments about which assertion fails on which
59131         platform.
59132         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59133
59134 2008-03-30  Eric Blake  <ebb9@byu.net>
59135
59136         Test signbit behavior on zeros.
59137         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59138         (test_signbitd, test_signbitl): Likewise.
59139
59140         More strtod touchups.
59141         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59142         sign of negative underflow, for now.  Use .5, not .1.
59143         * doc/posix-functions/strtod.texi (strtod): Mention these
59144         limitations.
59145         Reported by Jim Meyering.
59146
59147 2008-03-30  Bruno Haible  <bruno@clisp.org>
59148
59149         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59150         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59151
59152 2008-03-30  Bruno Haible  <bruno@clisp.org>
59153
59154         Avoid failure when attempting to return empty iconv results on some
59155         platforms.
59156         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59157         allocation, don't report ENOMEM when the resulting string is empty.
59158
59159 2008-03-30  Bruno Haible  <bruno@clisp.org>
59160
59161         Fix buffer overrun.
59162         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59163         Don't consider the width for tmp_length. Check count against tmp_length
59164         before doing the padding. Ensure enough allocation during padding.
59165
59166 2008-03-30  Eric Blake  <ebb9@byu.net>
59167
59168         strtod touchups.
59169         * lib/strtod.c (strtod): Avoid compiler warnings.
59170         Reported by Jim Meyering.
59171
59172 2008-03-30  Bruno Haible  <bruno@clisp.org>
59173
59174         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59175         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59176         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59177         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59178         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59179         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59180         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59181         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59182
59183         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59184         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59185         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59186         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59187         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59188         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59189         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59190         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59191
59192         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59193         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59194         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59195         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59196         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59197         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59198         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59199         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59200
59201         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59202         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59203
59204         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59205         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59206
59207         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59208         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59209
59210         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59211         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59212         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59213
59214         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59216         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59217
59218         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59220         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59221
59222         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59223         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59224         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59225
59226         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59227         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59228         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59229         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59230         (Depends-on): Add EOVERFLOW.
59231         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59232         (Depends-on): Add EOVERFLOW.
59233         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59234         (Depends-on): Add EOVERFLOW.
59235         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59236         (Depends-on): Add EOVERFLOW.
59237         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59238         (Depends-on): Add EOVERFLOW.
59239         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59240         (Depends-on): Add EOVERFLOW.
59241         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59242         (Depends-on): Add EOVERFLOW.
59243         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59244         (Depends-on): Add EOVERFLOW.
59245
59246         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59247         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59248         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59249
59250         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59251         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59252         * modules/snprintf (Depends-on): Add EOVERFLOW.
59253
59254         * lib/poll.c (EOVERFLOW): Remove fallback.
59255         * modules/poll (Depends-on): Add EOVERFLOW.
59256
59257         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59258         * modules/getugroups (Depends-on): Add EOVERFLOW.
59259
59260         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59261         * modules/getdelim (Depends-on): Add EOVERFLOW.
59262
59263         * lib/ftell.c (EOVERFLOW): Remove fallback.
59264         * modules/ftell (Depends-on): Add EOVERFLOW.
59265
59266         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59267         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59268         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59269
59270         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59271
59272         * modules/EOVERFLOW-tests: New file.
59273         * tests/test-EOVERFLOW.c: New file.
59274
59275         * modules/EOVERFLOW: New file.
59276         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59277
59278 2008-03-30  Bruno Haible  <bruno@clisp.org>
59279
59280         Fix bug introduced on 2007-06-10.
59281         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59282         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59283
59284 2008-03-30  Bruno Haible  <bruno@clisp.org>
59285
59286         Improve freadseek's efficiency after ungetc.
59287         * lib/freadseek.c: Include freadahead.h.
59288         (freadptrinc): New function, extracted from freadseek.
59289         (freadseek): Use it in a loop. Use freadahead to determine the number
59290         of loop iterations.
59291         * modules/freadseek (Depends-on): Add freadahead.
59292         (configure.ac): Require AC_C_INLINE.
59293
59294 2008-03-30  Bruno Haible  <bruno@clisp.org>
59295
59296         * lib/freadseek.c (freadseek): Don't ignore the return value of
59297         freadptr.
59298
59299 2008-03-29  Eric Blake  <ebb9@byu.net>
59300
59301         Add hex float support.
59302         * modules/strtod (Depends-on): Add c-ctype.
59303         (Link): Mention POW_LIB.
59304         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59305         whitespace between 'e' and exponent.
59306         * tests/test-strtod.c (main): Enable hex float tests.
59307         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59308         now provides.
59309
59310         Document various strtod bugs, with some fixes.
59311         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59312         "-0x", "inf", "nan", and hex constants.
59313         * doc/posix-functions/atof.texi (atof): Likewise.
59314         * modules/stdlib (Makefile.am): Support strtod.
59315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59316         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59317         detect additional strtod bugs.
59318         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59319         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59320         bool where appropriate.  Parse 'inf' and 'nan'.
59321         * tests/test-strtod.c: New file.
59322         * modules/strtod (Depends-on): Add stdbool, stdlib.
59323         (configure.ac): Turn on module indicator.
59324         * modules/strtod-tests: New module.
59325
59326 2008-03-29  Eric Blake  <ebb9@byu.net>
59327
59328         Fix ftell on mingw.
59329         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59330         * modules/ftell-tests (Depends-on): Add binary-io.
59331         * modules/ftello-tests (Depends-on): Likewise.
59332         * tests/test-ftell.c (main): Enhance test to cover behavior after
59333         ungetc.  Enforce binary mode.
59334         * tests/test-ftello.c (main): Likewise.
59335
59336         Pass test-freadseek on cygwin.
59337         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59338         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59339         ungetc buffer.
59340
59341         * tests/test-fflush2.c (main): Fix typo.
59342
59343 2008-03-29  Bruno Haible  <bruno@clisp.org>
59344
59345         * tests/test-fflush2.c (main): Temporarily disable the contents of
59346         this test.
59347         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59348         Reported by Eric Blake.
59349
59350 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59351
59352         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59353         (GC_SHA224_DIGEST_SIZE): Add.
59354
59355         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59356         (gc_hash_digest_length): Likewise.
59357         (gc_hash_buffer): Likewise.
59358
59359 2008-03-25  Bruno Haible  <bruno@clisp.org>
59360
59361         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59362         detail which gettext release to use.
59363         Reported by Simon Josefsson.
59364
59365 2008-03-26  Jim Meyering  <meyering@redhat.com>
59366
59367         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59368         * modules/gnumakefile (clean-GNUmakefile): Also, use
59369         test ... && ... || : syntax rather than if-then ... fi.
59370
59371         gnumakefile: Don't double-quote-expand $(VPATH) value.
59372         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59373
59374 2008-03-24  Eric Blake  <ebb9@byu.net>
59375
59376         Alter GNUmakefile to install into top directory.
59377         * modules/maintainer-makefile: Split, and add dependency...
59378         * modules/gnumakefile: to this new module.
59379         * build-aux/GNUmakefile: Move...
59380         * top/GNUmakefile: ...here.
59381         * build-aux/maint.mk: Move...
59382         * top/maint.mk: ...here.
59383         * MODULES.html.sh (Support for maintaining...): Document new
59384         module.
59385
59386 2008-03-23  Bruno Haible  <bruno@clisp.org>
59387
59388         * gnulib-tool: New options --vc-files, --no-vc-files.
59389         (func_usage): Document them.
59390         (vc_files): New variable.
59391         (func_import): Consider vc_files.
59392         (func_create_testdir): Set vc_files to empty.
59393         Suggested by Jim Meyering and Karl Berry.
59394
59395 2008-03-23  Bruno Haible  <bruno@clisp.org>
59396
59397         Fix regex compilation error on HP-UX 11.
59398         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59399         * modules/regex (Files): Add m4/mbstate_t.m4.
59400         Reported by Ton Voon <ton.voon@altinity.com>.
59401
59402 2008-03-23  Bruno Haible  <bruno@clisp.org>
59403
59404         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59405
59406 2008-03-23  Eric Blake  <ebb9@byu.net>
59407             Bruno Haible  <bruno@clisp.org>
59408
59409         Install files from top/ in the destination directory.
59410         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59411         augmentation also for the files from top/.
59412         (func_import, func_create_testdir): Rewrite file names:
59413         top/filename -> filename.
59414
59415 2008-03-23  Bruno Haible  <bruno@clisp.org>
59416
59417         Tweak "gnulib --version" output.
59418         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59419
59420 2008-03-23  Bruno Haible  <bruno@clisp.org>
59421
59422         Tweak "gnulib --version" output.
59423         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59424         rather than contents of ChangeLog, when possible.
59425
59426 2008-03-21  Eric Blake  <ebb9@byu.net>
59427
59428         More --version tweaks.
59429         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59430         date of last ChangeLog entry.
59431
59432 2008-03-21  Jim Meyering  <meyering@redhat.com>
59433
59434         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59435
59436 2008-03-20  Eric Blake  <ebb9@byu.net>
59437
59438         VPATH fix.
59439         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59440
59441 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59442
59443         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59444         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59445
59446 2008-03-20  Eric Blake  <ebb9@byu.net>
59447
59448         Sync GNUmakefile with coreutils.
59449         * build-aux/GNUmakefile (have-Makefile): Rename...
59450         (_have-Makefile): ...to this, for namespace consideration.
59451         (GNUmakefile.cfg): Include, if present.
59452         (_autoreconf): Define a default.
59453         (_is-dist-target): New rule for rebuilds to pick up intra-release
59454         version.
59455         (maint-cfg.mk): Rename...
59456         (cfg.mk): ...to this.
59457
59458 2008-03-18  Jim Meyering  <meyering@redhat.com>
59459
59460         New script and module: mktempd
59461         * MODULES.html.sh (maint+release support): Add mktempd.
59462         * build-aux/mktempd: New file.
59463         * modules/mktempd: New file.
59464
59465 2008-03-15  Jim Meyering  <meyering@redhat.com>
59466
59467         Undo last change.
59468         * lib/sha1.c, lib/md5.c: 63 != ~63.
59469         Reported by Andreas Schwab.
59470
59471         sha1.c, md5.c: Hoist a redundant expression.
59472         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59473         "ctx->buflen" only once, before calling *_process_block.
59474         * lib/md5.c (md5_process_bytes): Likewise.
59475
59476 2008-03-14  Eric Blake  <ebb9@byu.net>
59477
59478         Bump copyright year in files generated by gnulib-tool.
59479         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59480         gnulib-tool, rather than hard-coding it.
59481
59482         Fix 'gnulib-tool --version' output to work with git.
59483         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59484         (startup): ...here.
59485         (func_version): Use it to invoke git-version-gen, rather than
59486         relying on CVS keyword expansion.  Modernize wording.
59487         (cvsdatestamp, last_checkin_date, version): Kill unused
59488         variables.
59489
59490 2008-03-12  Jim Meyering  <meyering@redhat.com>
59491
59492         Recognize optional cast of the argument to free.
59493         * build-aux/useless-if-before-free: Update regexps.
59494
59495         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59496
59497 2008-03-11  Bruno Haible  <bruno@clisp.org>
59498
59499         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59500         by a single package.
59501         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59502         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59503         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59504         Reported by Sam Steingold <sds@gnu.org>.
59505
59506 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59507
59508         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59509         repositories.
59510
59511 2008-03-11  Bruno Haible  <bruno@clisp.org>
59512
59513         Avoid conflicts between local macro definitions.
59514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59515         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59516
59517 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59518             Bruno Haible  <bruno@clisp.org>
59519
59520         Make va_copy work with some version of xlc on AIX 5.1.
59521         * lib/stdarg.in.h: New file.
59522         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59523         On AIX, use a <stdarg.h> file substitute.
59524         * modules/stdarg (Files): Add lib/stdarg.in.h.
59525         (Depends-on): Add include_next.
59526         (Makefile.am): Build a stdarg.h substitute if requested.
59527         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
59528
59529 2008-03-10  Bruno Haible  <bruno@clisp.org>
59530
59531         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
59532         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59533         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59534
59535 2008-03-10  Bruno Haible  <bruno@clisp.org>
59536
59537         * modules/stdlib (Depends-on): Add include_next, remove
59538         absolute-header.
59539
59540 2008-03-09  Bruno Haible  <bruno@clisp.org>
59541
59542         * lib/freadahead.h (freadahead): Document more precisely.
59543         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
59544         the sum of both buffer sizes.
59545         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
59546         * NEWS: Document the change.
59547
59548 2008-03-09  Bruno Haible  <bruno@clisp.org>
59549
59550         Extend freadptr to return also the buffer size.
59551         * lib/freadptr.h (freadptr): Add sizep argument.
59552         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
59553         (freadptr): Add sizep argument. Determine buffer size like freadahead
59554         does.
59555         * tests/test-freadptr.c: Don't include freadahead.h.
59556         (main): Adapt for new calling convention of freadptr.
59557         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
59558         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
59559         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
59560         tests/test-freadptr2.sh.
59561         (Depends): Remove freadahead.
59562         (TESTS): Add test-freadptr2.sh.
59563         (check_PROGRAMS): Add test-freadptr2.
59564
59565 2008-03-09  Bruno Haible  <bruno@clisp.org>
59566
59567         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
59568         Report and solution by Simon Josefsson.
59569
59570 2008-03-06  Bruno Haible  <bruno@clisp.org>
59571
59572         Make fflush after ungetc work on BSD platforms.
59573         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
59574         * tests/test-fflush2.c: New file.
59575         * tests/test-fflush2.sh: New file.
59576         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
59577         tests/test-fflush2.c.
59578         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
59579         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
59580
59581 2008-03-06  Eric Blake  <ebb9@byu.net>
59582
59583         Likewise for ftello.
59584         * modules/ftello (Dependencies): Add extensions.
59585         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
59586
59587 2008-03-06  Bruno Haible  <bruno@clisp.org>
59588
59589         * modules/fseeko (Dependencies): Add extensions.
59590         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
59591         Needed on glibc systems.
59592
59593 2008-03-06  Bruno Haible  <bruno@clisp.org>
59594
59595         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
59596         email address.
59597         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59598
59599 2008-03-06  Bruno Haible  <bruno@clisp.org>
59600
59601         * users.txt: Add libgnupdf.
59602
59603 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59604
59605         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
59606         (Header File Substitutes, Function Substitutes,
59607         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
59608         (Build robot for gnulib): Fix typo.
59609
59610 2008-03-06  Bruno Haible  <bruno@clisp.org>
59611
59612         * doc/gnulib-tool.texi (VCS Issues): Small updates.
59613         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59614
59615 2008-03-06  Bruno Haible  <bruno@clisp.org>
59616
59617         * doc/func.texi: New file, extracted from doc/gnulib.texi.
59618         * doc/gnulib.texi: Include it.
59619
59620 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59621
59622         * modules/func (License): Change license to unlimited; there was
59623         no LGPL parts in the module anyway.
59624
59625 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59626
59627         * modules/__func__: Renamed to modules/func.
59628         * modules/__func__-tests: Renamed to modules/func-tests.
59629         * tests/test-__func__.c: Renamed to tests/test-func.c.
59630         * m4/__func__.m4: Renamed to m4/func.m4.
59631         * doc/gnulib.texi (__func__): Section renamed to func.
59632         Suggested by Eric Blake <ebb9@byu.net>.
59633
59634 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59635
59636         * doc/gnulib.texi (__func__): Use C99 terminology when talking
59637         about __func__.  Make example self-contained.  Suggested by Eric
59638         Blake <ebb9@byu.net>.
59639
59640         * tests/test-__func__.c (main): Avoid extraneous () around __func.
59641         Suggested by Eric Blake <ebb9@byu.net>.
59642
59643 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59644
59645         * modules/__func__: New file.
59646         * modules/__func__-tests: New file.
59647         * tests/test-__func__.c: New file.
59648         * m4/__func__.m4: New file.
59649         * doc/gnulib.texi (__func__): Document __func__ module.
59650
59651 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59652
59653         * modules/byteswap (License): Re-license as LGPLv2+.
59654
59655 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59656
59657         * doc/Makefile: Add pdf target.
59658
59659 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59660
59661         * modules/inline (License): Use 'unlimited', since there are only
59662         *.m4 files in this module.
59663
59664 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59665             Bruno Haible  <bruno@clisp.org>
59666
59667         Add support for HP C 7.1 on OpenVMS 8.3.
59668         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
59669
59670 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59671
59672         Update VMS specifics.
59673         * lib/getopt.c [VMS]: Remove include of unixlib.h.
59674
59675 2008-03-02  Jim Meyering  <meyering@redhat.com>
59676
59677         Remove the last dependency on the "free" module.
59678         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
59679         Reported by Bob Proulx.
59680
59681         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
59682
59683         Remove useless "if" tests before free.  Deprecate "free" module.
59684         * doc/posix-functions/free.texi: Mention that this
59685         module is no longer useful.
59686         * modules/free (Notice): Say this module is obsolete.
59687         * modules/readutmp (Depends-on): Remove free.
59688         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
59689         * lib/putenv.c (putenv): Likewise.
59690         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
59691         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
59692         * tests/test-c-strcasestr.c (main): Likewise.
59693         * tests/test-c-strstr.c (main): Likewise.
59694         * tests/test-mbscasestr1.c (main): Likewise.
59695         * tests/test-mbscasestr2.c (main): Likewise.
59696         * tests/test-mbsstr1.c (main): Likewise.
59697         * tests/test-mbsstr2.c (main): Likewise.
59698         * tests/test-memmem.c (main): Likewise.
59699         * tests/test-strcasestr.c (main): Likewise.
59700         * tests/test-striconv.c (main): Likewise.
59701         * tests/test-striconveh.c (main): Likewise.
59702         * tests/test-striconveha.c (main): Likewise.
59703         * tests/test-strstr.c (main): Likewise.
59704
59705         * build-aux/git-version-gen: Adjust a comment and the Usage string.
59706
59707         bootstrap: sync from coreutils again
59708         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
59709
59710 2008-03-01  Jim Meyering  <meyering@redhat.com>
59711
59712         bootstrap: sync from coreutils
59713         * build-aux/bootstrap (update_po_files): Copy a .po file into place
59714         also when the target doesn't exist.
59715
59716 2008-03-01  Eric Blake  <ebb9@byu.net>
59717
59718         Fix bugs in last patch.
59719         * lib/memchr2.c (memchr2): Fix typo.
59720         * tests/test-memchr2.c: Test previous bug, and don't use GNU
59721         extension.
59722         Reported by Bruce Korb.
59723
59724         New module 'memchr2'.
59725         * modules/memchr2: New file.
59726         * modules/memchr2-tests: Likewise.
59727         * lib/memchr2.h: Likewise.
59728         * lib/memchr2.c: Likewise, based on memchr.c.
59729         * tests/test-memchr2.c: New test.
59730         * MODULES.html.sh (String handling): Add memchr2.
59731
59732 2008-02-29  Bruno Haible  <bruno@clisp.org>
59733
59734         * modules/freadseek-tests: New file.
59735         * tests/test-freadseek.sh: New file.
59736         * tests/test-freadseek.c: New file.
59737
59738         New module 'freadseek'.
59739         * modules/freadseek: New file.
59740         * lib/freadseek.h: New file.
59741         * lib/freadseek.c: New file.
59742         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
59743
59744 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59745
59746         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
59747         wydawca.
59748
59749         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
59750         program_invocation_name and program_invocation_short_name are
59751         present.
59752
59753 2008-02-28  Bruno Haible  <bruno@clisp.org>
59754
59755         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
59756         * tests/test-freadptr.sh: Also test non-seekable stdin.
59757
59758 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
59759
59760         * build-aux/bootstrap (source_base, m4_base)
59761         (doc_base, tests_base): New variables.
59762         (gnulib_tool_options): Do not hardcode base directories, use
59763         the above variables instead.
59764
59765 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
59766
59767         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
59768
59769 2008-02-28  Bruno Haible  <bruno@clisp.org>
59770
59771         * modules/freadptr-tests: New file.
59772         * tests/test-freadptr.sh: New file.
59773         * tests/test-freadptr.c: New file.
59774
59775         New module 'freadptr'.
59776         * modules/freadptr: New file.
59777         * lib/freadptr.h: New file.
59778         * lib/freadptr.c: New file.
59779         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
59780
59781 2008-02-26  Karl Berry  <karl@freefriends.org>
59782
59783         Sync from Libtool:
59784         * libltdl/argz.c (argz_add, argz_count): New functions.
59785         * libltdl/argz.in.h: Declare them.
59786         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
59787
59788 2008-02-22  Bruno Haible  <bruno@clisp.org>
59789
59790         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
59791         is a pointer type.  Needed for HP-UX 10.
59792         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
59793         * doc/posix-functions/gmtime_r.texi: Likewise.
59794         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59795
59796 2008-02-24  Bruno Haible  <bruno@clisp.org>
59797
59798         * modules/environ-tests: New file.
59799         * tests/test-environ.c: New file.
59800
59801         New module 'environ'.
59802         * modules/environ: New file.
59803         * lib/unistd.in.h (environ): New declaration.
59804         * m4/environ.m4: New file.
59805         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
59806         after use.
59807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
59808         HAVE_DECL_ENVIRON.
59809         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
59810         HAVE_DECL_ENVIRON.
59811         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
59812         wrong claim that 'environ' is missing on some systems.
59813         * modules/execute (Depends-on): Add environ.
59814         * lib/execute.c (environ): Remove fallback declaration.
59815         * modules/pipe (Depends-on): Add environ.
59816         * lib/pipe.c (environ): Remove fallback declaration.
59817         * modules/setenv (Depends-on): Add environ.
59818         * lib/setenv.c (environ): Remove fallback declaration.
59819         * modules/unsetenv (Depends-on): Add environ.
59820         * lib/unsetenv.c (environ): Remove fallback declaration.
59821         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
59822         m4/environ.m4.
59823         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
59824         (gl_PREREQ_UNSETENV): Likewise.
59825
59826 2008-02-24  Bruno Haible  <bruno@clisp.org>
59827
59828         * doc/posix-functions/environ.texi: Document the MacOS X problem.
59829
59830 2008-02-20  Bob Proulx  <bob@proulx.com>
59831
59832         Enable use of older two part flavor 'git describe'.
59833         * build-aux/git-version-gen: If using the older two part flavor of
59834         git version then recreate the third part now present in the
59835         newer three part flavor of git describe.
59836
59837 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
59838
59839         * lib/fts.c (fts_build): Typo correction to comment.
59840
59841 2008-02-17  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
59844         generating no-op conflicts.
59845
59846 2008-02-17  Bruno Haible  <bruno@clisp.org>
59847
59848         Speed up by 10%.
59849         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
59850         result_entries, rather than an index-based loop.
59851
59852 2008-02-17  Bruno Haible  <bruno@clisp.org>
59853
59854         Speed up by 25%.
59855         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
59856         'hashcode_cached'.
59857         (entry_create): New function.
59858         (entry_hashcode): Use the cached hashcode if possible.
59859         (read_changelog_file, try_split_merged_entry): Use entry_create.
59860
59861 2008-02-17  Bruno Haible  <bruno@clisp.org>
59862
59863         Speed up from O(n^2) to O(n) for long ChangeLog files.
59864         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
59865         (read_changelog_file): Change implementation of entries_reversed list
59866         to rbtreehash.
59867         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
59868
59869 2008-02-17  Bruno Haible  <bruno@clisp.org>
59870
59871         New option --split-merged-entry.
59872         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
59873         (find_paragraph_end, try_split_merged_entry): New functions.
59874         (long_options): Add option --split-merged-entry.
59875         (usage): Document option --split-merged-entry.
59876         (main): Implement option --split-merged-entry.
59877         Reported by Eric Blake.
59878
59879 2008-02-17  Bruno Haible  <bruno@clisp.org>
59880
59881         * lib/git-merge-changelog.c: Include c-strstr.h.
59882         (main): Support the "git pull --rebase" situation.
59883         * modules/git-merge-changelog (Depends-on): Add c-strstr.
59884         Reported by Eric Blake.
59885
59886 2008-02-16  Eric Blake  <ebb9@byu.net>
59887
59888         Avoid doubling \ in common case of "c-maybe" quoting style.
59889         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
59890         eliding outer quotes.
59891         * lib/quotearg.h: Document this.
59892         * tests/test-quotearg.c (result_strings, inputs, results_g)
59893         (flag_results, locale_results): Test it by adding a new string to
59894         each test group.
59895         (compare_strings): Test new string.
59896
59897 2008-02-13  Eric Blake  <ebb9@byu.net>
59898
59899         Avoid trigraph quoting in default output.
59900         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
59901         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
59902         unless explicitly requested.
59903         * tests/test-quotearg.c (flag_results, main): Add additional tests.
59904
59905 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
59906
59907         Don't rely on signed integer overflowing to negative value.
59908         * lib/getugroups.c (getugroups): Include <limits.h>.
59909         Instead, compare against INT_MAX, and increment only if the test passes.
59910
59911 2008-02-13  Jim Meyering  <meyering@redhat.com>
59912         and Eric Blake  <ebb9@byu.net>
59913
59914         Avoid shadowing warning and compile errors on Linux.
59915         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
59916         forwarding macros on Linux.
59917         (dcgettext): Define a stub, for Linux.
59918         (results_g, main): Avoid warnings.
59919
59920 2008-02-12  Eric Blake  <ebb9@byu.net>
59921
59922         Silence warning in last patch.
59923         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
59924
59925         Quotearg part 4: add tests, fix c-maybe colon quoting.
59926         * lib/quotearg.h: Improve documentation.
59927         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
59928         escapes when adding outer quotes.  When quoting trigraphs, use
59929         valid C notation.  When quoting NUL, omit extra characters if next
59930         character is not digit.  Alter prototype.
59931         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
59932         callers.
59933         * modules/quotearg-tests: New module.
59934         * tests/test-quotearg.c: New test.
59935
59936 2008-02-07  Eric Blake  <ebb9@byu.net>
59937
59938         Quotearg part 3: add flag to control outer quote elision.
59939         * lib/quotearg.h (c_maybe_quoting_style): New style.
59940         (enum quoting_flags): Better documentation of flags.
59941         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
59942         c-maybe style.
59943         (quotearg_buffer_restyled): Handle new flag to elide outer
59944         quotes.
59945
59946         Quotearg part 2: add flag that can control NUL elision.
59947         * lib/quotearg.h (set_quoting_flags): New prototype.
59948         * lib/quotearg.c (struct quoting_options): Add flag field.
59949         (set_quoting_flags): New function.
59950         (quotearg_buffer_restyled): Add flags parameter.
59951         (quotearg_alloc_mem): Set the flag if length cannot be returned.
59952         (quotearg_n_options): Set the flag, since length cannot be
59953         returned.
59954         (quoting_options_from_style): Default flags correctly.
59955
59956         Quotearg part 1: more wrappers, restore quotearg_char state.
59957         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
59958         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
59959         (quotearg_colon_mem): New wrappers.
59960         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
59961         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
59962         functions.
59963         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
59964         (quotearg_colon_mem): New functions.
59965
59966 2008-02-11  Bruno Haible  <bruno@clisp.org>
59967
59968         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
59969         library in the current directory: it does not work with parallel make.
59970         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59971
59972 2008-02-11  Bruno Haible  <bruno@clisp.org>
59973
59974         * .gitattributes: New file.
59975
59976 2008-02-11  Jim Meyering  <meyering@redhat.com>
59977
59978         useless-if-before-free: Fix reversed exit values.
59979         * build-aux/useless-if-before-free: Use correct values
59980         for EXIT_MATCH and EXIT_NO_MATCH.
59981
59982         * build-aux/useless-if-before-free: Close stdout carefully.
59983
59984 2008-02-10  Bruno Haible  <bruno@clisp.org>
59985
59986         New module 'git-merge-changelog'.
59987         * modules/git-merge-changelog: New file.
59988         * lib/git-merge-changelog.c: New file.
59989
59990 2008-02-10  Jim Meyering  <meyering@redhat.com>
59991
59992         useless-if-before-free: New option: --list (-l).
59993
59994         useless-if-before-free: Don't exit immediately upon open failure.
59995         * build-aux/useless-if-before-free: Exit 2 for errors.
59996         Upon failure to open a file, don't exit immediately.
59997         Rather, just warn and continue with any remaining files.
59998
59999 2008-02-10  Bruno Haible  <bruno@clisp.org>
60000
60001         New abstract list operation 'node_set_value'.
60002         * lib/gl_list.h (gl_list_node_set_value): New function.
60003         (struct gl_list_implementation): New field node_set_value.
60004         * lib/gl_list.c (gl_list_node_set_value): New function.
60005         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60006         (gl_array_list_implementation): Update.
60007         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60008         (gl_carray_list_implementation): Update.
60009         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60010         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60011         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60012         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60013         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60014         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60015         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60016         Update.
60017         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60018         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60019         (gl_sublist_list_implementation): Update.
60020
60021 2008-02-10  Bruno Haible  <bruno@clisp.org>
60022
60023         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60024         Needed when ELEMENT is #defined to 'some_type *'.
60025
60026 2008-02-10  Jim Meyering  <meyering@redhat.com>
60027
60028         New script and module: useless-if-before-free
60029         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60030         * build-aux/useless-if-before-free: New file.
60031         * modules/useless-if-before-free: New file.
60032
60033         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60034
60035         xstrtol_error: Fix typo.
60036         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60037         s/exit_failure/exit_status/.
60038
60039 2008-02-09  Jim Meyering  <meyering@redhat.com>
60040
60041         New script and module: gitlog-to-changelog
60042         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60043         * modules/gitlog-to-changelog: New file.
60044         * build-aux/gitlog-to-changelog: New file.
60045
60046 2008-02-08  Jim Meyering  <meyering@redhat.com>
60047
60048         Avoid two "parameter unused" warnings.
60049         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60050         Mark "st" as used.
60051
60052         Use "git COMMAND", not "git-COMMAND".
60053         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60054         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60055         * build-aux/git-version-gen: Use "git status", not "git-status".
60056
60057 2008-02-07  Bruno Haible  <bruno@clisp.org>
60058
60059         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60060         Avoids a crash on Windows Vista.
60061         Reported by Adam Strzelecki <ono@java.pl> via
60062         Simon Josefsson <simon@josefsson.org>.
60063
60064 2008-02-06  Bruno Haible  <bruno@clisp.org>
60065
60066         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60067         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60068         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60069         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60070         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60071         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60072         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60073         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60076         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60078         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60080         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60081         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60082         left-adjust flag.
60083         * tests/test-snprintf-posix.h (test_function): Likewise.
60084         * tests/test-sprintf-posix.h (test_function): Likewise.
60085         * tests/test-vasprintf-posix.c (test_function): Likewise.
60086         * doc/posix-functions/fprintf.texi: Update.
60087         * doc/posix-functions/printf.texi: Update.
60088         * doc/posix-functions/snprintf.texi: Update.
60089         * doc/posix-functions/sprintf.texi: Update.
60090         * doc/posix-functions/vfprintf.texi: Update.
60091         * doc/posix-functions/vprintf.texi: Update.
60092         * doc/posix-functions/vsnprintf.texi: Update.
60093         * doc/posix-functions/vsprintf.texi: Update.
60094         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60095
60096 2008-02-06  Bruno Haible  <bruno@clisp.org>
60097
60098         Fix bug introduced on 2008-01-26.
60099         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60100
60101 2008-02-06  Bruno Haible  <bruno@clisp.org>
60102
60103         Fix bug introduced on 2007-06-10.
60104         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60105         !NEED_PRINTF_FLAG_ZERO.
60106
60107 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60108
60109         getloadavg: use libperfstat on AIX5
60110         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60111
60112 2008-02-03  Bruno Haible  <bruno@clisp.org>
60113
60114         * lib/diffseq.h: Add comments about required #includes.
60115         Reported by Michael Biggs <gnulib@doubleplum.net>.
60116
60117 2008-02-01  Bruno Haible  <bruno@clisp.org>
60118
60119         * users.txt: Add gnuit.
60120
60121 2008-01-31  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/md4.c (set_uint32): Mark as inline.
60124         * lib/md5.c (set_uint32): Likewise.
60125         * lib/sha1.c (set_uint32): Likewise.
60126         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60127         * m4/md5.m4 (gl_MD5): Likewise.
60128         * m4/sha1.m4 (gl_SHA1): Likewise.
60129
60130 2008-01-31  Jim Meyering  <meyering@redhat.com>
60131
60132         Use "sizeof VAR", rather than a literal "4".
60133         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60134         * lib/md4.c (md4_read_ctx): Likewise.
60135         * lib/sha1.c (sha1_read_ctx): Likewise.
60136
60137 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60138
60139         * tests/test-sha1.c: New file, based on test-md5.c.
60140
60141         * modules/crypto/sha1-tests: New file.
60142
60143 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60144
60145         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60146
60147 2008-01-31  Jim Meyering  <meyering@redhat.com>
60148
60149         Prefer "sizeof v" over the equivalent "4".
60150         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60151         * lib/md5.c (set_uint32): Likewise.
60152         * lib/sha1.c (set_uint32): Likewise.
60153
60154 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60155
60156         * lib/sha1.c (set_uint32): Mark function as static.
60157
60158 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60159
60160         md2: clarify comments to say that alignment is not required.
60161         * lib/md2.h: Remove warning about alignment in comment.
60162         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60163         never been required.
60164
60165 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60166
60167         md4: adapt alignment constraint fix from sha1.
60168         * lib/md4.c (set_uint32): New function, from sha1.c
60169         (md4_read_ctx): Use it.
60170         (md4_finish_ctx): Doc fix.
60171         * lib/md4.h: Doc fix.
60172
60173 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60174
60175         md5: adapt alignment constraint fix from sha1.
60176         * lib/md5.c (set_uint32): New function, from sha1.c
60177         (md5_read_ctx): Use it.
60178         (md5_finish_ctx): Doc fix.
60179         * lib/md5.h: Doc fix.
60180
60181 2008-01-30  Peter Palfrader  <weasel@debian.org>
60182
60183         sha1: remove the result buffer alignment constraint
60184         * lib/sha1.c (set_uint32): New function.
60185         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60186         constraint.
60187         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60188         * lib/sha1.h: Likewise.
60189
60190 2008-01-30  Andreas Schwab  <schwab@suse.de>
60191             Bruno Haible  <bruno@clisp.org>
60192
60193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60194         correct definition of LDBL_MIN_EXP.
60195
60196 2008-01-30  Karl Berry  <karl@gnu.org>
60197
60198         * config/srclist-update: try to preserve x bit on updates.
60199         * config/srclistvars.sh: update for karl.
60200
60201 2008-01-29  Jim Meyering  <meyering@redhat.com>
60202
60203         vasnprintf.c: Avoid warning about unused label
60204         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60205         "overflow" label definition and associated code with the
60206         same cpp condition that guards the sole use of that label.
60207
60208 2008-01-26  Bruno Haible  <bruno@clisp.org>
60209
60210         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60211         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60212         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60213         * lib/isnanl-nolibm.h (isnanl): Likewise.
60214         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60215
60216 2008-01-26  Bruno Haible  <bruno@clisp.org>
60217
60218         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60219         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60220
60221 2008-01-26  Bruno Haible  <bruno@clisp.org>
60222
60223         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60224         GCC >= 4.0 built-in.
60225         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60226
60227 2008-01-26  Bruno Haible  <bruno@clisp.org>
60228
60229         Rename isnan, applicable to 'double' only, to isnand.
60230         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60231         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60232         (configure.ac): Update.
60233         (Include): Replace "isnan.h" with "isnand.h".
60234         * m4/isnand.m4: Renamed from m4/isnan.m4.
60235         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60236         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60237         instead of isnan.c.
60238         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60239         instead of HAVE_ISNAN_IN_LIBC.
60240         (isnand): Renamed from isnan.
60241         * lib/isnand.c: New file.
60242         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60243         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60244         (Makefile.am): Update.
60245         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60246         Include isnand.h instead of isnan.h.
60247         (main): Test isnand instead of isnan.
60248         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60249         isnan-nolibm.
60250         * modules/frexp (Depends-on): Likewise.
60251         * modules/frexp-tests (Depends-on): Likewise.
60252         * modules/frexp-nolibm (Depends-on): Likewise.
60253         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60254         * modules/isfinite (Depends-on): Likewise.
60255         * modules/round-tests (Depends-on): Likewise.
60256         * modules/signbit (Depends-on): Likewise.
60257         * modules/signbit-tests (Depends-on): Likewise.
60258         * modules/snprintf-posix (Depends-on): Likewise.
60259         * modules/sprintf-posix (Depends-on): Likewise.
60260         * modules/trunc-tests (Depends-on): Likewise.
60261         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60262         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60263         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60264         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60265         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60266         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60267         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60268         * modules/vasnprintf-posix (Depends-on): Likewise.
60269         * modules/vasprintf-posix (Depends-on): Likewise.
60270         * modules/vfprintf-posix (Depends-on): Likewise.
60271         * modules/vsnprintf-posix (Depends-on): Likewise.
60272         * modules/vsprintf-posix (Depends-on): Likewise.
60273         * lib/frexp.c: Include isnand.h instead of isnan.h.
60274         (ISNAN): Set to isnand instead of isnan.
60275         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60276         (gl_isfinited): Use isnand instead of isnan.
60277         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60278         (gl_signbitd): Use isnand instead of isnan.
60279         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60280         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60281         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60282         (main): Use isnand instead of isnan.
60283         * tests/test-round1.c: Include isnand.h.
60284         (main): Use isnand instead of isnan.
60285         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60286         (ISNAN): Set to isnand instead of isnan.
60287         * tests/test-trunc1.c: Include isnand.h.
60288         (main): Use isnand instead of isnan.
60289         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60290         (equal): Use isnand instead of isnan.
60291         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60292         isnand-nolibm.
60293         * NEWS: Mention the change.
60294
60295 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60296             Bruno Haible  <bruno@clisp.org>
60297
60298         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60299         the GCC builtins for signbits are present and set
60300         REPLACE_SIGNBIT_USING_GCC if so.
60301         * lib/math.in.h (signbit): Define using GCC builtins if
60302         REPLACE_SIGNBIT_USING_GCC is set.
60303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60304         REPLACE_SIGNBIT_USING_GCC.
60305         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60306
60307 2008-01-25  Jim Meyering  <meyering@redhat.com>
60308
60309         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60310         * lib/poll.c: Include <config.h>, not "config.h".
60311         * tests/test-getaddrinfo.c: Likewise.
60312
60313 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60314
60315         * modules/sockets-tests: New file.
60316
60317 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60318
60319         * modules/sockets: New module, can be used to call WSA_Startup and
60320         WSA_Cleanup when needed.
60321
60322         * lib/sockets.h, lib/sockets.c: New files.
60323
60324         * m4/sockets.m4: New file.
60325
60326         * tests/test-sockets.c: New file.
60327
60328 2008-01-19  Bruno Haible  <bruno@clisp.org>
60329
60330         * doc/posix-headers: Renamed from doc/headers.
60331         * doc/posix-functions: Renamed from doc/functions.
60332         * doc/gnulib.texi: Update.
60333
60334 2008-01-19  Bruno Haible  <bruno@clisp.org>
60335
60336         * doc/glibc-functions/strcasestr.texi: Include contents of
60337         doc/functions/strcasestr.texi, fixing the list of platforms.
60338         * doc/functions/strcasestr.texi: Remove file.
60339
60340 2008-01-19  Bruno Haible  <bruno@clisp.org>
60341
60342         * doc/glibc-functions/memmem.texi: Include contents of
60343         doc/functions/memmem.texi.
60344         * doc/functions/memmem.texi: Remove file.
60345
60346 2008-01-18  Bruno Haible  <bruno@clisp.org>
60347
60348         * doc/glibc-functions/*.texi: New files.
60349         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60350         to use the new files.
60351
60352 2008-01-17  Bruno Haible  <bruno@clisp.org>
60353
60354         * tests/test-gethostname.c (main): Fix printf statement.
60355
60356 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60357
60358         * modules/gethostname-tests: New file.
60359
60360         * tests/test-gethostname.c: New file.
60361
60362 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60363
60364         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60365         used by the UNAME case.  Reported by Bruno Haible
60366         <bruno@clisp.org>.
60367
60368 2008-01-17  Eric Blake  <ebb9@byu.net>
60369
60370         Convert c-strcasestr to be more efficient.
60371         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60372         (Depends-on): Add c-strcase, remove malloca, strnlen.
60373         * tests/test-c-strcasestr.c (main): Enhance test.
60374         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60375
60376 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60377
60378         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60379         Use it in creating po/Makevars.
60380
60381 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60382
60383         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60384         Applications that requires it should initialize libgcrypt
60385         manually.
60386
60387 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60388
60389         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60390
60391 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60392
60393         Fix problem with getdate on mingw32 reported by Simon Josefsson
60394         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60395         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60396         tzname", when deciding whether to declare tzname.
60397         * lib/strftime.c (tzname): Likewise.
60398
60399 2008-01-15  Bruno Haible  <bruno@clisp.org>
60400
60401         Work around a MacOS X 10.5 bug in frexpl().
60402         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60403         * doc/functions/frexpl.texi: Document the bug.
60404         Reported by Elias Pipping <pipping@gentoo.org>.
60405
60406 2008-01-14  Eric Blake  <ebb9@byu.net>
60407
60408         Touch up previous patch.
60409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60410         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60411
60412         Convert strcasestr module to use Two-Way algorithm.
60413         * modules/strcasestr-simple: New module, based on the old
60414         strcasestr, but with Two-Way rather than KMP.
60415         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60416         * lib/string.in.h (rpl_strcasestr): Declare.
60417         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60418         performance.
60419         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60420         * modules/string (Makefile.am): Support strcasestr.
60421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60422         * modules/strcasestr-tests (Depends-on): Check for alarm.
60423         * tests/test-strcasestr.c: Augment test.
60424         * lib/str-two-way.h: Clean up stray macro.
60425         * NEWS: Document new module.
60426         * MODULES.html.sh (string handling): Likewise.
60427         * doc/functions/strcasestr.texi: New file.
60428         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60429         here, since it is not a POSIX function.
60430
60431 2008-01-14  Colin Watson  <cjwatson@debian.org>
60432             Bruno Haible  <bruno@clisp.org>
60433
60434         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60435         works fine; if not, set REPLACE_STRSIGNAL.
60436         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60438         REPLACE_STRSIGNAL.
60439         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60440         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60441         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60442
60443 2008-01-14  Bruno Haible  <bruno@clisp.org>
60444
60445         * modules/strsignal (Include): Change to <string.h>.
60446
60447 2008-01-14  Colin Watson  <cjwatson@debian.org>
60448
60449         * modules/argp (Notice): Add a notice recommending to change
60450         XGETTEXT_OPTIONS.
60451         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60452
60453 2008-01-13  Colin Watson  <cjwatson@debian.org>
60454
60455         * modules/strsignal-tests: New file.
60456         * tests/test-strsignal.c: New file.
60457
60458         * lib/strsignal.c: New file, from glibc with modifications.
60459         * lib/siglist.h: New file, from glibc with modifications.
60460         * lib/string.in.h (strsignal): New declaration.
60461         * m4/strsignal.m4: New file.
60462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60463         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60464         * modules/strsignal: New file.
60465         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60466         HAVE_DECL_STRSIGNAL.
60467
60468 2008-01-13  Bruno Haible  <bruno@clisp.org>
60469
60470         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60471         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60472         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60473         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60474
60475 2008-01-13  Bruno Haible  <bruno@clisp.org>
60476
60477         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60478         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60479         * lib/argp.h (__attribute__): Likewise.
60480         * lib/c-stack.c (__attribute__): Likewise.
60481         * lib/error.h (__attribute__): Likewise.
60482         * lib/fts.c (__attribute__): Likewise.
60483         * lib/openat.h (__attribute__): Likewise.
60484         * lib/stdio.in.h (__attribute__): Likewise.
60485         * lib/string.in.h (__attribute__): Likewise.
60486         * lib/utimens.c (__attribute__): Likewise.
60487         * lib/vasnprintf.h (__attribute__): Likewise.
60488         * lib/xalloc.h (__attribute__): Likewise.
60489         * lib/xprintf.h (__attribute__): Likewise.
60490         * lib/xstrtol.h (__attribute__): Likewise.
60491         * lib/xvasprintf.h (__attribute__): Likewise.
60492
60493 2008-01-12  Bruno Haible  <bruno@clisp.org>
60494
60495         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60496         * doc/glibc-headers/a.out.texi: New file.
60497         * doc/glibc-headers/aliases.texi: New file.
60498         * doc/glibc-headers/alloca.texi: New file.
60499         * doc/glibc-headers/ar.texi: New file.
60500         * doc/glibc-headers/argp.texi: New file.
60501         * doc/glibc-headers/argz.texi: New file.
60502         * doc/glibc-headers/byteswap.texi: New file.
60503         * doc/glibc-headers/crypt.texi: New file.
60504         * doc/glibc-headers/endian.texi: New file.
60505         * doc/glibc-headers/envz.texi: New file.
60506         * doc/glibc-headers/err.texi: New file.
60507         * doc/glibc-headers/error.texi: New file.
60508         * doc/glibc-headers/execinfo.texi: New file.
60509         * doc/glibc-headers/fpu_control.texi: New file.
60510         * doc/glibc-headers/fstab.texi: New file.
60511         * doc/glibc-headers/fts.texi: New file.
60512         * doc/glibc-headers/getopt.texi: New file.
60513         * doc/glibc-headers/ieee754.texi: New file.
60514         * doc/glibc-headers/ifaddrs.texi: New file.
60515         * doc/glibc-headers/libintl.texi: New file.
60516         * doc/glibc-headers/mcheck.texi: New file.
60517         * doc/glibc-headers/mntent.texi: New file.
60518         * doc/glibc-headers/obstack.texi: New file.
60519         * doc/glibc-headers/paths.texi: New file.
60520         * doc/glibc-headers/printf.texi: New file.
60521         * doc/glibc-headers/pty.texi: New file.
60522         * doc/glibc-headers/resolv.texi: New file.
60523         * doc/glibc-headers/shadow.texi: New file.
60524         * doc/glibc-headers/sysexits.texi: New file.
60525         * doc/glibc-headers/ttyent.texi: New file.
60526
60527 2008-01-12  Jim Meyering  <meyering@redhat.com>
60528
60529         announce-gen: emit Gnulib's git-based version string.
60530         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
60531         New option --gnulib-version=V, where V is expected to be
60532         the output of running git describe in the gnulib directory.
60533         (get_tool_versions): Request feedback on xdelta.  I suspect it's
60534         not useful, and plan to stop publishing an xdelta file with each
60535         coreutils release.
60536
60537         * build-aux/announce-gen: Also check for lzma-compressed files.
60538
60539 2008-01-11  Bruno Haible  <bruno@clisp.org>
60540
60541         * tests/test-memmem.c (main): Increase maximum allowed time.
60542         * tests/test-strstr.c (main): Likewise.
60543
60544 2008-01-11  Bruno Haible  <bruno@clisp.org>
60545
60546         * doc/functions/memmem.texi: Add more precisions about platforms.
60547         * doc/functions/strstr.texi: Likewise.
60548
60549 2008-01-10  Eric Blake  <ebb9@byu.net>
60550
60551         * m4/strstr.m4: Delete cruft from copy-n-paste.
60552         Reported by Bruno Haible.
60553
60554 2008-01-10  Bruno Haible  <bruno@clisp.org>
60555
60556         Make c-strstr rely on strstr.
60557         * lib/c-strstr.c: Don't include str-kmp.h.
60558         (c_strstr): Define in terms of strstr.
60559         * modules/c-strstr (Files): Remove lib/str-kmp.h.
60560         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
60561
60562 2008-01-10  Bruno Haible  <bruno@clisp.org>
60563
60564         * doc/gnulib.texi (String Functions in C Locale): New section.
60565         * doc/c-ctype.texi: New file.
60566         * doc/c-strcase.texi: New file.
60567         * doc/c-strcaseeq.texi: New file.
60568         * doc/c-strcasestr.texi: New file.
60569         * doc/c-strstr.texi: New file.
60570         * doc/c-strtod.texi: New file.
60571         * doc/c-strtold.texi: New file.
60572
60573 2008-01-10  Eric Blake  <ebb9@byu.net>
60574
60575         * lib/relocatable.h: Fix a comment.
60576
60577 2008-01-10  Eric Blake  <ebb9@byu.net>
60578
60579         Share two-way algorithm.
60580         * lib/str-two-way.h: New file, merged from...
60581         * lib/memmem.c: ...here...
60582         * lib/strstr.c: ...and here.
60583         * modules/memmem (Files): Use it.
60584         * modules/strstr (Files): Likewise.
60585
60586         Avoid quadratic strstr implementations.
60587         * lib/strstr.c: New file.
60588         * m4/strstr.m4: Likewise.
60589         * modules/strstr: Likewise.
60590         * modules/strstr-tests: Likewise.
60591         * tests/test-strstr.c: Likewise.
60592         * lib/string.in.h (rpl_strstr): Declare.
60593         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
60594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
60595         * modules/string (Makefile.am): Likewise.
60596         * MODULES.html.sh (string handling): Mention new module.
60597         * doc/functions/strstr.texi (strstr): Document the bug.
60598
60599 2008-01-10  Bruno Haible  <bruno@clisp.org>
60600
60601         * lib/relocatable.h (relocate): State whether result is freshly
60602         allocated or not.
60603         * lib/relocatable.c (relocate): Return a freshly allocated string
60604         instead of a pointer to a privately held string.
60605         Reported by Sylvain Beucler <beuc@gnu.org>.
60606
60607 2008-01-10  Colin Watson  <cjwatson@debian.org>
60608
60609         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
60610         s/S_ISNLK/S_ISLNK/.
60611
60612 2008-01-09  Bruno Haible  <bruno@clisp.org>
60613
60614         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
60615         and other files.
60616         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
60617         if it's only a guess.
60618         * modules/memmem: Simplify by depending on memmem-simple.
60619
60620 2008-01-09  Bruno Haible  <bruno@clisp.org>
60621
60622         Work around OpenBSD 4.0 tdelete() bug.
60623         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
60624         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
60625         macros and don't redefine the enum values.
60626         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
60627         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
60628         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
60629
60630 2008-01-09  Bruno Haible  <bruno@clisp.org>
60631
60632         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
60633         (main): Don't perform the tests if setlocale did not install a UTF-8
60634         locale. Needed on OpenBSD 4.0.
60635         * modules/wcwidth-tests (Depends-on): Add localcharset.
60636
60637 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60638
60639         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
60640         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
60641         * NEWS: announce this.
60642         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
60643
60644 2008-01-09  Simon Josefsson  <simon@josefsson.org>
60645         and Eric Blake  <ebb9@byu.net>
60646
60647         Add memmem-simple module.
60648         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
60649         (gl_FUNC_MEMMEM): Separate performance from presence checks.
60650         * modules/memmem-simple: New file.
60651         * modules/memmem (Description): Tweak.
60652         * MODULES.html.sh (string handling): Mention new module.
60653         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
60654         addressed by memmem-simple.
60655         * NEWS: Document the difference.
60656
60657 2008-01-09  Eric Blake  <ebb9@byu.net>
60658
60659         Give gcc some memmem optimization hints.
60660         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
60661         (strcasestr): Declare as pure.
60662         * modules/memmem (Maintainer): Claim my implementation.
60663
60664 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60665
60666         Support AIX 6.1 and higher.
60667         * build-aux/config.libpath: Likewise.
60668         * build-aux/config.rpath: Likewise.
60669
60670 2008-01-08  Jim Meyering  <meyering@redhat.com>
60671             Bruno Haible  <bruno@clisp.org>
60672
60673         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
60674         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
60675         Reported by Peter Fales in
60676         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
60677
60678 2008-01-08  Bruno Haible  <bruno@clisp.org>
60679
60680         * modules/unictype/category-of (Depends-on): Add
60681         unictype/category-none.
60682         * modules/unictype/category-and-tests (Depends-on): Add
60683         unictype/category-{L,N,Lu,Nd}.
60684         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
60685         * modules/unictype/category-or-tests (Depends-on): Add
60686         unictype/category-{L,N}.
60687         * modules/unictype/category-name-tests (Depends-on): Add
60688         unictype/category-{Z,Nl}.
60689         Reported by Simon Josefsson.
60690
60691 2008-01-08  Bruno Haible  <bruno@clisp.org>
60692
60693         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
60694         convention better.
60695         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
60696         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
60697         Reported by Peter Miller <millerp@canb.auug.org.au>.
60698
60699 2008-01-08  Eric Blake  <ebb9@byu.net>
60700
60701         Rewrite memmem to guarantee linear complexity without malloc.
60702         * lib/memmem.c (memmem): Use Two-Way rather than
60703         Knuth-Morris-Pratt, to allow O(1) space usage.
60704         (critical_factorization, two_way_short_needle)
60705         (two_way_long_needle): New functions.
60706         (knuth_morris_pratt): Delete.
60707         * modules/memmem (Depends-on): No longer need malloca or stdbool.
60708         Add stdint.
60709         * tests/test-memmem.c (main): Add tests for periodic needle and
60710         sublinear performance.
60711         * doc/functions/memmem.texi (memmem): Document other deficiencies
60712         in cygwin and older glibc.
60713
60714 2008-01-08  Bruno Haible  <bruno@clisp.org>
60715
60716         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
60717         augmentation.
60718
60719 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
60720
60721         Add a configure time option: --disable-acl.
60722         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
60723         AC_ARG_ENABLE(acl).
60724
60725 2008-01-06  Simon Josefsson  <simon@josefsson.org>
60726
60727         * tests/test-localename.c: Don't include obsolete "setenv.h".
60728
60729         * modules/localename-tests (Depends-on): Need unsetenv.
60730
60731 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60732
60733         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
60734
60735 2008-01-06  Colin Watson  <cjwatson@debian.org>
60736
60737         * users.txt: Add man-db.
60738
60739 2008-01-07  Bruno Haible  <bruno@clisp.org>
60740
60741         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
60742         previous section name.
60743
60744 2008-01-07  Bruno Haible  <bruno@clisp.org>
60745
60746         * lib/progname.c (set_program_name): Don't strip off a leading
60747         "lt-" prefix outside a .libs directory.
60748         Suggested by Paul Eggert.
60749
60750 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
60751             Bruno Haible  <bruno@clisp.org>
60752
60753         Improve memory cleanup in 'relocatable' module.
60754         * lib/relocatable.h (compute_curr_prefix): Change return type to
60755         'char *'.
60756         * lib/relocatable.c (compute_curr_prefix): Change return type to
60757         'char *'. Free curr_installdir after use.
60758         (relocate): Free curr_prefix_better after use.
60759         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
60760
60761 2008-01-01  Bruno Haible  <bruno@clisp.org>
60762
60763         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
60764         failure on older glibc systems.
60765         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60766
60767 2008-01-05  Eric Blake  <ebb9@byu.net>
60768
60769         Avoid quadratic system memmem.
60770         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
60771         Reported by Ralf Wildenhues.
60772
60773         Fix memmem test for mingw.
60774         * modules/memmem-tests (configure.ac): Check for alarm.
60775         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
60776         it.
60777         * doc/functions/memmem.texi: New file.
60778         * doc/gnulib.texi (Function Substitutes): Add memmem.
60779         Reported by Bruno Haible.
60780
60781 2008-01-04  Bruno Haible  <bruno@clisp.org>
60782
60783         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
60784         Require gl_HEADER_STRINGS_H_DEFAULTS, not
60785         gl_HEADER_STRING_H_DEFAULTS.
60786
60787 2008-01-04  Eric Blake  <ebb9@byu.net>
60788
60789         Shorten duration of memmem test.
60790         * tests/test-memmem.c (main): Use alarm to declare failure if test
60791         is taking too long.
60792         Reported by Ralf Wildenhues.
60793
60794 2007-12-21  Simon Josefsson  <simon@josefsson.org>
60795
60796         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
60797         string, needed by strerror.
60798
60799 2008-01-03  Colin Watson  <cjwatson@debian.org>
60800             Bruno Haible  <bruno@clisp.org>
60801
60802         * doc/gnulib-tool.texi (Localization): New section.
60803
60804 2008-01-02  Bruno Haible  <bruno@clisp.org>
60805
60806         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
60807         variables to 'unsigned char *' type.
60808         Reported by Paul Eggert.
60809
60810 2008-01-02  Jim Meyering  <jim@meyering.net>
60811
60812         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
60813
60814 2007-12-31  Jim Meyering  <jim@meyering.net>
60815
60816         Avoid use of private FTS type name.
60817         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
60818
60819 2007-12-30  Karl Berry  <karl@gnu.org>
60820
60821         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
60822         work around defect in Texinfo and/or the standalone Info browser.
60823
60824 2007-12-30  Bruno Haible  <bruno@clisp.org>
60825
60826         Unify 5 copies of the KMP code.
60827         * lib/str-kmp.h: New file.
60828         * lib/c-strcasestr.c: Include str-kmp.h.
60829         (knuth_morris_pratt): Remove function.
60830         (c_strcasestr): Update.
60831         * lib/c-strstr.c: Include str-kmp.h.
60832         (knuth_morris_pratt): Remove function.
60833         (c_strcasestr): Update.
60834         * lib/mbscasestr.c: Include str-kmp.h.
60835         (knuth_morris_pratt_unibyte): Remove function.
60836         * lib/mbsstr.c: Include str-kmp.h.
60837         (knuth_morris_pratt_unibyte): Remove function.
60838         * lib/strcasestr.c: Include str-kmp.h.
60839         (knuth_morris_pratt): Remove function.
60840         (strcasestr): Update.
60841         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
60842         * modules/c-strstr (Files): Likewise.
60843         * modules/mbscasestr (Files): Likewise.
60844         * modules/mbsstr (Files): Likewise.
60845         * modules/strcasestr (Files): Likewise.
60846         Suggested by Paul Eggert.
60847
60848 2007-12-30  Bruno Haible  <bruno@clisp.org>
60849
60850         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
60851         defined.
60852
60853 2007-12-30  Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/xmalloca.h: Include xalloc.h.
60856         (xnmalloca): New macro.
60857
60858 2007-12-30  Bruno Haible  <bruno@clisp.org>
60859
60860         * lib/malloca.h (nmalloca): New macro.
60861         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
60862         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
60863         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
60864         knuth_morris_pratt_multibyte): Likewise.
60865         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
60866         knuth_morris_pratt_multibyte): Likewise.
60867         * lib/memmem.c (knuth_morris_pratt): Likewise.
60868         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
60869
60870 2007-12-25  Bruno Haible  <bruno@clisp.org>
60871
60872         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
60873         * lib/glob.c: Don't include openat.h.
60874         (link_exists2_p): Add back the code that deals with the
60875         !GLOB_ALTDIRFUNC case.
60876         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
60877         let it do the filename concatenation.
60878         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
60879         * modules/glob (Depends-on): Remove openat.
60880
60881 2007-12-31  Bruno Haible  <bruno@clisp.org>
60882
60883         * modules/dirfd (License): Change to LGPLv2+.
60884         Approved by Jim Meyering.
60885
60886 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60887
60888         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
60889         when multiplying M by sizeof (size_t).
60890
60891 2007-12-10  Martin Lambers  <marlam@marlam.de>
60892
60893         Override getpagesize on mingw.
60894         * lib/getpagesize.c: New file.
60895         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
60896         * modules/getpagesize (Files): Add lib/getpagesize.c.
60897         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
60898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60899         REPLACE_GETPAGESIZE.
60900         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
60901
60902 2007-12-25  Bruno Haible  <bruno@clisp.org>
60903
60904         * modules/localcharset (Notice): New field.
60905         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
60906         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
60907
60908 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60909             Bruno Haible  <bruno@clisp.org>
60910
60911         Avoid using the syntax symbol() in formatted documentation.
60912         * MODULES.html.sh (func_module): When replacing symbol() with a
60913         hyperlink, remove the parentheses. Show an error if some remain.
60914         Recognize and render the '...' syntax.
60915         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
60916         Rework. Add paragraph about GCC's inlining.
60917         * doc/alloca.texi: Likewise.
60918         * doc/error.texi: Remove parentheses from symbol reference.
60919         * doc/gnulib-intro.texi: Likewise.
60920         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
60921         * modules/fnmatch (Description): Reword to say "the ... function".
60922         * modules/full-read (Description): Likewise.
60923         * modules/full-write (Description): Likewise.
60924         * modules/safe-read (Description): Likewise.
60925         * modules/safe-write (Description): Likewise.
60926         * modules/strchrnul (Description): Likewise.
60927         * modules/trim (Description): Likewise.
60928         * modules/error (Description): Remove parentheses from symbol
60929         references.
60930         * modules/verror (Description): Likewise.
60931         Reported by Karl Berry.
60932
60933 2007-12-25  Bruno Haible  <bruno@clisp.org>
60934
60935         Fixup after 2007-10-16 commit.
60936         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
60937
60938 2007-12-24  Bruno Haible  <bruno@clisp.org>
60939
60940         Make --enable-relocatable work with DESTDIR.
60941         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
60942         to compute installdir from destprog.
60943         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
60944         also set the RELOC_DESTDIR variable.
60945         Reported by Левашев Иван <octagram@bluebottle.com>.
60946
60947 2007-12-24  Bruno Haible  <bruno@clisp.org>
60948
60949         Fix link error due to xalloc_die().
60950         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
60951         of xreadlink.
60952         * lib/relocwrapper.c: Update comments.
60953         * build-aux/install-reloc: Remove xreadlink.c from file list.
60954         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
60955         xreadlink.c.
60956         Reported by Левашев Иван <octagram@bluebottle.com>.
60957
60958 2007-12-24  Bruno Haible  <bruno@clisp.org>
60959
60960         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
60961         * lib/setenv.h: Remove file.
60962         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
60963         lib/setenv.h.
60964         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
60965         (Depends-on): Add stdlib.
60966         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
60967         gl_FUNC_UNSETENV.
60968         (Include): Replace setenv.h with <stdlib.h>.
60969         * modules/unsetenv: New file.
60970         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
60971         * lib/unsetenv.c: Include <stdlib.h> first.
60972         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
60973         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
60974         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
60975         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
60976         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
60977         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
60979         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60980         * doc/functions/unsetenv.texi: Update.
60981         * modules/xsetenv (Depends-on): Add unsetenv.
60982         * modules/getdate (Depends-on): Likewise.
60983         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
60984         * lib/xsetenv.c: Don't include setenv.h.
60985         * lib/getdate.y: Likewise.
60986         * lib/relocwrapper.c: Likewise.
60987         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
60988         (Depends-on): Add stdlib.
60989         * NEWS: Mention the changes.
60990         Reported by Левашев Иван <octagram@bluebottle.com>.
60991
60992 2007-12-23  Bruno Haible  <bruno@clisp.org>
60993
60994         * lib/memmem.c (memmem): Use lowercase variable names. Tab
60995         indentation.
60996
60997 2007-12-23  Bruno Haible  <bruno@clisp.org>
60998
60999         * lib/c-strcasestr.c: Add more comments.
61000         * lib/c-strstr.c: Likewise.
61001         * lib/mbscasestr.c: Likewise.
61002         * lib/mbsstr.c: Likewise.
61003         * lib/strcasestr.c: Likewise.
61004         * lib/memmem.c: Likewise.
61005
61006 2007-12-23  Bruno Haible  <bruno@clisp.org>
61007
61008         * tests/test-memmem.c: Include <string.h> first.
61009
61010 2007-12-22  Bruno Haible  <bruno@clisp.org>
61011
61012         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61013         the contents of $testsbase.
61014         Reported by Ralf Wildenhues.
61015
61016 2007-12-22  Bruno Haible  <bruno@clisp.org>
61017
61018         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61019         two variables local_ldadd_before, local_ldadd_last.
61020
61021 2007-12-20  Eric Blake  <ebb9@byu.net>
61022
61023         Work around circular library issue when cross-compiling.
61024         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61025         that progname.o does not need to pull in rpl_memcmp.
61026
61027 2007-12-19  Eric Blake  <ebb9@byu.net>
61028
61029         Fix memmem to avoid O(n^2) worst-case complexity.
61030         * lib/memmem.c (knuth_morris_pratt): New function.
61031         (memmem): Use it if first few naive iterations fail.
61032         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61033         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61034         * modules/memchr (License): Likewise.
61035         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61036         malloca.
61037         * tests/test-memmem.c: Rewrite, borrowing ideas from
61038         test-mbsstr1.c; the old version wouldn't even compile!
61039         * modules/memmem-tests: New file.
61040         * lib/string.in.h (rpl_memmem): Add declaration.
61041         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61043         REPLACE_MEMMEM.
61044
61045 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61046
61047         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61048         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61049         before any system include files, and undef after them all.  This
61050         should fix a problem on VMS reported by John E. Malmberg in
61051         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61052
61053 2007-12-17  Eric Blake  <ebb9@byu.net>
61054
61055         Revert addition of verify, for BSD/OS.
61056         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61057         can't handle large files, for the sake of obsolete platforms.
61058         * modules/fseeko (Depends-on): Remove verify.
61059         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61060         * doc/functions/ftello.texi (ftello): Likewise.
61061         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61062         Reported by Larry Jones.
61063
61064 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61065
61066         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61067         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61068
61069 2007-12-17  Jim Meyering  <meyering@redhat.com>
61070
61071         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61072         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61073         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61074         * modules/getcwd (Depends-on): Add openat.
61075         Reported by Petr Salinger.
61076
61077 2007-12-17  Bruno Haible  <bruno@clisp.org>
61078
61079         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61080         avoid a segmentation fault of the configure test on x86_64 systems.
61081
61082 2007-12-15  Jim Meyering  <meyering@redhat.com>
61083
61084         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61085
61086 2007-12-13  Eric Blake  <ebb9@byu.net>
61087
61088         Another fseek test.
61089         * tests/test-fseek.c (main): Also test ungetc handling.
61090         * tests/test-fseeko.c (main): Likewise.
61091         * modules/fseeko (Depends-on): Add verify.
61092         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61093         large.
61094         Reported by Larry Jones.
61095
61096         Fix fseeko on mingw.
61097         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61098         seek.
61099
61100         Beef up fseek tests.
61101         * tests/test-fseek.c (main): Also test eof handling.
61102         * tests/test-fseeko.c (main): Likewise.
61103         Reported by Larry Jones.
61104
61105 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61106
61107         Fix fseeko on BSD-based platforms.
61108         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61109         successful seek.
61110
61111 2007-12-12  Eric Blake  <ebb9@byu.net>
61112
61113         Allow circular dependency of separate libtests.a
61114         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61115         when use_libtests.
61116
61117 2007-12-11  Eric Blake  <ebb9@byu.net>
61118
61119         Fix bug with -0.0L in previous patch.
61120         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61121         * tests/test-isnan.c (main): Also test on zeroes.
61122         * tests/test-isnanf.c (main): Likewise.
61123         * tests/test-isnanl.h (main): Likewise.
61124
61125         Detect pseudo-denormals on x86 even when cross-compiling.
61126         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61127         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61128         invalid bit patterns that happen to satisfy ==.
61129
61130         Avoid link failures with separate libtests.a.
61131         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61132         last, to satisfy circular dependencies.
61133
61134 2007-12-11  Eric Blake  <ebb9@byu.net>
61135         and Bruno Haible  <bruno@clisp.org>
61136
61137         Fix OpenBSD 4.0 <float.h> handling of long double.
61138         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61139         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61140         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61141
61142 2007-12-11  Jim Meyering  <meyering@redhat.com>
61143
61144         * users.txt: Add libvirt.
61145
61146         Support versions of autoconf prior to 2.59c.
61147         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61148         if it is not already defined.
61149
61150 2007-12-09  Bruno Haible  <bruno@clisp.org>
61151
61152         Let 'gnulib-tool --import' collect sources needed for the tests in
61153         tests/ rather than in lib/.
61154         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61155         argument. If true, add rules to generate libtests.a, and put libtests.a
61156         into $(LDADD). Consider source files in subdirectories and set
61157         uses_subdirs.
61158         (func_emit_initmacro_start, func_emit_initmacro_end,
61159         func_emit_initmacro_done): Pass all arguments explicitly.
61160         (func_import): Determine two module lists main_modules,
61161         testsrelated_modules. Determine use_libtests. Determine two variables
61162         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61163         instead of just sed_transform_lib_file. Determine two variables
61164         main_files and testsrelated_files. Compute 'files' as the union of
61165         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61166         func_add_or_update. In the generated gnulib-comp.m4, collect the
61167         object files for tests/ in different variables than those for lib/.
61168         Substitute LIBTESTS_LIBDEPS.
61169         (func_create_testdir): Combine the uses_subdirs results from
61170         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61171
61172 2007-12-09  Bruno Haible  <bruno@clisp.org>
61173
61174         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61175         the build-aux directory.
61176
61177 2007-12-09  Bruno Haible  <bruno@clisp.org>
61178
61179         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61180         introduced on 2006-09-09.
61181
61182 2007-12-07  Jim Meyering  <meyering@redhat.com>
61183
61184         Let these macros work also with autoconf-2.59.
61185         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61186         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61187         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61188
61189 2007-12-06  Jim Meyering  <meyering@redhat.com>
61190
61191         Avoid a configure-time syntax error in gl_FUNC_ACL.
61192         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61193         function in each branch, before testing the cache variable.
61194
61195 2007-12-04  Eric Blake  <ebb9@byu.net>
61196
61197         Make scripts executable.
61198         * build-aux/config.guess: Add execute permissions.
61199         * build-aux/config.sub: Likewise.
61200         * build-aux/gendocs.sh: Likewise.
61201
61202         Fix frexp on mingw.
61203         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61204         cross-compiling.
61205         * doc/functions/frexp.texi (frexp): Document the bug.
61206
61207         Make cygwin fseeko check more reliable.
61208         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61209         version numbers, rather than unrelated feature check.
61210         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61211         * doc/functions/ftello.texi (ftello): Likewise.
61212         Reported by Bruno Haible.
61213
61214         * m4/strerror.m4: Bump version number.
61215
61216 2007-12-03  Bruno Haible  <bruno@clisp.org>
61217
61218         * doc/functions/mprotect.texi: Mention the mingw problem.
61219
61220 2007-12-03  Eric Blake  <ebb9@byu.net>
61221
61222         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61223         REPLACE_STRERROR is initialized before this macro.
61224
61225 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61226
61227         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61228         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61229         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61230         put -lsec in even for programs other than 'ls'.  This fixes a problem
61231         for gettext reported by Bruno Haible in
61232         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61233         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61234         Add support for Solaris 10.  This isn't efficient, but should get the
61235         job done for now.
61236
61237 2007-12-03  James Youngman  <jay@gnu.org>
61238
61239         * doc/regexprops-generic.texi: change "an close-group" to "a
61240         close-group" and "illegal" to "not allowed".
61241
61242 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61243
61244         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61245         pr_byname.h. Needed for the rare case when the maintainer has done
61246         "make maintainer-clean" in the source directory and then attempts a
61247         build outside the source directory.
61248         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61249         scripts_byname.h.
61250
61251 2007-12-02  Martin Lambers <marlam@marlam.de>
61252             Bruno Haible  <bruno@clisp.org>
61253
61254         * lib/getpagesize.h: Remove file.
61255         * lib/unistd.in.h: Include declaration of getpagesize here.
61256         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61257         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61258         HAVE_SYS_PARAM_H.
61259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61260         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61261         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61262         (Depends-on): Add unistd.
61263         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61264         (Include): Use <unistd.h> instead of getpagesize.h.
61265         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61266         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61267         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61268         gl_GETPAGESIZE invocation, already handled by module dependency.
61269         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61270
61271 2007-12-02  Bruno Haible  <bruno@clisp.org>
61272
61273         * modules/strings-tests: New file.
61274         * tests/test-strings.c: New file.
61275
61276         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61277         * lib/strings.in.h: New file.
61278         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61279         * m4/strings_h.m4: New file.
61280         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61281         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61282         * modules/strings: New file.
61283         * modules/string (Makefile.am): Update.
61284         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61285         Reported by Karl Berry.
61286
61287 2007-12-01  Eric Blake  <ebb9@byu.net>
61288
61289         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61290         accommodate fix in cygwin 1.5.25.
61291
61292 2007-12-01  Jim Meyering  <meyering@redhat.com>
61293
61294         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61295         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61296         that would inhibit utf8-optimization of a regexp containing line-
61297         or buffer-anchors, e.g., `^', `$'.
61298
61299 2007-11-30  Bruno Haible  <bruno@clisp.org>
61300
61301         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61302         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61303         glthread_recursive_lock_init.
61304         * lib/lock.c (glthread_recursive_lock_init)
61305         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61306         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61307
61308 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61309
61310         New function qset_acl, like set_acl but with syscall semantics.
61311         * lib/acl.h (qset_acl): New decl.
61312         * lib/acl.c (qset_acl): New function.
61313         (set_acl): Use new function.  Use more-consistent diagnostics.
61314
61315 2007-11-28  Jim Meyering  <meyering@redhat.com>
61316
61317         * modules/physmem (License): Change from GPL to LGPLv2+.
61318
61319 2007-11-26  Bruno Haible  <bruno@clisp.org>
61320
61321         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61322         'long double' type has excess precision.
61323         Reported by Jim Meyering in
61324         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61325
61326 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61327
61328         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61329         Sync from <http://gnu.org/licenses>.
61330         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61331         with license text from same location.
61332         * doc/maintain.texi, doc/standards.texi:  Sync from
61333         <http://savannah.gnu.org/projects/gnustandards>.
61334
61335 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
61336         and Jim Meyering  <meyering@redhat.com>
61337
61338         Adjust getdate' grammar to accept a slightly more regular language.
61339         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61340         Before, the former was rejected.
61341         * lib/getdate.y (digits_to_date_time): New function, factored
61342         out of ...
61343         (number): ...here.  Just call digits_to_date_time.
61344         (hybrid): New non-terminal to handle an <unsigned number,
61345         signed relative offset> sequence consistently.
61346
61347 2007-11-18  Jim Meyering  <meyering@redhat.com>
61348
61349         Pull my changes from coreutils:
61350         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61351         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61352         use of $gnulib_tool_option_extras, so that it's separated from the
61353         preceding argument.
61354
61355         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61356         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61357         parent destination directories before copying a file into place.
61358
61359 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61360
61361         bootstrap: work also with 4-argument variant of AC_INIT
61362         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61363
61364 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61365
61366         Port test-getaddrinfo to Solaris.
61367         Problem reported by Bruno Haible in
61368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61369         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61370         explanation of setting 'hints'.
61371         Don't reject an implementation merely because it returns EAI_SERVICE.
61372         (EAI_SERVICE): Define to 0 if not defined.
61373
61374 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61375
61376         The license of gnu-make and posix-shell is now "GPLed build tool".
61377         * modules/gnu-make (License): Likewise.
61378         * modules/posix-shell (License): Likewise.
61379
61380         New module posix-shell, for determining a POSIX shell
61381         or perhaps something that is close enough to a POSIX shell.
61382         * m4/posix-shell.m4: New file.
61383         * modules/posix-shell: New file.
61384
61385         * MODULES.html.sh: Mention new module.
61386
61387         New module gnu-make, for determining whether we're using GNU Make.
61388         * m4/gnu-make.m4: New file.
61389         * modules/gnu-make: New file.
61390         * MODULES.html.sh: Mention new module.
61391
61392 2007-11-14  Jim Meyering  <meyering@redhat.com>
61393
61394         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61395         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61396         use this macro to create a function _definition_.
61397         Remove useless "#undef ARGMATCH_DIE".
61398
61399 2007-11-14  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/config.charset: Update for OpenBSD 4.1.
61402         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61403
61404 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61405
61406         Document 64-bit #if problems in stdint.texi.
61407         * doc/headers/stdint.texi (stdint.h): Mention problems with
61408         64-bit-#if, and how to work around them.
61409
61410         Don't insist on 'long long int' support in the preprocessor.  It
61411         breaks too many things.  For example, PRIdMAX still uses a 'long
61412         long int' format with the latest Sun compiler, even though
61413         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61414         preprocessor problem.  This causes the latest coreutils to dump
61415         core on Solaris 10 sparc with the Sun C compiler.
61416         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61417         the troublesome expressions at configure-time, not at #if-time.
61418         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61419         preprocessor.
61420         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61421         compile-time C checks, done at 'configure'-time.
61422         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61423         * modules/inttypes (Makefile): Substitute the new symbols that
61424         gl_INTTYPES_H now generates.
61425         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61426
61427 2007-11-12  Bruno Haible  <bruno@clisp.org>
61428
61429         Tests for Unicode character classification functions.
61430
61431         * modules/unictype/bidicategory-byname-tests: New file.
61432         * modules/unictype/bidicategory-name-tests: New file.
61433         * modules/unictype/bidicategory-of-tests: New file.
61434         * modules/unictype/bidicategory-test-tests: New file.
61435         * modules/unictype/block-list-tests: New file.
61436         * modules/unictype/block-of-tests: New file.
61437         * modules/unictype/block-test-tests: New file.
61438         * modules/unictype/category-C-tests: New file.
61439         * modules/unictype/category-Cc-tests: New file.
61440         * modules/unictype/category-Cf-tests: New file.
61441         * modules/unictype/category-Cn-tests: New file.
61442         * modules/unictype/category-Co-tests: New file.
61443         * modules/unictype/category-Cs-tests: New file.
61444         * modules/unictype/category-L-tests: New file.
61445         * modules/unictype/category-Ll-tests: New file.
61446         * modules/unictype/category-Lm-tests: New file.
61447         * modules/unictype/category-Lo-tests: New file.
61448         * modules/unictype/category-Lt-tests: New file.
61449         * modules/unictype/category-Lu-tests: New file.
61450         * modules/unictype/category-M-tests: New file.
61451         * modules/unictype/category-Mc-tests: New file.
61452         * modules/unictype/category-Me-tests: New file.
61453         * modules/unictype/category-Mn-tests: New file.
61454         * modules/unictype/category-N-tests: New file.
61455         * modules/unictype/category-Nd-tests: New file.
61456         * modules/unictype/category-Nl-tests: New file.
61457         * modules/unictype/category-No-tests: New file.
61458         * modules/unictype/category-P-tests: New file.
61459         * modules/unictype/category-Pc-tests: New file.
61460         * modules/unictype/category-Pd-tests: New file.
61461         * modules/unictype/category-Pe-tests: New file.
61462         * modules/unictype/category-Pf-tests: New file.
61463         * modules/unictype/category-Pi-tests: New file.
61464         * modules/unictype/category-Po-tests: New file.
61465         * modules/unictype/category-Ps-tests: New file.
61466         * modules/unictype/category-S-tests: New file.
61467         * modules/unictype/category-Sc-tests: New file.
61468         * modules/unictype/category-Sk-tests: New file.
61469         * modules/unictype/category-Sm-tests: New file.
61470         * modules/unictype/category-So-tests: New file.
61471         * modules/unictype/category-Z-tests: New file.
61472         * modules/unictype/category-Zl-tests: New file.
61473         * modules/unictype/category-Zp-tests: New file.
61474         * modules/unictype/category-Zs-tests: New file.
61475         * modules/unictype/category-and-not-tests: New file.
61476         * modules/unictype/category-and-tests: New file.
61477         * modules/unictype/category-byname-tests: New file.
61478         * modules/unictype/category-name-tests: New file.
61479         * modules/unictype/category-none-tests: New file.
61480         * modules/unictype/category-of-tests: New file.
61481         * modules/unictype/category-or-tests: New file.
61482         * modules/unictype/category-test-withtable-tests: New file.
61483         * modules/unictype/combining-class-tests: New file.
61484         * modules/unictype/ctype-alnum-tests: New file.
61485         * modules/unictype/ctype-alpha-tests: New file.
61486         * modules/unictype/ctype-blank-tests: New file.
61487         * modules/unictype/ctype-cntrl-tests: New file.
61488         * modules/unictype/ctype-digit-tests: New file.
61489         * modules/unictype/ctype-graph-tests: New file.
61490         * modules/unictype/ctype-lower-tests: New file.
61491         * modules/unictype/ctype-print-tests: New file.
61492         * modules/unictype/ctype-punct-tests: New file.
61493         * modules/unictype/ctype-space-tests: New file.
61494         * modules/unictype/ctype-upper-tests: New file.
61495         * modules/unictype/ctype-xdigit-tests: New file.
61496         * modules/unictype/decimal-digit-tests: New file.
61497         * modules/unictype/digit-tests: New file.
61498         * modules/unictype/mirror-tests: New file.
61499         * modules/unictype/numeric-tests: New file.
61500         * modules/unictype/property-alphabetic-tests: New file.
61501         * modules/unictype/property-ascii-hex-digit-tests: New file.
61502         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61503         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61504         * modules/unictype/property-bidi-block-separator-tests: New file.
61505         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61506         * modules/unictype/property-bidi-common-separator-tests: New file.
61507         * modules/unictype/property-bidi-control-tests: New file.
61508         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61509         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61510         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61511         * modules/unictype/property-bidi-european-digit-tests: New file.
61512         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61513         * modules/unictype/property-bidi-left-to-right-tests: New file.
61514         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61515         * modules/unictype/property-bidi-other-neutral-tests: New file.
61516         * modules/unictype/property-bidi-pdf-tests: New file.
61517         * modules/unictype/property-bidi-segment-separator-tests: New file.
61518         * modules/unictype/property-bidi-whitespace-tests: New file.
61519         * modules/unictype/property-byname-tests: New file.
61520         * modules/unictype/property-combining-tests: New file.
61521         * modules/unictype/property-composite-tests: New file.
61522         * modules/unictype/property-currency-symbol-tests: New file.
61523         * modules/unictype/property-dash-tests: New file.
61524         * modules/unictype/property-decimal-digit-tests: New file.
61525         * modules/unictype/property-default-ignorable-code-point-tests: New file.
61526         * modules/unictype/property-deprecated-tests: New file.
61527         * modules/unictype/property-diacritic-tests: New file.
61528         * modules/unictype/property-extender-tests: New file.
61529         * modules/unictype/property-format-control-tests: New file.
61530         * modules/unictype/property-grapheme-base-tests: New file.
61531         * modules/unictype/property-grapheme-extend-tests: New file.
61532         * modules/unictype/property-grapheme-link-tests: New file.
61533         * modules/unictype/property-hex-digit-tests: New file.
61534         * modules/unictype/property-hyphen-tests: New file.
61535         * modules/unictype/property-id-continue-tests: New file.
61536         * modules/unictype/property-id-start-tests: New file.
61537         * modules/unictype/property-ideographic-tests: New file.
61538         * modules/unictype/property-ids-binary-operator-tests: New file.
61539         * modules/unictype/property-ids-trinary-operator-tests: New file.
61540         * modules/unictype/property-ignorable-control-tests: New file.
61541         * modules/unictype/property-iso-control-tests: New file.
61542         * modules/unictype/property-join-control-tests: New file.
61543         * modules/unictype/property-left-of-pair-tests: New file.
61544         * modules/unictype/property-line-separator-tests: New file.
61545         * modules/unictype/property-logical-order-exception-tests: New file.
61546         * modules/unictype/property-lowercase-tests: New file.
61547         * modules/unictype/property-math-tests: New file.
61548         * modules/unictype/property-non-break-tests: New file.
61549         * modules/unictype/property-not-a-character-tests: New file.
61550         * modules/unictype/property-numeric-tests: New file.
61551         * modules/unictype/property-other-alphabetic-tests: New file.
61552         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
61553         * modules/unictype/property-other-grapheme-extend-tests: New file.
61554         * modules/unictype/property-other-id-continue-tests: New file.
61555         * modules/unictype/property-other-id-start-tests: New file.
61556         * modules/unictype/property-other-lowercase-tests: New file.
61557         * modules/unictype/property-other-math-tests: New file.
61558         * modules/unictype/property-other-uppercase-tests: New file.
61559         * modules/unictype/property-paired-punctuation-tests: New file.
61560         * modules/unictype/property-paragraph-separator-tests: New file.
61561         * modules/unictype/property-pattern-syntax-tests: New file.
61562         * modules/unictype/property-pattern-white-space-tests: New file.
61563         * modules/unictype/property-private-use-tests: New file.
61564         * modules/unictype/property-punctuation-tests: New file.
61565         * modules/unictype/property-quotation-mark-tests: New file.
61566         * modules/unictype/property-radical-tests: New file.
61567         * modules/unictype/property-sentence-terminal-tests: New file.
61568         * modules/unictype/property-soft-dotted-tests: New file.
61569         * modules/unictype/property-space-tests: New file.
61570         * modules/unictype/property-terminal-punctuation-tests: New file.
61571         * modules/unictype/property-test-tests: New file.
61572         * modules/unictype/property-titlecase-tests: New file.
61573         * modules/unictype/property-unassigned-code-value-tests: New file.
61574         * modules/unictype/property-unified-ideograph-tests: New file.
61575         * modules/unictype/property-uppercase-tests: New file.
61576         * modules/unictype/property-variation-selector-tests: New file.
61577         * modules/unictype/property-white-space-tests: New file.
61578         * modules/unictype/property-xid-continue-tests: New file.
61579         * modules/unictype/property-xid-start-tests: New file.
61580         * modules/unictype/property-zero-width-tests: New file.
61581         * modules/unictype/scripts-tests: New file.
61582         * modules/unictype/syntax-c-ident-tests: New file.
61583         * modules/unictype/syntax-c-whitespace-tests: New file.
61584         * modules/unictype/syntax-java-ident-tests: New file.
61585         * modules/unictype/syntax-java-whitespace-tests: New file.
61586         * tests/unictype/test-bidi_byname.c: New file.
61587         * tests/unictype/test-bidi_name.c: New file.
61588         * tests/unictype/test-bidi_of.c: New file.
61589         * tests/unictype/test-bidi_test.c: New file.
61590         * tests/unictype/test-block_list.c: New file.
61591         * tests/unictype/test-block_of.c: New file.
61592         * tests/unictype/test-block_test.c: New file.
61593         * tests/unictype/test-categ_and.c: New file.
61594         * tests/unictype/test-categ_and_not.c: New file.
61595         * tests/unictype/test-categ_byname.c: New file.
61596         * tests/unictype/test-categ_name.c: New file.
61597         * tests/unictype/test-categ_none.c: New file.
61598         * tests/unictype/test-categ_of.c: New file.
61599         * tests/unictype/test-categ_or.c: New file.
61600         * tests/unictype/test-categ_test_withtable.c: New file.
61601         * tests/unictype/test-combining.c: New file.
61602         * tests/unictype/test-decdigit.c: New file.
61603         * tests/unictype/test-digit.c: New file.
61604         * tests/unictype/test-mirror.c: New file.
61605         * tests/unictype/test-numeric.c: New file.
61606         * tests/unictype/test-pr_byname.c: New file.
61607         * tests/unictype/test-pr_test.c: New file.
61608         * tests/unictype/test-predicate-part1.h: New file.
61609         * tests/unictype/test-predicate-part2.h: New file.
61610         * tests/unictype/test-scripts.c: New file.
61611         * tests/unictype/test-sy_c_ident.c: New file.
61612         * tests/unictype/test-sy_java_ident.c: New file.
61613
61614         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
61615         for Unicode 5.0.0.
61616         * tests/unictype/test-categ_Cc.c: Likewise.
61617         * tests/unictype/test-categ_Cf.c: Likewise.
61618         * tests/unictype/test-categ_Cn.c: Likewise.
61619         * tests/unictype/test-categ_Co.c: Likewise.
61620         * tests/unictype/test-categ_Cs.c: Likewise.
61621         * tests/unictype/test-categ_L.c: Likewise.
61622         * tests/unictype/test-categ_Ll.c: Likewise.
61623         * tests/unictype/test-categ_Lm.c: Likewise.
61624         * tests/unictype/test-categ_Lo.c: Likewise.
61625         * tests/unictype/test-categ_Lt.c: Likewise.
61626         * tests/unictype/test-categ_Lu.c: Likewise.
61627         * tests/unictype/test-categ_M.c: Likewise.
61628         * tests/unictype/test-categ_Mc.c: Likewise.
61629         * tests/unictype/test-categ_Me.c: Likewise.
61630         * tests/unictype/test-categ_Mn.c: Likewise.
61631         * tests/unictype/test-categ_N.c: Likewise.
61632         * tests/unictype/test-categ_Nd.c: Likewise.
61633         * tests/unictype/test-categ_Nl.c: Likewise.
61634         * tests/unictype/test-categ_No.c: Likewise.
61635         * tests/unictype/test-categ_P.c: Likewise.
61636         * tests/unictype/test-categ_Pc.c: Likewise.
61637         * tests/unictype/test-categ_Pd.c: Likewise.
61638         * tests/unictype/test-categ_Pe.c: Likewise.
61639         * tests/unictype/test-categ_Pf.c: Likewise.
61640         * tests/unictype/test-categ_Pi.c: Likewise.
61641         * tests/unictype/test-categ_Po.c: Likewise.
61642         * tests/unictype/test-categ_Ps.c: Likewise.
61643         * tests/unictype/test-categ_S.c: Likewise.
61644         * tests/unictype/test-categ_Sc.c: Likewise.
61645         * tests/unictype/test-categ_Sk.c: Likewise.
61646         * tests/unictype/test-categ_Sm.c: Likewise.
61647         * tests/unictype/test-categ_So.c: Likewise.
61648         * tests/unictype/test-categ_Z.c: Likewise.
61649         * tests/unictype/test-categ_Zl.c: Likewise.
61650         * tests/unictype/test-categ_Zp.c: Likewise.
61651         * tests/unictype/test-categ_Zs.c: Likewise.
61652         * tests/unictype/test-ctype_alnum.c: Likewise.
61653         * tests/unictype/test-ctype_alpha.c: Likewise.
61654         * tests/unictype/test-ctype_blank.c: Likewise.
61655         * tests/unictype/test-ctype_cntrl.c: Likewise.
61656         * tests/unictype/test-ctype_digit.c: Likewise.
61657         * tests/unictype/test-ctype_graph.c: Likewise.
61658         * tests/unictype/test-ctype_lower.c: Likewise.
61659         * tests/unictype/test-ctype_print.c: Likewise.
61660         * tests/unictype/test-ctype_punct.c: Likewise.
61661         * tests/unictype/test-ctype_space.c: Likewise.
61662         * tests/unictype/test-ctype_upper.c: Likewise.
61663         * tests/unictype/test-ctype_xdigit.c: Likewise.
61664         * tests/unictype/test-decdigit.h: Likewise.
61665         * tests/unictype/test-digit.h: Likewise.
61666         * tests/unictype/test-numeric.h: Likewise.
61667         * tests/unictype/test-pr_alphabetic.c: Likewise.
61668         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
61669         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61670         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61671         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
61672         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61673         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
61674         * tests/unictype/test-pr_bidi_control.c: Likewise.
61675         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
61676         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
61677         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61678         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61679         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61680         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61681         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61682         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61683         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
61684         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
61685         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
61686         * tests/unictype/test-pr_combining.c: Likewise.
61687         * tests/unictype/test-pr_composite.c: Likewise.
61688         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61689         * tests/unictype/test-pr_dash.c: Likewise.
61690         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61691         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
61692         * tests/unictype/test-pr_deprecated.c: Likewise.
61693         * tests/unictype/test-pr_diacritic.c: Likewise.
61694         * tests/unictype/test-pr_extender.c: Likewise.
61695         * tests/unictype/test-pr_format_control.c: Likewise.
61696         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61697         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61698         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61699         * tests/unictype/test-pr_hex_digit.c: Likewise.
61700         * tests/unictype/test-pr_hyphen.c: Likewise.
61701         * tests/unictype/test-pr_id_continue.c: Likewise.
61702         * tests/unictype/test-pr_id_start.c: Likewise.
61703         * tests/unictype/test-pr_ideographic.c: Likewise.
61704         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
61705         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
61706         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61707         * tests/unictype/test-pr_iso_control.c: Likewise.
61708         * tests/unictype/test-pr_join_control.c: Likewise.
61709         * tests/unictype/test-pr_left_of_pair.c: Likewise.
61710         * tests/unictype/test-pr_line_separator.c: Likewise.
61711         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61712         * tests/unictype/test-pr_lowercase.c: Likewise.
61713         * tests/unictype/test-pr_math.c: Likewise.
61714         * tests/unictype/test-pr_non_break.c: Likewise.
61715         * tests/unictype/test-pr_not_a_character.c: Likewise.
61716         * tests/unictype/test-pr_numeric.c: Likewise.
61717         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61718         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
61719         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
61720         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61721         * tests/unictype/test-pr_other_id_start.c: Likewise.
61722         * tests/unictype/test-pr_other_lowercase.c: Likewise.
61723         * tests/unictype/test-pr_other_math.c: Likewise.
61724         * tests/unictype/test-pr_other_uppercase.c: Likewise.
61725         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
61726         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
61727         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
61728         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
61729         * tests/unictype/test-pr_private_use.c: Likewise.
61730         * tests/unictype/test-pr_punctuation.c: Likewise.
61731         * tests/unictype/test-pr_quotation_mark.c: Likewise.
61732         * tests/unictype/test-pr_radical.c: Likewise.
61733         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61734         * tests/unictype/test-pr_soft_dotted.c: Likewise.
61735         * tests/unictype/test-pr_space.c: Likewise.
61736         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61737         * tests/unictype/test-pr_titlecase.c: Likewise.
61738         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61739         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61740         * tests/unictype/test-pr_uppercase.c: Likewise.
61741         * tests/unictype/test-pr_variation_selector.c: Likewise.
61742         * tests/unictype/test-pr_white_space.c: Likewise.
61743         * tests/unictype/test-pr_xid_continue.c: Likewise.
61744         * tests/unictype/test-pr_xid_start.c: Likewise.
61745         * tests/unictype/test-pr_zero_width.c: Likewise.
61746         * tests/unictype/test-sy_c_whitespace.c: Likewise.
61747         * tests/unictype/test-sy_java_whitespace.c: Likewise.
61748
61749 2007-11-12  Bruno Haible  <bruno@clisp.org>
61750
61751         Unicode character classification functions.
61752         * lib/unictype.h: New file.
61753         * modules/unictype/base: New file.
61754         * modules/unictype/category-L: New file.
61755         * modules/unictype/category-Lu: New file.
61756         * modules/unictype/category-Ll: New file.
61757         * modules/unictype/category-Lt: New file.
61758         * modules/unictype/category-Lm: New file.
61759         * modules/unictype/category-Lo: New file.
61760         * modules/unictype/category-M: New file.
61761         * modules/unictype/category-Mn: New file.
61762         * modules/unictype/category-Mc: New file.
61763         * modules/unictype/category-Me: New file.
61764         * modules/unictype/category-N: New file.
61765         * modules/unictype/category-Nd: New file.
61766         * modules/unictype/category-Nl: New file.
61767         * modules/unictype/category-No: New file.
61768         * modules/unictype/category-P: New file.
61769         * modules/unictype/category-Pc: New file.
61770         * modules/unictype/category-Pd: New file.
61771         * modules/unictype/category-Ps: New file.
61772         * modules/unictype/category-Pe: New file.
61773         * modules/unictype/category-Pi: New file.
61774         * modules/unictype/category-Pf: New file.
61775         * modules/unictype/category-Po: New file.
61776         * modules/unictype/category-S: New file.
61777         * modules/unictype/category-Sm: New file.
61778         * modules/unictype/category-Sc: New file.
61779         * modules/unictype/category-Sk: New file.
61780         * modules/unictype/category-So: New file.
61781         * modules/unictype/category-Z: New file.
61782         * modules/unictype/category-Zs: New file.
61783         * modules/unictype/category-Zl: New file.
61784         * modules/unictype/category-Zp: New file.
61785         * modules/unictype/category-C: New file.
61786         * modules/unictype/category-Cc: New file.
61787         * modules/unictype/category-Cf: New file.
61788         * modules/unictype/category-Cs: New file.
61789         * modules/unictype/category-Co: New file.
61790         * modules/unictype/category-Cn: New file.
61791         * modules/unictype/category-or: New file.
61792         * modules/unictype/category-of: New file.
61793         * modules/unictype/category-test: New file.
61794         * modules/unictype/category-test-withtable: New file.
61795         * modules/unictype/category-byname: New file.
61796         * modules/unictype/category-none: New file.
61797         * modules/unictype/category-and: New file.
61798         * modules/unictype/category-and-not: New file.
61799         * modules/unictype/category-name: New file.
61800         * modules/unictype/combining-class: New file.
61801         * modules/unictype/category-all: New file.
61802         * modules/unictype/bidicategory-all: New file.
61803         * modules/unictype/bidicategory-byname: New file.
61804         * modules/unictype/bidicategory-name: New file.
61805         * modules/unictype/bidicategory-of: New file.
61806         * modules/unictype/bidicategory-test: New file.
61807         * modules/unictype/decimal-digit: New file.
61808         * modules/unictype/digit: New file.
61809         * modules/unictype/numeric: New file.
61810         * modules/unictype/mirror: New file.
61811         * modules/unictype/property-white-space: New file.
61812         * modules/unictype/property-alphabetic: New file.
61813         * modules/unictype/property-other-alphabetic: New file.
61814         * modules/unictype/property-not-a-character: New file.
61815         * modules/unictype/property-default-ignorable-code-point: New file.
61816         * modules/unictype/property-other-default-ignorable-code-point: New
61817         file.
61818         * modules/unictype/property-deprecated: New file.
61819         * modules/unictype/property-logical-order-exception: New file.
61820         * modules/unictype/property-variation-selector: New file.
61821         * modules/unictype/property-private-use: New file.
61822         * modules/unictype/property-unassigned-code-value: New file.
61823         * modules/unictype/property-uppercase: New file.
61824         * modules/unictype/property-other-uppercase: New file.
61825         * modules/unictype/property-lowercase: New file.
61826         * modules/unictype/property-other-lowercase: New file.
61827         * modules/unictype/property-titlecase: New file.
61828         * modules/unictype/property-soft-dotted: New file.
61829         * modules/unictype/property-id-start: New file.
61830         * modules/unictype/property-other-id-start: New file.
61831         * modules/unictype/property-id-continue: New file.
61832         * modules/unictype/property-other-id-continue: New file.
61833         * modules/unictype/property-xid-start: New file.
61834         * modules/unictype/property-xid-continue: New file.
61835         * modules/unictype/property-pattern-white-space: New file.
61836         * modules/unictype/property-pattern-syntax: New file.
61837         * modules/unictype/property-join-control: New file.
61838         * modules/unictype/property-grapheme-base: New file.
61839         * modules/unictype/property-grapheme-extend: New file.
61840         * modules/unictype/property-other-grapheme-extend: New file.
61841         * modules/unictype/property-grapheme-link: New file.
61842         * modules/unictype/property-bidi-control: New file.
61843         * modules/unictype/property-bidi-left-to-right: New file.
61844         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
61845         * modules/unictype/property-bidi-arabic-right-to-left: New file.
61846         * modules/unictype/property-bidi-european-digit: New file.
61847         * modules/unictype/property-bidi-eur-num-separator: New file.
61848         * modules/unictype/property-bidi-eur-num-terminator: New file.
61849         * modules/unictype/property-bidi-arabic-digit: New file.
61850         * modules/unictype/property-bidi-common-separator: New file.
61851         * modules/unictype/property-bidi-block-separator: New file.
61852         * modules/unictype/property-bidi-segment-separator: New file.
61853         * modules/unictype/property-bidi-whitespace: New file.
61854         * modules/unictype/property-bidi-non-spacing-mark: New file.
61855         * modules/unictype/property-bidi-boundary-neutral: New file.
61856         * modules/unictype/property-bidi-pdf: New file.
61857         * modules/unictype/property-bidi-embedding-or-override: New file.
61858         * modules/unictype/property-bidi-other-neutral: New file.
61859         * modules/unictype/property-hex-digit: New file.
61860         * modules/unictype/property-ascii-hex-digit: New file.
61861         * modules/unictype/property-ideographic: New file.
61862         * modules/unictype/property-unified-ideograph: New file.
61863         * modules/unictype/property-radical: New file.
61864         * modules/unictype/property-ids-binary-operator: New file.
61865         * modules/unictype/property-ids-trinary-operator: New file.
61866         * modules/unictype/property-zero-width: New file.
61867         * modules/unictype/property-space: New file.
61868         * modules/unictype/property-non-break: New file.
61869         * modules/unictype/property-iso-control: New file.
61870         * modules/unictype/property-format-control: New file.
61871         * modules/unictype/property-dash: New file.
61872         * modules/unictype/property-hyphen: New file.
61873         * modules/unictype/property-punctuation: New file.
61874         * modules/unictype/property-line-separator: New file.
61875         * modules/unictype/property-paragraph-separator: New file.
61876         * modules/unictype/property-quotation-mark: New file.
61877         * modules/unictype/property-sentence-terminal: New file.
61878         * modules/unictype/property-terminal-punctuation: New file.
61879         * modules/unictype/property-currency-symbol: New file.
61880         * modules/unictype/property-math: New file.
61881         * modules/unictype/property-other-math: New file.
61882         * modules/unictype/property-paired-punctuation: New file.
61883         * modules/unictype/property-left-of-pair: New file.
61884         * modules/unictype/property-combining: New file.
61885         * modules/unictype/property-composite: New file.
61886         * modules/unictype/property-decimal-digit: New file.
61887         * modules/unictype/property-numeric: New file.
61888         * modules/unictype/property-diacritic: New file.
61889         * modules/unictype/property-extender: New file.
61890         * modules/unictype/property-ignorable-control: New file.
61891         * modules/unictype/property-test: New file.
61892         * modules/unictype/property-byname: New file.
61893         * modules/unictype/property-all: New file.
61894         * modules/unictype/scripts: New file.
61895         * modules/unictype/scripts-all: New file.
61896         * modules/unictype/block-of: New file.
61897         * modules/unictype/block-test: New file.
61898         * modules/unictype/block-list: New file.
61899         * modules/unictype/block-all: New file.
61900         * modules/unictype/syntax-c-whitespace: New file.
61901         * modules/unictype/syntax-java-whitespace: New file.
61902         * modules/unictype/syntax-c-ident: New file.
61903         * modules/unictype/syntax-java-ident: New file.
61904         * modules/unictype/ctype-alnum: New file.
61905         * modules/unictype/ctype-alpha: New file.
61906         * modules/unictype/ctype-cntrl: New file.
61907         * modules/unictype/ctype-digit: New file.
61908         * modules/unictype/ctype-graph: New file.
61909         * modules/unictype/ctype-lower: New file.
61910         * modules/unictype/ctype-print: New file.
61911         * modules/unictype/ctype-punct: New file.
61912         * modules/unictype/ctype-space: New file.
61913         * modules/unictype/ctype-upper: New file.
61914         * modules/unictype/ctype-xdigit: New file.
61915         * modules/unictype/ctype-blank: New file.
61916         * lib/unictype/bidi_byname.c: New file.
61917         * lib/unictype/bidi_name.c: New file.
61918         * lib/unictype/bidi_of.c: New file.
61919         * lib/unictype/bidi_test.c: New file.
61920         * lib/unictype/bitmap.h: New file.
61921         * lib/unictype/block_test.c: New file.
61922         * lib/unictype/blocks.c: New file.
61923         * lib/unictype/categ_C.c: New file.
61924         * lib/unictype/categ_Cc.c: New file.
61925         * lib/unictype/categ_Cf.c: New file.
61926         * lib/unictype/categ_Cn.c: New file.
61927         * lib/unictype/categ_Co.c: New file.
61928         * lib/unictype/categ_Cs.c: New file.
61929         * lib/unictype/categ_L.c: New file.
61930         * lib/unictype/categ_Ll.c: New file.
61931         * lib/unictype/categ_Lm.c: New file.
61932         * lib/unictype/categ_Lo.c: New file.
61933         * lib/unictype/categ_Lt.c: New file.
61934         * lib/unictype/categ_Lu.c: New file.
61935         * lib/unictype/categ_M.c: New file.
61936         * lib/unictype/categ_Mc.c: New file.
61937         * lib/unictype/categ_Me.c: New file.
61938         * lib/unictype/categ_Mn.c: New file.
61939         * lib/unictype/categ_N.c: New file.
61940         * lib/unictype/categ_Nd.c: New file.
61941         * lib/unictype/categ_Nl.c: New file.
61942         * lib/unictype/categ_No.c: New file.
61943         * lib/unictype/categ_P.c: New file.
61944         * lib/unictype/categ_Pc.c: New file.
61945         * lib/unictype/categ_Pd.c: New file.
61946         * lib/unictype/categ_Pe.c: New file.
61947         * lib/unictype/categ_Pf.c: New file.
61948         * lib/unictype/categ_Pi.c: New file.
61949         * lib/unictype/categ_Po.c: New file.
61950         * lib/unictype/categ_Ps.c: New file.
61951         * lib/unictype/categ_S.c: New file.
61952         * lib/unictype/categ_Sc.c: New file.
61953         * lib/unictype/categ_Sk.c: New file.
61954         * lib/unictype/categ_Sm.c: New file.
61955         * lib/unictype/categ_So.c: New file.
61956         * lib/unictype/categ_Z.c: New file.
61957         * lib/unictype/categ_Zl.c: New file.
61958         * lib/unictype/categ_Zp.c: New file.
61959         * lib/unictype/categ_Zs.c: New file.
61960         * lib/unictype/categ_and.c: New file.
61961         * lib/unictype/categ_and_not.c: New file.
61962         * lib/unictype/categ_byname.c: New file.
61963         * lib/unictype/categ_name.c: New file.
61964         * lib/unictype/categ_none.c: New file.
61965         * lib/unictype/categ_of.c: New file.
61966         * lib/unictype/categ_or.c: New file.
61967         * lib/unictype/categ_test.c: New file.
61968         * lib/unictype/combining.c: New file.
61969         * lib/unictype/ctype_alnum.c: New file.
61970         * lib/unictype/ctype_alpha.c: New file.
61971         * lib/unictype/ctype_blank.c: New file.
61972         * lib/unictype/ctype_cntrl.c: New file.
61973         * lib/unictype/ctype_digit.c: New file.
61974         * lib/unictype/ctype_graph.c: New file.
61975         * lib/unictype/ctype_lower.c: New file.
61976         * lib/unictype/ctype_print.c: New file.
61977         * lib/unictype/ctype_punct.c: New file.
61978         * lib/unictype/ctype_space.c: New file.
61979         * lib/unictype/ctype_upper.c: New file.
61980         * lib/unictype/ctype_xdigit.c: New file.
61981         * lib/unictype/decdigit.c: New file.
61982         * lib/unictype/digit.c: New file.
61983         * lib/unictype/identsyntaxmap.h: New file.
61984         * lib/unictype/mirror.c: New file.
61985         * lib/unictype/numeric.c: New file.
61986         * lib/unictype/pr_alphabetic.c: New file.
61987         * lib/unictype/pr_ascii_hex_digit.c: New file.
61988         * lib/unictype/pr_bidi_arabic_digit.c: New file.
61989         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
61990         * lib/unictype/pr_bidi_block_separator.c: New file.
61991         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
61992         * lib/unictype/pr_bidi_common_separator.c: New file.
61993         * lib/unictype/pr_bidi_control.c: New file.
61994         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
61995         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
61996         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
61997         * lib/unictype/pr_bidi_european_digit.c: New file.
61998         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
61999         * lib/unictype/pr_bidi_left_to_right.c: New file.
62000         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62001         * lib/unictype/pr_bidi_other_neutral.c: New file.
62002         * lib/unictype/pr_bidi_pdf.c: New file.
62003         * lib/unictype/pr_bidi_segment_separator.c: New file.
62004         * lib/unictype/pr_bidi_whitespace.c: New file.
62005         * lib/unictype/pr_byname.c: New file.
62006         * lib/unictype/pr_byname.gperf: New file.
62007         * lib/unictype/pr_combining.c: New file.
62008         * lib/unictype/pr_composite.c: New file.
62009         * lib/unictype/pr_currency_symbol.c: New file.
62010         * lib/unictype/pr_dash.c: New file.
62011         * lib/unictype/pr_decimal_digit.c: New file.
62012         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62013         * lib/unictype/pr_deprecated.c: New file.
62014         * lib/unictype/pr_diacritic.c: New file.
62015         * lib/unictype/pr_extender.c: New file.
62016         * lib/unictype/pr_format_control.c: New file.
62017         * lib/unictype/pr_grapheme_base.c: New file.
62018         * lib/unictype/pr_grapheme_extend.c: New file.
62019         * lib/unictype/pr_grapheme_link.c: New file.
62020         * lib/unictype/pr_hex_digit.c: New file.
62021         * lib/unictype/pr_hyphen.c: New file.
62022         * lib/unictype/pr_id_continue.c: New file.
62023         * lib/unictype/pr_id_start.c: New file.
62024         * lib/unictype/pr_ideographic.c: New file.
62025         * lib/unictype/pr_ids_binary_operator.c: New file.
62026         * lib/unictype/pr_ids_trinary_operator.c: New file.
62027         * lib/unictype/pr_ignorable_control.c: New file.
62028         * lib/unictype/pr_iso_control.c: New file.
62029         * lib/unictype/pr_join_control.c: New file.
62030         * lib/unictype/pr_left_of_pair.c: New file.
62031         * lib/unictype/pr_line_separator.c: New file.
62032         * lib/unictype/pr_logical_order_exception.c: New file.
62033         * lib/unictype/pr_lowercase.c: New file.
62034         * lib/unictype/pr_math.c: New file.
62035         * lib/unictype/pr_non_break.c: New file.
62036         * lib/unictype/pr_not_a_character.c: New file.
62037         * lib/unictype/pr_numeric.c: New file.
62038         * lib/unictype/pr_other_alphabetic.c: New file.
62039         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62040         * lib/unictype/pr_other_grapheme_extend.c: New file.
62041         * lib/unictype/pr_other_id_continue.c: New file.
62042         * lib/unictype/pr_other_id_start.c: New file.
62043         * lib/unictype/pr_other_lowercase.c: New file.
62044         * lib/unictype/pr_other_math.c: New file.
62045         * lib/unictype/pr_other_uppercase.c: New file.
62046         * lib/unictype/pr_paired_punctuation.c: New file.
62047         * lib/unictype/pr_paragraph_separator.c: New file.
62048         * lib/unictype/pr_pattern_syntax.c: New file.
62049         * lib/unictype/pr_pattern_white_space.c: New file.
62050         * lib/unictype/pr_private_use.c: New file.
62051         * lib/unictype/pr_punctuation.c: New file.
62052         * lib/unictype/pr_quotation_mark.c: New file.
62053         * lib/unictype/pr_radical.c: New file.
62054         * lib/unictype/pr_sentence_terminal.c: New file.
62055         * lib/unictype/pr_soft_dotted.c: New file.
62056         * lib/unictype/pr_space.c: New file.
62057         * lib/unictype/pr_terminal_punctuation.c: New file.
62058         * lib/unictype/pr_test.c: New file.
62059         * lib/unictype/pr_titlecase.c: New file.
62060         * lib/unictype/pr_unassigned_code_value.c: New file.
62061         * lib/unictype/pr_unified_ideograph.c: New file.
62062         * lib/unictype/pr_uppercase.c: New file.
62063         * lib/unictype/pr_variation_selector.c: New file.
62064         * lib/unictype/pr_white_space.c: New file.
62065         * lib/unictype/pr_xid_continue.c: New file.
62066         * lib/unictype/pr_xid_start.c: New file.
62067         * lib/unictype/pr_zero_width.c: New file.
62068         * lib/unictype/scripts.c: New file.
62069         * lib/unictype/sy_c_ident.c: New file.
62070         * lib/unictype/sy_c_whitespace.c: New file.
62071         * lib/unictype/sy_java_ident.c: New file.
62072         * lib/unictype/sy_java_whitespace.c: New file.
62073
62074         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62075         Unicode 5.0.0.
62076         * lib/unictype/blocks.h: Likewise.
62077         * lib/unictype/categ_C.h: Likewise.
62078         * lib/unictype/categ_Cc.h: Likewise.
62079         * lib/unictype/categ_Cf.h: Likewise.
62080         * lib/unictype/categ_Cn.h: Likewise.
62081         * lib/unictype/categ_Co.h: Likewise.
62082         * lib/unictype/categ_Cs.h: Likewise.
62083         * lib/unictype/categ_L.h: Likewise.
62084         * lib/unictype/categ_Ll.h: Likewise.
62085         * lib/unictype/categ_Lm.h: Likewise.
62086         * lib/unictype/categ_Lo.h: Likewise.
62087         * lib/unictype/categ_Lt.h: Likewise.
62088         * lib/unictype/categ_Lu.h: Likewise.
62089         * lib/unictype/categ_M.h: Likewise.
62090         * lib/unictype/categ_Mc.h: Likewise.
62091         * lib/unictype/categ_Me.h: Likewise.
62092         * lib/unictype/categ_Mn.h: Likewise.
62093         * lib/unictype/categ_N.h: Likewise.
62094         * lib/unictype/categ_Nd.h: Likewise.
62095         * lib/unictype/categ_Nl.h: Likewise.
62096         * lib/unictype/categ_No.h: Likewise.
62097         * lib/unictype/categ_P.h: Likewise.
62098         * lib/unictype/categ_Pc.h: Likewise.
62099         * lib/unictype/categ_Pd.h: Likewise.
62100         * lib/unictype/categ_Pe.h: Likewise.
62101         * lib/unictype/categ_Pf.h: Likewise.
62102         * lib/unictype/categ_Pi.h: Likewise.
62103         * lib/unictype/categ_Po.h: Likewise.
62104         * lib/unictype/categ_Ps.h: Likewise.
62105         * lib/unictype/categ_S.h: Likewise.
62106         * lib/unictype/categ_Sc.h: Likewise.
62107         * lib/unictype/categ_Sk.h: Likewise.
62108         * lib/unictype/categ_Sm.h: Likewise.
62109         * lib/unictype/categ_So.h: Likewise.
62110         * lib/unictype/categ_Z.h: Likewise.
62111         * lib/unictype/categ_Zl.h: Likewise.
62112         * lib/unictype/categ_Zp.h: Likewise.
62113         * lib/unictype/categ_Zs.h: Likewise.
62114         * lib/unictype/categ_of.h: Likewise.
62115         * lib/unictype/combining.h: Likewise.
62116         * lib/unictype/ctype_alnum.h: Likewise.
62117         * lib/unictype/ctype_alpha.h: Likewise.
62118         * lib/unictype/ctype_blank.h: Likewise.
62119         * lib/unictype/ctype_cntrl.h: Likewise.
62120         * lib/unictype/ctype_digit.h: Likewise.
62121         * lib/unictype/ctype_graph.h: Likewise.
62122         * lib/unictype/ctype_lower.h: Likewise.
62123         * lib/unictype/ctype_print.h: Likewise.
62124         * lib/unictype/ctype_punct.h: Likewise.
62125         * lib/unictype/ctype_space.h: Likewise.
62126         * lib/unictype/ctype_upper.h: Likewise.
62127         * lib/unictype/ctype_xdigit.h: Likewise.
62128         * lib/unictype/decdigit.h: Likewise.
62129         * lib/unictype/digit.h: Likewise.
62130         * lib/unictype/mirror.h: Likewise.
62131         * lib/unictype/numeric.h: Likewise.
62132         * lib/unictype/pr_alphabetic.h: Likewise.
62133         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62134         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62135         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62136         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62137         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62138         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62139         * lib/unictype/pr_bidi_control.h: Likewise.
62140         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62141         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62142         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62143         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62144         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62145         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62146         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62147         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62148         * lib/unictype/pr_bidi_pdf.h: Likewise.
62149         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62150         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62151         * lib/unictype/pr_combining.h: Likewise.
62152         * lib/unictype/pr_composite.h: Likewise.
62153         * lib/unictype/pr_currency_symbol.h: Likewise.
62154         * lib/unictype/pr_dash.h: Likewise.
62155         * lib/unictype/pr_decimal_digit.h: Likewise.
62156         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62157         * lib/unictype/pr_deprecated.h: Likewise.
62158         * lib/unictype/pr_diacritic.h: Likewise.
62159         * lib/unictype/pr_extender.h: Likewise.
62160         * lib/unictype/pr_format_control.h: Likewise.
62161         * lib/unictype/pr_grapheme_base.h: Likewise.
62162         * lib/unictype/pr_grapheme_extend.h: Likewise.
62163         * lib/unictype/pr_grapheme_link.h: Likewise.
62164         * lib/unictype/pr_hex_digit.h: Likewise.
62165         * lib/unictype/pr_hyphen.h: Likewise.
62166         * lib/unictype/pr_id_continue.h: Likewise.
62167         * lib/unictype/pr_id_start.h: Likewise.
62168         * lib/unictype/pr_ideographic.h: Likewise.
62169         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62170         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62171         * lib/unictype/pr_ignorable_control.h: Likewise.
62172         * lib/unictype/pr_iso_control.h: Likewise.
62173         * lib/unictype/pr_join_control.h: Likewise.
62174         * lib/unictype/pr_left_of_pair.h: Likewise.
62175         * lib/unictype/pr_line_separator.h: Likewise.
62176         * lib/unictype/pr_logical_order_exception.h: Likewise.
62177         * lib/unictype/pr_lowercase.h: Likewise.
62178         * lib/unictype/pr_math.h: Likewise.
62179         * lib/unictype/pr_non_break.h: Likewise.
62180         * lib/unictype/pr_not_a_character.h: Likewise.
62181         * lib/unictype/pr_numeric.h: Likewise.
62182         * lib/unictype/pr_other_alphabetic.h: Likewise.
62183         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62184         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62185         * lib/unictype/pr_other_id_continue.h: Likewise.
62186         * lib/unictype/pr_other_id_start.h: Likewise.
62187         * lib/unictype/pr_other_lowercase.h: Likewise.
62188         * lib/unictype/pr_other_math.h: Likewise.
62189         * lib/unictype/pr_other_uppercase.h: Likewise.
62190         * lib/unictype/pr_paired_punctuation.h: Likewise.
62191         * lib/unictype/pr_paragraph_separator.h: Likewise.
62192         * lib/unictype/pr_pattern_syntax.h: Likewise.
62193         * lib/unictype/pr_pattern_white_space.h: Likewise.
62194         * lib/unictype/pr_private_use.h: Likewise.
62195         * lib/unictype/pr_punctuation.h: Likewise.
62196         * lib/unictype/pr_quotation_mark.h: Likewise.
62197         * lib/unictype/pr_radical.h: Likewise.
62198         * lib/unictype/pr_sentence_terminal.h: Likewise.
62199         * lib/unictype/pr_soft_dotted.h: Likewise.
62200         * lib/unictype/pr_space.h: Likewise.
62201         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62202         * lib/unictype/pr_titlecase.h: Likewise.
62203         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62204         * lib/unictype/pr_unified_ideograph.h: Likewise.
62205         * lib/unictype/pr_uppercase.h: Likewise.
62206         * lib/unictype/pr_variation_selector.h: Likewise.
62207         * lib/unictype/pr_white_space.h: Likewise.
62208         * lib/unictype/pr_xid_continue.h: Likewise.
62209         * lib/unictype/pr_xid_start.h: Likewise.
62210         * lib/unictype/pr_zero_width.h: Likewise.
62211         * lib/unictype/scripts.h: Likewise.
62212         * lib/unictype/scripts_byname.gperf: Likewise.
62213         * lib/unictype/sy_c_ident.h: Likewise.
62214         * lib/unictype/sy_c_whitespace.h: Likewise.
62215         * lib/unictype/sy_java_ident.h: Likewise.
62216         * lib/unictype/sy_java_whitespace.h: Likewise.
62217
62218         * lib/unictype/Makefile: New file.
62219         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62220         glibc.
62221         * lib/unictype/3level.h: New file, copied from glibc.
62222         * lib/unictype/3levelbit.h: New file.
62223
62224 2007-11-11  Bruno Haible  <bruno@clisp.org>
62225
62226         * modules/gperf: New file.
62227         * modules/iconv_open (Depends-on): Add it.
62228         (Makefile.am): Remove the GPERF definition.
62229
62230 2007-11-11  Bruno Haible  <bruno@clisp.org>
62231
62232         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62233         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62234
62235 2007-11-11  Bruno Haible  <bruno@clisp.org>
62236
62237         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62238         (usage): Remove function.
62239
62240 2007-11-11  Bruno Haible  <bruno@clisp.org>
62241
62242         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62243         gl_FUNC_CEILF_LIBS.
62244         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62245         gl_FUNC_CEIL_LIBS.
62246         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62247         gl_FUNC_CEILL_LIBS.
62248         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62249         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62250         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62251
62252 2007-11-11  Bruno Haible  <bruno@clisp.org>
62253
62254         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62255         roundf were declared but do not exist on functions.
62256         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62257         roundl were declared but do not exist on functions.
62258         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62259         HAVE_FLOORL_AND_CEILL, respectively.
62260         Needed for Sun C on Solaris 10.
62261
62262 2007-11-11  Bruno Haible  <bruno@clisp.org>
62263
62264         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62265         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62266         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62267         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62268         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62269         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62270         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62271         HAVE_DECL_ROUNDF.
62272         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62273         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62275         of HAVE_DECL_ROUND*.
62276         * modules/math (Makefile.am): Update.
62277
62278 2007-11-10  Bruno Haible  <bruno@clisp.org>
62279
62280         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62281         ptrdiff_t as m4/intl.m4.
62282
62283 2007-11-10  Jim Meyering  <meyering@redhat.com>
62284
62285         Avoid link failure for the argmatch test.
62286         * tests/test-argmatch.c (usage): Define function to avoid a link
62287         failure: argmatch_die requires a usage function.
62288
62289 2007-11-09  Bruno Haible  <bruno@clisp.org>
62290
62291         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62292         * doc/functions/vsnprintf.texi: Likewise.
62293         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62294         with a size argument < 2.
62295
62296 2007-11-09  Bruno Haible  <bruno@clisp.org>
62297
62298         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62299         buffer. Fixes an inefficiency introduced on 2007-11-03.
62300
62301 2007-11-09  Bruno Haible  <bruno@clisp.org>
62302
62303         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62304         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62305
62306 2007-11-08  Jim Meyering  <meyering@redhat.com>
62307
62308         Change cache variable name prefix "jm_" to "gl_" everywhere.
62309         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62310         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62311         * m4/uptime.m4: s/gl_/jm_/
62312
62313 2007-11-07  Bruno Haible  <bruno@clisp.org>
62314
62315         Update to GNU gettext 0.17.
62316         * m4/intl.m4: Update to GNU gettext 0.17.
62317         * m4/po.m4: Likewise.
62318         * modules/gettext (Files): Remove m4/ulonglong.m4.
62319         (configure.ac): Require gettext infrastructure from version 0.17.
62320
62321 2007-11-06  Bruno Haible  <bruno@clisp.org>
62322
62323         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62324         symbolic values are not defined in a public header.
62325         * lib/freadable.c (freadable) [QNX]: Likewise.
62326         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62327         * lib/freading.c (freading) [QNX]: Likewise.
62328         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62329         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62330         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62331         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62332         Reported by Alain Magloire.
62333
62334         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62335
62336 2007-11-05  Bruno Haible  <bruno@clisp.org>
62337
62338         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62339         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62340         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62341         Reported by Eric Blake.
62342
62343 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62344             Bruno Haible  <bruno@clisp.org>
62345
62346         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62347         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62348         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62349         (malloc): Undefine also before including <stdlib.h>.
62350         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62351         Needed on OSF/1 4.0.
62352
62353 2007-11-05  Jim Meyering  <meyering@redhat.com>
62354
62355         git-version-gen: sync from coreutils.
62356         * build-aux/git-version-gen: Add comments.
62357         Change the first '-' to '.' in the snapshot version string,
62358         e.g., 6.9-377-08144 -> 6.9.377-08144
62359         Remove first parameter.
62360         Don't declare a version "-dirty" merely because a time
62361         stamp has changed.
62362
62363 2007-11-04  Bruno Haible  <bruno@clisp.org>
62364
62365         * lib/lock.h: Protect all macro definitions containing an 'if'
62366         statement through a "do { ... } while (0)".
62367         * lib/tls.h: Likewise.
62368
62369 2007-11-04  Bruno Haible  <bruno@clisp.org>
62370
62371         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62372
62373 2007-11-04  Bruno Haible  <bruno@clisp.org>
62374
62375         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62376         * modules/fprintf-posix (Depends-on): Add nocrash.
62377         * modules/snprintf-posix (Depends-on): Likewise.
62378         * modules/sprintf-posix (Depends-on): Likewise.
62379         * modules/vasnprintf-posix (Depends-on): Likewise.
62380         * modules/vasprintf-posix (Depends-on): Likewise.
62381         * modules/vfprintf-posix (Depends-on): Likewise.
62382         * modules/vsnprintf-posix (Depends-on): Likewise.
62383         * modules/vsprintf-posix (Depends-on): Likewise.
62384         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62385         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62386         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62387         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62388         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62389         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62390         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62391
62392 2007-11-04  Bruno Haible  <bruno@clisp.org>
62393
62394         * modules/nocrash: New file.
62395         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62396         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62397
62398 2007-11-04  Bruno Haible  <bruno@clisp.org>
62399
62400         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62401         precision handling.
62402         * tests/test-vasprintf-posix.c (test_function): Likewise.
62403         * tests/test-snprintf-posix.h (test_function): Likewise.
62404         * tests/test-sprintf-posix.h (test_function): Likewise.
62405
62406         Fix *printf behaviour for large precisions on mingw and BeOS.
62407         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62408         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62410         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62411         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62412         gl_PRINTF_PRECISION and test its result. Invoke
62413         gl_PREREQ_VASNPRINTF_PRECISION.
62414         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62415         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62416         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62417         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62418         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62419         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62420         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62421         * doc/functions/fprintf.texi: Update.
62422         * doc/functions/printf.texi: Update.
62423         * doc/functions/snprintf.texi: Update.
62424         * doc/functions/sprintf.texi: Update.
62425         * doc/functions/vfprintf.texi: Update.
62426         * doc/functions/vprintf.texi: Update.
62427         * doc/functions/vsnprintf.texi: Update.
62428         * doc/functions/vsprintf.texi: Update.
62429
62430 2007-11-04  Bruno Haible  <bruno@clisp.org>
62431
62432         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62433
62434 2007-11-04  Bruno Haible  <bruno@clisp.org>
62435
62436         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62437         Reported by Sylvain Beucler <beuc@gnu.org>.
62438
62439 2007-11-03  Bruno Haible  <bruno@clisp.org>
62440
62441         * tests/test-fprintf-posix2.sh: New file.
62442         * tests/test-fprintf-posix2.c: New file.
62443         * modules/fprintf-posix-tests (Files): Add them.
62444         (TESTS): Add test-fprintf-posix2.sh.
62445         (configure.ac): Check for getrlimit and setrlimit.
62446         (check_PROGRAMS): Add test-fprintf-posix2.
62447
62448         * tests/test-printf-posix2.sh: New file.
62449         * tests/test-printf-posix2.c: New file.
62450         * modules/printf-posix-tests (Files): Add them.
62451         (TESTS): Add test-printf-posix2.sh.
62452         (configure.ac): Check for getrlimit and setrlimit.
62453         (check_PROGRAMS): Add test-printf-posix2.
62454
62455         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62456         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62457         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62458         (decode_double): New function, copied from decode_long_double.
62459         (scale10_round_decimal_decoded): New function, extracted from
62460         scale10_round_decimal_long_double.
62461         (scale10_round_decimal_long_double): Use it.
62462         (scale10_round_decimal_double): New function.
62463         (floorlog10): New function.
62464         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62466         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62467         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62468         gl_PRINTF_ENOMEM and test its result. Invoke
62469         gl_PREREQ_VASNPRINTF_ENOMEM.
62470         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62471         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62472         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62473         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62474         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62475         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62476         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62477         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62478         * modules/snprintf-posix (Depends-on): Likewise.
62479         * modules/sprintf-posix (Depends-on): Likewise.
62480         * modules/vasnprintf-posix (Depends-on): Likewise.
62481         * modules/vasprintf-posix (Depends-on): Likewise.
62482         * modules/vfprintf-posix (Depends-on): Likewise.
62483         * modules/vsnprintf-posix (Depends-on): Likewise.
62484         * modules/vsprintf-posix (Depends-on): Likewise.
62485         * doc/functions/fprintf.texi: Update.
62486         * doc/functions/printf.texi: Update.
62487         * doc/functions/snprintf.texi: Update.
62488         * doc/functions/sprintf.texi: Update.
62489         * doc/functions/vfprintf.texi: Update.
62490         * doc/functions/vprintf.texi: Update.
62491         * doc/functions/vsnprintf.texi: Update.
62492         * doc/functions/vsprintf.texi: Update.
62493
62494 2007-11-03  Bruno Haible  <bruno@clisp.org>
62495
62496         * modules/frexp-nolibm-tests: New file.
62497
62498         * modules/frexp-nolibm: New file.
62499         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62500
62501 2007-11-03  Bruno Haible  <bruno@clisp.org>
62502
62503         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62504         value is C99 compliant.
62505         Needed for OSF/1 5.1.
62506
62507 2007-11-03  Bruno Haible  <bruno@clisp.org>
62508
62509         Fix out-of-memory handling of vasnprintf.
62510         * lib/printf-parse.c: Include <errno.h>.
62511         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62512         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62513         is already set.
62514
62515 2007-11-02  Eric Blake  <ebb9@byu.net>
62516
62517         Fix tests on cygwin.
62518         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62519
62520 2007-11-01  Bruno Haible  <bruno@clisp.org>
62521
62522         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62523         warning.
62524         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62525         needed for POSIX compatibility.
62526
62527 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62528
62529         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
62530         for compatibility with GNU.
62531
62532 2007-11-01  Bruno Haible  <bruno@clisp.org>
62533
62534         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
62535         (putenv): Renamed from rpl_putenv. Change argument type from
62536         'const char *' to 'char *'.
62537         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
62538         of defining putenv in config.h, just set REPLACE_PUTENV.
62539         * modules/putenv (Depends-on): Add stdlib.
62540         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62541         (Include): Use <stdlib.h>.
62542         * lib/stdlib.in.h (putenv): New declaration.
62543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
62544         REPLACE_PUTENV.
62545         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
62546         REPLACE_PUTENV.
62547         Needed for MacOS X 10.5.0.
62548         Reported by Peter O'Gorman <peter@pogma.com>.
62549
62550 2007-11-01  Jim Meyering  <meyering@redhat.com>
62551
62552         Treat an empty date string exactly like "0".
62553         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
62554         if the remaining date string (to be parsed) is empty, use "0".
62555         Reported by Mischa Molhoek and discussed in this thread:
62556         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
62557
62558 2007-10-31  Bruno Haible  <bruno@clisp.org>
62559
62560         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
62561         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
62562         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
62563         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
62564         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
62565         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
62566
62567 2007-10-31  Bruno Haible  <bruno@clisp.org>
62568
62569         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
62570         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
62571         (AC_TYPE_LONG_LONG_INT): Use it.
62572         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
62573         it as well.
62574         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
62575         to m4/longlong.m4.
62576         * modules/stdint (Files): Remove m4/ulonglong.m4.
62577         * modules/strtoull (Files): Use m4/longlong.m4 instead of
62578         m4/ulonglong.m4.
62579         * modules/strtoumax (Files): Likewise.
62580
62581 2007-10-30  Bruno Haible  <bruno@clisp.org>
62582
62583         * modules/xvasprintf-posix: New file.
62584         Suggested by Eric Blake.
62585
62586 2007-10-30  Bruno Haible  <bruno@clisp.org>
62587
62588         * modules/xprintf-posix-tests: New file.
62589         * tests/test-xprintf-posix.sh: New file.
62590         * tests/test-xprintf-posix.c: New file.
62591         * tests/test-xfprintf-posix.c: New file.
62592
62593         * modules/xprintf-posix: New file.
62594
62595 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62596
62597         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
62598         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
62599         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
62600
62601 2007-10-29  Bruno Haible  <bruno@clisp.org>
62602
62603         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
62604         contain the special marker '_cv_'.
62605         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62606         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62607         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62608         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62609         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62610         Reported by Ralf Wildenhues.
62611
62612 2007-10-29  Bruno Haible  <bruno@clisp.org>
62613
62614         * gnulib-tool (func_import): When --lgpl is not specified, set
62615         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
62616         GPLv3.
62617         Reported by Simon Josefsson.
62618
62619 2007-10-28  Bruno Haible  <bruno@clisp.org>
62620
62621         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
62622         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
62623         HAVE_DECL_ISFINITE.
62624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62625         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
62626         HAVE_DECL_ISFINITE.
62627
62628 2007-10-28  Bruno Haible  <bruno@clisp.org>
62629
62630         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
62631         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
62632
62633 2007-10-28  Bruno Haible  <bruno@clisp.org>
62634
62635         Fix link errors with Sun C 5.0 on Solaris 10.
62636         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
62637         function is declared but not present in the compiler's libm.
62638         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
62639         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
62640         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
62641         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
62642         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
62643         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
62644         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
62645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62646         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
62647         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
62648         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
62649         HAVE_DECL_FLOORL.
62650
62651 2007-10-28  Bruno Haible  <bruno@clisp.org>
62652
62653         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
62654         gl_FUNC_FLOORL. Cache the result.
62655         (gl_FUNC_FLOORL): Use it.
62656         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
62657         gl_FUNC_CEILL. Cache the result.
62658         (gl_FUNC_CEILL): Use it.
62659
62660         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
62661         gl_FUNC_FLOOR. Cache the result.
62662         (gl_FUNC_FLOOR): Use it.
62663         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
62664         gl_FUNC_CEIL. Cache the result.
62665         (gl_FUNC_CEIL): Use it.
62666
62667         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
62668         gl_FUNC_FLOORF. Cache the result.
62669         (gl_FUNC_FLOORF): Use it.
62670         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
62671         gl_FUNC_CEILF. Cache the result.
62672         (gl_FUNC_CEILF): Use it.
62673
62674 2007-10-28  Bruno Haible  <bruno@clisp.org>
62675
62676         * gnulib-tool: Allow specifying the LGPL version number through
62677         --lgpl=2 or --lgpl=3.
62678         (func_usage): Document --lgpl with argument.
62679         Handle --lgpl=... arguments.
62680         (func_import): Recognize also gl_LGPL calls with an argument. When
62681         --lgpl=2 is used and the module's license is just LGPL, report an
62682         error. Set sed_transform_lib_file according to the lgpl variable. In
62683         the generated files, use --lgpl or gl_LGPL invocations with argument,
62684         if necessary.
62685         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
62686         an LGPv2+ license.
62687         * doc/gnulib-tool.texi (Modified imports): Update explanation of
62688         gl_LGPL macro.
62689
62690 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62691             Bruno Haible  <bruno@clisp.org>
62692
62693         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
62694         (u16_uctomb_aux): Likewise.
62695         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
62696         !HAVE_INLINE.
62697         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
62698
62699 2007-10-28  Bruno Haible  <bruno@clisp.org>
62700
62701         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
62702         Invoke AM_GETTEXT_OPTION if it exists.
62703         * modules/vasprintf: Likewise.
62704         * modules/verror: Likewise.
62705         * modules/xprintf: Likewise.
62706         * modules/xvasprintf: Likewise.
62707
62708 2007-10-27  Ben Pfaff  <blp@gnu.org>
62709
62710         * lib/math.in.h: Define isfinite macro and prototypes for
62711         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
62712         implementations.
62713         * m4/math_h.m4: New substitutions for isfinite module.
62714         * lib/isfinite.c: New file.
62715         * m4/isfinite.m4: New file.
62716         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
62717         * modules/isfinite: New file.
62718         * modules/isfinite-tests: New file.
62719         * tests/tests-isfinite.c: New file.
62720         * doc/functions/isfinite.texi: Mention isfinite module.
62721         * MODULES.html.sh: Mention new module.
62722
62723 2007-10-27  Ben Pfaff  <blp@gnu.org>
62724
62725         Ralf Wildenhues reported that Tru64 4.0D declares the round
62726         functions but does not have definitions.
62727         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
62728         cannot be found in any library, set the output variable to
62729         "missing" instead of "".
62730         * m4/round.m4: Also use our substitute if we cannot find round in
62731         any library, even if it is declared.
62732         * m4/roundf.m4: Likewise for roundf.
62733         * m4/roundl.m4: Likewise for roundl.
62734         * lib/math.in.h: Undefine roundf, round, roundl before defining
62735         their replacements, to allow for hypothetical systems where these
62736         may be defined as macros but not available in libraries.
62737
62738 2007-10-27  Bruno Haible  <bruno@clisp.org>
62739
62740         * doc/gnulib.texi: Invoke @firstparagraphindent.
62741         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
62742         changes in gnulib.
62743         (Source changes): New section.
62744
62745 2007-10-26  Bruno Haible  <bruno@clisp.org>
62746
62747         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
62748         borrowed from autoconf.
62749
62750 2007-10-26  Bruno Haible  <bruno@clisp.org>
62751
62752         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
62753         strerror returned the empty string. Needed on HP-UX 11.00.
62754
62755 2007-10-24  Micah Cowan  <micah@cowan.name>
62756
62757         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
62758         * build-aux/bootstrap: Remove support for now-unnecessary option,
62759         --cvs-user, and envvars CVS_USER, CVS_RSH.
62760
62761 2007-10-24  Jim Meyering  <meyering@redhat.com>
62762
62763         Avoid diagnostics from sha1sum when there is no cached checksum.
62764         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
62765         if the po.s1 file hasn't been created yet.
62766
62767         * build-aux/bootstrap: Sync from coreutils:
62768         2007-10-24  Jim Meyering  <meyering@redhat.com>
62769         Get gnulib from the git repository, not from an obsolete cvs one.
62770         * build-aux/bootstrap: Suggestion from Micah Cowan.
62771         2007-10-04  Jim Meyering  <jim@meyering.net>
62772         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
62773         (update_po_files): Work also when there are no .po files in po/.
62774
62775 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62776
62777         * README: Append ".git" to git and cg examples.
62778         Problem reported by Benoit Sigoure.
62779
62780 2007-10-23  Micah Cowan  <micah@cowan.name>
62781
62782         * users.txt: Add wget.
62783
62784 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62785
62786         Fix linking of some unistdio tests on FreeBSD.
62787         * modules/unistdio/u16-vsnprintf-tests
62788         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
62789         * modules/unistdio/u16-vsprintf-tests
62790         (test_u16_vsnprintf1_LDADD): Likewise.
62791         * modules/unistdio/u32-vsnprintf-tests
62792         (test_u32_vsnprintf1_LDADD): Likewise.
62793         * modules/unistdio/u32-vsprintf-tests
62794         (test_u32_vsprintf1_LDADD): Likewise.
62795         * modules/unistdio/u8-vsnprintf-tests
62796         (test_u8_vsnprintf1_LDADD): Likewise.
62797         * modules/unistdio/u8-vsprintf-tests
62798         (test_u8_vsprintf1_LDADD): Likewise.
62799         * modules/unistdio/ulc-vsnprintf-tests
62800         (test_ulc_vsnprintf1_LDADD): Likewise.
62801         * modules/unistdio/ulc-vsprintf-tests
62802         (test_ulc_vsprintf1_LDADD): Likewise.
62803
62804         Fix linking of some uniconv tests on FreeBSD.
62805         * modules/uniconv/u16-conv-from-enc-tests
62806         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
62807         * modules/uniconv/u16-conv-to-enc-tests
62808         (test_u16_conv_to_enc_LDADD): Likewise.
62809         * modules/uniconv/u16-strconv-from-enc-tests
62810         (test_u16_strconv_from_enc_LDADD): Likewise.
62811         * modules/uniconv/u16-strconv-to-enc-tests
62812         (test_u16_strconv_to_enc_LDADD): Likewise.
62813         * modules/uniconv/u32-conv-from-enc-tests
62814         (test_u32_conv_from_enc_LDADD): Likewise.
62815         * modules/uniconv/u32-conv-to-enc-tests
62816         (test_u32_conv_to_enc_LDADD): Likewise.
62817         * modules/uniconv/u32-strconv-from-enc-tests
62818         (test_u32_strconv_from_enc_LDADD): Likewise.
62819         * modules/uniconv/u32-strconv-to-enc-tests
62820         (test_u32_strconv_to_enc_LDADD): Likewise.
62821         * modules/uniconv/u8-conv-from-enc-tests
62822         (test_u8_conv_from_enc_LDADD): Likewise.
62823         * modules/uniconv/u8-conv-to-enc-tests
62824         (test_u8_conv_to_enc_LDADD): Likewise.
62825         * modules/uniconv/u8-strconv-from-enc-tests
62826         (test_u8_strconv_from_enc_LDADD): Likewise.
62827         * modules/uniconv/u8-strconv-to-enc-tests
62828         (test_u8_strconv_to_enc_LDADD): Likewise.
62829
62830 2007-10-22  Bruno Haible  <bruno@clisp.org>
62831
62832         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
62833         size.
62834
62835 2007-10-22  Eric Blake  <ebb9@byu.net>
62836
62837         Tweak x*printf documentation.
62838         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
62839         variable name and comments.
62840         Suggested by Bruno Haible.
62841
62842 2007-10-22  Bruno Haible  <bruno@clisp.org>
62843
62844         * lib/acl.c (copy_acl): Fix file name in comment.
62845
62846 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62847
62848         Fix Tru64 problem with stdbool.h.
62849         * lib/stdbool.in.h (false, true):
62850         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
62851         Don't declare as an enum in this situation; it runs afoul of Tru64.
62852         Problem reported by Steven M. Schweda in
62853         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
62854
62855 2007-10-22  Eric Blake  <ebb9@byu.net>
62856
62857         Also wrap vf?printf.
62858         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
62859         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
62860         (xvprintf, xvfprintf): New functions.
62861
62862 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62863
62864         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
62865         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
62866
62867         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
62868         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
62869
62870 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62871
62872         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
62873         by Bruno Haible.
62874
62875 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62876
62877         * lib/getloadavg.c
62878         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
62879         Undef `sys' after including sys/table.h, for Tru64 4.0D.
62880
62881         * tests/test-i-ring.c: Work for C89.
62882
62883 2007-10-22  Bruno Haible  <bruno@clisp.org>
62884
62885         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
62886         -1u, in preprocessor expression, so that we don't test for the bug
62887         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
62888         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
62889
62890 2007-10-22  Eric Blake  <ebb9@byu.net>
62891
62892         * tests/test-yesno.sh: Silence stderr during test.
62893
62894 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62895
62896         * modules/crypto/gc-camellia: New file.
62897
62898         * m4/gc-camellia.m4: New file.
62899
62900         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
62901
62902         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
62903
62904 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62905
62906         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
62907         --help to stdout.  Reported by sms@antinode.org (Steven
62908         M. Schweda).
62909
62910 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62911
62912         * users.txt: Fix link to libksba.
62913
62914 2007-10-21  Ben Pfaff  <blp@gnu.org>
62915
62916         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
62917         round.c roundf implementation that depends on floorf and ceilf to
62918         be tested unconditionally.
62919
62920 2007-10-21  Ben Pfaff  <blp@gnu.org>
62921
62922         * m4/check-libm-func.m4: Removed.
62923         * m4/check-math-lib.m4: New file.
62924         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
62925         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
62926         definition and lack of AC_LIBOBJ([roundf]).
62927         * m4/roundl.m4: Ditto, and similarly for roundl.
62928         * modules/round: Reference new m4 file.
62929         * modules/roundf: Ditto.
62930         * modules/roundl: Ditto.
62931         * tests/test-round2.c (main): Use ROUND instead of round.
62932         Bug report from Bruno Haible.
62933
62934 2007-10-21  Bruno Haible  <bruno@clisp.org>
62935
62936         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
62937         context.
62938
62939 2007-10-21  Bruno Haible  <bruno@clisp.org>
62940
62941         * tests/test-wcwidth.c (main): Allow negative result for some control
62942         characters.
62943
62944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
62945         Needed on OSF/1 5.1.
62946
62947 2007-10-21  Bruno Haible  <bruno@clisp.org>
62948
62949         * tests/test-floorf1.c: Include isnanf.h.
62950         (main): Use isnanf() instead of isnan().
62951         * tests/test-ceilf1.c: Include isnanf.h.
62952         (main): Use isnanf() instead of isnan().
62953         * tests/test-truncf1.c: Include isnanf.h.
62954         (main): Use isnanf() instead of isnan().
62955         * tests/test-roundf1.c: Include isnanf.h.
62956         (main): Use isnanf() instead of isnan().
62957
62958 2007-10-21  Eric Blake  <ebb9@byu.net>
62959
62960         * users.txt: Update URL for m4.
62961
62962 2007-10-21  Bruno Haible  <bruno@clisp.org>
62963
62964         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
62965
62966 2007-10-21  Bruno Haible  <bruno@clisp.org>
62967
62968         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
62969         Git's management files if the CVS files are not present.
62970
62971 2007-10-20  Bruno Haible  <bruno@clisp.org>
62972
62973         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
62974         gcc-3.4.x.
62975
62976 2007-10-20  Ben Pfaff  <blp@gnu.org>
62977
62978         * lib/math.in.h: Declare round, roundf, roundl if we are providing
62979         implementations.
62980         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
62981         * lib/round.c: New file.
62982         * lib/roundf.c: New file.
62983         * lib/roundl.c: New file.
62984         * m4/round.m4: New file.
62985         * m4/roundf.m4: New file.
62986         * m4/roundl.m4: New file.
62987         * m4/check-libm-func-m4: New file.
62988         * modules/math: Replace round, roundf, roundl related @VARS@ in
62989         math.in.h.
62990         * modules/round: New file.
62991         * modules/round-tests: New file.
62992         * modules/roundf: New file.
62993         * modules/roundf-tests: New file.
62994         * modules/roundl: New file.
62995         * modules/roundl-tests: New file.
62996         * tests/test-round1.c: New file.
62997         * tests/test-round2.c: New file.
62998         * tests/test-roundf1.c: New file.
62999         * tests/test-roundf2.c: New file.
63000         * tests/test-roundl.c: New file.
63001         * doc/functions/round.texi: Mention round module.
63002         * doc/functions/roundf.texi: Mention roundf module.
63003         * doc/functions/roundl.texi: Mention roundl module.
63004         * MODULES.html.sh: Mention new modules.
63005         Thanks to Bruno Haible for suggestions.
63006
63007 2007-10-20  Jim Meyering  <meyering@redhat.com>
63008
63009         * lib/xprintf.c: Include <config.h> unconditionally.
63010
63011         Change xprintf's license to GPL.
63012         * modules/xprintf (License): s/LGPL/GPL/, since this module
63013         depends on modules (exit and exitfail) which are GPL.
63014         Suggestion from Bruno Haible.
63015
63016         xprintf fixes.
63017         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63018         Use a clearer diagnostic.
63019         Patch from Bruno Haible.
63020
63021 2007-10-20  Bruno Haible  <bruno@clisp.org>
63022
63023         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63024         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63025         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63026
63027 2007-10-20  Bruno Haible  <bruno@clisp.org>
63028
63029         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63030         precision in the comparison result > x - 1 or similar.
63031         * tests/test-ceilf2.c (correct_result_p): Likewise.
63032         * tests/test-truncf2.c (correct_result_p): Likewise.
63033         * tests/test-trunc2.c (correct_result_p): Likewise.
63034         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63035
63036 2007-10-20  Bruno Haible  <bruno@clisp.org>
63037
63038         * modules/ceil: New file.
63039         * m4/ceil.m4: New file.
63040         * doc/functions/ceil.texi: Mention the 'ceil' module.
63041
63042 2007-10-20  Bruno Haible  <bruno@clisp.org>
63043
63044         * modules/floor: New file.
63045         * m4/floor.m4: New file.
63046         * doc/functions/floor.texi: Mention the 'floor' module.
63047
63048 2007-10-20  Bruno Haible  <bruno@clisp.org>
63049
63050         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63051         of %a.
63052         * modules/floorf-tests (Depends-on): Likewise.
63053         * modules/truncf-tests (Depends-on): Likewise.
63054         * modules/trunc-tests (Depends-on): Likewise.
63055         Reported by Ben Pfaff.
63056
63057 2007-10-19  Jim Meyering  <meyering@redhat.com>
63058
63059         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63060         Don't bother testing specific errno values.  Just test ferror.
63061
63062         New module: xprintf
63063         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63064
63065 2007-10-19  Bruno Haible  <bruno@clisp.org>
63066
63067         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63068         syntax.
63069         * modules/javaexec (Makefile.am): Likewise.
63070         * modules/relocatable-prog (Makefile.am): Likewise.
63071         Suggested by Jim Meyering.
63072
63073 2007-10-18  Bruno Haible  <bruno@clisp.org>
63074
63075         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63076         Reported by Jim Meyering.
63077
63078 2007-10-18  Eric Blake  <ebb9@byu.net>
63079
63080         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63081
63082 2007-10-18  Bruno Haible  <bruno@clisp.org>
63083
63084         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63085         the format string into writable memory. Needed in Fortify conditions.
63086
63087 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63088             Bruno Haible  <bruno@clisp.org>
63089
63090         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63091         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63092         * modules/trim (Depends-on): Add mbchar.
63093         (configure.ac): Add gl_FUNC_MBRTOWC.
63094         (Makefile.am): Augment lib_SOURCES.
63095
63096 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63097
63098         Modify glob.c to use fstatat and dirfd, to simplify it.
63099         Suggested by Eric Blake.
63100         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63101         Don't include <stdbool.h>; not used.
63102         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63103         (link_exists_p): Simplify implementation, since we can now assume
63104         dirfd and fstatat.
63105         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63106
63107 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63108
63109         * gnulib-tool (func_get_dependencies): Fix sed script to
63110         match only tests.
63111
63112 2007-10-17  Bruno Haible  <bruno@clisp.org>
63113
63114         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63115         allow locale names without encoding suffix.
63116         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63117         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63118
63119 2007-10-16  Bruno Haible  <bruno@clisp.org>
63120
63121         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63122         * lib/getgroups.c (getgroups): Likewise.
63123         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63124
63125 2007-10-16  Bruno Haible  <bruno@clisp.org>
63126
63127         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63128         * modules/malloc-posix (License): Likewise.
63129         * modules/realloc-posix (License): Likewise.
63130         * modules/calloc-posix (License): Likewise.
63131         * modules/intprops (License): Change from GPL to LGPL, with
63132         Paul Eggert's approval.
63133
63134 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63135
63136         Merge glibc changes into lib/glob.c.
63137
63138         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63139         2007-10-15 04:59:03 UTC.  Here are the changes:
63140
63141         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63142
63143         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63144
63145         * lib/glob.c: Add some branch prediction throughout.
63146
63147         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63148
63149         [BZ #5103]
63150         * lib/glob.c (glob): Recognize patterns starting \/.
63151
63152         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63153
63154         [BZ #3996]
63155         * lib/glob.c (attribute_hidden): Define if not defined.
63156         (glob): Unescape dirname, filename or username when needed and not
63157         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63158         is NULL.  Handle unescaped [ in pattern without closing ].
63159         Don't pass GLOB_CHECK down to recursive glob for directories.
63160         (__glob_pattern_type): New function.
63161         (__glob_pattern_p): Implement using __glob_pattern_type.
63162         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63163         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63164         Remove unreachable code.
63165
63166         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63167
63168         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63169         explain why there are no leaks.
63170
63171         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63172
63173         [BZ #3253]
63174         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63175         time, rather allocate increasingly bigger arrays of pointers, if
63176         possible with alloca, if too large with malloc.
63177
63178 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63181         Problem reported by H.Merijn Brand in
63182         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63183         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63184         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63185
63186 2007-10-15  Bruno Haible  <bruno@clisp.org>
63187
63188         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63189         with explicit rpl_ prefix.
63190         * lib/fopen.c (fopen): Likewise.
63191         * lib/freopen.c (freopen): Likewise.
63192         * lib/iconv.c (iconv): Likewise.
63193         * lib/iconv_close.c (iconv_close): Likewise.
63194
63195 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63196
63197         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63198
63199 2007-10-15  Bruno Haible  <bruno@clisp.org>
63200
63201         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63202         <stddef.h> instead of <stdlib.h> since we only need NULL.
63203         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63204
63205 2007-10-15  Bruno Haible  <bruno@clisp.org>
63206
63207         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63208         Replace paragraph talking about LIBOBJS.
63209         Reported by Colin Watson <cjwatson@debian.org>.
63210
63211 2007-10-15  Bruno Haible  <bruno@clisp.org>
63212
63213         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63214         <stdlib.h> before using NULL.
63215
63216 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63217
63218         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63219         Reported by Albert Chin <china@thewrittenword.com>.
63220
63221 2007-10-14  Bruno Haible  <bruno@clisp.org>
63222
63223         * modules/iconv_open-utf-tests: New file.
63224         * tests/test-iconv-utf.c: New file.
63225
63226         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63227         * modules/iconv_open-utf: New file.
63228         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63229         (iconv, iconv_close): New declarations.
63230         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63231         be defined.
63232         (iconv_open): Add special handling of conversion between UTF-8 and
63233         UTF-{16,32}{BE,LE}.
63234         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63235         * lib/iconv_close.c: New file.
63236         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63237         gl_FUNC_ICONV_OPEN.
63238         (gl_FUNC_ICONV_OPEN): Use it.
63239         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63240         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63241         and REPLACE_ICONV_UTF.
63242         * modules/iconv_open (Depends-on): Add c-strcase.
63243         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63244         ICONV_CONST.
63245         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63246
63247 2007-10-13  Albert Chin  <china@thewrittenword.com>
63248             Bruno Haible  <bruno@clisp.org>
63249
63250         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63251         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63252
63253 2007-10-13  Bruno Haible  <bruno@clisp.org>
63254
63255         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63256         defined, use the ISO C99 inline semantics.
63257         * lib/argp.h (ARGP_EI): Likewise.
63258
63259 2007-10-13  Bruno Haible  <bruno@clisp.org>
63260
63261         Handle 'inline' change in gcc 4.3.0.
63262         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63263         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63264         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63265         argp_fmtstream_point): Disable 'extern' declaration if the function
63266         definition is going to be provided inline.
63267         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63268         semantics, not the ISO C99 inline semantics.
63269         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63270         'extern' declaration if the function definition is going to be provided
63271         inline.
63272         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63273         the GNU C inline semantics, not the ISO C99 inline semantics. With
63274         GCC 4.2, avoid a warning.
63275
63276 2007-10-13  Bruno Haible  <bruno@clisp.org>
63277
63278         * lib/freading.h (freading): Enable the use of __freading for
63279         glibc >= 2.7.
63280         * lib/freading.c (freading): Likewise.
63281
63282 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63283
63284         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63285         "warning: C99 inline functions are not supported; using GNU89".
63286
63287 2007-10-12  Bruno Haible  <bruno@clisp.org>
63288
63289         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63290         of 2.
63291         * tests/test-ceilf2.c: New file.
63292         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63293
63294         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63295         * modules/ceilf-tests: Update.
63296
63297 2007-10-12  Bruno Haible  <bruno@clisp.org>
63298
63299         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63300         of 2.
63301         * tests/test-floorf2.c: New file.
63302         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63303
63304         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63305         * modules/floorf-tests: Update.
63306
63307 2007-10-12  Bruno Haible  <bruno@clisp.org>
63308
63309         * tests/test-trunc2.c: New file.
63310         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63311
63312         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63313         * modules/trunc-tests: Update.
63314
63315 2007-10-12  Bruno Haible  <bruno@clisp.org>
63316
63317         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63318         of 2.
63319         * tests/test-truncf2.c: New file.
63320         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63321
63322         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63323         * modules/truncf-tests: Update.
63324
63325 2007-10-11  Eric Blake  <ebb9@byu.net>
63326
63327         Don't claim strerror is broken on Interix.
63328         * doc/functions/strerror.texi (strerror): Known broken systems are
63329         now Solaris 8, and not Interix.
63330         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63331         Interix on cross-compile.
63332         Reported by Martin Koeppe in
63333         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63334
63335 2007-10-11  Bruno Haible  <bruno@clisp.org>
63336
63337         * modules/i-ring-tests: New file.
63338         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63339         instead of assert.
63340
63341 2007-10-11  Bruno Haible  <bruno@clisp.org>
63342
63343         * modules/filenamecat-tests: New file.
63344         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63345         * lib/filenamecat.c: Remove test code.
63346
63347 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63350
63351         * lib/strerror.c: Include <string.h> always, to test interface,
63352         and to remove the need for the dummy.
63353         Include intprops.h to compute width instead of doing it ourselves
63354         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63355         (strerror): Define it to return NULL if there's no system strerror.
63356         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63357         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63358         ancient pre-strerror Unix systems well any more.  Saying "unknown
63359         system error" is enough.
63360         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63361         simpler strerror.c implementation.
63362         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63363         Simplify the tests to reflect the simpler strerror implementation.
63364         * modules/strerror (Depends-on): Add intprops.
63365
63366 2007-10-09  Eric Blake  <ebb9@byu.net>
63367
63368         Silence test-fpending.
63369         * modules/fpending-tests (Files): Add wrapper script.
63370         * tests/test-fpending.sh: New file.
63371
63372 2007-10-09  Bruno Haible  <bruno@clisp.org>
63373
63374         * MODULES.html.sh (func_module): Don't create a hyperlink for
63375         function names like 'printf_frexp'.
63376         (Misc): Add crc, memxor.
63377         (Characteristics of floating types): New section.
63378         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63379         isnanf-nolibm, signbit, trunc, truncf, truncl.
63380         (Enhancements for ISO C 99 functions): New subsection Input/output.
63381         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63382         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63383         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63384         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63385         (Enhancements for POSIX:2001 functions): Add chdir-long.
63386         (File system functions): Add areadlink, chdir-safer, read-file.
63387         Remove cycle-check.
63388         (File system as inode set): New section.
63389         (Date and time): Add gethrxtime.
63390         (Multithreading): Add openmp.
63391         (Internationalization functions): Add localename.
63392         (Unicode string functions): Add unistr/u*-mbsnlen.
63393         (Support for maintaining and releasing projects): Add git-version-gen.
63394         (Lone files): Remove directories.
63395
63396 2007-10-08  Ben Pfaff  <blp@gnu.org>
63397
63398         * lib/xmalloca.h: Fix typo in comment.
63399
63400 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63401
63402         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63403         when avoiding problems with integer overflow.  Use a portable test
63404         instead.
63405
63406 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63407
63408         * modules/dummy (License): Change to LGPLv2+.
63409         * modules/float (License): Likewise
63410         * modules/realloc (License): Likewise
63411         * modules/stdlib (License): Likewise
63412
63413 2007-10-07  Bruno Haible  <bruno@clisp.org>
63414
63415         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63416         * floor.c (TWO_MANT_DIG): Likewise.
63417         * ceil.c (TWO_MANT_DIG): Likewise.
63418         Reported by Ben Pfaff.
63419
63420 2007-10-07  Bruno Haible  <bruno@clisp.org>
63421
63422         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63423         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63424         * lib/frexp.c (FUNC): Likewise.
63425         * lib/printf-frexp.h (printf_frexp): Likewise.
63426         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63427         * lib/printf-frexp.c (FUNC): Likewise.
63428         Suggested by Jim Meyering.
63429
63430 2007-10-07  Jim Meyering  <meyering@redhat.com>
63431
63432         Make xnanosleep's integer overflow test more robust.
63433         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63434         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63435
63436 2007-10-07  Bruno Haible  <bruno@clisp.org>
63437
63438         * NEWS: Mention the license change.
63439
63440         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63441         abbreviations in the modules files.
63442
63443         Change copyright notice from GPLv2+ to GPLv3+.
63444         * README: Change copyright notice.
63445         * MODULES.html.sh: Likewise.
63446         * build-aux/bootstrap.conf: Likewise.
63447         * build-aux/config.libpath: Likewise.
63448         * build-aux/csharpcomp.sh.in: Likewise.
63449         * build-aux/csharpexec.sh.in: Likewise.
63450         * build-aux/install-reloc: Likewise.
63451         * build-aux/javacomp.sh.in: Likewise.
63452         * build-aux/javaexec.sh.in: Likewise.
63453         * build-aux/ldd.sh.in: Likewise.
63454         * build-aux/reloc-ldflags: Likewise.
63455         * build-aux/relocatable.sh.in: Likewise.
63456         * build-aux/x-to-1.in: Likewise.
63457         * check-module: Likewise.
63458         * config/srclistvars.sh: Likewise.
63459         * gnulib-tool: Likewise.
63460         * lib/acl-internal.h: Likewise.
63461         * lib/acl.c: Likewise.
63462         * lib/acl.h: Likewise.
63463         * lib/acl_entries.c: Likewise.
63464         * lib/areadlink-with-size.c: Likewise.
63465         * lib/areadlink.c: Likewise.
63466         * lib/areadlink.h: Likewise.
63467         * lib/argmatch.c: Likewise.
63468         * lib/argmatch.h: Likewise.
63469         * lib/argp-ba.c: Likewise.
63470         * lib/argp-eexst.c: Likewise.
63471         * lib/argp-fmtstream.c: Likewise.
63472         * lib/argp-fmtstream.h: Likewise.
63473         * lib/argp-fs-xinl.c: Likewise.
63474         * lib/argp-help.c: Likewise.
63475         * lib/argp-namefrob.h: Likewise.
63476         * lib/argp-parse.c: Likewise.
63477         * lib/argp-pin.c: Likewise.
63478         * lib/argp-pv.c: Likewise.
63479         * lib/argp-pvh.c: Likewise.
63480         * lib/argp-xinl.c: Likewise.
63481         * lib/argp.h: Likewise.
63482         * lib/at-func.c: Likewise.
63483         * lib/atanl.c: Likewise.
63484         * lib/backupfile.c: Likewise.
63485         * lib/backupfile.h: Likewise.
63486         * lib/basename.c: Likewise.
63487         * lib/binary-io.h: Likewise.
63488         * lib/byteswap.in.h: Likewise.
63489         * lib/c-stack.c: Likewise.
63490         * lib/c-stack.h: Likewise.
63491         * lib/c-strcasestr.c: Likewise.
63492         * lib/c-strcasestr.h: Likewise.
63493         * lib/c-strstr.c: Likewise.
63494         * lib/c-strstr.h: Likewise.
63495         * lib/c-strtod.c: Likewise.
63496         * lib/calloc.c: Likewise.
63497         * lib/canon-host.c: Likewise.
63498         * lib/canon-host.h: Likewise.
63499         * lib/canonicalize-lgpl.c: Likewise.
63500         * lib/canonicalize.c: Likewise.
63501         * lib/canonicalize.h: Likewise.
63502         * lib/ceil.c: Likewise.
63503         * lib/ceilf.c: Likewise.
63504         * lib/ceill.c: Likewise.
63505         * lib/chdir-long.c: Likewise.
63506         * lib/chdir-long.h: Likewise.
63507         * lib/chdir-safer.c: Likewise.
63508         * lib/chdir-safer.h: Likewise.
63509         * lib/chown.c: Likewise.
63510         * lib/classpath.c: Likewise.
63511         * lib/classpath.h: Likewise.
63512         * lib/clean-temp.c: Likewise.
63513         * lib/clean-temp.h: Likewise.
63514         * lib/cloexec.c: Likewise.
63515         * lib/close-stream.c: Likewise.
63516         * lib/closein.c: Likewise.
63517         * lib/closein.h: Likewise.
63518         * lib/closeout.c: Likewise.
63519         * lib/closeout.h: Likewise.
63520         * lib/concat-filename.c: Likewise.
63521         * lib/copy-file.c: Likewise.
63522         * lib/copy-file.h: Likewise.
63523         * lib/count-one-bits.h: Likewise.
63524         * lib/crc.c: Likewise.
63525         * lib/crc.h: Likewise.
63526         * lib/creat-safer.c: Likewise.
63527         * lib/csharpcomp.c: Likewise.
63528         * lib/csharpcomp.h: Likewise.
63529         * lib/csharpexec.c: Likewise.
63530         * lib/csharpexec.h: Likewise.
63531         * lib/cycle-check.c: Likewise.
63532         * lib/cycle-check.h: Likewise.
63533         * lib/diacrit.c: Likewise.
63534         * lib/diacrit.h: Likewise.
63535         * lib/diffseq.h: Likewise.
63536         * lib/dirchownmod.c: Likewise.
63537         * lib/dirent.in.h: Likewise.
63538         * lib/dirfd.c: Likewise.
63539         * lib/dirfd.h: Likewise.
63540         * lib/dirname.c: Likewise.
63541         * lib/dirname.h: Likewise.
63542         * lib/dummy.c: Likewise.
63543         * lib/dup-safer.c: Likewise.
63544         * lib/dup2.c: Likewise.
63545         * lib/eealloc.h: Likewise.
63546         * lib/error.c: Likewise.
63547         * lib/error.h: Likewise.
63548         * lib/euidaccess.c: Likewise.
63549         * lib/exclude.c: Likewise.
63550         * lib/exclude.h: Likewise.
63551         * lib/execute.c: Likewise.
63552         * lib/execute.h: Likewise.
63553         * lib/exitfail.c: Likewise.
63554         * lib/exitfail.h: Likewise.
63555         * lib/expl.c: Likewise.
63556         * lib/fatal-signal.c: Likewise.
63557         * lib/fatal-signal.h: Likewise.
63558         * lib/fbufmode.c: Likewise.
63559         * lib/fbufmode.h: Likewise.
63560         * lib/fchdir.c: Likewise.
63561         * lib/fchmodat.c: Likewise.
63562         * lib/fchownat.c: Likewise.
63563         * lib/fcntl--.h: Likewise.
63564         * lib/fcntl-safer.h: Likewise.
63565         * lib/fcntl.in.h: Likewise.
63566         * lib/fd-safer.c: Likewise.
63567         * lib/fflush.c: Likewise.
63568         * lib/file-has-acl.c: Likewise.
63569         * lib/file-set.c: Likewise.
63570         * lib/file-type.c: Likewise.
63571         * lib/file-type.h: Likewise.
63572         * lib/fileblocks.c: Likewise.
63573         * lib/filemode.c: Likewise.
63574         * lib/filemode.h: Likewise.
63575         * lib/filename.h: Likewise.
63576         * lib/filenamecat.c: Likewise.
63577         * lib/filenamecat.h: Likewise.
63578         * lib/findprog.c: Likewise.
63579         * lib/findprog.h: Likewise.
63580         * lib/float.in.h: Likewise.
63581         * lib/floor.c: Likewise.
63582         * lib/floorf.c: Likewise.
63583         * lib/floorl.c: Likewise.
63584         * lib/fopen-safer.c: Likewise.
63585         * lib/fopen.c: Likewise.
63586         * lib/fpending.c: Likewise.
63587         * lib/fpending.h: Likewise.
63588         * lib/fprintf.c: Likewise.
63589         * lib/fprintftime.h: Likewise.
63590         * lib/fpucw.h: Likewise.
63591         * lib/fpurge.c: Likewise.
63592         * lib/fpurge.h: Likewise.
63593         * lib/freadable.c: Likewise.
63594         * lib/freadable.h: Likewise.
63595         * lib/freadahead.c: Likewise.
63596         * lib/freadahead.h: Likewise.
63597         * lib/freading.c: Likewise.
63598         * lib/freading.h: Likewise.
63599         * lib/free.c: Likewise.
63600         * lib/freopen.c: Likewise.
63601         * lib/frexp.c: Likewise.
63602         * lib/frexpl.c: Likewise.
63603         * lib/fseek.c: Likewise.
63604         * lib/fseterr.c: Likewise.
63605         * lib/fseterr.h: Likewise.
63606         * lib/fstatat.c: Likewise.
63607         * lib/fstrcmp.c: Likewise.
63608         * lib/fstrcmp.h: Likewise.
63609         * lib/fsusage.c: Likewise.
63610         * lib/fsusage.h: Likewise.
63611         * lib/ftell.c: Likewise.
63612         * lib/ftello.c: Likewise.
63613         * lib/fts-cycle.c: Likewise.
63614         * lib/fts.c: Likewise.
63615         * lib/fts_.h: Likewise.
63616         * lib/full-read.c: Likewise.
63617         * lib/full-read.h: Likewise.
63618         * lib/full-write.c: Likewise.
63619         * lib/full-write.h: Likewise.
63620         * lib/fwritable.c: Likewise.
63621         * lib/fwritable.h: Likewise.
63622         * lib/fwriteerror.c: Likewise.
63623         * lib/fwriteerror.h: Likewise.
63624         * lib/fwriting.c: Likewise.
63625         * lib/fwriting.h: Likewise.
63626         * lib/gcd.c: Likewise.
63627         * lib/gcd.h: Likewise.
63628         * lib/getcwd.c: Likewise.
63629         * lib/getdate.h: Likewise.
63630         * lib/getdate.y: Likewise.
63631         * lib/getdomainname.c: Likewise.
63632         * lib/getdomainname.h: Likewise.
63633         * lib/getgroups.c: Likewise.
63634         * lib/gethostname.c: Likewise.
63635         * lib/gethrxtime.c: Likewise.
63636         * lib/gethrxtime.h: Likewise.
63637         * lib/getloadavg.c: Likewise.
63638         * lib/getndelim2.c: Likewise.
63639         * lib/getndelim2.h: Likewise.
63640         * lib/getnline.c: Likewise.
63641         * lib/getnline.h: Likewise.
63642         * lib/getopt.c: Likewise.
63643         * lib/getopt.in.h: Likewise.
63644         * lib/getopt1.c: Likewise.
63645         * lib/getopt_int.h: Likewise.
63646         * lib/getpagesize.h: Likewise.
63647         * lib/getsubopt.c: Likewise.
63648         * lib/gettime.c: Likewise.
63649         * lib/getugroups.c: Likewise.
63650         * lib/getugroups.h: Likewise.
63651         * lib/getusershell.c: Likewise.
63652         * lib/gl_anyavltree_list1.h: Likewise.
63653         * lib/gl_anyavltree_list2.h: Likewise.
63654         * lib/gl_anyhash_list1.h: Likewise.
63655         * lib/gl_anyhash_list2.h: Likewise.
63656         * lib/gl_anylinked_list1.h: Likewise.
63657         * lib/gl_anylinked_list2.h: Likewise.
63658         * lib/gl_anyrbtree_list1.h: Likewise.
63659         * lib/gl_anyrbtree_list2.h: Likewise.
63660         * lib/gl_anytree_list1.h: Likewise.
63661         * lib/gl_anytree_list2.h: Likewise.
63662         * lib/gl_anytree_oset.h: Likewise.
63663         * lib/gl_anytreehash_list1.h: Likewise.
63664         * lib/gl_anytreehash_list2.h: Likewise.
63665         * lib/gl_array_list.c: Likewise.
63666         * lib/gl_array_list.h: Likewise.
63667         * lib/gl_array_oset.c: Likewise.
63668         * lib/gl_array_oset.h: Likewise.
63669         * lib/gl_avltree_list.c: Likewise.
63670         * lib/gl_avltree_list.h: Likewise.
63671         * lib/gl_avltree_oset.c: Likewise.
63672         * lib/gl_avltree_oset.h: Likewise.
63673         * lib/gl_avltreehash_list.c: Likewise.
63674         * lib/gl_avltreehash_list.h: Likewise.
63675         * lib/gl_carray_list.c: Likewise.
63676         * lib/gl_carray_list.h: Likewise.
63677         * lib/gl_linked_list.c: Likewise.
63678         * lib/gl_linked_list.h: Likewise.
63679         * lib/gl_linkedhash_list.c: Likewise.
63680         * lib/gl_linkedhash_list.h: Likewise.
63681         * lib/gl_list.c: Likewise.
63682         * lib/gl_list.h: Likewise.
63683         * lib/gl_oset.c: Likewise.
63684         * lib/gl_oset.h: Likewise.
63685         * lib/gl_rbtree_list.c: Likewise.
63686         * lib/gl_rbtree_list.h: Likewise.
63687         * lib/gl_rbtree_oset.c: Likewise.
63688         * lib/gl_rbtree_oset.h: Likewise.
63689         * lib/gl_rbtreehash_list.c: Likewise.
63690         * lib/gl_rbtreehash_list.h: Likewise.
63691         * lib/gl_sublist.c: Likewise.
63692         * lib/gl_sublist.h: Likewise.
63693         * lib/group-member.c: Likewise.
63694         * lib/group-member.h: Likewise.
63695         * lib/hard-locale.c: Likewise.
63696         * lib/hard-locale.h: Likewise.
63697         * lib/hash-pjw.c: Likewise.
63698         * lib/hash-pjw.h: Likewise.
63699         * lib/hash-triple.c: Likewise.
63700         * lib/hash.c: Likewise.
63701         * lib/hash.h: Likewise.
63702         * lib/human.c: Likewise.
63703         * lib/human.h: Likewise.
63704         * lib/i-ring.c: Likewise.
63705         * lib/i-ring.h: Likewise.
63706         * lib/idcache.c: Likewise.
63707         * lib/imaxabs.c: Likewise.
63708         * lib/imaxdiv.c: Likewise.
63709         * lib/inet_pton.c: Likewise.
63710         * lib/inet_pton.h: Likewise.
63711         * lib/intprops.h: Likewise.
63712         * lib/inttostr.c: Likewise.
63713         * lib/inttostr.h: Likewise.
63714         * lib/inttypes.in.h: Likewise.
63715         * lib/isapipe.c: Likewise.
63716         * lib/isdir.c: Likewise.
63717         * lib/isnan.c: Likewise.
63718         * lib/isnan.h: Likewise.
63719         * lib/isnanf.c: Likewise.
63720         * lib/isnanf.h: Likewise.
63721         * lib/isnanl-nolibm.h: Likewise.
63722         * lib/isnanl.c: Likewise.
63723         * lib/isnanl.h: Likewise.
63724         * lib/javacomp.c: Likewise.
63725         * lib/javacomp.h: Likewise.
63726         * lib/javaexec.c: Likewise.
63727         * lib/javaexec.h: Likewise.
63728         * lib/javaversion.c: Likewise.
63729         * lib/javaversion.h: Likewise.
63730         * lib/javaversion.java: Likewise.
63731         * lib/lbrkprop.h: Likewise.
63732         * lib/lchmod.h: Likewise.
63733         * lib/lchown.c: Likewise.
63734         * lib/ldexpl.c: Likewise.
63735         * lib/linebreak.c: Likewise.
63736         * lib/linebreak.h: Likewise.
63737         * lib/linebuffer.c: Likewise.
63738         * lib/linebuffer.h: Likewise.
63739         * lib/locale.in.h: Likewise.
63740         * lib/logl.c: Likewise.
63741         * lib/long-options.c: Likewise.
63742         * lib/long-options.h: Likewise.
63743         * lib/lstat.c: Likewise.
63744         * lib/lstat.h: Likewise.
63745         * lib/math.in.h: Likewise.
63746         * lib/mbchar.c: Likewise.
63747         * lib/mbchar.h: Likewise.
63748         * lib/mbfile.h: Likewise.
63749         * lib/mbiter.h: Likewise.
63750         * lib/mbscasecmp.c: Likewise.
63751         * lib/mbscasestr.c: Likewise.
63752         * lib/mbschr.c: Likewise.
63753         * lib/mbscspn.c: Likewise.
63754         * lib/mbslen.c: Likewise.
63755         * lib/mbsncasecmp.c: Likewise.
63756         * lib/mbsnlen.c: Likewise.
63757         * lib/mbspbrk.c: Likewise.
63758         * lib/mbspcasecmp.c: Likewise.
63759         * lib/mbsrchr.c: Likewise.
63760         * lib/mbssep.c: Likewise.
63761         * lib/mbsspn.c: Likewise.
63762         * lib/mbsstr.c: Likewise.
63763         * lib/mbstok_r.c: Likewise.
63764         * lib/mbswidth.c: Likewise.
63765         * lib/mbswidth.h: Likewise.
63766         * lib/mbuiter.h: Likewise.
63767         * lib/memcasecmp.c: Likewise.
63768         * lib/memcasecmp.h: Likewise.
63769         * lib/memchr.c: Likewise.
63770         * lib/memcmp.c: Likewise.
63771         * lib/memcoll.c: Likewise.
63772         * lib/memcoll.h: Likewise.
63773         * lib/memcpy.c: Likewise.
63774         * lib/memrchr.c: Likewise.
63775         * lib/mkancesdirs.c: Likewise.
63776         * lib/mkdir-p.c: Likewise.
63777         * lib/mkdir-p.h: Likewise.
63778         * lib/mkdir.c: Likewise.
63779         * lib/mkdirat.c: Likewise.
63780         * lib/mkdtemp.c: Likewise.
63781         * lib/mkstemp-safer.c: Likewise.
63782         * lib/mkstemp.c: Likewise.
63783         * lib/modechange.c: Likewise.
63784         * lib/modechange.h: Likewise.
63785         * lib/mountlist.c: Likewise.
63786         * lib/mountlist.h: Likewise.
63787         * lib/mpsort.c: Likewise.
63788         * lib/nanosleep.c: Likewise.
63789         * lib/obstack.c: Likewise.
63790         * lib/obstack.h: Likewise.
63791         * lib/open-safer.c: Likewise.
63792         * lib/open.c: Likewise.
63793         * lib/openat-die.c: Likewise.
63794         * lib/openat-priv.h: Likewise.
63795         * lib/openat-proc.c: Likewise.
63796         * lib/openat.c: Likewise.
63797         * lib/openat.h: Likewise.
63798         * lib/pagealign_alloc.c: Likewise.
63799         * lib/pagealign_alloc.h: Likewise.
63800         * lib/physmem.c: Likewise.
63801         * lib/physmem.h: Likewise.
63802         * lib/pipe-safer.c: Likewise.
63803         * lib/pipe.c: Likewise.
63804         * lib/pipe.h: Likewise.
63805         * lib/posixtm.c: Likewise.
63806         * lib/posixtm.h: Likewise.
63807         * lib/posixver.c: Likewise.
63808         * lib/printf-frexp.c: Likewise.
63809         * lib/printf-frexp.h: Likewise.
63810         * lib/printf-frexpl.c: Likewise.
63811         * lib/printf-frexpl.h: Likewise.
63812         * lib/printf.c: Likewise.
63813         * lib/progname.c: Likewise.
63814         * lib/progname.h: Likewise.
63815         * lib/progreloc.c: Likewise.
63816         * lib/putenv.c: Likewise.
63817         * lib/quote.c: Likewise.
63818         * lib/quote.h: Likewise.
63819         * lib/quotearg.c: Likewise.
63820         * lib/quotearg.h: Likewise.
63821         * lib/raise.c: Likewise.
63822         * lib/readline.c: Likewise.
63823         * lib/readline.h: Likewise.
63824         * lib/readlink.c: Likewise.
63825         * lib/readtokens.c: Likewise.
63826         * lib/readtokens.h: Likewise.
63827         * lib/readtokens0.c: Likewise.
63828         * lib/readtokens0.h: Likewise.
63829         * lib/readutmp.c: Likewise.
63830         * lib/readutmp.h: Likewise.
63831         * lib/realloc.c: Likewise.
63832         * lib/relocwrapper.c: Likewise.
63833         * lib/rename-dest-slash.c: Likewise.
63834         * lib/rename.c: Likewise.
63835         * lib/rmdir.c: Likewise.
63836         * lib/rpmatch.c: Likewise.
63837         * lib/safe-read.c: Likewise.
63838         * lib/safe-read.h: Likewise.
63839         * lib/safe-write.c: Likewise.
63840         * lib/safe-write.h: Likewise.
63841         * lib/same-inode.h: Likewise.
63842         * lib/same.c: Likewise.
63843         * lib/same.h: Likewise.
63844         * lib/save-cwd.c: Likewise.
63845         * lib/save-cwd.h: Likewise.
63846         * lib/savedir.c: Likewise.
63847         * lib/savedir.h: Likewise.
63848         * lib/savewd.c: Likewise.
63849         * lib/savewd.h: Likewise.
63850         * lib/search.in.h: Likewise.
63851         * lib/setenv.c: Likewise.
63852         * lib/setenv.h: Likewise.
63853         * lib/settime.c: Likewise.
63854         * lib/sh-quote.c: Likewise.
63855         * lib/sh-quote.h: Likewise.
63856         * lib/sig2str.c: Likewise.
63857         * lib/sig2str.h: Likewise.
63858         * lib/signal.in.h: Likewise.
63859         * lib/signbitd.c: Likewise.
63860         * lib/signbitf.c: Likewise.
63861         * lib/signbitl.c: Likewise.
63862         * lib/sigprocmask.c: Likewise.
63863         * lib/sincosl.c: Likewise.
63864         * lib/sleep.c: Likewise.
63865         * lib/sprintf.c: Likewise.
63866         * lib/sqrtl.c: Likewise.
63867         * lib/stat-time.h: Likewise.
63868         * lib/stdio--.h: Likewise.
63869         * lib/stdio-safer.h: Likewise.
63870         * lib/stdlib--.h: Likewise.
63871         * lib/stdlib-safer.h: Likewise.
63872         * lib/stdlib.in.h: Likewise.
63873         * lib/stpcpy.c: Likewise.
63874         * lib/stpncpy.c: Likewise.
63875         * lib/strchrnul.c: Likewise.
63876         * lib/strcspn.c: Likewise.
63877         * lib/strerror.c: Likewise.
63878         * lib/strftime.c: Likewise.
63879         * lib/strftime.h: Likewise.
63880         * lib/striconveh.c: Likewise.
63881         * lib/striconveh.h: Likewise.
63882         * lib/striconveha.c: Likewise.
63883         * lib/striconveha.h: Likewise.
63884         * lib/stripslash.c: Likewise.
63885         * lib/strnlen1.c: Likewise.
63886         * lib/strnlen1.h: Likewise.
63887         * lib/strtod.c: Likewise.
63888         * lib/strtoimax.c: Likewise.
63889         * lib/strtok_r.c: Likewise.
63890         * lib/strtol.c: Likewise.
63891         * lib/strtoll.c: Likewise.
63892         * lib/strtoul.c: Likewise.
63893         * lib/strtoull.c: Likewise.
63894         * lib/sysexits.in.h: Likewise.
63895         * lib/tempname.c: Likewise.
63896         * lib/tempname.h: Likewise.
63897         * lib/timespec.h: Likewise.
63898         * lib/tls.c: Likewise.
63899         * lib/tls.h: Likewise.
63900         * lib/tmpdir.c: Likewise.
63901         * lib/tmpdir.h: Likewise.
63902         * lib/tmpfile-safer.c: Likewise.
63903         * lib/tmpfile.c: Likewise.
63904         * lib/trigl.c: Likewise.
63905         * lib/trigl.h: Likewise.
63906         * lib/trim.c: Likewise.
63907         * lib/trim.h: Likewise.
63908         * lib/trunc.c: Likewise.
63909         * lib/truncf.c: Likewise.
63910         * lib/truncl.c: Likewise.
63911         * lib/tsearch.c: Likewise.
63912         * lib/unicodeio.c: Likewise.
63913         * lib/unicodeio.h: Likewise.
63914         * lib/unistd--.h: Likewise.
63915         * lib/unistd-safer.h: Likewise.
63916         * lib/unistdio/ulc-fprintf.c: Likewise.
63917         * lib/unistdio/ulc-vfprintf.c: Likewise.
63918         * lib/unlinkdir.c: Likewise.
63919         * lib/unlinkdir.h: Likewise.
63920         * lib/unlocked-io.h: Likewise.
63921         * lib/unsetenv.c: Likewise.
63922         * lib/userspec.c: Likewise.
63923         * lib/utime.c: Likewise.
63924         * lib/utimecmp.c: Likewise.
63925         * lib/utimecmp.h: Likewise.
63926         * lib/utimens.c: Likewise.
63927         * lib/verify.h: Likewise.
63928         * lib/verror.c: Likewise.
63929         * lib/verror.h: Likewise.
63930         * lib/version-etc-fsf.c: Likewise.
63931         * lib/version-etc.c: Likewise.
63932         * lib/version-etc.h: Likewise.
63933         * lib/vfprintf.c: Likewise.
63934         * lib/vprintf.c: Likewise.
63935         * lib/vsprintf.c: Likewise.
63936         * lib/w32spawn.h: Likewise.
63937         * lib/wait-process.c: Likewise.
63938         * lib/wait-process.h: Likewise.
63939         * lib/wcwidth.c: Likewise.
63940         * lib/write-any-file.c: Likewise.
63941         * lib/xalloc-die.c: Likewise.
63942         * lib/xalloc.h: Likewise.
63943         * lib/xasprintf.c: Likewise.
63944         * lib/xgetcwd.c: Likewise.
63945         * lib/xgetcwd.h: Likewise.
63946         * lib/xgetdomainname.c: Likewise.
63947         * lib/xgetdomainname.h: Likewise.
63948         * lib/xgethostname.c: Likewise.
63949         * lib/xmalloc.c: Likewise.
63950         * lib/xmalloca.c: Likewise.
63951         * lib/xmalloca.h: Likewise.
63952         * lib/xmemcoll.c: Likewise.
63953         * lib/xnanosleep.c: Likewise.
63954         * lib/xreadlink.c: Likewise.
63955         * lib/xreadlink.h: Likewise.
63956         * lib/xsetenv.c: Likewise.
63957         * lib/xsetenv.h: Likewise.
63958         * lib/xstriconv.c: Likewise.
63959         * lib/xstriconv.h: Likewise.
63960         * lib/xstrndup.c: Likewise.
63961         * lib/xstrndup.h: Likewise.
63962         * lib/xstrtod.c: Likewise.
63963         * lib/xstrtod.h: Likewise.
63964         * lib/xstrtol-error.c: Likewise.
63965         * lib/xstrtol.c: Likewise.
63966         * lib/xstrtol.h: Likewise.
63967         * lib/xtime.h: Likewise.
63968         * lib/xvasprintf.c: Likewise.
63969         * lib/xvasprintf.h: Likewise.
63970         * lib/yesno.c: Likewise.
63971         * lib/yesno.h: Likewise.
63972         * posix-modules: Likewise.
63973         * tests/test-alloca-opt.c: Likewise.
63974         * tests/test-arcfour.c: Likewise.
63975         * tests/test-arctwo.c: Likewise.
63976         * tests/test-argmatch.c: Likewise.
63977         * tests/test-argp-2.sh: Likewise.
63978         * tests/test-argp.c: Likewise.
63979         * tests/test-arpa_inet.c: Likewise.
63980         * tests/test-array_list.c: Likewise.
63981         * tests/test-array_oset.c: Likewise.
63982         * tests/test-atexit.c: Likewise.
63983         * tests/test-avltree_list.c: Likewise.
63984         * tests/test-avltree_oset.c: Likewise.
63985         * tests/test-avltreehash_list.c: Likewise.
63986         * tests/test-base64.c: Likewise.
63987         * tests/test-binary-io.c: Likewise.
63988         * tests/test-byteswap.c: Likewise.
63989         * tests/test-c-ctype.c: Likewise.
63990         * tests/test-c-strcasecmp.c: Likewise.
63991         * tests/test-c-strcasestr.c: Likewise.
63992         * tests/test-c-strncasecmp.c: Likewise.
63993         * tests/test-c-strstr.c: Likewise.
63994         * tests/test-canonicalize-lgpl.c: Likewise.
63995         * tests/test-canonicalize.c: Likewise.
63996         * tests/test-carray_list.c: Likewise.
63997         * tests/test-ceilf.c: Likewise.
63998         * tests/test-ceill.c: Likewise.
63999         * tests/test-count-one-bits.c: Likewise.
64000         * tests/test-crc.c: Likewise.
64001         * tests/test-dirname.c: Likewise.
64002         * tests/test-fbufmode.c: Likewise.
64003         * tests/test-fcntl.c: Likewise.
64004         * tests/test-fflush.c: Likewise.
64005         * tests/test-floorf.c: Likewise.
64006         * tests/test-floorl.c: Likewise.
64007         * tests/test-fopen.c: Likewise.
64008         * tests/test-fprintf-posix.c: Likewise.
64009         * tests/test-fprintf-posix.h: Likewise.
64010         * tests/test-fpurge.c: Likewise.
64011         * tests/test-freadable.c: Likewise.
64012         * tests/test-freadahead.c: Likewise.
64013         * tests/test-freading.c: Likewise.
64014         * tests/test-freopen.c: Likewise.
64015         * tests/test-frexp.c: Likewise.
64016         * tests/test-frexpl.c: Likewise.
64017         * tests/test-fseek.c: Likewise.
64018         * tests/test-fseeko.c: Likewise.
64019         * tests/test-fseterr.c: Likewise.
64020         * tests/test-fstrcmp.c: Likewise.
64021         * tests/test-ftell.c: Likewise.
64022         * tests/test-ftello.c: Likewise.
64023         * tests/test-fwritable.c: Likewise.
64024         * tests/test-fwriting.c: Likewise.
64025         * tests/test-getaddrinfo.c: Likewise.
64026         * tests/test-getpass.c: Likewise.
64027         * tests/test-gettimeofday.c: Likewise.
64028         * tests/test-hmac-md5.c: Likewise.
64029         * tests/test-hmac-sha1.c: Likewise.
64030         * tests/test-iconv.c: Likewise.
64031         * tests/test-iconvme.c: Likewise.
64032         * tests/test-inttypes.c: Likewise.
64033         * tests/test-isnan.c: Likewise.
64034         * tests/test-isnanf.c: Likewise.
64035         * tests/test-isnanl-nolibm.c: Likewise.
64036         * tests/test-isnanl.c: Likewise.
64037         * tests/test-isnanl.h: Likewise.
64038         * tests/test-ldexpl.c: Likewise.
64039         * tests/test-linked_list.c: Likewise.
64040         * tests/test-linkedhash_list.c: Likewise.
64041         * tests/test-locale.c: Likewise.
64042         * tests/test-localename.c: Likewise.
64043         * tests/test-lock.c: Likewise.
64044         * tests/test-lseek.c: Likewise.
64045         * tests/test-malloca.c: Likewise.
64046         * tests/test-math.c: Likewise.
64047         * tests/test-mbscasecmp.c: Likewise.
64048         * tests/test-mbscasestr1.c: Likewise.
64049         * tests/test-mbscasestr2.c: Likewise.
64050         * tests/test-mbscasestr3.c: Likewise.
64051         * tests/test-mbscasestr4.c: Likewise.
64052         * tests/test-mbschr.c: Likewise.
64053         * tests/test-mbscspn.c: Likewise.
64054         * tests/test-mbsncasecmp.c: Likewise.
64055         * tests/test-mbspbrk.c: Likewise.
64056         * tests/test-mbspcasecmp.c: Likewise.
64057         * tests/test-mbsrchr.c: Likewise.
64058         * tests/test-mbsspn.c: Likewise.
64059         * tests/test-mbsstr1.c: Likewise.
64060         * tests/test-mbsstr2.c: Likewise.
64061         * tests/test-mbsstr3.c: Likewise.
64062         * tests/test-md5.c: Likewise.
64063         * tests/test-memmem.c: Likewise.
64064         * tests/test-netinet_in.c: Likewise.
64065         * tests/test-open.c: Likewise.
64066         * tests/test-printf-frexp.c: Likewise.
64067         * tests/test-printf-frexpl.c: Likewise.
64068         * tests/test-printf-posix.c: Likewise.
64069         * tests/test-printf-posix.h: Likewise.
64070         * tests/test-rbtree_list.c: Likewise.
64071         * tests/test-rbtree_oset.c: Likewise.
64072         * tests/test-rbtreehash_list.c: Likewise.
64073         * tests/test-read-file.c: Likewise.
64074         * tests/test-rijndael.c: Likewise.
64075         * tests/test-search.c: Likewise.
64076         * tests/test-signbit.c: Likewise.
64077         * tests/test-sleep.c: Likewise.
64078         * tests/test-snprintf-posix.c: Likewise.
64079         * tests/test-snprintf-posix.h: Likewise.
64080         * tests/test-snprintf.c: Likewise.
64081         * tests/test-sprintf-posix.c: Likewise.
64082         * tests/test-sprintf-posix.h: Likewise.
64083         * tests/test-stat-time.c: Likewise.
64084         * tests/test-stdbool.c: Likewise.
64085         * tests/test-stdint.c: Likewise.
64086         * tests/test-stdio.c: Likewise.
64087         * tests/test-stdlib.c: Likewise.
64088         * tests/test-stpncpy.c: Likewise.
64089         * tests/test-strcasestr.c: Likewise.
64090         * tests/test-striconv.c: Likewise.
64091         * tests/test-striconveh.c: Likewise.
64092         * tests/test-striconveha.c: Likewise.
64093         * tests/test-string.c: Likewise.
64094         * tests/test-sys_select.c: Likewise.
64095         * tests/test-sys_socket.c: Likewise.
64096         * tests/test-sys_stat.c: Likewise.
64097         * tests/test-sys_time.c: Likewise.
64098         * tests/test-sysexits.c: Likewise.
64099         * tests/test-time.c: Likewise.
64100         * tests/test-tls.c: Likewise.
64101         * tests/test-trunc.c: Likewise.
64102         * tests/test-truncf.c: Likewise.
64103         * tests/test-truncl.c: Likewise.
64104         * tests/test-unistd.c: Likewise.
64105         * tests/test-vasnprintf-posix.c: Likewise.
64106         * tests/test-vasnprintf-posix2.c: Likewise.
64107         * tests/test-vasnprintf.c: Likewise.
64108         * tests/test-vasprintf-posix.c: Likewise.
64109         * tests/test-vasprintf.c: Likewise.
64110         * tests/test-verify.c: Likewise.
64111         * tests/test-vfprintf-posix.c: Likewise.
64112         * tests/test-vprintf-posix.c: Likewise.
64113         * tests/test-vsnprintf-posix.c: Likewise.
64114         * tests/test-vsnprintf.c: Likewise.
64115         * tests/test-vsprintf-posix.c: Likewise.
64116         * tests/test-wchar.c: Likewise.
64117         * tests/test-wctype.c: Likewise.
64118         * tests/test-wcwidth.c: Likewise.
64119         * tests/test-xstrtol.c: Likewise.
64120         * tests/test-xvasprintf.c: Likewise.
64121         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64122         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64123         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64124         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64125         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64126         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64127         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64128         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64129         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64130         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64131         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64132         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64133         * tests/uniname/test-uninames.c: Likewise.
64134         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64135         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64136         * tests/unistdio/test-u16-printf1.h: Likewise.
64137         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64138         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64139         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64140         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64141         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64142         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64143         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64144         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64145         * tests/unistdio/test-u32-printf1.h: Likewise.
64146         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64147         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64148         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64149         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64150         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64151         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64152         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64153         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64154         * tests/unistdio/test-u8-printf1.h: Likewise.
64155         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64156         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64157         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64158         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64159         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64160         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64161         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64162         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64163         * tests/unistdio/test-ulc-printf1.h: Likewise.
64164         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64165         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64166         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64167         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64168         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64169         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64170         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64171         * tests/uniwidth/test-u16-width.c: Likewise.
64172         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64173         * tests/uniwidth/test-u32-width.c: Likewise.
64174         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64175         * tests/uniwidth/test-u8-width.c: Likewise.
64176         * tests/uniwidth/test-uc_width.c: Likewise.
64177         * config/srclist-update: Likewise.
64178         (fixlicense): Update to GPLv3+.
64179
64180         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64181         * tests/test-tsearch.c: Change copyright notice.
64182
64183         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64184         * lib/c-strcaseeq.h: Change copyright notice.
64185         * lib/streq.h: Likewise.
64186         * lib/uniconv.h: Likewise.
64187         * lib/uniconv/u-conv-from-enc.h: Likewise.
64188         * lib/uniconv/u-conv-to-enc.h: Likewise.
64189         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64190         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64191         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64192         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64193         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64194         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64195         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64196         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64197         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64198         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64199         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64200         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64201         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64202         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64203         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64204         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64205         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64206         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64207         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64208         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64209         * lib/uniname.h: Likewise.
64210         * lib/uniname/uniname.c: Likewise.
64211         * lib/unistdio.h: Likewise.
64212         * lib/unistdio/u-asnprintf.h: Likewise.
64213         * lib/unistdio/u-asprintf.h: Likewise.
64214         * lib/unistdio/u-printf-args.c: Likewise.
64215         * lib/unistdio/u-printf-args.h: Likewise.
64216         * lib/unistdio/u-printf-parse.h: Likewise.
64217         * lib/unistdio/u-snprintf.h: Likewise.
64218         * lib/unistdio/u-sprintf.h: Likewise.
64219         * lib/unistdio/u-vasprintf.h: Likewise.
64220         * lib/unistdio/u-vsnprintf.h: Likewise.
64221         * lib/unistdio/u-vsprintf.h: Likewise.
64222         * lib/unistdio/u16-asnprintf.c: Likewise.
64223         * lib/unistdio/u16-asprintf.c: Likewise.
64224         * lib/unistdio/u16-printf-parse.c: Likewise.
64225         * lib/unistdio/u16-snprintf.c: Likewise.
64226         * lib/unistdio/u16-sprintf.c: Likewise.
64227         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64228         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64229         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64230         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64231         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64232         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64233         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64234         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64235         * lib/unistdio/u16-vasnprintf.c: Likewise.
64236         * lib/unistdio/u16-vasprintf.c: Likewise.
64237         * lib/unistdio/u16-vsnprintf.c: Likewise.
64238         * lib/unistdio/u16-vsprintf.c: Likewise.
64239         * lib/unistdio/u32-asnprintf.c: Likewise.
64240         * lib/unistdio/u32-asprintf.c: Likewise.
64241         * lib/unistdio/u32-printf-parse.c: Likewise.
64242         * lib/unistdio/u32-snprintf.c: Likewise.
64243         * lib/unistdio/u32-sprintf.c: Likewise.
64244         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64245         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64246         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64247         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64248         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64249         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64250         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64251         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64252         * lib/unistdio/u32-vasnprintf.c: Likewise.
64253         * lib/unistdio/u32-vasprintf.c: Likewise.
64254         * lib/unistdio/u32-vsnprintf.c: Likewise.
64255         * lib/unistdio/u32-vsprintf.c: Likewise.
64256         * lib/unistdio/u8-asnprintf.c: Likewise.
64257         * lib/unistdio/u8-asprintf.c: Likewise.
64258         * lib/unistdio/u8-printf-parse.c: Likewise.
64259         * lib/unistdio/u8-snprintf.c: Likewise.
64260         * lib/unistdio/u8-sprintf.c: Likewise.
64261         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64262         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64263         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64264         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64265         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64266         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64267         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64268         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64269         * lib/unistdio/u8-vasnprintf.c: Likewise.
64270         * lib/unistdio/u8-vasprintf.c: Likewise.
64271         * lib/unistdio/u8-vsnprintf.c: Likewise.
64272         * lib/unistdio/u8-vsprintf.c: Likewise.
64273         * lib/unistdio/ulc-asnprintf.c: Likewise.
64274         * lib/unistdio/ulc-asprintf.c: Likewise.
64275         * lib/unistdio/ulc-printf-parse.c: Likewise.
64276         * lib/unistdio/ulc-snprintf.c: Likewise.
64277         * lib/unistdio/ulc-sprintf.c: Likewise.
64278         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64279         * lib/unistdio/ulc-vasprintf.c: Likewise.
64280         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64281         * lib/unistdio/ulc-vsprintf.c: Likewise.
64282         * lib/unistr.h: Likewise.
64283         * lib/unistr/u-cpy-alloc.h: Likewise.
64284         * lib/unistr/u-cpy.h: Likewise.
64285         * lib/unistr/u-endswith.h: Likewise.
64286         * lib/unistr/u-move.h: Likewise.
64287         * lib/unistr/u-set.h: Likewise.
64288         * lib/unistr/u-startswith.h: Likewise.
64289         * lib/unistr/u-stpcpy.h: Likewise.
64290         * lib/unistr/u-stpncpy.h: Likewise.
64291         * lib/unistr/u-strcat.h: Likewise.
64292         * lib/unistr/u-strcpy.h: Likewise.
64293         * lib/unistr/u-strcspn.h: Likewise.
64294         * lib/unistr/u-strdup.h: Likewise.
64295         * lib/unistr/u-strlen.h: Likewise.
64296         * lib/unistr/u-strncat.h: Likewise.
64297         * lib/unistr/u-strncpy.h: Likewise.
64298         * lib/unistr/u-strnlen.h: Likewise.
64299         * lib/unistr/u-strpbrk.h: Likewise.
64300         * lib/unistr/u-strspn.h: Likewise.
64301         * lib/unistr/u-strstr.h: Likewise.
64302         * lib/unistr/u-strtok.h: Likewise.
64303         * lib/unistr/u16-check.c: Likewise.
64304         * lib/unistr/u16-chr.c: Likewise.
64305         * lib/unistr/u16-cmp.c: Likewise.
64306         * lib/unistr/u16-cpy-alloc.c: Likewise.
64307         * lib/unistr/u16-cpy.c: Likewise.
64308         * lib/unistr/u16-endswith.c: Likewise.
64309         * lib/unistr/u16-mblen.c: Likewise.
64310         * lib/unistr/u16-mbsnlen.c: Likewise.
64311         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64312         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64313         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64314         * lib/unistr/u16-mbtouc.c: Likewise.
64315         * lib/unistr/u16-mbtoucr.c: Likewise.
64316         * lib/unistr/u16-move.c: Likewise.
64317         * lib/unistr/u16-next.c: Likewise.
64318         * lib/unistr/u16-prev.c: Likewise.
64319         * lib/unistr/u16-set.c: Likewise.
64320         * lib/unistr/u16-startswith.c: Likewise.
64321         * lib/unistr/u16-stpcpy.c: Likewise.
64322         * lib/unistr/u16-stpncpy.c: Likewise.
64323         * lib/unistr/u16-strcat.c: Likewise.
64324         * lib/unistr/u16-strchr.c: Likewise.
64325         * lib/unistr/u16-strcmp.c: Likewise.
64326         * lib/unistr/u16-strcpy.c: Likewise.
64327         * lib/unistr/u16-strcspn.c: Likewise.
64328         * lib/unistr/u16-strdup.c: Likewise.
64329         * lib/unistr/u16-strlen.c: Likewise.
64330         * lib/unistr/u16-strmblen.c: Likewise.
64331         * lib/unistr/u16-strmbtouc.c: Likewise.
64332         * lib/unistr/u16-strncat.c: Likewise.
64333         * lib/unistr/u16-strncmp.c: Likewise.
64334         * lib/unistr/u16-strncpy.c: Likewise.
64335         * lib/unistr/u16-strnlen.c: Likewise.
64336         * lib/unistr/u16-strpbrk.c: Likewise.
64337         * lib/unistr/u16-strrchr.c: Likewise.
64338         * lib/unistr/u16-strspn.c: Likewise.
64339         * lib/unistr/u16-strstr.c: Likewise.
64340         * lib/unistr/u16-strtok.c: Likewise.
64341         * lib/unistr/u16-to-u32.c: Likewise.
64342         * lib/unistr/u16-to-u8.c: Likewise.
64343         * lib/unistr/u16-uctomb-aux.c: Likewise.
64344         * lib/unistr/u16-uctomb.c: Likewise.
64345         * lib/unistr/u32-check.c: Likewise.
64346         * lib/unistr/u32-chr.c: Likewise.
64347         * lib/unistr/u32-cmp.c: Likewise.
64348         * lib/unistr/u32-cpy-alloc.c: Likewise.
64349         * lib/unistr/u32-cpy.c: Likewise.
64350         * lib/unistr/u32-endswith.c: Likewise.
64351         * lib/unistr/u32-mblen.c: Likewise.
64352         * lib/unistr/u32-mbsnlen.c: Likewise.
64353         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64354         * lib/unistr/u32-mbtouc.c: Likewise.
64355         * lib/unistr/u32-mbtoucr.c: Likewise.
64356         * lib/unistr/u32-move.c: Likewise.
64357         * lib/unistr/u32-next.c: Likewise.
64358         * lib/unistr/u32-prev.c: Likewise.
64359         * lib/unistr/u32-set.c: Likewise.
64360         * lib/unistr/u32-startswith.c: Likewise.
64361         * lib/unistr/u32-stpcpy.c: Likewise.
64362         * lib/unistr/u32-stpncpy.c: Likewise.
64363         * lib/unistr/u32-strcat.c: Likewise.
64364         * lib/unistr/u32-strchr.c: Likewise.
64365         * lib/unistr/u32-strcmp.c: Likewise.
64366         * lib/unistr/u32-strcpy.c: Likewise.
64367         * lib/unistr/u32-strcspn.c: Likewise.
64368         * lib/unistr/u32-strdup.c: Likewise.
64369         * lib/unistr/u32-strlen.c: Likewise.
64370         * lib/unistr/u32-strmblen.c: Likewise.
64371         * lib/unistr/u32-strmbtouc.c: Likewise.
64372         * lib/unistr/u32-strncat.c: Likewise.
64373         * lib/unistr/u32-strncmp.c: Likewise.
64374         * lib/unistr/u32-strncpy.c: Likewise.
64375         * lib/unistr/u32-strnlen.c: Likewise.
64376         * lib/unistr/u32-strpbrk.c: Likewise.
64377         * lib/unistr/u32-strrchr.c: Likewise.
64378         * lib/unistr/u32-strspn.c: Likewise.
64379         * lib/unistr/u32-strstr.c: Likewise.
64380         * lib/unistr/u32-strtok.c: Likewise.
64381         * lib/unistr/u32-to-u16.c: Likewise.
64382         * lib/unistr/u32-to-u8.c: Likewise.
64383         * lib/unistr/u32-uctomb.c: Likewise.
64384         * lib/unistr/u8-check.c: Likewise.
64385         * lib/unistr/u8-chr.c: Likewise.
64386         * lib/unistr/u8-cmp.c: Likewise.
64387         * lib/unistr/u8-cpy-alloc.c: Likewise.
64388         * lib/unistr/u8-cpy.c: Likewise.
64389         * lib/unistr/u8-endswith.c: Likewise.
64390         * lib/unistr/u8-mblen.c: Likewise.
64391         * lib/unistr/u8-mbsnlen.c: Likewise.
64392         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64393         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64394         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64395         * lib/unistr/u8-mbtouc.c: Likewise.
64396         * lib/unistr/u8-mbtoucr.c: Likewise.
64397         * lib/unistr/u8-move.c: Likewise.
64398         * lib/unistr/u8-next.c: Likewise.
64399         * lib/unistr/u8-prev.c: Likewise.
64400         * lib/unistr/u8-set.c: Likewise.
64401         * lib/unistr/u8-startswith.c: Likewise.
64402         * lib/unistr/u8-stpcpy.c: Likewise.
64403         * lib/unistr/u8-stpncpy.c: Likewise.
64404         * lib/unistr/u8-strcat.c: Likewise.
64405         * lib/unistr/u8-strchr.c: Likewise.
64406         * lib/unistr/u8-strcmp.c: Likewise.
64407         * lib/unistr/u8-strcpy.c: Likewise.
64408         * lib/unistr/u8-strcspn.c: Likewise.
64409         * lib/unistr/u8-strdup.c: Likewise.
64410         * lib/unistr/u8-strlen.c: Likewise.
64411         * lib/unistr/u8-strmblen.c: Likewise.
64412         * lib/unistr/u8-strmbtouc.c: Likewise.
64413         * lib/unistr/u8-strncat.c: Likewise.
64414         * lib/unistr/u8-strncmp.c: Likewise.
64415         * lib/unistr/u8-strncpy.c: Likewise.
64416         * lib/unistr/u8-strnlen.c: Likewise.
64417         * lib/unistr/u8-strpbrk.c: Likewise.
64418         * lib/unistr/u8-strrchr.c: Likewise.
64419         * lib/unistr/u8-strspn.c: Likewise.
64420         * lib/unistr/u8-strstr.c: Likewise.
64421         * lib/unistr/u8-strtok.c: Likewise.
64422         * lib/unistr/u8-to-u16.c: Likewise.
64423         * lib/unistr/u8-to-u32.c: Likewise.
64424         * lib/unistr/u8-uctomb-aux.c: Likewise.
64425         * lib/unistr/u8-uctomb.c: Likewise.
64426         * lib/unitypes.h: Likewise.
64427         * lib/uniwidth.h: Likewise.
64428         * lib/uniwidth/cjk.h: Likewise.
64429         * lib/uniwidth/u16-strwidth.c: Likewise.
64430         * lib/uniwidth/u16-width.c: Likewise.
64431         * lib/uniwidth/u32-strwidth.c: Likewise.
64432         * lib/uniwidth/u32-width.c: Likewise.
64433         * lib/uniwidth/u8-strwidth.c: Likewise.
64434         * lib/uniwidth/u8-width.c: Likewise.
64435         * lib/uniwidth/width.c: Likewise.
64436
64437 2007-10-07  Bruno Haible  <bruno@clisp.org>
64438
64439         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64440         The file is still under LGPL (see modules/inttypes).
64441
64442 2007-10-06  Bruno Haible  <bruno@clisp.org>
64443
64444         * modules/trunc (Dependencies): Add 'extensions'.
64445         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64446         Reported by Ben Pfaff <blp@gnu.org>.
64447
64448 2007-10-06  Bruno Haible  <bruno@clisp.org>
64449
64450         * modules/freopen-tests: New file.
64451         * tests/test-freopen.c: New file.
64452
64453         * modules/fopen-tests: New file.
64454         * tests/test-fopen.c: New file.
64455
64456         * modules/fopen: New file.
64457         * lib/fopen.c: New file.
64458         * m4/fopen.m4: New file.
64459         * modules/freopen: New file.
64460         * lib/freopen.c: New file.
64461         * m4/freopen.m4: New file.
64462         * lib/stdio.in.h (fopen, freopen): New declarations.
64463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64464         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64465         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64466         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64467         * doc/functions/fopen.texi: Mention the 'fopen' module.
64468         * doc/functions/freopen.texi: Mention the 'freopen' module.
64469
64470 2007-10-06  Bruno Haible  <bruno@clisp.org>
64471
64472         * modules/open-tests: New file.
64473         * tests/test-open.c: New file.
64474
64475         * modules/open: New file.
64476         * lib/open.c: New file.
64477         * m4/open.m4: New file.
64478         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64479         lib/open.c does.
64480         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64481         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64482         macros.
64483         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64484         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64485         REPLACE_OPEN.
64486         * doc/functions/open.texi: Mention the 'open' module.
64487
64488 2007-10-04  Bruno Haible  <bruno@clisp.org>
64489
64490         * modules/ceill-tests: New file.
64491         * tests/test-ceill.c: New file.
64492
64493         * modules/ceill: New file.
64494         * lib/ceill.c: Replace entire file.
64495         * m4/ceill.m4: New file.
64496         * lib/math.in.h (ceill): Replace declaration.
64497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64498         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64499         * doc/functions/ceill.texi: Mention the 'ceill' module.
64500         * modules/mathl (Files): Remove lib/ceill.c.
64501         (Depends-on): Add ceill.
64502
64503 2007-10-04  Bruno Haible  <bruno@clisp.org>
64504
64505         * modules/ceilf-tests: New file.
64506         * tests/test-ceilf.c: New file.
64507
64508         * modules/ceilf: New file.
64509         * lib/ceil.c: New file.
64510         * lib/ceilf.c: New file.
64511         * m4/ceilf.m4: New file.
64512         * lib/math.in.h (ceilf): New declaration.
64513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64514         HAVE_DECL_CEILF.
64515         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64516         HAVE_DECL_CEILF.
64517         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64518
64519 2007-10-04  Bruno Haible  <bruno@clisp.org>
64520
64521         * modules/floorl-tests: New file.
64522         * tests/test-floorl.c: New file.
64523
64524         * modules/floorl: New file.
64525         * lib/floorl.c: Replace entire file.
64526         * m4/floorl.m4: New file.
64527         * lib/math.in.h (floorl): Replace declaration.
64528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
64529         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
64530         * doc/functions/floorl.texi: Mention the 'floorl' module.
64531         * modules/mathl (Files): Remove lib/floorl.c.
64532         (Depends-on): Add floorl.
64533
64534 2007-10-04  Bruno Haible  <bruno@clisp.org>
64535
64536         * modules/floorf-tests: New file.
64537         * tests/test-floorf.c: New file.
64538
64539         * modules/floorf: New file.
64540         * lib/floor.c: New file.
64541         * lib/floorf.c: New file.
64542         * m4/floorf.m4: New file.
64543         * lib/math.in.h (floorf): New declaration.
64544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
64545         HAVE_DECL_FLOORF.
64546         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
64547         HAVE_DECL_FLOORF.
64548         * doc/functions/floorf.texi: Mention the 'floorf' module.
64549
64550 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
64551             Bruno Haible  <bruno@clisp.org>
64552
64553         Advertise for the Git server instead of the CVS server.
64554         * doc/gnulib-intro.texi (Steady Development): Mention the Git
64555         repository instead of the CVS one.
64556         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
64557         about all VCS systems generically.
64558         * doc/gnulib.texi (Introduction): Capitalize `Git'.
64559
64560 2007-10-04  Bruno Haible  <bruno@clisp.org>
64561
64562         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
64563         means.
64564         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
64565
64566 2007-10-04  Bruno Haible  <bruno@clisp.org>
64567
64568         * modules/truncl-tests: New file.
64569         * tests/test-truncl.c: New file.
64570
64571         * modules/truncl: New file.
64572         * lib/truncl.c: New file.
64573         * m4/truncl.m4: New file.
64574         * lib/math.in.h (truncl): New declaration.
64575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
64576         HAVE_DECL_TRUNCL.
64577         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
64578         HAVE_DECL_TRUNCL.
64579         * doc/functions/truncl.texi: Mention the 'truncl' module.
64580
64581 2007-10-04  Bruno Haible  <bruno@clisp.org>
64582
64583         * modules/truncf-tests: New file.
64584         * tests/test-truncf.c: New file.
64585
64586         * modules/truncf: New file.
64587         * lib/trunc.c: Make paramerizable through USE_* macros.
64588         * lib/truncf.c: New file.
64589         * m4/truncf.m4: New file.
64590         * lib/math.in.h (truncf): New declaration.
64591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
64592         HAVE_DECL_TRUNCF.
64593         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
64594         HAVE_DECL_TRUNCF.
64595         * doc/functions/truncf.texi: Mention the 'truncf' module.
64596
64597 2007-10-03  Bruno Haible  <bruno@clisp.org>
64598
64599         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
64600         augmentation also for tests modules.
64601         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
64602         * modules/atexit-tests (Makefile.am): Likewise.
64603         * modules/binary-io-tests (Makefile.am): Likewise.
64604         * modules/c-strcase-tests (Makefile.am): Likewise.
64605         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
64606         * modules/canonicalize-tests (Makefile.am): Likewise.
64607         * modules/closein-tests (Makefile.am): Likewise.
64608         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64609         * modules/freadahead-tests (Makefile.am): Likewise.
64610         * modules/fseek-tests (Makefile.am): Likewise.
64611         * modules/fseeko-tests (Makefile.am): Likewise.
64612         * modules/ftell-tests (Makefile.am): Likewise.
64613         * modules/ftello-tests (Makefile.am): Likewise.
64614         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
64615         * modules/isnanl-tests (Makefile.am): Likewise.
64616         * modules/lseek-tests (Makefile.am): Likewise.
64617         * modules/mbscasecmp-tests (Makefile.am): Likewise.
64618         * modules/mbscasestr-tests (Makefile.am): Likewise.
64619         * modules/mbschr-tests (Makefile.am): Likewise.
64620         * modules/mbscspn-tests (Makefile.am): Likewise.
64621         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
64622         * modules/mbspbrk-tests (Makefile.am): Likewise.
64623         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
64624         * modules/mbsrchr-tests (Makefile.am): Likewise.
64625         * modules/mbsspn-tests (Makefile.am): Likewise.
64626         * modules/mbsstr-tests (Makefile.am): Likewise.
64627         * modules/printf-posix-tests (Makefile.am): Likewise.
64628         * modules/snprintf-posix-tests (Makefile.am): Likewise.
64629         * modules/sprintf-posix-tests (Makefile.am): Likewise.
64630         * modules/tsearch-tests (Makefile.am): Likewise.
64631         * modules/uniname/uniname-tests (Makefile.am): Likewise.
64632         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
64633         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
64634         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
64635         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
64636         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
64637         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
64638         * modules/vprintf-posix-tests (Makefile.am): Likewise.
64639         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
64640         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
64641         * modules/xstrtoimax-tests (Makefile.am): Likewise.
64642         * modules/xstrtol-tests (Makefile.am): Likewise.
64643         * modules/xstrtoumax-tests (Makefile.am): Likewise.
64644         * modules/yesno-tests (Makefile.am): Likewise.
64645
64646 2007-10-03  Bruno Haible  <bruno@clisp.org>
64647
64648         * modules/trunc-tests: New file.
64649         * tests/test-trunc.c: New file.
64650
64651         * modules/trunc: New file.
64652         * lib/trunc.c: New file.
64653         * m4/trunc.m4: New file.
64654         * lib/math.in.h (trunc): New declaration.
64655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
64656         HAVE_DECL_TRUNC.
64657         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
64658         HAVE_DECL_TRUNC.
64659         * doc/functions/trunc.texi: Mention the 'trunc' module.
64660
64661 2007-10-03  Bruno Haible  <bruno@clisp.org>
64662
64663         * tests/test-fpending.c: New file, mostly copied
64664         from coreutils/lib/t-fpending.c.
64665         * modules/fpending-tests: New file.
64666
64667 2007-10-03  Bruno Haible  <bruno@clisp.org>
64668
64669         Port the stdio extensions to QNX (untested).
64670         * lib/fseterr.c (fseterr): Add support for QNX.
64671         * lib/fbufmode.c (fbufmode): Likewise.
64672         * lib/freadable.c (freadable): Likewise.
64673         * lib/fwritable.c (fwritable): Likewise.
64674         * lib/freading.c (freading): Likewise.
64675         * lib/fwriting.c (fwriting): Likewise.
64676         * lib/freadahead.c (freadahed): Likewise.
64677         * lib/fpurge.c (fpurge): Likewise.
64678         * lib/fseeko.c (rpl_fseeko): Likewise.
64679
64680 2007-10-03  Bruno Haible  <bruno@clisp.org>
64681             Jim Meyering  <jim@meyering.net>
64682             Eric Blake  <ebb9@byu.net>
64683
64684         * doc/relocatable.texi: Use @command instead of @program.
64685
64686 2007-10-02  Jim Meyering  <jim@meyering.net>
64687
64688         Perform one more "_.h" -> ".in.h" substitution.
64689         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
64690         instead of unistd_.h here, too.
64691
64692 2007-10-01  Bruno Haible  <bruno@clisp.org>
64693
64694         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
64695         Needed for the alloca-opt module.
64696
64697 2007-09-30  Bruno Haible  <bruno@clisp.org>
64698
64699         * lib/alloca.in.h: Renamed from lib/alloca_.h.
64700         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
64701         alloca_.h.
64702         * lib/argz.in.h: Renamed from lib/argz_.h.
64703         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
64704         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
64705         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
64706         byteswap_.h.
64707         * lib/dirent.in.h: Renamed from lib/dirent_.h.
64708         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
64709         dirent_.h.
64710         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
64711         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
64712         fcntl_.h.
64713         * lib/float.in.h: Renamed from lib/float_.h.
64714         * modules/float (Files, Makefile.am): Use float.in.h instead of
64715         float_.h.
64716         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
64717         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
64718         fnmatch_.h.
64719         * lib/getopt.in.h: Renamed from lib/getopt_.h.
64720         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
64721         getopt_.h.
64722         * lib/glob.in.h: Renamed from lib/glob_.h.
64723         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
64724         * lib/iconv.in.h: Renamed from lib/iconv_.h.
64725         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
64726         iconv_.h.
64727         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
64728         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
64729         inttypes_.h.
64730         * lib/locale.in.h: Renamed from lib/locale_.h.
64731         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
64732         locale_.h.
64733         * lib/math.in.h: Renamed from lib/math_.h.
64734         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
64735         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
64736         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
64737         of netinet_in_.h. Add dependency.
64738         * lib/poll.in.h: Renamed from lib/poll_.h.
64739         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
64740         * lib/search.in.h: Renamed from lib/search_.h.
64741         * modules/search (Files, Makefile.am): Use search.in.h instead of
64742         search_.h.
64743         * lib/signal.in.h: Renamed from lib/signal_.h.
64744         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
64745         _signal.h.
64746         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
64747         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
64748         stdbool_.h.
64749         * lib/stdint.in.h: Renamed from lib/stdint_.h.
64750         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
64751         stdint_.h.
64752         * lib/stdio.in.h: Renamed from lib/stdio_.h.
64753         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
64754         stdio_.h.
64755         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
64756         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
64757         stdlib_.h.
64758         * lib/string.in.h: Renamed from lib/string_.h.
64759         * modules/string (Files, Makefile.am): Use string.in.h instead of
64760         string_.h.
64761         * doc/gnulib-tool.texi (Initial import): Update.
64762         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
64763         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
64764         of sys_select_.h. Add dependency.
64765         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
64766         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
64767         of sys_socket_.h.
64768         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
64769         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
64770         sys_stat_.h.
64771         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
64772         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
64773         sys_time_.h.
64774         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
64775         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
64776         sysexits_.h.
64777         * lib/time.in.h: Renamed from lib/time_.h.
64778         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
64779         * lib/unistd.in.h: Renamed from lib/unistd_.h.
64780         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
64781         unistd_.h.
64782         * lib/wchar.in.h: Renamed from lib/wchar_.h.
64783         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
64784         wchar_.h.
64785         * lib/wctype.in.h: Renamed from lib/wctype_.h.
64786         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
64787         wctype_.h.
64788         * build-aux/bootstrap (slurp): Update.
64789         * lib/.cppi-disable: Update.
64790
64791 2007-09-30  Bruno Haible  <bruno@clisp.org>
64792
64793         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
64794         Needed on BeOS.
64795
64796 2007-09-30  Bruno Haible  <bruno@clisp.org>
64797
64798         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
64799
64800 2007-09-29  Bruno Haible  <bruno@clisp.org>
64801
64802         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
64803
64804 2007-09-29  Bruno Haible  <bruno@clisp.org>
64805
64806         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
64807         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
64808         * build-aux/install-reloc: Compile also areadlink.c.
64809         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
64810
64811 2007-09-29  Bruno Haible  <bruno@clisp.org>
64812
64813         * gnulib-tool (func_emit_initmacro_done): Indentation.
64814
64815 2007-09-29  Bruno Haible  <bruno@clisp.org>
64816
64817         * README: Add CVS checkout update instructions.
64818         Info from Bob Proulx <bob@proulx.com>.
64819
64820 2007-09-28  Eric Blake  <ebb9@byu.net>
64821
64822         Provide move-if-change.
64823         * build-aux/move-if-change: New file, based on best practice
64824         rather than any canonical upstream location.
64825
64826 2007-09-28  Jim Meyering  <jim@meyering.net>
64827
64828         Fix canonicalize loop-detection corner case.
64829         Do not attempt to stat the symlink values stored via seen_triple.
64830         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
64831         on linux-2.6.18, (but not 2.6.22).
64832         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
64833         triple_compare.  The former compares dev,ino,filename, while the latter
64834         would actually stat dirname(filename) when dev and ino were equal.
64835         * lib/hash-triple.c: Install <string.h>.
64836         (STREQ): Define.
64837         (triple_compare_ino_str): New function.
64838         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
64839
64840 2007-09-28  Eric Blake  <ebb9@byu.net>
64841
64842         Enforce that AC_REPLACE_FUNCS files exist.
64843         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
64844         override check for typos.
64845
64846         Fix test-closein on Solaris 10.
64847         * tests/test-closein.c (main): Don't assume stdin can be inherited
64848         closed on all systems.
64849         * tests/test-closein.sh: Likewise.
64850         Reported by Piotr Tarnowski.
64851
64852 2007-09-28  Jim Meyering  <jim@meyering.net>
64853
64854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
64855
64856 2007-09-27  Jim Meyering  <jim@meyering.net>
64857
64858         canonicalize: Avoid a false-positive cycle failure.
64859         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
64860         Sort.  Remove cycle-check.
64861         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
64862         not cycle-check.h.
64863         (seen_triple): New function.
64864         (canonicalize_filename_mode): Use it instead of cycle-check.
64865         * tests/test-canonicalize.c: Add a test for this bug.
64866         * tests/test-canonicalize.sh: Set up and run the test.
64867
64868         New module, file-set, from coreutils.
64869         * modules/file-set: Define it.
64870         * lib/file-set.c, lib/file-set.h: Implement.
64871
64872         New module, hash-triple, from coreutils.
64873         * modules/hash-triple: Define it.
64874         * lib/hash-triple.c, lib/hash-triple.h: Implement.
64875
64876 2007-09-25  Eric Blake  <ebb9@byu.net>
64877
64878         Fix strerror on Interix.
64879         * lib/string_.h (strerror): Declare replacement.
64880         * doc/functions/strerror.texi (strerror): Document the Interix
64881         shortcoming.
64882         * modules/string (Makefile.am): Support new hooks.
64883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
64884         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
64885         gl_FUNC_STRERROR_SEPARATE.
64886         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
64887         * lib/strerror.c (rpl_strerror): Provide replacement.
64888         * modules/strerror (Depends-on): Add string.
64889         (configure.ac): Detect use of module.
64890         * tests/test-strerror.c: New file.
64891         * modules/strerror-tests: New test module.
64892         * modules/argp (Depends-on): Add strerror.
64893         * modules/error (Depends-on): Likewise.
64894         Reported by Martin Koeppe.
64895
64896 2007-09-24  Bruno Haible  <bruno@clisp.org>
64897
64898         * README: Update git instructions.
64899
64900 2007-09-24  Eric Blake  <ebb9@byu.net>
64901
64902         Revert fpending breakage from 2007-09-08.
64903         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
64904         __fpending.c.
64905
64906 2007-09-24  Jim Meyering  <jim@meyering.net>
64907
64908         filenamecat.c: Add a test.
64909         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
64910         showing how the function works when DIR is the empty string.
64911
64912 2007-09-21  Simon Josefsson  <simon@josefsson.org>
64913
64914         * tests/test-canonicalize.sh: Turn on executable bit.
64915
64916 2007-09-19  Eric Blake  <ebb9@byu.net>
64917
64918         * README: Update CVS instructions.
64919
64920 2007-09-18  Bruno Haible  <bruno@clisp.org>
64921
64922         * modules/areadlink: New file.
64923         * lib/areadlink.h (areadlink): New declaration.
64924         * lib/areadlink.c: New file, based on lib/xreadlink.c.
64925
64926 2007-09-17  Jim Meyering  <jim@meyering.net>
64927
64928         * lib/savewd.c (ESTALE) [!defined]: Define.
64929         Reported to be required on Interix by Martin Koeppe.
64930
64931 2007-09-17  Bruno Haible  <bruno@clisp.org>
64932
64933         * gnulib-tool (func_version): Use $version.
64934
64935 2007-09-16  Bruno Haible  <bruno@clisp.org>
64936
64937         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
64938         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
64939         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
64940         Reported by Greg Schafer <gschafer@zip.com.au>.
64941
64942 2007-09-15  Bruno Haible  <bruno@clisp.org>
64943
64944         * gnulib-tool (sed): Try a little harder to make bash understand the
64945         alias.
64946         Reported by Bruce Korb <bruce.korb@gmail.com>.
64947
64948 2007-09-13  Eric Blake  <ebb9@byu.net>
64949
64950         * ChangeLog: Remove conflict markers.
64951
64952 2007-09-13  Simon Josefsson  <simon@josefsson.org>
64953
64954         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
64955         Reported by Bruno Haible <bruno@clisp.org>.
64956
64957 2007-09-12  Bruno Haible  <bruno@clisp.org>
64958
64959         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
64960         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
64961         is not defined.
64962
64963 2007-09-12  Eric Blake  <ebb9@byu.net>
64964
64965         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
64966         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
64967         Autoconf definition.
64968         * modules/euidaccess (Depends-on): Add extensions, for
64969         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
64970         * modules/fnmatch (Depends-on): Likewise.
64971         * modules/getaddrinfo (Depends-on): Likewise.
64972         * modules/getdelim (Depends-on): Likewise.
64973         * modules/getline (Depends-on): Likewise.
64974         * modules/getsubopt (Depends-on): Likewise.
64975         * modules/gettext (Depends-on): Likewise.
64976         * modules/group-member (Depends-on): Likewise.
64977         * modules/mbchar (Depends-on): Likewise.
64978         * modules/memmem (Depends-on): Likewise.
64979         * modules/mempcpy (Depends-on): Likewise.
64980         * modules/memrchr (Depends-on): Likewise.
64981         * modules/pagealign_alloc (Depends-on): Likewise.
64982         * modules/readutmp (Depends-on): Likewise.
64983         * modules/stpcpy (Depends-on): Likewise.
64984         * modules/stpncpy (Depends-on): Likewise.
64985         * modules/strchrnul (Depends-on): Likewise.
64986         * modules/strndup (Depends-on): Likewise.
64987         * modules/strsep (Depends-on): Likewise.
64988         * modules/strverscmp (Depends-on): Likewise.
64989         * modules/vasprintf (Depends-on): Likewise.
64990         * modules/wcwidth (Depends-on): Likewise.
64991         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
64992         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
64993         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
64994         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
64995         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64996         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64997         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
64998         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64999         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65000         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65001         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65002         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65003         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65004         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65005         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65006         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65007         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65008         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65010         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65011         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65012         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65013         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65014         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65015         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65016         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65017         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65018         so that lock.m4 can be used in gettext without extensions module.
65019
65020 2007-09-11  Bruno Haible  <bruno@clisp.org>
65021
65022         * m4/isc-posix.m4: Remove file.
65023         Suggested by Eric Blake.
65024
65025 2007-09-11  Eric Blake  <ebb9@byu.net>
65026
65027         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65028
65029 2007-09-10  Bruno Haible  <bruno@clisp.org>
65030
65031         * posix-modules: Fix typo in error message.
65032         Reported by Matt <mkraai@beckman.com>.
65033
65034 2007-09-09  Bruno Haible  <bruno@clisp.org>
65035
65036         * doc/functions/getdelim.texi: Update list of platforms lacking the
65037         function.
65038         * doc/functions/getline.texi: Likewise.
65039
65040 2007-09-09  Jim Meyering  <jim@meyering.net>
65041
65042         * lib/hash.c (hash_initialize): Detect calloc failure.
65043         Reported by Bruno Haible.
65044
65045 2007-09-09  Bruno Haible  <bruno@clisp.org>
65046
65047         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65048         malloc or realloc fails.
65049
65050 2007-09-09  Bruno Haible  <bruno@clisp.org>
65051
65052         * modules/getcwd (Depends-on): Add malloc-posix.
65053         * modules/glob (Depends-on): Likewise.
65054         * modules/putenv (Depends-on): Likewise.
65055         * modules/strdup (Depends-on): Likewise.
65056         * modules/getdelim (Depends-on): Add realloc-posix.
65057         * modules/read-file (Depends-on): Likewise.
65058
65059 2007-09-09  Bruno Haible  <bruno@clisp.org>
65060
65061         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65062         (gl_FUNC_MALLOC_POSIX): Require it.
65063         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65064         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65065         * modules/realloc (Files): Add m4/malloc.m4.
65066         * modules/calloc (Files): Likewise.
65067
65068 2007-09-09  Bruno Haible  <bruno@clisp.org>
65069
65070         * modules/malloc-posix: New file.
65071         * modules/malloc (Depends-on): Add malloc-posix.
65072         * lib/malloc.c: Include errno.h.
65073         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65074         and a POSIX-compatible malloc into a single function. Set ENOMEM
65075         when returning NULL.
65076         * m4/malloc.m4: New file.
65077         * doc/functions/malloc.texi: Mention the malloc-posix module.
65078         * lib/stdlib_.h (malloc): New declaration.
65079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65080         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65081         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65082         and HAVE_MALLOC_POSIX.
65083
65084 2007-09-09  Bruno Haible  <bruno@clisp.org>
65085
65086         * modules/realloc-posix: New file.
65087         * modules/realloc (Depends-on): Add realloc-posix.
65088         * lib/realloc.c: Include errno.h.
65089         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65090         and a POSIX-compatible realloc into a single function. Set ENOMEM
65091         when returning NULL.
65092         * m4/realloc.m4: New file.
65093         * doc/functions/realloc.texi: Mention the realloc-posix module.
65094         * lib/stdlib_.h (realloc): New declaration.
65095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65096         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65097         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65098         and HAVE_REALLOC_POSIX.
65099
65100 2007-09-09  Bruno Haible  <bruno@clisp.org>
65101
65102         * modules/calloc-posix: New file.
65103         * modules/calloc (Depends-on): Add calloc-posix.
65104         * lib/calloc.c: Include errno.h.
65105         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65106         and a POSIX-compatible calloc into a single function. Set ENOMEM
65107         when returning NULL.
65108         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65109         * doc/functions/calloc.texi: Mention the calloc-posix module.
65110         * lib/stdlib_.h (calloc): New declaration.
65111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65112         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65113         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65114         and HAVE_CALLOC_POSIX.
65115
65116 2007-09-09  Bruno Haible  <bruno@clisp.org>
65117
65118         Allow for modules to show an arbitrary notice.
65119         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65120         * gnulib-tool: New option --extract-notice.
65121         (func_usage): Document it.
65122         (sed_extract_prog): Update.
65123         (func_get_notice): New function.
65124         (func_modules_notice): New function.
65125         (func_import, func_create_testdir): Invoke it.
65126         Suggested by Jim Meyering.
65127
65128 2007-09-09  Bruno Haible  <bruno@clisp.org>
65129
65130         * gnulib-tool: New options --verbose, --quiet.
65131         (func_usage): Document them.
65132         (verbose): New variable.
65133         (func_execute_command): New function.
65134         (func_import): Don't show the module list and the file list if
65135         $verbose < 0.
65136         (func_create_testdir): Likewise. Use func_execute_command.
65137         (func_create_megatestdir): Use func_execute_command.
65138
65139 2007-09-08  Bruno Haible  <bruno@clisp.org>
65140
65141         * gnulib-tool (func_import): Prefer rsync over wget when available,
65142         for fetching the PO files.
65143
65144 2007-09-08  Bruno Haible  <bruno@clisp.org>
65145
65146         * posix-modules: New file. Portions copied from gnulib-tool.
65147         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65148
65149 2007-09-08  Jim Meyering  <jim@meyering.net>
65150
65151         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65152         * lib/fpending.h: Rename from __fpending.h.
65153         * lib/fpending.c: Rename from __fpending.c.
65154         Include "fpending.h", not "__fpending.h".
65155         * lib/__fpending.h, lib/__fpending.c: Remove files.
65156         * modules/fpending (Files): Reflect new file names.
65157         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65158
65159 2007-09-08  Bruno Haible  <bruno@clisp.org>
65160
65161         * m4/inttypes-h.m4: Remove stub file.
65162
65163 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65164
65165         * doc/headers/stdint.texi: Discuss #include_next issue.
65166
65167 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65168
65169         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65170
65171 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65172
65173         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65174         in variable name.
65175
65176 2007-09-03  Jim Meyering  <jim@meyering.net>
65177
65178         New module: git-version-gen.
65179         * modules/git-version-gen: New file.
65180
65181         Import changes from coreutils for bootstrap script.
65182
65183         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65184
65185         bootstrap: uses rsync to download the .po files
65186         * build-aux/bootstrap (po_download_command_format): New global.
65187         (download_po_files): Use rsync.
65188         (update_po_files): Don't remove .po files after download,
65189         so future rsync runs can take advantage of the copies.
65190
65191         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65192
65193         Solve the unnecessary-.po-file-regeneration problem once and for all.
65194         * build-aux/bootstrap (download_po_files): New function, renamed from
65195         get_translations.  Now, downloads, but doesn't update LINGUAS.
65196         (update_po_files): New function.
65197
65198         bootstrap: Ignore more.
65199         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65200         uniwidth to e.g., lib/.gitignore.
65201         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65202
65203         * build-aux/bootstrap: New setting: vc_ignore.
65204         (insert_sorted_if_absent): Create $file if absent.
65205         Adapt to new, possibly empty, list: $vc_ignore.
65206
65207         bootstrap: generate more ignorable names
65208         * build-aux/bootstrap (slurp): When generating ignorable names,
65209         also map .sin to .sed, .gperf to .c, and .y to .c.
65210
65211 2007-09-03  Jim Meyering  <jim@meyering.net>
65212
65213         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65214         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65215
65216 2007-09-02  Bruno Haible  <bruno@clisp.org>
65217
65218         Fix mis-recognition of 'mcs' on QNX 6.
65219         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65220         output contains the string "Mono".
65221         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65222         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65223
65224 2007-09-01  Bruno Haible  <bruno@clisp.org>
65225
65226         Fix collision between uniwidth/* and linebreak modules.
65227         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65228         u32_width): Remove declarations.
65229         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65230         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65231         streq3, streq2, streq1, streq0): Remove functions.
65232         (STREQ): Remove macro.
65233         (is_cjk_encoding): Remove function.
65234         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65235         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65236         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65237         * NEWS: Document the change.
65238
65239 2007-09-01  Bruno Haible  <bruno@clisp.org>
65240
65241         * lib/streq.h: Add double-inclusion guard.
65242
65243 2007-09-01  Karl Berry  <karl@gnu.org>
65244
65245         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65246
65247 2007-08-28  Jim Meyering  <jim@meyering.net>
65248
65249         Rename mreadlink_with_size to areadlink_with_size.
65250         * NEWS: Document the change.
65251         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65252         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65253         * lib/mreadlink.h: Rename this to...
65254         * lib/areadlink.h: ...this.
65255         * modules/mreadlink-with-size: Rename this to...
65256         * modules/areadlink-with-size: ...this.
65257         * lib/canonicalize.c: Reflect the renaming.
65258         * modules/canonicalize: Likewise.
65259
65260 2007-08-26  Bruno Haible  <bruno@clisp.org>
65261
65262         * gnulib-tool (func_import): When deciding which files to remove,
65263         consider also dangling symbolic links.
65264         Reported by Eric Blake.
65265
65266 2007-08-26  Bruno Haible  <bruno@clisp.org>
65267
65268         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65269
65270 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65271
65272         * lib/readline.c: Don't include getline.h, the prototype is now
65273         found in stdio.h.
65274
65275 2007-08-23  Jim Meyering  <jim@meyering.net>
65276
65277         Getdelim touchup.
65278         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65279         around the funlockfile call, since funlockfile never sets errno.
65280         Don't set errno upon failed realloc.
65281
65282 2007-08-22  Eric Blake  <ebb9@byu.net>
65283
65284         Getline touchups.
65285         * lib/getdelim.c (getdelim): Revert regression that required *n to
65286         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65287         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65288         getdelim, rather than whether implementation is missing.
65289         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65290         * lib/stdio_.h (getline): Also declare if replacement is
65291         required.
65292         * doc/functions/getdelim.texi: New file.
65293         * doc/functions/getline.texi: Likewise.
65294         * doc/gnulib.texi (Function Substitutes): Add new files.
65295         Reported by Bruno Haible.
65296
65297 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65298
65299         * users.txt: Add Guile.
65300
65301 2007-08-22  Eric Blake  <ebb9@byu.net>
65302
65303         * tests/test-getdelim.c (main): Use remove, not unlink.
65304         * tests/test-getline.c (main): Likewise.
65305
65306         Move getline and getdelim into stdio.h, per POSIX 200x.
65307         * modules/getline (Files): Remove getline.h.
65308         (Depends-on): Add stdio.
65309         (configure.ac): Add module indicator.
65310         * modules/getdelim (Files): Remove getdelim.h.
65311         (Depends-on): Add stdio.
65312         (configure.ac): Add module indicator.
65313         * modules/stdio (Makefile.am): Work with new indicators.
65314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65315         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65316         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65317         * lib/getdelim.h: Delete.
65318         * lib/getline.h: Delete.
65319         * lib/stdio_.h (getdelim, getline): Declare.
65320         * modules/getdelim-tests: New module.
65321         * modules/getline-tests: Likewise.
65322         * tests/test-getdelim.c: New file.
65323         * tests/test-getline.c: Likewise.
65324         * NEWS: Document the change.
65325         * lib/getline.c: Update choice of header.
65326         * lib/csharpcomp.c: Likewise.
65327         * lib/getpass.c: Likewise.
65328         * lib/javacomp.c: Likewise.
65329         * lib/javaversion.c: Likewise.
65330         * lib/yesno.c: Likewise.
65331         * lib/getdelim.c: Likewise.
65332         (getdelim): Set errno on failure, and avoid memory leak.
65333
65334 2007-08-19  Bruno Haible  <bruno@clisp.org>
65335
65336         * modules/closein (Depends-on): Add freadahead.
65337         * lib/closein.c: Include freadahead.h.
65338         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65339         is zero.
65340
65341 2007-08-19  Bruno Haible  <bruno@clisp.org>
65342
65343         * modules/freadahead-tests: New file.
65344         * tests/test-freadahead.sh: New file.
65345         * tests/test-freadahead.c: New file.
65346
65347         * modules/freadahead: New file.
65348         * lib/freadahead.h: New file.
65349         * lib/freadahead.c: New file.
65350         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65351         fbufmode, fpurge, freadable, fwritable.
65352
65353 2007-08-19  Eric Blake  <ebb9@byu.net>
65354
65355         Test yesno in combination with closein.
65356         * lib/yesno.c (yesno): Document use of stdin.
65357         * modules/yesno-tests (Files): New module.
65358         * tests/test-yesno.c (main): New file.
65359         * tests/test-yesno.sh: Likewise.
65360
65361 2007-08-19  Bruno Haible  <bruno@clisp.org>
65362
65363         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65364         * lib/fseeko.c (rpl_fseeko): Likewise.
65365         * lib/fseterr.c (fseterr): Likewise.
65366
65367 2007-08-19  Bruno Haible  <bruno@clisp.org>
65368
65369         * tests/test-lseek.c (main): Disable a test for BeOS.
65370         * doc/functions/lseek.texi: Document the BeOS bug.
65371
65372 2007-08-19  Bruno Haible  <bruno@clisp.org>
65373             Eric Blake  <ebb9@byu.net>
65374
65375         * lib/lseek.c: Include <sys/stat.h>.
65376         (rpl_lseek): Add workaround code also for Unix platforms.
65377         Needed for BeOS.
65378         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65379         * doc/functions/lseek.texi: Document BeOS definiency.
65380
65381 2007-08-18  Bruno Haible  <bruno@clisp.org>
65382
65383         * modules/fstrcmp-tests: New file.
65384         * tests/test-fstrcmp.c: New file.
65385
65386 2007-08-18  Bruno Haible  <bruno@clisp.org>
65387
65388         * modules/fstrcmp: New file, from GNU gettext with modifications.
65389         * lib/fstrcmp.h: New file, from GNU gettext.
65390         * lib/fstrcmp.c: New file, from GNU gettext.
65391         * MODULES.html.sh (String handling): Add fstrcmp.
65392
65393 2007-08-18  Bruno Haible  <bruno@clisp.org>
65394
65395         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65396         'bool'.
65397         (diag, compareseq): Remove const from the ctxt argument.
65398         (USE_HEURISTIC): Undefine at the end.
65399
65400 2007-08-18  Jim Meyering  <jim@meyering.net>
65401
65402         New file: lib/idcache.h
65403         * NEWS: Mention the addition.
65404         * modules/idcache (Files): Add lib/idcache.h
65405         * lib/idcache.c: Include "idcache.h".
65406         Don't include <sys/types.h>.
65407         Add a FIXME comment.
65408         Move file-scoped "static" declarations to the top.
65409         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65410
65411 2007-08-17  Bruno Haible  <bruno@clisp.org>
65412         and Paul Eggert  <eggert@cs.ucla.edu>
65413
65414         * MODULES.html.sh: Add diffseq.
65415         * modules/diffseq: New file.
65416         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65417         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65418
65419 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65420
65421         Import changes from coreutils for bootstrap script.
65422
65423         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65424
65425         * build-aux/bootstrap (slurp): Work even in environments where
65426         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65427         current code does not slurp files whose names start with ".", and
65428         this looks like it might be a troublesome area.
65429
65430         2007-07-11  Jim Meyering  <jim@meyering.net>
65431
65432         If there's a GPL vN copyright comment, require that N == 3.
65433
65434         2007-07-08  Jim Meyering  <jim@meyering.net>
65435
65436         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65437         * build-aux/bootstrap (mam_template): Move definition out of loop.
65438
65439         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65440
65441         * build-aux/bootstrap (symlink_to_dir): Rename function from
65442         symlink_to_gnulib.  Add a directory parameter.  Update all
65443         callers.
65444         (cp_mark_as_generated): Also check for -- and link to -- files in
65445         gl/.
65446
65447         2007-07-08  Jim Meyering  <jim@meyering.net>
65448
65449         Adapt to deeper hierarchy in gnulib.
65450         * build-aux/bootstrap (symlink_to_dir): If the destination
65451         directory doesn't exist, create it. This is required at least for
65452         "lib/uniwidth/cjk.h".
65453
65454         2007-05-15  Jim Meyering  <jim@meyering.net>
65455
65456         * build-aux/bootstrap: Now that generated Makefile.am files
65457         are no longer under version control, they must be created at
65458         bootstrap time.
65459
65460 2007-08-14  Ben Pfaff  <blp@gnu.org>
65461
65462         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65463
65464 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65467         given the changes below.
65468         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65469         even on hosts that have padding bits beyond the supported 64.
65470
65471 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65472
65473         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65474         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65475         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65476         depends on it.
65477         (xstrtol_error): Remove.
65478         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65479         but with a different signature.
65480         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65481         * lib/xstrtol-error.c: Include exitfail.h.
65482         (xstrtol_fatal): New function, with a different signature from the
65483         old xstrtol_error, so that the caller need not worry about passing
65484         in an exit status, or about storage management of the option argument.
65485         (xstrtol_error): Now a static function.  Redo signature to
65486         implement xstrtol_fatal.  Output the correct number of hyphens in
65487         front of the option so that the caller need not worry about
65488         storage management.
65489         (N_): New macro.
65490         (_): Remove; not used now.
65491         * modules/xstrtol: Depend on getopt.
65492         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65493         of old STRTOL_FATAL_ERROR macro.
65494         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65495         of test program.
65496         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65497         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65498
65499 2007-08-08  Eric Blake  <ebb9@byu.net>
65500
65501         * lib/xstrtol-error.c: Add missing include.
65502
65503         Move xstrtol messages into gnulib domain, when --pobase is used.
65504         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65505         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65506         * modules/xstrtol (Files): Distribute new file.
65507         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65508         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65509         * tests/test-xstrtol.c: ...into new file.
65510         * tests/test-xstrtoul.c: Also test xstrtoul.
65511         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65512         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65513         * tests/test-xstrtol.sh: Drive the tests.
65514         * tests/test-xstrtoimax.sh: Likewise.
65515         * tests/test-xstrtoumax.sh: Likewise.
65516         * modules/xstrtol-tests: New module.
65517         * modules/xstrtoimax-tests: Likewise.
65518         * modules/xstrtoumax-tests: Likewise.
65519
65520 2007-08-08  Jim Meyering  <jim@meyering.net>
65521
65522         New function: mfile_name_concat.
65523         * lib/filenamecat.c (mfile_name_concat): New function, just like
65524         file_name_concat, but return NULL upon failure rather than exiting
65525         with a diagnostic.
65526         * lib/filenamecat.h: Declare it.
65527
65528 2007-08-07  Bruno Haible  <bruno@clisp.org>
65529
65530         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
65531         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
65532         warning from gcc.
65533         Reported by Eric Blake.
65534
65535 2007-08-07  Simon Josefsson  <simon@josefsson.org>
65536
65537         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
65538         * modules/crypto/arcfour (License): Likewise.
65539         * modules/crypto/des-tests (License): Likewise.
65540         * modules/crypto/gc-arctwo-tests (License): Likewise.
65541         * modules/crypto/gc-des-tests (License): Likewise.
65542         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
65543         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
65544         * modules/crypto/gc-md2-tests (License): Likewise.
65545         * modules/crypto/gc-md4-tests (License): Likewise.
65546         * modules/crypto/gc-md5-tests (License): Likewise.
65547         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
65548         * modules/crypto/gc-rijndael-tests (License): Likewise.
65549         * modules/crypto/gc-sha1-tests (License): Likewise.
65550         * modules/crypto/gc-tests (License): Likewise.
65551         * modules/crypto/hmac-md5 (License): Likewise.
65552         * modules/crypto/hmac-sha1 (License): Likewise.
65553         * modules/crypto/md2-tests (License): Likewise.
65554         * modules/crypto/md4-tests (License): Likewise.
65555         * modules/crypto/md5 (License): Likewise.
65556         * modules/crypto/rijndael (License): Likewise.
65557         * modules/crypto/sha1 (License): Likewise.
65558         * modules/memxor (License): Likewise.
65559
65560 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65561         and Bruno Haible  <bruno@clisp.org>
65562
65563         * NEWS: Describe interface changes to human, xstrtol.
65564         * lib/human.h: Include <xstrtol.h>.
65565         (human_options): Return enum strtol_error, not int.  Remove
65566         bool arg; take int * instead.
65567         * lib/human.c: Don't include "gettext.h".
65568         (_): Remove; no longer used.
65569         Don't include <xstrtol.h>, since human.h does it.
65570         (human_options): Adjust to abovementioned interface changes.
65571         Do not report error to stderr; that's now the caller's
65572         responsibility.
65573         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
65574         interface change.
65575         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
65576         Str, Argument_type_string.  All uses changed.  Put " argument"
65577         in diagnostics to make them clearer.  Change wording of suffix
65578         message for clarity.
65579         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
65580         Argument_type_string.
65581         (STRTOL_FATAL_WARN): Remove; no longer used.
65582         * modules/human (Depends-on): Remove gettext-h.
65583
65584 2007-08-06  Simon Josefsson  <simon@josefsson.org>
65585
65586         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
65587
65588 2007-07-31  Bruno Haible  <bruno@clisp.org>
65589
65590         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
65591         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
65592         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
65593
65594 2007-07-31  Bruno Haible  <bruno@clisp.org>
65595
65596         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
65597         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
65598
65599 2007-07-30  Bruno Haible  <bruno@clisp.org>
65600
65601         * modules/base64 (License): Use the synonymous term "LGPLv2+".
65602         * modules/c-ctype (License): Likewise.
65603         * modules/c-strcase (License): Likewise.
65604         * modules/check-version (License): Likewise.
65605         * modules/iconv (License): Likewise.
65606         * modules/iconv_open (License): Likewise.
65607         * modules/read-file (License): Likewise.
65608         * modules/striconv (License): Likewise.
65609         * modules/strverscmp (License): Likewise.
65610         * modules/vasprintf (License): Likewise.
65611         * modules/crypto/des (License): Likewise.
65612         * modules/crypto/gc (License): Likewise.
65613         * modules/crypto/gc-arcfour (License): Likewise.
65614         * modules/crypto/gc-arctwo (License): Likewise.
65615         * modules/crypto/gc-des (License): Likewise.
65616         * modules/crypto/gc-hmac-md5 (License): Likewise.
65617         * modules/crypto/gc-hmac-sha1 (License): Likewise.
65618         * modules/crypto/gc-md2 (License): Likewise.
65619         * modules/crypto/gc-md4 (License): Likewise.
65620         * modules/crypto/gc-md5 (License): Likewise.
65621         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
65622         * modules/crypto/gc-random (License): Likewise.
65623         * modules/crypto/gc-rijndael (License): Likewise.
65624         * modules/crypto/gc-sha1 (License): Likewise.
65625         * modules/crypto/md2 (License): Likewise.
65626         * modules/crypto/md4 (License): Likewise.
65627
65628 2007-07-30  Jim Meyering  <jim@meyering.net>
65629
65630         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
65631         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
65632         it has valid stat data.  This bug would cause du not to count the
65633         sizes of inaccessible directories.
65634         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
65635         in <http://bugzilla.redhat.com/250077>.
65636
65637 2007-07-25  Peter O'Gorman  <peter@pogma.com>
65638             Bruno Haible  <bruno@clisp.org>
65639
65640         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
65641         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
65642         #include_next, gives a diagnostic about it, but reports no error in
65643         the exit code.
65644         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
65645
65646 2007-07-24  Ben Pfaff  <blp@gnu.org>
65647
65648         Improve name: "count-one-bits" is better than "popcount".
65649         * MODULES.html.sh: Update name.
65650         * lib/popcount.h: Renamed lib/count-one-bits.h.
65651         (popcount): Renamed count_one_bits.
65652         (popcountl): Renamed count_one_bits_l.
65653         (popcountll): Renamed count_one_bits_ll.
65654         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
65655         * modules/popcount: Renamed module/count-one-bits.
65656         * modules/popcount-tests: Renamed module/count-one-bits-tests.
65657         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
65658
65659 2007-07-23  Ben Pfaff  <blp@gnu.org>
65660
65661         * lib/popcount.h (popcount32): Reduce size of constants, to allow
65662         better code generation, and add U to large constants to avoid
65663         warnings, in non-GCC case.
65664         Suggested by Bruno Haible.
65665
65666 2007-07-23  Ben Pfaff  <blp@gnu.org>
65667
65668         * lib/popcount.h: Use verify_true instead of if...abort.
65669         * modules/popcount: Depend on verify module.
65670         Suggested by Jim Meyering.
65671
65672 2007-07-23  Bruno Haible  <bruno@clisp.org>
65673
65674         * gnulib-tool (func_import): Create a .cvsignore file also when the
65675         directory is not yet in CVS but the toplevel directory is. When
65676         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
65677         Reported by Karl Berry.
65678
65679 2007-07-22  Ben Pfaff  <blp@gnu.org>
65680
65681         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
65682         case.
65683         Suggested by Eric Blake.
65684
65685 2007-07-22  Ben Pfaff  <blp@gnu.org>
65686
65687         New module: popcount.
65688         * MODULES.html.sh: Add popcount.
65689         * modules/popcount: New file.
65690         * modules/popcount-tests: New file.
65691         * tests/test-popcount.c: New file.
65692         * lib/popcount.h: New file.
65693         * m4/popcount.m4: New file.
65694
65695 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65696
65697         * build-aux/announce-gen: Update to GPLv3.
65698
65699         * build-aux/config.guess: Update from config.
65700
65701 2007-07-21  Bruno Haible  <bruno@clisp.org>
65702
65703         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
65704         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
65705
65706 2007-07-20  Jim Meyering  <jim@meyering.net>
65707
65708         * check-module: Diagnose a self-dependency.
65709
65710 2007-07-19  Bruno Haible  <bruno@clisp.org>
65711
65712         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
65713         empty.
65714         Reported by Eric Blake.
65715
65716 2007-07-18  Bruno Haible  <bruno@clisp.org>
65717
65718         * gnulib-tool: New options --po-base, --po-domain.
65719         (func_usage): Document them.
65720         (pobase, po_domain): New variables.
65721         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
65722         DEFAULT_TEXT_DOMAIN.
65723         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
65724         (func_import): Consider pobase and po_domain. Create a po/ directory.
65725         (func_create_testdir): Set pobase and po_domain to empty.
65726         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
65727         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
65728
65729 2007-07-18  Bruno Haible  <bruno@clisp.org>
65730
65731         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65732         EXTRA_DIST augmentation for files in build-aux/.
65733
65734 2007-07-16  Bruno Haible  <bruno@clisp.org>
65735
65736         * modules/lseek (License): Use the synonymous term "LGPLv2+".
65737         * modules/getdelim (License): Likewise.
65738
65739 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65740
65741         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
65742         * modules/d-type (License): Likewise.
65743         * modules/extensions (License): Likewise.
65744         * modules/fnmatch (License): Likewise.
65745         * modules/fseeko (License): Likewise.
65746         * modules/getaddrinfo (License): Likewise.
65747         * modules/getline (License): Likewise.
65748         * modules/getlogin_r (License): Likewise.
65749         * modules/getpass (License): Likewise.
65750         * modules/gettimeofday (License): Likewise.
65751         * modules/glob (License): Likewise.
65752         * modules/inet_ntop (License): Likewise.
65753         * modules/malloc (License): Likewise.
65754         * modules/malloca (License): Likewise.
65755         * modules/memmem (License): Likewise.
65756         * modules/mempcpy (License): Likewise.
65757         * modules/memset (License): Likewise.
65758         * modules/minmax (License): Likewise.
65759         * modules/mktime (License): Likewise.
65760         * modules/netinet_in (License): Likewise.
65761         * modules/pathmax (License): Likewise.
65762         * modules/poll (License): Likewise.
65763         * modules/regex (License): Likewise.
65764         * modules/snprintf (License): Likewise.
65765         * modules/stdbool (License): Likewise.
65766         * modules/stdint (License): Likewise.
65767         * modules/stdio (License): Likewise.
65768         * modules/strcase (License): Likewise.
65769         * modules/strcasestr (License): Likewise.
65770         * modules/strdup (License): Likewise.
65771         * modules/string (License): Likewise.
65772         * modules/strndup (License): Likewise.
65773         * modules/strnlen (License): Likewise.
65774         * modules/strpbrk (License): Likewise.
65775         * modules/strptime (License): Likewise.
65776         * modules/strsep (License): Likewise.
65777         * modules/sys_select (License): Likewise.
65778         * modules/sys_socket (License): Likewise.
65779         * modules/sys_stat (License): Likewise.
65780         * modules/sys_time (License): Likewise.
65781         * modules/time (License): Likewise.
65782         * modules/time_r (License): Likewise.
65783         * modules/timegm (License): Likewise.
65784         * modules/unistd (License): Likewise.
65785         * modules/vsnprintf (License): Likewise.
65786         * modules/wctype (License): Likewise.
65787
65788 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65789
65790         * modules/argz (License): LGPLv2+.
65791
65792 2007-07-15  Karl Berry  <karl@gnu.org>
65793
65794         * doc/gnulib.texi: revise node structure per new fdl.texi.
65795
65796 2007-07-14  Bruno Haible  <bruno@clisp.org>
65797
65798         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
65799         the output file.
65800         * lib/uniname/uninames.h: Regenerated.
65801
65802 2007-07-14  Karl Berry  <karl@gnu.org>
65803
65804         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
65805         omitting sectioning and index commands.
65806
65807 2007-07-13  Bruno Haible  <bruno@clisp.org>
65808
65809         New gnulib-tool option --more-symlinks.
65810         * gnulib-tool (func_usage): Document --more-symlinks.
65811         (do_copyrights): New variable.
65812         Recognize option --more-symlinks.
65813         (func_import): Don't add a copyright notice transform to
65814         sed_transform_lib_file if do_copyrights is empty.
65815
65816 2007-07-13  Bruno Haible  <bruno@clisp.org>
65817
65818         * lib/vasnprintf.c (decimal_point_char): Define also if
65819         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
65820         && !NEED_PRINTF_DIRECTIVE_A.
65821         Reported by Clemens Koller <clemens.koller@anagramm.de> via
65822         Gary V. Vaughan <gary@gnu.org>.
65823
65824 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
65825
65826         * lib/inttypes_.h: Undo previous change, since it was fixed
65827         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
65828
65829 2007-07-13  Bruno Haible  <bruno@clisp.org>
65830
65831         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
65832         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
65833
65834 2007-07-13  Jim Meyering  <jim@meyering.net>
65835
65836         df: Don't fail for Tru64's "file-on-file mount".
65837         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
65838         so we fall through and use statfs instead.  Details here:
65839         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
65840         Reported by Albert Chin.
65841
65842 2007-07-13  Bruno Haible  <bruno@clisp.org>
65843
65844         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
65845         * modules/configmake (License): Likewise.
65846         * modules/gettext (License): Likewise.
65847         * modules/gettext-h (License): Likewise.
65848         * modules/include_next (License): Likewise.
65849         * modules/link-warning (License): Likewise.
65850         * modules/localcharset (License): Likewise.
65851         * modules/localename (License): Likewise.
65852         * modules/lock (License): Likewise.
65853         * modules/relocatable-lib-lgpl (License): Likewise.
65854         * modules/size_max (License): Likewise.
65855         * modules/vasnprintf (License): Likewise.
65856         * modules/wchar (License): Likewise.
65857         * modules/xsize (License): Likewise.
65858
65859 2007-07-13  Bruno Haible  <bruno@clisp.org>
65860
65861         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
65862         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
65863
65864 2007-07-12  Bruno Haible  <bruno@clisp.org>
65865
65866         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
65867         in the modules files.
65868
65869 2007-07-11  Karl Berry  <karl@gnu.org>
65870
65871         * MODULES.html.sh (func_module): use
65872          sed -e '\|^'"${includefile}"'$|d'
65873          instead of /.../d, to avoid errors on $includefile's containing /.
65874
65875 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65876
65877         * gnulib-tool (func_import): Avoid duplication of --avoid
65878         statements
65879         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
65880         names to `_' in variable names.
65881
65882 2007-07-10  Eric Blake  <ebb9@byu.net>
65883
65884         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
65885         * NEWS: Document this change.
65886
65887 2007-07-08  Bruno Haible  <bruno@clisp.org>
65888
65889         Update to Unicode 5.0.
65890         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
65891         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
65892         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
65893         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
65894         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
65895         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
65896         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
65897         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
65898         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
65899         U+10A3F, U+1D242..U+1D244.
65900         (nonspacing_table_ind): Update.
65901         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
65902         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
65903
65904 2007-07-08  Bruno Haible  <bruno@clisp.org>
65905
65906         Update to Unicode 5.0.
65907         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
65908         code transform. Extend the name index field of unicode_name_to_code and
65909         unicode_code_to_name from 16 to 24 bits.
65910         * lib/uniname/uniname.c (unicode_character_name,
65911         unicode_name_character): Add the range 0x12xxx to the code transform.
65912         * lib/uniname/uninames.h: Regenerated.
65913         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
65914
65915 2007-07-07  Bruno Haible  <bruno@clisp.org>
65916
65917         * modules/wcwidth-tests: New file.
65918         * tests/test-wcwidth.c: New file.
65919
65920         Work around MacOS X wcwidth() bug.
65921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
65922         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
65923         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
65924         original wcwidth in non-UTF-8 locales.
65925         * modules/wcwidth (Depends-on): Add localcharset, streq,
65926         uniwidth/width.
65927         * doc/functions/wcwidth.texi: Update.
65928
65929 2007-07-07  Bruno Haible  <bruno@clisp.org>
65930
65931         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
65932         (wcwidth): New declaration.
65933         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
65934         macros.
65935         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
65936         here. Prepare for creating <wchar.h> unconditionally.
65937         * modules/wchar (Depends-on): Add link-warning.
65938         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
65939         REPLACE_WCWIDTH, and GL_LINK_WARNING.
65940         * lib/wcwidth.h: Remove file.
65941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
65942         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
65943         * modules/wcwidth (Files): Remove lib/wcwidth.h.
65944         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
65945         (Include): Replace wcwidth.h with <wchar.h>.
65946         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
65947         * lib/mbchar.h: Don't include wcwidth.h.
65948         * lib/mbswidth.c: Likewise.
65949         * NEWS: Mention the change.
65950
65951 2007-07-07  Bruno Haible  <bruno@clisp.org>
65952
65953         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
65954         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
65955         definition with an external declaration.
65956         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
65957         defined as a function. Remove AC_C_INLINE requirement.
65958         * modules/wcwidth (Files): Add lib/wcwidth.c.
65959         (Makefile.am): Remove redundant statement.
65960
65961 2007-07-07  Bruno Haible  <bruno@clisp.org>
65962
65963         * MODULES.html.sh (Unicode string functions): Add the new modules.
65964
65965         * tests/uniwidth/test-u32-strwidth.c: New file.
65966         * modules/uniwidth/u32-strwidth-tests: New file.
65967
65968         * lib/uniwidth/u32-strwidth.c: New file.
65969         * modules/uniwidth/u32-strwidth: New file.
65970
65971         * tests/uniwidth/test-u16-strwidth.c: New file.
65972         * modules/uniwidth/u16-strwidth-tests: New file.
65973
65974         * lib/uniwidth/u16-strwidth.c: New file.
65975         * modules/uniwidth/u16-strwidth: New file.
65976
65977         * tests/uniwidth/test-u8-strwidth.c: New file.
65978         * modules/uniwidth/u8-strwidth-tests: New file.
65979
65980         * lib/uniwidth/u8-strwidth.c: New file.
65981         * modules/uniwidth/u8-strwidth: New file.
65982
65983         * tests/uniwidth/test-u32-width.c: New file.
65984         * modules/uniwidth/u32-width-tests: New file.
65985
65986         * lib/uniwidth/u32-width.c: New file.
65987         * modules/uniwidth/u32-width: New file.
65988
65989         * tests/uniwidth/test-u16-width.c: New file.
65990         * modules/uniwidth/u16-width-tests: New file.
65991
65992         * lib/uniwidth/u16-width.c: New file.
65993         * modules/uniwidth/u16-width: New file.
65994
65995         * tests/uniwidth/test-u8-width.c: New file.
65996         * modules/uniwidth/u8-width-tests: New file.
65997
65998         * lib/uniwidth/u8-width.c: New file.
65999         * modules/uniwidth/u8-width: New file.
66000
66001         * tests/uniwidth/test-uc_width.c: New file.
66002         * modules/uniwidth/width-tests: New file.
66003
66004         * lib/uniwidth/width.c: New file, from GNU libiconv.
66005         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66006         * modules/uniwidth/width: New file.
66007
66008         * lib/uniwidth.h: New file, from GNU libiconv.
66009         * modules/uniwidth/base: New file.
66010
66011 2007-07-07  Bruno Haible  <bruno@clisp.org>
66012
66013         * lib/uniname.h: New file, from GNU gettext.
66014         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66015         * lib/uniname/uninames.h: New file, from GNU gettext.
66016         * lib/uniname/uniname.c: New file, from GNU gettext.
66017         * tests/uniname/test-uninames.sh: New file.
66018         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66019         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66020         * modules/uniname/base: New file.
66021         * modules/uniname/uniname: New file.
66022         * modules/uniname/uniname-tests: New file.
66023         * MODULES.html.sh (Unicode string functions): Add the new modules.
66024
66025 2007-07-06  Bruno Haible  <bruno@clisp.org>
66026
66027         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66028
66029 2007-07-06  Bruno Haible  <bruno@clisp.org>
66030
66031         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66032         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66033         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66034         include <sys/time.h>.
66035         Reported by Eric Blake.
66036
66037 2007-07-06  Eric Blake  <ebb9@byu.net>
66038
66039         Fix testing canonicalize on cygwin.
66040         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66041         Revert patch from 2007-06-19.
66042         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66043         canonicalize module is also in use.
66044         * tests/test-canonicalize.c: New file.
66045         * tests/test-canonicalize.sh: Likewise.
66046         * modules/canonicalize-tests: Likewise.
66047
66048 2007-07-06  Jim Meyering  <jim@meyering.net>
66049
66050         * lib/getugroups.c (getugroups): Detect getgrent failure.
66051         Adjust comment to reflect reality: this function may return -1.
66052
66053 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66054
66055         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66056         the new TP address.
66057         (usage): Fix typo
66058         (gnulib_mk): New variable.
66059
66060 2007-07-05  Jim Meyering  <jim@meyering.net>
66061
66062         Don't let endgrent clobber errno, no matter how improbable.
66063         * lib/getugroups.c (getugroups): Save and restore errno around
66064         endgrent call.
66065
66066         Close the group DB even when failing with 2^31 or more members.
66067         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66068
66069 2007-07-04  Jim Meyering  <jim@meyering.net>
66070
66071         * lib/getugroups.h: New file.
66072         * lib/getugroups.c: Include "getugroups.h".
66073         Remove uses of "register" keyword.
66074         Move local variable, "cp", down into scope where used.
66075         Give "username" parameter the "const" attribute.
66076         * modules/getugroups (Files): Add lib/getugroups.h
66077
66078 2007-07-04  Karl Berry  <karl@gnu.org>
66079
66080         * MODULES.html.sh (func_all_modules): Complete rename of
66081         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66082
66083 2007-07-02  Bruno Haible  <bruno@clisp.org>
66084
66085         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66086         mode, when inttypes.h comes from gnulib.
66087         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66088
66089 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66090
66091         * NEWS: Mention lgpl module name change.
66092
66093         * modules/lgpl-2.1: Renamed from lgpl.
66094
66095         * NEWS: Mention gpl module name change.
66096
66097         * modules/gpl-3.0: New file, based on gpl-2.0.
66098
66099         * modules/gpl-2.0: Renamed from gpl.
66100
66101         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66102         doc/gpl-2.0.texi.
66103
66104 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66105
66106         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66107         #define __STDC_LIMIT_MACROS temporarily while including
66108         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66109         Problem reported by Joel E. Denny in
66110         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66111
66112 2007-07-01  Bruno Haible  <bruno@clisp.org>
66113
66114         * lib/unistdio.h: New file.
66115         * lib/unistdio/u-asnprintf.h: New file.
66116         * lib/unistdio/u-asprintf.h: New file.
66117         * lib/unistdio/u-printf-args.c: New file.
66118         * lib/unistdio/u-printf-args.h: New file.
66119         * lib/unistdio/u-printf-parse.h: New file.
66120         * lib/unistdio/u-snprintf.h: New file.
66121         * lib/unistdio/u-sprintf.h: New file.
66122         * lib/unistdio/u-vasprintf.h: New file.
66123         * lib/unistdio/u-vsnprintf.h: New file.
66124         * lib/unistdio/u-vsprintf.h: New file.
66125         * lib/unistdio/ulc-asnprintf.c: New file.
66126         * lib/unistdio/ulc-asprintf.c: New file.
66127         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66128         * lib/unistdio/ulc-printf-parse.c: New file.
66129         * lib/unistdio/ulc-snprintf.c: New file.
66130         * lib/unistdio/ulc-sprintf.c: New file.
66131         * lib/unistdio/ulc-vasnprintf.c: New file.
66132         * lib/unistdio/ulc-vasprintf.c: New file.
66133         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66134         * lib/unistdio/ulc-vsnprintf.c: New file.
66135         * lib/unistdio/ulc-vsprintf.c: New file.
66136         * lib/unistdio/u8-asnprintf.c: New file.
66137         * lib/unistdio/u8-asprintf.c: New file.
66138         * lib/unistdio/u8-printf-parse.c: New file.
66139         * lib/unistdio/u8-snprintf.c: New file.
66140         * lib/unistdio/u8-sprintf.c: New file.
66141         * lib/unistdio/u8-vasnprintf.c: New file.
66142         * lib/unistdio/u8-vasprintf.c: New file.
66143         * lib/unistdio/u8-vsnprintf.c: New file.
66144         * lib/unistdio/u8-vsprintf.c: New file.
66145         * lib/unistdio/u8-u8-asnprintf.c: New file.
66146         * lib/unistdio/u8-u8-asprintf.c: New file.
66147         * lib/unistdio/u8-u8-snprintf.c: New file.
66148         * lib/unistdio/u8-u8-sprintf.c: New file.
66149         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66150         * lib/unistdio/u8-u8-vasprintf.c: New file.
66151         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66152         * lib/unistdio/u8-u8-vsprintf.c: New file.
66153         * lib/unistdio/u16-asnprintf.c: New file.
66154         * lib/unistdio/u16-asprintf.c: New file.
66155         * lib/unistdio/u16-printf-parse.c: New file.
66156         * lib/unistdio/u16-snprintf.c: New file.
66157         * lib/unistdio/u16-sprintf.c: New file.
66158         * lib/unistdio/u16-vasnprintf.c: New file.
66159         * lib/unistdio/u16-vasprintf.c: New file.
66160         * lib/unistdio/u16-vsnprintf.c: New file.
66161         * lib/unistdio/u16-vsprintf.c: New file.
66162         * lib/unistdio/u16-u16-asnprintf.c: New file.
66163         * lib/unistdio/u16-u16-asprintf.c: New file.
66164         * lib/unistdio/u16-u16-snprintf.c: New file.
66165         * lib/unistdio/u16-u16-sprintf.c: New file.
66166         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66167         * lib/unistdio/u16-u16-vasprintf.c: New file.
66168         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66169         * lib/unistdio/u16-u16-vsprintf.c: New file.
66170         * lib/unistdio/u32-asnprintf.c: New file.
66171         * lib/unistdio/u32-asprintf.c: New file.
66172         * lib/unistdio/u32-printf-parse.c: New file.
66173         * lib/unistdio/u32-snprintf.c: New file.
66174         * lib/unistdio/u32-sprintf.c: New file.
66175         * lib/unistdio/u32-vasnprintf.c: New file.
66176         * lib/unistdio/u32-vasprintf.c: New file.
66177         * lib/unistdio/u32-vsnprintf.c: New file.
66178         * lib/unistdio/u32-vsprintf.c: New file.
66179         * lib/unistdio/u32-u32-asnprintf.c: New file.
66180         * lib/unistdio/u32-u32-asprintf.c: New file.
66181         * lib/unistdio/u32-u32-snprintf.c: New file.
66182         * lib/unistdio/u32-u32-sprintf.c: New file.
66183         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66184         * lib/unistdio/u32-u32-vasprintf.c: New file.
66185         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66186         * lib/unistdio/u32-u32-vsprintf.c: New file.
66187         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66188         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66189         * tests/unistdio/test-ulc-printf1.h: New file.
66190         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66191         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66192         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66193         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66194         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66195         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66196         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66197         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66198         * tests/unistdio/test-u8-asnprintf1.c: New file.
66199         * tests/unistdio/test-u8-asnprintf1.h: New file.
66200         * tests/unistdio/test-u8-printf1.h: New file.
66201         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66202         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66203         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66204         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66205         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66206         * tests/unistdio/test-u8-vasprintf1.c: New file.
66207         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66208         * tests/unistdio/test-u8-vsprintf1.c: New file.
66209         * tests/unistdio/test-u16-asnprintf1.c: New file.
66210         * tests/unistdio/test-u16-asnprintf1.h: New file.
66211         * tests/unistdio/test-u16-printf1.h: New file.
66212         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66213         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66214         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66215         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66216         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66217         * tests/unistdio/test-u16-vasprintf1.c: New file.
66218         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66219         * tests/unistdio/test-u16-vsprintf1.c: New file.
66220         * tests/unistdio/test-u32-asnprintf1.c: New file.
66221         * tests/unistdio/test-u32-asnprintf1.h: New file.
66222         * tests/unistdio/test-u32-printf1.h: New file.
66223         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66224         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66225         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66226         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66227         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66228         * tests/unistdio/test-u32-vasprintf1.c: New file.
66229         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66230         * tests/unistdio/test-u32-vsprintf1.c: New file.
66231         * modules/unistdio/base: New file.
66232         * modules/unistdio/u-printf-args: New file.
66233         * modules/unistdio/ulc-asnprintf: New file.
66234         * modules/unistdio/ulc-asprintf: New file.
66235         * modules/unistdio/ulc-fprintf: New file.
66236         * modules/unistdio/ulc-printf-parse: New file.
66237         * modules/unistdio/ulc-snprintf: New file.
66238         * modules/unistdio/ulc-sprintf: New file.
66239         * modules/unistdio/ulc-vasnprintf: New file.
66240         * modules/unistdio/ulc-vasprintf: New file.
66241         * modules/unistdio/ulc-vfprintf: New file.
66242         * modules/unistdio/ulc-vsnprintf: New file.
66243         * modules/unistdio/ulc-vsprintf: New file.
66244         * modules/unistdio/u8-asnprintf: New file.
66245         * modules/unistdio/u8-asprintf: New file.
66246         * modules/unistdio/u8-printf-parse: New file.
66247         * modules/unistdio/u8-snprintf: New file.
66248         * modules/unistdio/u8-sprintf: New file.
66249         * modules/unistdio/u8-vasnprintf: New file.
66250         * modules/unistdio/u8-vasprintf: New file.
66251         * modules/unistdio/u8-vsnprintf: New file.
66252         * modules/unistdio/u8-vsprintf: New file.
66253         * modules/unistdio/u8-u8-asnprintf: New file.
66254         * modules/unistdio/u8-u8-asprintf: New file.
66255         * modules/unistdio/u8-u8-snprintf: New file.
66256         * modules/unistdio/u8-u8-sprintf: New file.
66257         * modules/unistdio/u8-u8-vasnprintf: New file.
66258         * modules/unistdio/u8-u8-vasprintf: New file.
66259         * modules/unistdio/u8-u8-vsnprintf: New file.
66260         * modules/unistdio/u8-u8-vsprintf: New file.
66261         * modules/unistdio/u16-asnprintf: New file.
66262         * modules/unistdio/u16-asprintf: New file.
66263         * modules/unistdio/u16-printf-parse: New file.
66264         * modules/unistdio/u16-snprintf: New file.
66265         * modules/unistdio/u16-sprintf: New file.
66266         * modules/unistdio/u16-vasnprintf: New file.
66267         * modules/unistdio/u16-vasprintf: New file.
66268         * modules/unistdio/u16-vsnprintf: New file.
66269         * modules/unistdio/u16-vsprintf: New file.
66270         * modules/unistdio/u16-u16-asnprintf: New file.
66271         * modules/unistdio/u16-u16-asprintf: New file.
66272         * modules/unistdio/u16-u16-snprintf: New file.
66273         * modules/unistdio/u16-u16-sprintf: New file.
66274         * modules/unistdio/u16-u16-vasnprintf: New file.
66275         * modules/unistdio/u16-u16-vasprintf: New file.
66276         * modules/unistdio/u16-u16-vsnprintf: New file.
66277         * modules/unistdio/u16-u16-vsprintf: New file.
66278         * modules/unistdio/u32-asnprintf: New file.
66279         * modules/unistdio/u32-asprintf: New file.
66280         * modules/unistdio/u32-printf-parse: New file.
66281         * modules/unistdio/u32-snprintf: New file.
66282         * modules/unistdio/u32-sprintf: New file.
66283         * modules/unistdio/u32-vasnprintf: New file.
66284         * modules/unistdio/u32-vasprintf: New file.
66285         * modules/unistdio/u32-vsnprintf: New file.
66286         * modules/unistdio/u32-vsprintf: New file.
66287         * modules/unistdio/u32-u32-asnprintf: New file.
66288         * modules/unistdio/u32-u32-asprintf: New file.
66289         * modules/unistdio/u32-u32-snprintf: New file.
66290         * modules/unistdio/u32-u32-sprintf: New file.
66291         * modules/unistdio/u32-u32-vasnprintf: New file.
66292         * modules/unistdio/u32-u32-vasprintf: New file.
66293         * modules/unistdio/u32-u32-vsnprintf: New file.
66294         * modules/unistdio/u32-u32-vsprintf: New file.
66295         * modules/unistdio/ulc-asnprintf-tests: New file.
66296         * modules/unistdio/ulc-vasnprintf-tests: New file.
66297         * modules/unistdio/ulc-vasprintf-tests: New file.
66298         * modules/unistdio/ulc-vsnprintf-tests: New file.
66299         * modules/unistdio/ulc-vsprintf-tests: New file.
66300         * modules/unistdio/u8-asnprintf-tests: New file.
66301         * modules/unistdio/u8-vasnprintf-tests: New file.
66302         * modules/unistdio/u8-vasprintf-tests: New file.
66303         * modules/unistdio/u8-vsnprintf-tests: New file.
66304         * modules/unistdio/u8-vsprintf-tests: New file.
66305         * modules/unistdio/u16-asnprintf-tests: New file.
66306         * modules/unistdio/u16-vasnprintf-tests: New file.
66307         * modules/unistdio/u16-vasprintf-tests: New file.
66308         * modules/unistdio/u16-vsnprintf-tests: New file.
66309         * modules/unistdio/u16-vsprintf-tests: New file.
66310         * modules/unistdio/u32-asnprintf-tests: New file.
66311         * modules/unistdio/u32-vasnprintf-tests: New file.
66312         * modules/unistdio/u32-vasprintf-tests: New file.
66313         * modules/unistdio/u32-vsnprintf-tests: New file.
66314         * modules/unistdio/u32-vsprintf-tests: New file.
66315         * MODULES.html.sh (Unicode string functions): Add the new modules.
66316
66317 2007-07-01  Bruno Haible  <bruno@clisp.org>
66318
66319         * lib/sprintf.c (sprintf): Limit the available length estimation,
66320         to avoid address wraparound.
66321         * lib/vsprintf.c (vsprintf): Likewise.
66322         * modules/sprintf-posix (Dependencies): Add stdint.
66323         * modules/vsprintf-posix (Dependencies): Likewise.
66324
66325 2007-07-01  Bruno Haible  <bruno@clisp.org>
66326
66327         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66328         Windows PATH as well. Conservative double-quoting. Comments.
66329
66330 2007-07-01  Bruno Haible  <bruno@clisp.org>
66331             Eric Blake  <ebb9@byu.net>
66332             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66333
66334         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66335         empty components in $PATH, denoting '.'.
66336
66337 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66338
66339         * gnulib-tool: Fix indentation.
66340         (func_create_megatestdir): Likewise.
66341         Report by Bruno Haible.
66342
66343 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66344
66345         Sync from Automake.
66346         * build-aux/gnupload: Fix shell portability issues with for loops.
66347         Report by Karl Berry.
66348
66349 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66350
66351         * build-aux/maint.mk (POURL): Use translationproject.org.
66352
66353 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66354             Bruno Haible  <bruno@clisp.org>
66355
66356         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66357         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66358         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66359         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66360         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66361
66362 2007-06-27  Bruno Haible  <bruno@clisp.org>
66363
66364         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66365         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66366
66367 2007-06-26  Karl Berry  <karl@gnu.org>
66368
66369         * MODULES.html.sh: remove xreadlink-with-size.
66370
66371 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66372
66373         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66374         method that I hope also handles the double-include problem noted
66375         by Bruno Haible in
66376         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66377
66378 2007-06-23  Bruno Haible  <bruno@clisp.org>
66379
66380         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66381         Don't let the 'mostlyclean' target fail if the last subdirectory could
66382         not be removed.
66383         Reported by Karl Berry.
66384
66385 2007-06-23  Bruno Haible  <bruno@clisp.org>
66386
66387         * gnulib-tool (echo): Add a speedier workaround for ksh.
66388         * tests/test-echo.sh: Likewise.
66389
66390 2007-06-23  Bruno Haible  <bruno@clisp.org>
66391
66392         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66393         * tests/test-echo.sh: Likewise.
66394
66395 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66396
66397         * gnulib-tool (IFS): Initialize early, so we don't set it to
66398         empty later.
66399         (self_abspathname): Rewrite algorithm to set it, reindent.
66400         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66401         (func_create_megatestdir): Merge some sed scripts.
66402
66403 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66404
66405         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66406         exposed by Sun Studio 11 cc on Solaris 8.
66407
66408 2007-06-22  Bruno Haible  <bruno@clisp.org>
66409
66410         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66411         backslashes.
66412         * tests/test-echo.sh: New file.
66413
66414 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66415
66416         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66417         simplify `sed_replace_build_aux' scripts, they are portable but
66418         echoing them with `echo' is not.
66419         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66420
66421 2007-06-21  Karl Berry  <karl@gnu.org>
66422
66423         * config/srclist.txt: guess we can't handle the licenses via
66424         srclist at the moment.
66425
66426 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66427
66428         * MODULES.html.sh: Add include_next.
66429         * modules/include_next: New file.
66430
66431 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66432
66433         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66434         INCLUDE_NEXT.
66435         (gl_CHECK_NEXT_HEADERS): New macro.
66436         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66437         the obsolescent gl_ABSOLUTE_HEADER.
66438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66439         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66440         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66441         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66442         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66443         * m4/math_h.m4 (gl_MATH_H): Likewise.
66444         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66445         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66446         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66447         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66448         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66449         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66450         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66451         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66452         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66453         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66454         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66455         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66456         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66457         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66458         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66459         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66460         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66461         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66462         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66463         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66464         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66465         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66466         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66467         * lib/float_.h: Likewise.
66468         * lib/inttypes_.h: Likewise.
66469         * lib/math_.h: Likewise.
66470         * lib/search_.h: Likewise.
66471         * lib/signal_.h: Likewise.
66472         * lib/stdint_.h: Likewise.
66473         * lib/stdio_.h: Likewise.
66474         * lib/stdlib_.h: Likewise.
66475         * lib/string_.h: Likewise.
66476         * lib/sys_stat_.h: Likewise.
66477         * lib/sys_time_.h: Likewise.
66478         * lib/time_.h: Likewise.
66479         * lib/unistd_.h: Likewise.
66480         * lib/wchar_.h: Likewise.
66481         * lib/wctype_.h: Likewise.
66482         * lib/dirent_.h: Likewise.
66483         * lib/iconv_.h: Likewise.
66484         * lib/locale_.h: Likewise.
66485         * lib/netinet_in_.h: Likewise.
66486         * lib/sys_select_.h: Likewise.
66487         * lib/sys_socket_.h: Likewise.
66488         * lib/sysexits_.h: Likewise.
66489         * modules/fcntl (Depends-on): Depend on include_next, not
66490         absolute_header.
66491         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66492         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66493         * modules/fchdir: Likewise.
66494         * modules/float: Likewise.
66495         * modules/iconv_open: Likewise.
66496         * modules/inttypes: Likewise.
66497         * modules/locale: Likewise.
66498         * modules/math: Likewise.
66499         * modules/netinet_in: Likewise.
66500         * modules/search: Likewise.
66501         * modules/signal: Likewise.
66502         * modules/stdint: Likewise.
66503         * modules/stdio: Likewise.
66504         * modules/stdlib: Likewise.
66505         * modules/string: Likewise.
66506         * modules/sys_select: Likewise.
66507         * modules/sys_socket: Likewise.
66508         * modules/sys_stat: Likewise.
66509         * modules/sys_time: Likewise.
66510         * modules/sysexits: Likewise.
66511         * modules/time: Likewise.
66512         * modules/unistd: Likewise.
66513         * modules/wchar: Likewise.
66514         * modules/wctype: Likewise.
66515         * modules/sys_stat: Change maintainer to "all".
66516         * modules/unistd: Likewise.
66517
66518 2007-06-20  Karl Berry  <karl@gnu.org>
66519
66520         * config/srclist.txt: track www changes in license files.
66521
66522 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66523
66524         * build-aux/bootstrap: Remove stray dot.
66525         Make sure build_aux settings are honored when linking
66526         gnulib_extra_files.
66527
66528 2007-06-19  Eric Blake  <ebb9@byu.net>
66529
66530         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66531         Allow compilation on cygwin.
66532
66533 2007-06-19  Jim Meyering  <jim@meyering.net>
66534
66535         xreadlink-with-size: Remove module.  No longer used.
66536         Ex-callers now use xreadlink or mreadlink-with-size.
66537         * modules/xreadlink-with-size: Remove module.
66538         * lib/xreadlink-with-size.c: Remove file.
66539         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
66540         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
66541         just before the function definition *is* accurate.
66542
66543         Eliminate one way canonicalize_filename_mode could exit.
66544         * lib/canonicalize.c (canonicalize_filename_mode):
66545         Use mreadlink_with_size, not xreadlink_with_size.
66546
66547 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
66548
66549         Detect porting problems to FreeBSD/arm, which has time_t wider than
66550         long int.  Original problem reported for GNU diff by Xin Li in
66551         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
66552         * modules/getdate (Depends-on): Add intprops, verify.
66553         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
66554         is an integer type no wider than long int.
66555
66556 2007-06-18  Jim Meyering  <jim@meyering.net>
66557
66558         New module: mreadlink-with-size.
66559         * MODULES.html.sh: Add mreadlink-with-size.
66560         * modules/mreadlink-with-size: New module
66561         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
66562         not xreadlink-with-size.
66563         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
66564
66565 2007-06-16  Bruno Haible  <bruno@clisp.org>
66566
66567         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
66568         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
66569         Reported by Gary V. Vaughan <gary@gnu.org>.
66570
66571 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
66572
66573         Revamp lchown so that it lives in unistd.h where it belongs.
66574         * lib/lchown.h: Remove.
66575         * lib/dirchownmod.c: Don't include lib/lchown.h.
66576         * lib/fchownat.c: Likewise.
66577         * lib/openat.c: Likewise.
66578         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
66579         does not follow symlinks.
66580         (EOPNOTSUPP): Define if not defined.
66581         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
66582         is defined to 0.
66583         (lchown): New decl.
66584         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
66585         Do not check for lchown decl.
66586         Set REPLACE_LCHOWN.
66587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
66588         REPLACE_LCHOWN.
66589         * modules/chown: Make it clear it follows symlinks.
66590         * modules/lchown: Make it clear it doesn't follow symlinks.
66591         (Files): Remove lib/lchown.h
66592         (Depends-on): Add unistd.
66593         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
66594         (Include): Include <unistd.h>, not "lchown.h".
66595         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
66596         REPLACE_LCHOWN.
66597
66598 2007-06-15  Jim Meyering  <jim@meyering.net>
66599
66600         Change license (GPL to LGPL) of fsusage and dependents.
66601         * modules/fsusage (License): Change to LGPL.
66602         * modules/full-read (License): Likewise.
66603         * modules/full-write (License): Likewise.
66604         * modules/safe-read (License): Likewise.
66605         * modules/safe-write (License): Likewise.
66606
66607 2007-06-14  Ben Pfaff  <blp@gnu.org>
66608
66609         Missing part of allocsa -> malloca transition.
66610         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
66611         gl_MALLOCA.
66612
66613 2007-06-12  Bruno Haible  <bruno@clisp.org>
66614
66615         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
66616         to ia64, x86_64, i386.
66617         Reported by Eric Blake.
66618
66619 2007-06-12  Bruno Haible  <bruno@clisp.org>
66620
66621         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
66622         cross-compiling to x86_64.
66623
66624 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
66625
66626         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
66627         glitch reported by Ralf Wildenhues in
66628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
66629
66630         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
66631         Vin Shelton.
66632
66633 2007-06-11  Bruno Haible  <bruno@clisp.org>
66634
66635         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
66636         replacement string.
66637         Reported by Eric Blake.
66638
66639 2007-06-10  Bruno Haible  <bruno@clisp.org>
66640
66641         Prepare vasnprintf code for use with Unicode strings.
66642         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
66643         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
66644         TYPE_U32_STRING.
66645         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
66646         a_u32_string variants.
66647         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66648         * lib/printf-args.c: Don't include config.h and the specification
66649         header if PRINTF_FETCHARGS is already defined.
66650         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66651         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
66652         TYPE_U16_STRING, TYPE_U32_STRING.
66653         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
66654         u16_directive, u16_directives, u32_directive, u32_directives): New
66655         types.
66656         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
66657         New declarations.
66658         * lib/printf-parse.c: Don't include config.h and the specification
66659         header if PRINTF_PARSE is already defined. Eliminate the set of
66660         parameters for WIDE_CHAR_VERSION; the user of this file must provide
66661         them now. Include c-ctype.h.
66662         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
66663         directive and CHAR_T_ONLY_ASCII.
66664         * lib/vasnprintf.c: Don't include config.h and the specification header
66665         if VASNPRINTF is already defined.
66666         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
66667         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
66668         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
66669         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
66670         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
66671         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
66672         code accordingly.
66673         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
66674         pad_ourselves also in this case, with the 'c' and 's' directives, and
66675         with a different notion of "width".
66676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
66677
66678 2007-06-10  Bruno Haible  <bruno@clisp.org>
66679
66680         * modules/unistr/u32-mbsnlen: New file.
66681         * lib/unistr/u32-mbsnlen.c: New file.
66682
66683         * modules/unistr/u16-mbsnlen: New file.
66684         * lib/unistr/u16-mbsnlen.c: New file.
66685
66686         * modules/unistr/u8-mbsnlen: New file.
66687         * lib/unistr/u8-mbsnlen.c: New file.
66688
66689         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
66690         declarations.
66691
66692 2007-06-10  Bruno Haible  <bruno@clisp.org>
66693
66694         * lib/string_.h (mbsnlen): New declaration.
66695         * lib/mbsnlen.c: New file.
66696         * m4/mbsnlen.m4: New file.
66697         * modules/mbsnlen: New file.
66698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
66699         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
66700         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
66701
66702 2007-06-10  Bruno Haible  <bruno@clisp.org>
66703
66704         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
66705
66706 2007-06-10  Bruno Haible  <bruno@clisp.org>
66707
66708         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
66709         * lib/mbuiter.h: Likewise.
66710
66711 2007-06-10  Bruno Haible  <bruno@clisp.org>
66712
66713         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
66714         declaration.
66715
66716 2007-06-10  Karl Berry  <karl@gnu.org>
66717
66718         * config/srclist.txt: remove gettext entries, Bruno prefers
66719         to update individually.
66720
66721 2007-06-10  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
66724         'maxlen'. Ensure only length + width bytes are allocated, not
66725         length + 1 + width.
66726
66727 2007-06-09  Bruno Haible  <bruno@clisp.org>
66728
66729         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
66730         (CHAR_T): Remove macro.
66731         (VASNPRINTF): Update.
66732
66733 2007-06-09  Bruno Haible  <bruno@clisp.org>
66734
66735         * MODULES.html.sh (Unicode string functions): Add the new modules.
66736
66737         * modules/uniconv/u32-conv-to-enc: New file.
66738         * lib/uniconv/u32-conv-to-enc.c: New file.
66739         * modules/uniconv/u32-conv-to-enc-tests: New file.
66740         * tests/uniconv/test-u32-conv-to-enc.c: New file.
66741
66742         * modules/uniconv/u16-conv-to-enc: New file.
66743         * lib/uniconv/u16-conv-to-enc.c: New file.
66744         * lib/uniconv/u-conv-to-enc.h: New file.
66745         * modules/uniconv/u16-conv-to-enc-tests: New file.
66746         * tests/uniconv/test-u16-conv-to-enc.c: New file.
66747
66748         * modules/uniconv/u8-conv-to-enc: New file.
66749         * lib/uniconv/u8-conv-to-enc.c: New file.
66750         * modules/uniconv/u8-conv-to-enc-tests: New file.
66751         * tests/uniconv/test-u8-conv-to-enc.c: New file.
66752
66753         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66754         u32_conv_to_encoding): New declarations.
66755
66756 2007-06-09  Bruno Haible  <bruno@clisp.org>
66757
66758         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
66759
66760 2007-06-09  Bruno Haible  <bruno@clisp.org>
66761
66762         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
66763         * modules/malloca: Renamed from modules/allocsa, updated.
66764         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
66765         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
66766         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
66767         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
66768         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
66769         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
66770         * modules/xmalloca: Renamed from modules/xallocsa, updated.
66771         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
66772         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
66773         * modules/c-strcasestr (Depends-on): Update.
66774         * lib/c-strcasestr.c: Update.
66775         * modules/c-strstr (Depends-on): Update.
66776         * lib/c-strstr.c: Update.
66777         * modules/canonicalize-lgpl (Depends-on): Update.
66778         * lib/canonicalize-lgpl.c: Update.
66779         * modules/clean-temp (Depends-on): Update.
66780         * lib/clean-temp.c: Update.
66781         * modules/csharpcomp (Depends-on): Update.
66782         * lib/csharpcomp.c: Update.
66783         * modules/csharpexec (Depends-on): Update.
66784         * lib/csharpexec.c: Update.
66785         * modules/javacomp (Depends-on): Update.
66786         * lib/javacomp.c: Update.
66787         * modules/javaexec (Depends-on): Update.
66788         * lib/javaexec.c: Update.
66789         * modules/mbscasestr (Depends-on): Update.
66790         * lib/mbscasestr.c: Update.
66791         * modules/mbsstr (Depends-on): Update.
66792         * lib/mbsstr.c: Update.
66793         * modules/setenv (Depends-on): Update.
66794         * lib/setenv.c: Update.
66795         * modules/strcasestr (Depends-on): Update.
66796         * lib/strcasestr.c: Update.
66797         * modules/striconveha (Depends-on): Update.
66798         * lib/striconveha.c: Update.
66799         * modules/relocatable-prog-wrapper (Files): Update.
66800         * lib/relocwrapper.c: Update.
66801         * build-aux/install-reloc: Update.
66802         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
66803
66804 2007-06-08  Bruno Haible  <bruno@clisp.org>
66805
66806         Port to uClibc.
66807         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
66808         * lib/fpurge.c (fpurge): Likewise.
66809         * lib/freading.c (freading): Likewise.
66810         * lib/fseeko.c (rpl_fseeko): Likewise.
66811         * lib/fseterr.c (fseterr): Likewise.
66812         * lib/fwriting.c (fwriting): Likewise.
66813         * tests/test-fflush.c (main): Avoid a failure on uClibc.
66814
66815 2007-06-08  Bruno Haible  <bruno@clisp.org>
66816
66817         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
66818         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
66819         * modules/gettext (Files): Add m4/intlmacosx.m4.
66820
66821 2007-06-07  Bruno Haible  <bruno@clisp.org>
66822
66823         * modules/localename-tests: New file.
66824         * tests/test-localename.c: New file.
66825
66826         New module 'localename'.
66827         * lib/localename.h: New file.
66828         * lib/localename.c: New file, from GNU gettext.
66829         * m4/localename.m4: New file.
66830         * modules/localename: New file.
66831
66832 2007-06-07  Bruno Haible  <bruno@clisp.org>
66833
66834         Work around the lack of <wchar.h> on some builds of uClibc.
66835         * doc/headers/wchar.texi: Update.
66836         * lib/wchar_.h: Include <wchar.h> only if it exists.
66837         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
66838         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
66839         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
66840         doesn't exist.
66841         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
66842         * modules/mbfile (Depends-on): Add wchar.
66843         * modules/mbiter (Depends-on): Likewise.
66844         * modules/mbuiter (Depends-on): Likewise.
66845         Reported by Simon Josefsson.
66846
66847 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66848
66849         Work around problem reported by Steven M. Schweda in
66850         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
66851         Tru64 5.1B with the Compaq compiler environment installed declares
66852         an 'isblank' function but does not define it in the C library.
66853         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
66854         * lib/regex_internal.h (isblank): Likewise.
66855         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
66856         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66857
66858 2007-06-05  Bruno Haible  <bruno@clisp.org>
66859
66860         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
66861         ia64.
66862         * modules/printf-safe: New file.
66863         * modules/fprintf-posix (Depends-on): Add printf-safe.
66864         * modules/printf-posix (Depends-on): Likewise.
66865         * modules/snprintf-posix (Depends-on): Likewise.
66866         * modules/sprintf-posix (Depends-on): Likewise.
66867         * modules/vasnprintf-posix (Depends-on): Likewise.
66868         * modules/vasprintf-posix (Depends-on): Likewise.
66869         * modules/vfprintf-posix (Depends-on): Likewise.
66870         * modules/vprintf-posix (Depends-on): Likewise.
66871         * modules/vsnprintf-posix (Depends-on): Likewise.
66872         * modules/vsprintf-posix (Depends-on): Likewise.
66873         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
66874         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
66875         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
66876         "no" on i386, x86_64, ia64.
66877         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
66878         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66879         on i386, x86_64, ia64.
66880         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
66881         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66882         on i386, x86_64, ia64.
66883         * tests/test-vasnprintf-posix.c: Include float.h.
66884         (LDBL80_WORDS): New macro.
66885         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66886         on i386, x86_64, ia64.
66887         * tests/test-vasprintf-posix.c: Include float.h.
66888         (LDBL80_WORDS): New macro.
66889         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66890         on i386, x86_64, ia64.
66891         * tests/test-snprintf-posix.c: Include float.h.
66892         * tests/test-sprintf-posix.c: Likewise.
66893         * tests/test-vsnprintf-posix.c: Likewise.
66894         * tests/test-vsprintf-posix.c: Likewise.
66895
66896 2007-06-05  Bruno Haible  <bruno@clisp.org>
66897
66898         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
66899         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
66900         non-IEEE numbers on i386, x86_64, ia64.
66901         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
66902         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
66903         * tests/test-isnanl.h: Include float.h.
66904         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
66905
66906 2007-06-05  Bruno Haible  <bruno@clisp.org>
66907
66908         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
66909         also the %a / %A. Handle the %a / %A code before this extra handling.
66910
66911 2007-06-05  Bruno Haible  <bruno@clisp.org>
66912
66913         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
66914         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
66915
66916 2007-06-05  Bruno Haible  <bruno@clisp.org>
66917
66918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
66919         typo in variable name.
66920
66921 2007-06-05  Eric Blake  <ebb9@byu.net>
66922
66923         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
66924         Reported by Simon Josefsson.
66925
66926 2007-06-04  Bruno Haible  <bruno@clisp.org>
66927
66928         Avoid test failures on some PowerPC platforms.
66929         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
66930         Define differently for PowerPC.
66931         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
66932         Reported by Gary V. Vaughan <gary@gnu.org>.
66933
66934 2007-06-02  Bruno Haible  <bruno@clisp.org>
66935
66936         Fix test-stdint failure on FreeBSD/ia64.
66937         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
66938         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
66939         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
66940         * doc/headers/stdint.texi: Update.
66941
66942 2007-06-01  Bruno Haible  <bruno@clisp.org>
66943
66944         * tests/test-binary-io.c (main): Pass a third argument to open().
66945         Reported by Gary V. Vaughan <gary@gnu.org>.
66946
66947 2007-06-01  Bruno Haible  <bruno@clisp.org>
66948
66949         * doc/functions/frexpl.texi: Update for mingw.
66950
66951 2007-06-01  Bruno Haible  <bruno@clisp.org>
66952
66953         * tests/test-lseek.c (main): Disable test of errno for invalid third
66954         argument.
66955         * doc/functions/lseek.texi: Update.
66956         Reported by Gary V. Vaughan <gary@gnu.org>.
66957
66958 2007-05-28  Bruno Haible  <bruno@clisp.org>
66959
66960         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
66961
66962 2007-05-31  Eric Blake  <ebb9@byu.net>
66963
66964         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
66965         cross compiling.
66966
66967 2007-05-30  Eric Blake  <ebb9@byu.net>
66968         and Bruno Haible  <bruno@clisp.org>
66969
66970         Work around mingw test failures exposed by m4-1.4.9b.
66971         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
66972         * tests/test-unistd.c: Disable uid_t and git_t tests for the
66973         moment.
66974
66975 2007-05-30  Bruno Haible  <bruno@clisp.org>
66976
66977         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
66978         assuming that they are closed. Needed on HP-UX 11.
66979
66980 2007-05-29  Bruno Haible  <bruno@clisp.org>
66981
66982         Fix a problem with #include_next.
66983         * lib/dirent_.h: Split the double-inclusion guard.
66984         * lib/fcntl_.h: Likewise.
66985         * lib/float_.h: Likewise.
66986         * lib/iconv_.h: Likewise.
66987         * lib/inttypes_.h: Likewise.
66988         * lib/locale_.h: Likewise.
66989         * lib/math_.h: Likewise.
66990         * lib/netinet_in_.h: Likewise.
66991         * lib/search_.h: Likewise.
66992         * lib/signal_.h: Likewise.
66993         * lib/stdint_.h: Likewise.
66994         * lib/stdio_.h: Likewise.
66995         * lib/stdlib_.h: Likewise.
66996         * lib/string_.h: Likewise.
66997         * lib/sys_select_.h: Likewise.
66998         * lib/sys_socket_.h: Likewise.
66999         * lib/sys_stat_.h: Likewise.
67000         * lib/sys_time_.h: Likewise.
67001         * lib/sysexits_.h: Likewise.
67002         * lib/time_.h: Likewise.
67003         * lib/unistd_.h: Likewise.
67004         * lib/wchar_.h: Likewise.
67005         * lib/wctype_.h: Likewise.
67006
67007 2007-05-29  Bruno Haible  <bruno@clisp.org>
67008
67009         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67010         for the moment.
67011
67012 2007-05-29  Bruno Haible  <bruno@clisp.org>
67013
67014         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67015         invocation.
67016         Reported by Eric Blake.
67017
67018 2007-05-29  Bruno Haible  <bruno@clisp.org>
67019
67020         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67021         compiling case.
67022
67023 2007-05-29  Eric Blake  <ebb9@byu.net>
67024             Bruno Haible  <bruno@clisp.org>
67025
67026         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67027         cross compiles.
67028
67029 2007-05-28  Eric Blake  <ebb9@byu.net>
67030
67031         * modules/closein-tests (test_closein_LDADD): Support test on
67032         cygwin with libtool.
67033
67034 2007-05-28  Bruno Haible  <bruno@clisp.org>
67035
67036         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67037         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67038         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67039         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67040         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67041         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67042         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67043         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67044         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67045
67046 2007-05-28  Eric Blake  <ebb9@byu.net>
67047
67048         Unconditionally include <config.h> in unit tests.
67049         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67050         * tests/test-allocsa.c, tests/test-arcfour.c,
67051         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67052         tests/test-array_list.c, tests/test-array_oset.c,
67053         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67054         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67055         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67056         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67057         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67058         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67059         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67060         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67061         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67062         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67063         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67064         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67065         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67066         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67067         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67068         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67069         test-md5.c, test-memmem.c, test-printf-posix.c,
67070         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67071         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67072         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67073         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67074         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67075         test-vasnprintf-posix2.c, test-vasnprintf.c,
67076         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67077         test-vfprintf-posix.c, test-vprintf-posix.c,
67078         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67079         test-xvasprintf.c: Likewise.
67080
67081 2007-05-28  Bruno Haible  <bruno@clisp.org>
67082
67083         * gnulib-tool (func_import): Remember the --with-tests command-line
67084         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67085         Reported by Eric Blake.
67086
67087 2007-05-28  Bruno Haible  <bruno@clisp.org>
67088
67089         * modules/ftell-tests: New file.
67090         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67091         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67092
67093         * lib/ftell.c: New file.
67094         * modules/ftell: New file.
67095         * m4/ftell.m4: New file.
67096         * doc/functions/ftell.texi: Update.
67097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67098         REPLACE_FTELL.
67099         * lib/stdio_.h (rpl_ftell): New declaration.
67100         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67101         REPLACE_FTELL.
67102
67103 2007-05-28  Eric Blake  <ebb9@byu.net>
67104
67105         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67106
67107 2007-05-28  Bruno Haible  <bruno@clisp.org>
67108
67109         * modules/fseek-tests: New file.
67110         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67111         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67112
67113         * lib/fseek.c: New file.
67114         * modules/fseek: New file.
67115         * m4/fseek.m4: New file.
67116         * doc/functions/fseek.texi: Update.
67117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67118         REPLACE_FSEEK.
67119         * lib/stdio_.h (rpl_fseek): New declaration.
67120         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67121         REPLACE_FSEEK.
67122
67123 2007-05-28  Bruno Haible  <bruno@clisp.org>
67124
67125         * lib/stdio_.h (fflush): More comments.
67126
67127 2007-05-28  Bruno Haible  <bruno@clisp.org>
67128
67129         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67130         runtime test.
67131
67132 2007-05-28  Eric Blake  <ebb9@byu.net>
67133
67134         Improve lseek module.
67135         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67136         * lib/unistd_.h (lseek): Scale back link warning message.
67137         * tests/test-lseek.c: Beef up test.
67138         * tests/test-lseek.sh: Exercise more facets of lseek.
67139         Reported by Bruno Haible.
67140
67141 2007-05-28  Bruno Haible  <bruno@clisp.org>
67142
67143         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67144         to define.
67145
67146 2007-05-27  Bruno Haible  <bruno@clisp.org>
67147
67148         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67149
67150 2007-05-27  Bruno Haible  <bruno@clisp.org>
67151
67152         * modules/openmp: New file.
67153         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67154         Noah Misch.
67155
67156 2007-05-26  Bruno Haible  <bruno@clisp.org>
67157
67158         * modules/chdir-long (Depends-on): Add fchdir.
67159         * modules/chdir-safer (Depends-on): Likewise.
67160         * modules/fts (Depends-on): Likewise.
67161         * modules/fts-lgpl (Depends-on): Likewise.
67162         * modules/openat (Depends-on): Likewise.
67163         * modules/savewd (Depends-on): Likewise.
67164
67165 2007-05-24  Eric Blake  <ebb9@byu.net>
67166
67167         Fix lseek on mingw.
67168         * modules/lseek: New module.
67169         * m4/lseek.m4: New file.
67170         * lib/lseek.c: New file.
67171         * modules/lseek-tests: New file.
67172         * tests/test-lseek.c: New file.
67173         * tests/test-lseek.sh: New file.
67174         * MODULES.html.sh: Document lseek module.
67175         * modules/fflush (Depends-on): Add lseek, fseeko.
67176         * modules/fseeko (Depends-on): Likewise.
67177         * modules/ftello (Depends-on): Likewise.
67178         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67179         broken.
67180         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67181         broken.
67182         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67183         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67184         * lib/ftello.c (rpl_ftello): Likewise.
67185         * tests/test-fseeko.c (main): Test this.
67186         * tests/test-fseeko.sh: Likewise.
67187         * tests/test-ftello.c (main): Likewise.
67188         * tests/test-ftello.sh: Likewise.
67189         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67190         implies replacing fseek.
67191         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67192         HAVE_FTELLO.
67193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67194         * modules/unistd (Makefile.am): Likewise.
67195         * lib/unistd_.h (lseek): Declare a replacement.
67196         * doc/functions/lseek.texi (lseek): Document this fix.
67197         * doc/functions/fseek.texi (fseek): Likewise.
67198         * doc/functions/ftell.texi (ftell): Likewise.
67199
67200 2007-05-24  Bruno Haible  <bruno@clisp.org>
67201
67202         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67203         in the printed representation of a NaN.
67204         * tests/test-vasprintf-posix.c (test_function): Likewise.
67205         * tests/test-snprintf-posix.h (test_function): Likewise.
67206         * tests/test-sprintf-posix.h (test_function): Likewise.
67207         Reported by Eric Blake.
67208
67209 2007-05-23  Eric Blake  <ebb9@byu.net>
67210
67211         Fix fseeko/ftello on cygwin 1.5.24.
67212         * doc/functions/fseeko.texi (fseeko): Document the fix.
67213         * doc/functions/ftello.texi (ftello): Document the fix.
67214         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67215         * doc/functions/stdout.text (stdout): New file.
67216         * doc/functions/stderr.text (stderr): New file.
67217         * doc/gnulib.texi (Function Substitutes): Use new files.
67218         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67219         prior to 1.7.0.
67220         * tests/test-ftello.c (main): Likewise for ftello.
67221         * tests/test-fseeko.sh: New file.
67222         * tests/test-ftello.sh: New file.
67223         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67224         with seekable stdin.
67225         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67226         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67227         (gl_REPLACE_FSEEKO): New macro.
67228         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67229         * modules/fseeko (Files): Distribute fseeko.c.
67230         * modules/ftello (Files): Distribute ftello.c.
67231         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67232         mode.
67233         * lib/ftello.c (rpl_ftello): New file.
67234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67235         fseeko, ftello.
67236         (gl_STDIN_LARGE_OFFSET): New macro.
67237         * modules/stdio (Makefile.am): Perform the replacement.
67238         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67239
67240 2007-05-23  Bruno Haible  <bruno@clisp.org>
67241
67242         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67243         GNULIB_POSIXCHECK is defined.
67244
67245 2007-05-21  Bruno Haible  <bruno@clisp.org>
67246
67247         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67248         Check also the output for NaN arguments. When cross-compiling, guess
67249         no on IRIX.
67250         * lib/vasnprintf.c: Update comments.
67251         * tests/test-vasnprintf-posix.c (strisnan): New function.
67252         (test_function): Use it.
67253         * tests/test-vasprintf-posix.c (strisnan): New function.
67254         (test_function): Use it.
67255         * tests/test-snprintf-posix.h (strisnan): New function.
67256         (test_function): Use it.
67257         * tests/test-sprintf-posix.h (strisnan): New function.
67258         (test_function): Use it.
67259         Reported by Eric Blake.
67260
67261 2007-05-20  Bruno Haible  <bruno@clisp.org>
67262
67263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67264         numbers that fails on BeOS.
67265         * doc/functions/frexpl.texi: Update.
67266
67267 2007-05-20  Jim Meyering  <jim@meyering.net>
67268
67269         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67270         forced upon us by glibc-2.6.
67271
67272 2007-05-20  Bruno Haible  <bruno@clisp.org>
67273
67274         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67275         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67276         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67277         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67278         NEED_PRINTF_INFINITE.
67279         (is_infinitel): New function.
67280         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67282         gl_PREREQ_VASNPRINTF_INFINITE.
67283         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67284         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67285         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67286         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67287         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67288         gl_PREREQ_VASNPRINTF_INFINITE.
67289         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67290         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67291         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67292         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67293         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67294         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67295         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67296         * doc/functions/fprintf.texi: Update.
67297         * doc/functions/printf.texi: Update.
67298         * doc/functions/snprintf.texi: Update.
67299         * doc/functions/sprintf.texi: Update.
67300         * doc/functions/vfprintf.texi: Update.
67301         * doc/functions/vprintf.texi: Update.
67302         * doc/functions/vsnprintf.texi: Update.
67303         * doc/functions/vsprintf.texi: Update.
67304
67305 2007-05-20  Bruno Haible  <bruno@clisp.org>
67306
67307         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67308         was not found in libc.
67309         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67310
67311 2007-05-20  Bruno Haible  <bruno@clisp.org>
67312
67313         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67314         printed as "-nan" instead of "nan".
67315         * tests/test-vasprintf-posix.c (test_function): Likewise.
67316         * tests/test-snprintf-posix.h (test_function): Likewise.
67317         * tests/test-sprintf-posix.h (test_function): Likewise.
67318         Needed for HP-UX 11.
67319
67320 2007-05-20  Jim Meyering  <jim@meyering.net>
67321
67322         Fix buggy test for the fchownat-deref bug.
67323         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67324         symlink required for the run-test.  Without it, this test would
67325         always declare that fchownat doesn't work, and client code would
67326         unnecessarily use the replacement function with fixed libc.
67327         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67328         Reported by Greg Schafer.
67329
67330 2007-05-19  Bruno Haible  <bruno@clisp.org>
67331
67332         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67333         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67334         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67335         Needed for IRIX 6.5 and Solaris 2.5.1.
67336
67337 2007-05-19  Bruno Haible  <bruno@clisp.org>
67338
67339         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67340         (test_function): Skip tests involving -0.0 on platforms where
67341         -0.0 = 0.0.
67342         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67343         (test_function): Skip tests involving -0.0 on platforms where
67344         -0.0 = 0.0.
67345         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67346         (test_function): Skip tests involving -0.0 on platforms where
67347         -0.0 = 0.0.
67348         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67349         (test_function): Skip tests involving -0.0 on platforms where
67350         -0.0 = 0.0.
67351         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67352         tests.
67353         * tests/test-printf-posix.h (test_function): Likewise.
67354         * tests/test-printf-posix.output: Remove all -0.0 related results.
67355         Needed for IRIX 6.5.
67356
67357 2007-05-19  Bruno Haible  <bruno@clisp.org>
67358
67359         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67360         printed as "nan0x7fffffff" instead of "nan".
67361         * tests/test-vasprintf-posix.c (test_function): Likewise.
67362         * tests/test-snprintf-posix.h (test_function): Likewise.
67363         * tests/test-sprintf-posix.h (test_function): Likewise.
67364         * tests/test-fprintf-posix.h (NaN): Remove macro.
67365         (test_function): Remove all NaN related tests.
67366         * tests/test-printf-posix.h (NaN): Remove macro.
67367         (test_function): Remove all NaN related tests.
67368         * tests/test-printf-posix.output: Remove all NaN related results.
67369         Needed for IRIX 6.5.
67370
67371 2007-05-19  Bruno Haible  <bruno@clisp.org>
67372
67373         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67375
67376 2007-05-19  Bruno Haible  <bruno@clisp.org>
67377
67378         * lib/float_.h: New file.
67379         * m4/float_h.m4: New file.
67380         * modules/float: New file.
67381         * modules/isnanl (Dependencies): Add float.
67382         * modules/isnanl-nolibm (Dependencies): Likewise.
67383         * modules/mathl (Dependencies): Likewise.
67384         * modules/printf-frexpl (Dependencies): Likewise.
67385         * modules/signbit (Dependencies): Likewise.
67386         * modules/vasnprintf (Dependencies): Likewise.
67387         * doc/headers/float.texi: Update.
67388
67389 2007-05-19  Jim Meyering  <jim@meyering.net>
67390
67391         * lib/utimens.c (gl_futimens): Rename from futimens,
67392         now that glibc-2.6 declares futimens.
67393         * lib/utimens.h: Likewise.
67394
67395 2007-05-19  Bruno Haible  <bruno@clisp.org>
67396
67397         Avoid test failures on mingw.
67398         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67399         * tests/test-printf-posix.sh: Likewise.
67400         * tests/test-vfprintf-posix.sh: Likewise.
67401         * tests/test-vprintf-posix.sh: Likewise.
67402
67403 2007-05-19  Bruno Haible  <bruno@clisp.org>
67404
67405         Fix *printf result for NaN, Inf, -0.0 on mingw.
67406         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67407         * lib/vasnprintf.c: Include math.h and isnan.h.
67408         (is_infinite_or_zero): New function.
67409         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67410         values in the %f, %F, %e, %E, %g, %G directives.
67411         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67412         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67413         gl_PRINTF_INFINITE and test its result. Invoke
67414         gl_PREREQ_VASNPRINTF_INFINITE.
67415         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67416         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67417         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67418         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67419         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67420         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67421         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67422         * doc/functions/fprintf.texi: Update.
67423         * doc/functions/printf.texi: Update.
67424         * doc/functions/snprintf.texi: Update.
67425         * doc/functions/sprintf.texi: Update.
67426         * doc/functions/vfprintf.texi: Update.
67427         * doc/functions/vprintf.texi: Update.
67428         * doc/functions/vsnprintf.texi: Update.
67429         * doc/functions/vsprintf.texi: Update.
67430
67431 2007-05-19  Bruno Haible  <bruno@clisp.org>
67432
67433         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67434         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67435         Instead of multiplying with 10^k, set extra_zeroes to k.
67436         (scale10_round_long_double): Remove function.
67437
67438 2007-05-18  Bruno Haible  <bruno@clisp.org>
67439
67440         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67441         introduced on 2007-05-06.
67442
67443 2007-05-18  Bruno Haible  <bruno@clisp.org>
67444
67445         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67446         %g directives.
67447         * tests/test-vasprintf-posix.c (test_function): Likewise.
67448         * tests/test-snprintf-posix.h (test_function): Likewise.
67449         * tests/test-sprintf-posix.h (test_function): Likewise.
67450
67451 2007-05-18  Bruno Haible  <bruno@clisp.org>
67452
67453         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67454         (strmatch): New function.
67455         (test_function): Test the %f directive on numbers of various exponents.
67456         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67457         (strmatch): New function.
67458         (test_function): Test the %f directive on numbers of various exponents.
67459         * tests/test-snprintf-posix.h (strmatch): New function.
67460         (test_function): Test the %f directive on numbers of various exponents.
67461         * tests/test-sprintf-posix.h (strmatch): New function.
67462         (test_function): Test the %f directive on numbers of various exponents.
67463         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67464         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67465         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67466         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67467
67468 2007-05-18  Bruno Haible  <bruno@clisp.org>
67469
67470         Add support for 'long double' number output.
67471         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67472         * lib/vasnprintf.c: Include math.h and float+.h.
67473         (mp_limb_t): New type.
67474         (GMP_LIMB_BITS): New macro.
67475         (mp_twolimb_t): New type.
67476         (GMP_TWOLIMB_BITS): New macro.
67477         (mpn_t): New type.
67478         (multiply, divide, convert_to_decimal, decode_long_double,
67479         scale10_round_long_double, scale10_round_decimal_long_double,
67480         floorlog10l): New functions.
67481         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67482         for the %f, %F, %e, %E, %g, %G directives.
67483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67484         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67485         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67486         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67488         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67489         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67490         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67491         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67493         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67494         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67495         * modules/snprintf-posix (Depends-on): Likewise.
67496         * modules/sprintf-posix (Depends-on): Likewise.
67497         * modules/vasnprintf-posix (Depends-on): Likewise.
67498         * modules/vasprintf-posix (Depends-on): Likewise.
67499         * modules/vfprintf-posix (Depends-on): Likewise.
67500         * modules/vsnprintf-posix (Depends-on): Likewise.
67501         * modules/vsprintf-posix (Depends-on): Likewise.
67502         * modules/vasnprintf (Files): Add lib/float+.h.
67503         * doc/functions/fprintf.texi: Update.
67504         * doc/functions/printf.texi: Update.
67505         * doc/functions/snprintf.texi: Update.
67506         * doc/functions/sprintf.texi: Update.
67507         * doc/functions/vfprintf.texi: Update.
67508         * doc/functions/vprintf.texi: Update.
67509         * doc/functions/vsnprintf.texi: Update.
67510         * doc/functions/vsprintf.texi: Update.
67511
67512 2007-05-18  Bruno Haible  <bruno@clisp.org>
67513
67514         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67515
67516 2007-05-18  Bruno Haible  <bruno@clisp.org>
67517
67518         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67519         for printing 64-bit integers. Needed for mingw.
67520
67521 2007-05-18  Bruno Haible  <bruno@clisp.org>
67522
67523         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67524         gl_FUNC_FREXPL_WORKS.
67525         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
67526
67527 2007-05-18  Bruno Haible  <bruno@clisp.org>
67528
67529         * modules/frexpl-nolibm-tests: New file.
67530
67531         * modules/frexpl-nolibm: New file.
67532         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
67533
67534 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67535
67536         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
67537         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67538         GCC 4.2, which otherwise issues a lot of warnings.
67539         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
67540         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
67541         Likewise.
67542         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
67543         * modules/iconv_open (iconv.h): Likewise.
67544         * modules/locale (locale.h): Likewise.
67545         * modules/netinet_in (netinet/in.h): Likewise.
67546         * modules/sys_select (sys_select.h): Likewise.
67547         * modules/sys_socket (sys/socket.h): Likewise.
67548         * modules/sys_stat (sys/stat.h): Likewise.
67549         * modules/sysexits (sysexits.h): Likewise.
67550         * modules/unistd (unistd.h): Likewise.
67551
67552 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67553
67554         * modules/closein-tests (Makefile.am): Distribute
67555         `test-closein.sh'.
67556
67557 2007-05-17  Bruno Haible  <bruno@clisp.org>
67558
67559         * tests/test-printf-posix.output: Renamed from
67560         tests/test-fprintf-posix.out.
67561         * modules/fprintf-posix-tests: Update.
67562         * modules/printf-posix-tests: Update.
67563         * modules/vfprintf-posix-tests: Update.
67564         * modules/vprintf-posix-tests: Update.
67565         * tests/test-fprintf-posix.sh: Update.
67566         * tests/test-printf-posix.sh: Update.
67567         * tests/test-vfprintf-posix.sh: Update.
67568         * tests/test-vprintf-posix.sh: Update.
67569         Reported by Ralf Wildenhues.
67570
67571 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67572
67573         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
67574         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67575         GCC 4.2, which otherwise issues a lot of warnings.
67576         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
67577         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
67578         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
67579         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
67580         it should no longer be needed.
67581         * lib/string_.h: Likewise.
67582         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
67583         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
67584         * modules/inttypes (inttypes.h): Likewise.
67585         * modules/math (math.h): Likewise.
67586         * modules/search (search.h): Likewise.
67587         * modules/signal (signal.h): Likewise.
67588         * modules/stdint (stdint.h): Likewise.
67589         * modules/stdio (stdio.h): Likewise.
67590         * modules/stdlib (stdlib.h): Likewise.
67591         * modules/string (string.h): Likewise.
67592         * modules/sys_time (sys/time.h): Likewise.
67593         * modules/time (time.h): Likewise.
67594         * modules/wchar (wchar.h): Likewise.
67595         * modules/wctype (wtype.h): Likewise.
67596
67597 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67598
67599         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
67600
67601 2007-05-13  Bruno Haible  <bruno@clisp.org>
67602
67603         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
67604         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67605         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
67606         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67607         (gl_PREREQ_STRTOK_R): Don't require it here.
67608
67609 2007-05-13  Bruno Haible  <bruno@clisp.org>
67610
67611         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
67612         when used in C++ mode.
67613
67614 2007-05-12  Bruno Haible  <bruno@clisp.org>
67615
67616         * lib/linebuffer.h: Tweak doc.
67617         * lib/linebuffer.c: Likewise.
67618
67619 2007-05-12  James Youngman  <jay@gnu.org>
67620
67621         * lib/linebuffer.c (readlinebuffer_delim): New function,
67622         like readlinebuffer, but use a caller-specified delimiter.
67623         (readlinebuffer): Just call readlinebuffer_delim with '\n'
67624         as the delimiter.
67625         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
67626
67627 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67628
67629         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
67630         * modules/openat (Files): Remove openat-die.c.
67631         (Depends-on): Add openat-die.
67632         * modules/openat-die: New module.
67633
67634 2007-05-06  Bruno Haible  <bruno@clisp.org>
67635
67636         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
67637         Update with info about Cygwin.
67638         * doc/functions/fprintf.texi: Update.
67639         * doc/functions/printf.texi: Update.
67640         * doc/functions/snprintf.texi: Update.
67641         * doc/functions/sprintf.texi: Update.
67642         * doc/functions/vfprintf.texi: Update.
67643         * doc/functions/vprintf.texi: Update.
67644         * doc/functions/vsnprintf.texi: Update.
67645         * doc/functions/vsprintf.texi: Update.
67646         Reported by Eric Blake.
67647
67648 2007-05-06  Bruno Haible  <bruno@clisp.org>
67649
67650         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
67651         padding ourselves for the floating-point directives.
67652         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
67653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
67654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67655         gl_PRINTF_FLAG_ZERO and test its result. Invoke
67656         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
67657         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67658         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67659         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67660         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67661         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67662         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67663         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67664         * tests/test-snprintf-posix.h (test_function): Also check the width
67665         and some flags in the %f directive.
67666         * tests/test-sprintf-posix.h (test_function): Likewise.
67667         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67668         * tests/test-vasprintf-posix.c (test_function): Likewise.
67669         * doc/functions/fprintf.texi: Update.
67670         * doc/functions/printf.texi: Update.
67671         * doc/functions/snprintf.texi: Update.
67672         * doc/functions/sprintf.texi: Update.
67673         * doc/functions/vfprintf.texi: Update.
67674         * doc/functions/vprintf.texi: Update.
67675         * doc/functions/vsnprintf.texi: Update.
67676         * doc/functions/vsprintf.texi: Update.
67677
67678 2007-05-06  Bruno Haible  <bruno@clisp.org>
67679
67680         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
67681         pass the ' flag character to sprintf or snprintf.
67682         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
67683         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
67684         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67685         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
67686         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
67687         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67688         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67689         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67690         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67691         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67692         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67693         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67694         * tests/test-snprintf-posix.h (test_function): Also check the grouping
67695         flag.
67696         * tests/test-sprintf-posix.h (test_function): Likewise.
67697         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67698         * tests/test-vasprintf-posix.c (test_function): Likewise.
67699         * doc/functions/fprintf.texi: Update.
67700         * doc/functions/printf.texi: Update.
67701         * doc/functions/snprintf.texi: Update.
67702         * doc/functions/sprintf.texi: Update.
67703         * doc/functions/vfprintf.texi: Update.
67704         * doc/functions/vprintf.texi: Update.
67705         * doc/functions/vsnprintf.texi: Update.
67706         * doc/functions/vsprintf.texi: Update.
67707
67708 2007-05-01  Bruno Haible  <bruno@clisp.org>
67709
67710         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
67711
67712 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
67713
67714         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
67715         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
67716
67717 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
67720         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
67721         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
67722
67723 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
67724
67725         * lib/argp-help.c (struct hol_entry): New member `ord'.
67726         (HOL_ENTRY_PTRCMP): Use ord for comparison
67727         (hol_sort): Initialize ord.
67728
67729 2007-05-01  Bruno Haible  <bruno@clisp.org>
67730
67731         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
67732         Reported by Eric Blake.
67733         * doc/gnulib.texi (Function Substitutes): Update.
67734
67735 2007-05-01  Bruno Haible  <bruno@clisp.org>
67736
67737         * doc/functions.texi: Remove file, now redundant through
67738         doc/functions/*.texi.
67739
67740 2007-05-01  Bruno Haible  <bruno@clisp.org>
67741
67742         * modules/argp (Depends-on): Add sleep.
67743
67744 2007-05-01  Bruno Haible  <bruno@clisp.org>
67745
67746         * modules/sleep-tests: New file.
67747         * tests/test-sleep.c: New file.
67748
67749         * modules/sleep: New file.
67750         * lib/sleep.c: New file.
67751         * m4/sleep.m4: New file.
67752         * lib/unistd_.h (sleep): New declaration.
67753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
67754         HAVE_SLEEP.
67755         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
67756         * doc/functions/sleep.texi: Document the sleep module.
67757
67758 2007-05-01  Bruno Haible  <bruno@clisp.org>
67759
67760         * lib/sigprocmask.h: Remove file.
67761         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
67762         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
67763         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
67764         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
67765         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
67766         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
67767         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
67768         HAVE_SIGSET_T as a shell variable.
67769         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
67770         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
67771         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
67772         (Depends-on): Add signal. Remove verify.
67773         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
67774         (Include): Mention <signal.h> instead of sigprocmask.h.
67775         * NEWS: Mention the change.
67776         * lib/fatal-signal.c: Don't include sigprocmask.h.
67777
67778 2007-05-01  Bruno Haible  <bruno@clisp.org>
67779
67780         * modules/signal: New file.
67781         * lib/signal_.h: New file.
67782         * m4/signal_h.m4: New file.
67783
67784 2007-05-01  Bruno Haible  <bruno@clisp.org>
67785
67786         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
67787         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
67788         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
67789         HAVE_WCTYPE_CTMP_BUG into wctype.h.
67790
67791 2007-05-01  Bruno Haible  <bruno@clisp.org>
67792
67793         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
67794         configure time.
67795         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
67796         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
67797         * modules/sys_stat (Makefile.am): Substitute their values into
67798         sys/stat.h.
67799
67800 2007-05-01  Bruno Haible  <bruno@clisp.org>
67801
67802         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
67803         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
67804         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
67805
67806 2007-05-01  Bruno Haible  <bruno@clisp.org>
67807
67808         * doc/header/assert.texi: Undo last change: don't mention the gnulib
67809         'assert' module here.
67810
67811 2007-05-01  Bruno Haible  <bruno@clisp.org>
67812
67813         * doc/functions/*.texi: New files.
67814         * doc/functions/google-ranking.txt: New file.
67815         * doc/gnulib.texi (Function Substitutes): New chapter.
67816         (ctime, inet_ntoa): Remove sections.
67817         * doc/ctime.texi: Remove file.
67818         * doc/inet_ntoa.texi: Remove file.
67819         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
67820         dependencies.
67821         (%.info): New rule, specifying a --reference-limit.
67822
67823 2007-05-01  Bruno Haible  <bruno@clisp.org>
67824
67825         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
67826
67827 2007-05-01  Bruno Haible  <bruno@clisp.org>
67828
67829         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
67830         the portability of 'mkdir' to mingw systems.
67831
67832 2007-05-01  Bruno Haible  <bruno@clisp.org>
67833
67834         * doc/headers/google-ranking.txt: New file.
67835
67836 2007-04-30  Eric Blake  <ebb9@byu.net>
67837
67838         Prefer fseeko to fseek.
67839         * modules/getpass (Depends-on): Add fseeko.
67840         * lib/getpass.c (getpass): Use fseeko, not fseek.
67841
67842 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
67843
67844         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
67845         assumes the sorting is stable, while most qsort implementations
67846         are not.  Use argument addresses to ensure they never compare as
67847         equal.
67848
67849         * tests/test-argp-2.sh (usage-indent test): Fix output
67850         (func_compare): Restore diff options
67851         * tests/test-argp.c: Restore #include "progname.h"
67852
67853 2007-04-29  Bruno Haible  <bruno@clisp.org>
67854
67855         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
67856         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67857         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
67858         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67859         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
67860         (configure.ac): Define CHECK_SNPRINTF_POSIX.
67861         (TESTS, check_PROGRAMS): Add test-snprintf.
67862         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
67863         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
67864         (TESTS, check_PROGRAMS): Add test-vsnprintf.
67865         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
67866         assertions that fail on HP-UX, OSF/1, or IRIX.
67867         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
67868
67869 2007-04-29  Bruno Haible  <bruno@clisp.org>
67870
67871         * MODULES.html.sh (posix_functions): Remove 'contents'.
67872
67873 2007-04-29  Karl Berry  <karl@gnu.org>
67874
67875         * config/srclist.txt (gendocs_template_min): new entry.
67876
67877 2007-04-29  Bruno Haible  <bruno@clisp.org>
67878
67879         Work around fpurge bug on BSD systems.
67880         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
67881         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
67882         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
67883         fpurge to rpl_fpurge if the system already has this function.
67884         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
67885         the case where the system already has this function. Correct invariants
67886         on BSD systems.
67887         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
67888         BSD systems.
67889
67890 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
67891
67892         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
67893         proposed by Sven Verdoolaege.
67894
67895         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
67896         options.
67897         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
67898         (usage and help tests): Update
67899
67900 2007-04-29  Bruno Haible  <bruno@clisp.org>
67901
67902         * tests/test-fflush.c (main): Use a file of size 17, not 10.
67903         Print more information in case of failure. Disable a test on BeOS.
67904
67905 2007-04-29  Bruno Haible  <bruno@clisp.org>
67906
67907         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
67908         This helps debugging on systems on which no gdb is available.
67909
67910 2007-04-29  Bruno Haible  <bruno@clisp.org>
67911
67912         * lib/freading.h: Improve comments.
67913         * lib/fwriting.h: Likewise.
67914         * tests/test-freading.c (main): Don't check freading immediately after
67915         repositioning. Needed for glibc.
67916
67917 2007-04-29  Bruno Haible  <bruno@clisp.org>
67918
67919         * lib/freading.c (freading): Trivial simplification.
67920
67921 2007-04-28  Bruno Haible  <bruno@clisp.org>
67922
67923         * tests/test-fwriting.c (main): Also test the interaction between
67924         fflush and fwriting.
67925         * modules/fwriting-tests (Depends-on): Add fflush.
67926
67927         * tests/test-freading.c (main): Also test the interaction between
67928         fflush and freading.
67929         * modules/freading-tests (Depends-on): Add fflush.
67930
67931 2007-04-28  Bruno Haible  <bruno@clisp.org>
67932
67933         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
67934         fseeko and ftello.
67935         Suggested by Eric Blake.
67936
67937 2007-04-28  Jim Meyering  <jim@meyering.net>
67938
67939         Avoid false-negative in gl_STDINT_H's C99 conformance test.
67940         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
67941         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
67942
67943 2007-04-27  Eric Blake  <ebb9@byu.net>
67944
67945         * doc/headers/assert.texi (assert.h): Document assert module use.
67946
67947 2007-04-27  Bruno Haible  <bruno@clisp.org>
67948
67949         * doc/headers/*.texi: New files.
67950         * doc/gnulib.texi (Header File Substitutes): New chapter.
67951         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
67952         dependencies.
67953         (standards.info ,standards.html, standards.dvi): Update dependencies.
67954         (mostlyclean, clean): New targets.
67955
67956 2007-04-27  Bruno Haible  <bruno@clisp.org>
67957
67958         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
67959         * modules/sysexits (Files, Makefile.am): Update.
67960
67961         * lib/sys_socket_.h: Renamed from lib/socket_.h.
67962         * modules/sys_socket (Files, Makefile.am): Update.
67963
67964         * lib/sys_stat_.h: Renamed from lib/stat_.h.
67965         * modules/sys_stat (Files, Makefile.am): Update.
67966
67967 2007-04-27  Eric Blake  <ebb9@byu.net>
67968
67969         * lib/freading.h: Improve comments.
67970         * lib/fwriting.h: Likewise.
67971         * lib/fflush.c: Likewise.
67972
67973         Fix closein for mingw.
67974         * modules/closein-tests: Add tests for closein.
67975         * tests/test-closein.c: New file.
67976         * tests/test-closein.sh: Likewise.
67977         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
67978         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
67979
67980 2007-04-27  Bruno Haible  <bruno@clisp.org>
67981
67982         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
67983         version is < 6.
67984         * lib/math_.h [__DECC]: Likewise.
67985         * lib/stdio_.h [__DECC]: Likewise.
67986         * lib/stdlib_.h [__DECC]: Likewise.
67987         * lib/string_.h [__DECC]: Likewise.
67988         * lib/time_.h [__DECC]: Likewise.
67989         * lib/wchar_.h [__DECC]: Likewise.
67990         * lib/wctype_.h [__DECC]: Likewise.
67991
67992 2007-04-27  Bruno Haible  <bruno@clisp.org>
67993
67994         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
67995
67996 2007-04-27  Bruno Haible  <bruno@clisp.org>
67997
67998         * lib/fflush.c: Add comments.
67999         * modules/fpurge-tests (Depends-on): Add fflush.
68000         * modules/freadable-tests (Depends-on): Likewise.
68001         * modules/fwritable-tests (Depends-on): Likewise.
68002
68003 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68004
68005         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68006         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68007         Report by Bruno Haible <bruno@clisp.org>.
68008
68009 2007-04-26  Eric Blake  <ebb9@byu.net>
68010
68011         Fix fflush on mingw.
68012         * modules/fflush (Depends-on): Add freading.
68013         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68014         but unread data.
68015
68016 2007-04-26  Eric Blake  <ebb9@byu.net>
68017         and Bruno Haible  <bruno@clisp.org>
68018
68019         Implement freading and fwriting.
68020         * lib/freading.c: New file.
68021         * lib/freading.h: Likewise.
68022         * m4/freading.m4: Likewise.
68023         * modules/freading: Likewise.
68024         * modules/freading-tests: Likewise.
68025         * tests/test-freading.c: Likewise.
68026         * lib/fwriting.c: New file.
68027         * lib/fwriting.h: Likewise.
68028         * m4/fwriting.m4: Likewise.
68029         * modules/fwriting: Likewise.
68030         * modules/fwriting-tests: Likewise.
68031         * tests/test-fwriting.c: Likewise.
68032         * MODULES.html.sh (File stream based Input/Output): Mention them.
68033
68034 2007-04-26  Bruno Haible  <bruno@clisp.org>
68035
68036         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68037         'long' when we assume it.
68038         Suggested by Eric Blake.
68039
68040 2007-04-26  Bruno Haible  <bruno@clisp.org>
68041
68042         Ensure fseeko, ftello are declared on glibc systems.
68043         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68044         * modules/fseeko (configure.ac-early): Likewise.
68045         * modules/ftello (configure.ac-early): Likewise.
68046         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68047         AC_FUNC_FSEEKO for this.
68048         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68049         (gl_CHECK_FSEEKO): Remove macro.
68050
68051 2007-04-26  Bruno Haible  <bruno@clisp.org>
68052
68053         * tests/test-fflush.c (main): Also check the ftell result after
68054         fflush and fseek/fseeko.
68055         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68056         file descriptor position cache in the stream.
68057         * lib/fseeko.c (rpl_fseeko): Likewise.
68058
68059 2007-04-26  Bruno Haible  <bruno@clisp.org>
68060
68061         * modules/fflush-tests (Depends-on): Add fseeko.
68062
68063 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68064             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68065
68066         * lib/argz_.h: ensure error_t definition is obtained in same
68067         mechanism system argz.h would have.
68068         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68069         argz facilities are known bad.  Err on the side of caution if
68070         cross-compiling.
68071
68072 2007-04-25  Eric Blake  <ebb9@byu.net>
68073
68074         * lib/fpurge.c (includes): Use stdlib.h for free.
68075         * tests/test-fflush.c (main): Also test fflush-fseeko.
68076
68077 2007-04-25  Bruno Haible  <bruno@clisp.org>
68078
68079         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68080         * lib/fseeko.c: New file.
68081         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68082         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68083         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68084         gl_FUNC_FSEEKO.
68085         (gl_FUNC_FSEEKO): Invoke it.
68086         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68087         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68088         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68089
68090 2007-04-25  Bruno Haible  <bruno@clisp.org>
68091
68092         * modules/fflush (Depends-on): Add ftello.
68093
68094 2007-04-25  Bruno Haible  <bruno@clisp.org>
68095
68096         * modules/ftello-tests: New file.
68097         * tests/test-ftello.c: New file.
68098
68099         * modules/ftello: New file.
68100         * m4/ftello.m4: New file.
68101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68102         HAVE_FTELLO.
68103         * lib/stdio_.h (ftello): New declaration.
68104         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68105         HAVE_FTELLO.
68106
68107 2007-04-25  Bruno Haible  <bruno@clisp.org>
68108
68109         * modules/fseeko-tests: New file.
68110         * tests/test-fseeko.c: New file.
68111
68112         * modules/fseeko: New file.
68113         * m4/fseeko.m4: New file.
68114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68115         HAVE_FSEEKO.
68116         * lib/stdio_.h (fseeko): New declaration.
68117         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68118         HAVE_FSEEKO.
68119
68120 2007-04-25  Bruno Haible  <bruno@clisp.org>
68121
68122         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68123
68124 2007-04-25  Bruno Haible  <bruno@clisp.org>
68125
68126         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68127         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68128         * tests/test-unistd.c: Likewise.
68129         * tests/test-fcntl.c: Likewise.
68130
68131 2007-04-23  Eric Blake  <ebb9@byu.net>
68132
68133         * lib/fflush.c: Fix missing include.
68134         Reported by Bruno Haible.
68135
68136 2007-04-23  Bruno Haible  <bruno@clisp.org>
68137
68138         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68139         Reported by Eric Blake.
68140
68141 2007-04-23  Bruno Haible  <bruno@clisp.org>
68142
68143         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68144
68145 2007-04-23  Bruno Haible  <bruno@clisp.org>
68146
68147         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68148
68149 2007-04-23  Bruno Haible  <bruno@clisp.org>
68150
68151         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68152         Needed on HP-UX 11.
68153
68154 2007-04-16  Eric Blake  <ebb9@byu.net>
68155
68156         Make fflush rely on fpurge.
68157         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68158         open coding all variants.
68159         * modules/fflush (Depends-on): Add fpurge and unistd.
68160         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68161         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68162
68163         Fix --with-tests compilation on cygwin.
68164         * modules/argmatch-tests (Makefile.am): List gnulib library first
68165         in LDADD.
68166         * modules/argp-tests (Makefile.am): Likewise.
68167         * modules/array-list-tests (Makefile.am): Likewise.
68168         * modules/array-oset-tests (Makefile.am): Likewise.
68169         * modules/avltree-list-tests (Makefile.am): Likewise.
68170         * modules/avltree-oset-tests (Makefile.am): Likewise.
68171         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68172         * modules/carray-list-tests (Makefile.am): Likewise.
68173         * modules/dirname-tests (Makefile.am): Likewise.
68174         * modules/frexp-tests (Makefile.am): Likewise.
68175         * modules/isnanl-tests (Makefile.am): Likewise.
68176         * modules/linked-list-tests (Makefile.am): Likewise.
68177         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68178         * modules/lock-tests (Makefile.am): Likewise.
68179         * modules/rbtree-list-tests (Makefile.am): Likewise.
68180         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68181         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68182         * modules/tls-tests (Makefile.am): Likewise.
68183         * modules/tsearch-tests (Makefile.am): Likewise.
68184         * modules/xvasprintf-tests (Makefile.am): Likewise.
68185
68186         Fix fpurge for cygwin.
68187         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68188         value.
68189         * modules/fpurge-tests (Depends-on): Clean up trash.
68190
68191 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68192
68193         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68194
68195         * m4/autobuild.m4: Re-indent.
68196
68197 2007-04-13  Bruno Haible  <bruno@clisp.org>
68198
68199         * modules/fpurge-tests: New file.
68200         * tests/test-fpurge.c: New file.
68201
68202         * modules/fpurge: New file.
68203         * lib/fpurge.h: New file.
68204         * lib/fpurge.c: New file.
68205         * m4/fpurge.m4: New file.
68206
68207 2007-04-13  Bruno Haible  <bruno@clisp.org>
68208
68209         * modules/fbufmode-tests: New file.
68210         * tests/test-fbufmode.c: New file.
68211
68212         * modules/fbufmode: New file.
68213         * lib/fbufmode.h: New file.
68214         * lib/fbufmode.c: New file.
68215         * m4/fbufmode.m4: New file.
68216
68217 2007-04-13  Bruno Haible  <bruno@clisp.org>
68218
68219         * modules/fwritable-tests: New file.
68220         * tests/test-fwritable.c: New file.
68221
68222         * modules/fwritable: New file.
68223         * lib/fwritable.h: New file.
68224         * lib/fwritable.c: New file.
68225         * m4/fwritable.m4: New file.
68226
68227 2007-04-13  Bruno Haible  <bruno@clisp.org>
68228
68229         * modules/freadable-tests: New file.
68230         * tests/test-freadable.c: New file.
68231
68232         * modules/freadable: New file.
68233         * lib/freadable.h: New file.
68234         * lib/freadable.c: New file.
68235         * m4/freadable.m4: New file.
68236
68237 2007-04-13  Bruno Haible  <bruno@clisp.org>
68238
68239         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68240         MOSTLYCLEANFILES.
68241
68242 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68243
68244         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68245         gzip bootstrap.conf to avoid dragging in i18n machinery.
68246         (gnulib_tool_option): Use it.
68247
68248 2007-04-13  Bruno Haible  <bruno@clisp.org>
68249
68250         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68251         %F directives.
68252         * tests/test-vasprintf-posix.c (test_function): Likewise.
68253         * tests/test-snprintf-posix.h (test_function): Likewise.
68254         * tests/test-sprintf-posix.h (test_function): Likewise.
68255         * tests/test-fprintf-posix.h (test_function): Likewise.
68256         * tests/test-printf-posix.h (test_function): Likewise.
68257         * tests/test-fprintf-posix.out: Likewise.
68258
68259 2007-04-13  Bruno Haible  <bruno@clisp.org>
68260
68261         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68262         * modules/tls-tests (configure.ac): Likewise.
68263         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68264
68265 2007-04-13  Bruno Haible  <bruno@clisp.org>
68266
68267         * lib/tls.c (glthread_tls_get): Fix return type.
68268         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68269
68270 2007-04-12  Eric Blake  <ebb9@byu.net>
68271
68272         * modules/gettime (Depends-on): Remove gettime.
68273         Reported by Dmitry V. Levin.
68274
68275 2007-04-12  Bruno Haible  <bruno@clisp.org>
68276
68277         * modules/fflush (Include): Mention <stdio.h>.
68278         * modules/strtoimax (Include): Mention <inttypes.h>.
68279         * modules/strtoumax (Include): Likewise.
68280
68281 2007-04-12  Eric Blake  <ebb9@byu.net>
68282
68283         * .cvsignore: New file.
68284         * .gitignore: Likewise.
68285
68286 2007-04-12  Bruno Haible  <bruno@clisp.org>
68287
68288         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68289         not before, since $(LDADD) often contains libgnu.a.
68290         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68291         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68292         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68293         Needed on Cygwin.
68294
68295 2007-04-12  Eric Blake  <ebb9@byu.net>
68296
68297         Work around glibc's failure to flush stdin on fclose.
68298         * lib/closein.c (close_stdin): Flush stdin before closing.
68299
68300         Work around glibc's failure to reset seekable stdin on exit.
68301         * modules/closein: New module.
68302         * lib/closein.c: New file.
68303         * lib/closein.h: Likewise.
68304         * m4/closein.m4: Likewise.
68305         * MODULES.html.sh (File stream based Input/Output): Document it.
68306
68307 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68308
68309         * gnulib-tool: Rename generated 'autobuild' script to
68310         'do-autobuild' in --create-megatestdir output.
68311
68312         * doc/gnulib.texi (Build robot for gnulib): Fix.
68313
68314 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68315
68316         * modules/sysexits (Depends-on): Add absolute-header.
68317
68318 2007-04-12  Eric Blake  <ebb9@byu.net>
68319
68320         No need to preserve errno on success.
68321         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68322         Reported by Bruno Haible.
68323
68324 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68325
68326         * MODULES.html.sh (Support for maintaining and releasing
68327         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68328
68329 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68330
68331         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68332
68333 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68334
68335         * modules/autobuild: New module.
68336
68337         * m4/autobuild.m4: New file.
68338
68339 2007-04-11  Bruno Haible  <bruno@clisp.org>
68340
68341         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68342         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68343         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68345         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68346         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68347         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68348         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68349         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68350         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68351         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68352         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68353         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68355         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68356         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68357         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68358         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68359         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68360         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
68361         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68362         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68363         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
68364         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68365         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68366         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
68367         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68368         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68369         Reported by Eric Blake.
68370
68371 2007-04-11  Bruno Haible  <bruno@clisp.org>
68372
68373         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68374
68375 2007-04-10  Bruno Haible  <bruno@clisp.org>
68376
68377         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68378         for NaN and Infinity. Needed on FreeBSD 6.1.
68379         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68380         regarding results for "%010a" of Infinity and NaN.
68381         * tests/test-vasprintf-posix.c (test_function): Likewise.
68382         * tests/test-snprintf-posix.h (test_function): Likewise.
68383         * tests/test-sprintf-posix.h (test_function): Likewise.
68384         * tests/test-fprintf-posix.h (test_function): Likewise.
68385         * tests/test-printf-posix.h (test_function): Likewise.
68386         * tests/test-fprintf-posix.out: Likewise.
68387
68388 2007-04-10  Bruno Haible  <bruno@clisp.org>
68389
68390         * modules/locale-tests: New file.
68391         * tests/test-locale.c: New file.
68392
68393         * modules/locale: New file.
68394         * lib/locale_.h: New file.
68395         * m4/locale_h.m4: New file.
68396
68397 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68398             Bruno Haible  <bruno@clisp.org>
68399
68400         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68401         be determined, test for availability of the copysignf, copysign,
68402         copysignl functions.
68403         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68404         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68405         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68406
68407 2007-04-09  Eric Blake  <ebb9@byu.net>
68408
68409         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68410         * modules/stdio (Makefile.am): Support fflush.
68411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68412         * modules/fflush: New file.
68413         * lib/fflush.c: Likewise.
68414         * m4/fflush.m4: Likewise.
68415         * modules/fflush-tests: New test.
68416         * tests/test-fflush.c: Likewise.
68417         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68418
68419 2007-04-06  Bruno Haible  <bruno@clisp.org>
68420
68421         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68422         (VASNPRINTF): Use signbit for faster determination whether to print a
68423         minus sign.
68424         * modules/vasnprintf (Files): Remove lib/float+.h.
68425         * modules/fprintf-posix (Depends-on): Add signbit.
68426         * modules/snprintf-posix (Depends-on): Likewise.
68427         * modules/sprintf-posix (Depends-on): Likewise.
68428         * modules/vasnprintf-posix (Depends-on): Likewise.
68429         * modules/vasprintf-posix (Depends-on): Likewise.
68430         * modules/vfprintf-posix (Depends-on): Likewise.
68431         * modules/vsnprintf-posix (Depends-on): Likewise.
68432         * modules/vsprintf-posix (Depends-on): Likewise.
68433
68434 2007-04-06  Bruno Haible  <bruno@clisp.org>
68435
68436         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68437         * tests/test-frexpl.c (main): Likewise.
68438         * tests/test-ldexpl.c (main): Likewise.
68439         * modules/frexp-tests (Depends-on): Add signbit.
68440         * modules/frexpl-tests (Depdends-on): Likewise.
68441         * modules/ldexpl-tests (Depdends-on): Likewise.
68442
68443 2007-04-06  Bruno Haible  <bruno@clisp.org>
68444
68445         * modules/signbit-tests: New file.
68446         * tests/test-signbit.c: New file.
68447
68448         * modules/signbit: New file.
68449         * lib/signbitf.c: New file.
68450         * lib/signbitd.c: New file.
68451         * lib/signbitl.c: New file.
68452         * m4/signbit.m4: New file.
68453         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68454         (signbit): New macro.
68455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68456         REPLACE_SIGNBIT.
68457         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68458         REPLACE_FREXPL into math.h.
68459
68460 2007-04-06  Bruno Haible  <bruno@clisp.org>
68461
68462         * modules/isnanf-nolibm-tests: New file.
68463         * tests/test-isnanf.c: New file.
68464
68465         * modules/isnanf-nolibm: New file.
68466         * lib/isnanf.h: New file.
68467         * lib/isnanf.c: New file.
68468         * lib/isnan.c: Consider the USE_FLOAT macro.
68469         * m4/isnanf.m4: New file.
68470
68471 2007-04-06  Bruno Haible  <bruno@clisp.org>
68472
68473         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68474         (Link): New section.
68475
68476         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68477
68478 2007-04-06  Bruno Haible  <bruno@clisp.org>
68479
68480         Assume the 'long double' type.
68481         * m4/longdouble.m4: Remove file.
68482         * config/srclist.txt: Don't mention longdouble.m4.
68483         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68484         * lib/float+.h: Likewise.
68485         * lib/frexp.c: Likewise.
68486         * lib/printf-args.h: Likewise.
68487         * lib/printf-args.c: Likewise.
68488         * lib/printf-frexp.c: Likewise.
68489         * lib/printf-parse.c: Likewise.
68490         * lib/vasnprintf.c: Likewise.
68491         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68492         * m4/intl.m4: Likewise.
68493         * m4/isnanl.m4: Likewise.
68494         * m4/printf.m4: Likewise.
68495         * m4/printf-frexpl.m4: Likewise.
68496         * m4/vasnprintf.m4: Likewise.
68497         * modules/allocsa (Files): Remove m4/longdouble.m4.
68498         * modules/gettext (Files): Likewise.
68499         * modules/relocatable-prog-wrapper (Files): Likewise.
68500         * modules/vasnprintf (Files): Likewise.
68501         * modules/isnanl (Files): Likewise.
68502         (Include): Simplify.
68503         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68504         (Include): Simplify.
68505         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68506         (Include): Simplify.
68507         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68508         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68509         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68510         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68511         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68512         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68513         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68514         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68515         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68516         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68517         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68518         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68519         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68520         * tests/test-isnanl.c: Likewise.
68521         * tests/test-snprintf-posix.h: Likewise.
68522         * tests/test-sprintf-posix.h: Likewise.
68523         * tests/test-vasnprintf-posix.c: Likewise.
68524         * tests/test-vasnprintf-posix2.c: Likewise.
68525         * tests/test-vasprintf-posix.c: Likewise.
68526
68527 2007-04-06  Bruno Haible  <bruno@clisp.org>
68528
68529         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
68530         * lib/math_.h [__DECC]: Include the overridden include file through
68531         #include_next, outside the double-inclusion guard.
68532         * lib/stdio_.h [__DECC]: Likewise.
68533         * lib/stdlib_.h [__DECC]: Likewise.
68534         * lib/string_.h [__DECC]: Likewise.
68535         * lib/time_.h [__DECC]: Likewise.
68536         * lib/wchar_.h [__DECC]: Likewise.
68537         * lib/wctype_.h [__DECC]: Likewise.
68538         * lib/inttypes_.h [__DECC]: Likewise.
68539         Reported by Albert Chin <china@thewrittenword.com> in
68540         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
68541
68542 2007-04-04  Eric Blake  <ebb9@byu.net>
68543
68544         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
68545         1.5.x.
68546
68547 2007-04-04  Bruno Haible  <bruno@clisp.org>
68548
68549         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
68550         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
68551
68552 2007-04-04  Bruno Haible  <bruno@clisp.org>
68553
68554         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
68555         results for "%010a" of Infinity and NaN.
68556         * tests/test-vasprintf-posix.c (test_function): Likewise.
68557         * tests/test-snprintf-posix.h (test_function): Likewise.
68558         * tests/test-sprintf-posix.h (test_function): Likewise.
68559         * tests/test-fprintf-posix.h (test_function): Remove these tests.
68560         * tests/test-printf-posix.h (test_function): Likewise.
68561         * tests/test-fprintf-posix.out: Update.
68562         Needed for FreeBSD 6.1.
68563
68564 2007-04-04  Bruno Haible  <bruno@clisp.org>
68565
68566         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
68567         directly used by the gnulib modules nor by gnulib-tool.
68568
68569 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68570
68571         * DEPENDENCIES: Give overall description of version dependency
68572         desirability.  Use more-typical names for apps.
68573         Add shell, coreutils, diffutils, grep, tar, gzip.
68574
68575 2007-04-04  Simon Josefsson  <simon@josefsson.org>
68576
68577         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
68578
68579 2007-04-04  Karl Berry  <karl@gnu.org>
68580
68581         * MODULES.html.sh (func_module): missing '.
68582
68583 2007-04-03  Bruno Haible  <bruno@clisp.org>
68584
68585         * modules/argmatch-tests (Makefile.am): New variable
68586         test_argmatch_LDADD.
68587         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
68588         * modules/array-list-tests (Makefile.am): New variable
68589         test_array_list_LDADD.
68590         * modules/array-oset-tests (Makefile.am): New variable
68591         test_array_oset_LDADD.
68592         * modules/avltree-list-tests (Makefile.am): New variable
68593         test_avltree_list_LDADD.
68594         * modules/avltree-oset-tests (Makefile.am): New variable
68595         test_avltree_oset_LDADD.
68596         * modules/avltreehash-list-tests (Makefile.am): New variable
68597         test_avltreehash_list_LDADD.
68598         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
68599         test_canonicalize_lgpl_LDADD.
68600         * modules/carray-list-tests (Makefile.am): New variable
68601         test_carray_list_LDADD.
68602         * modules/dirname-tests (Makefile.am): New variable
68603         test_dirname_LDADD.
68604         * modules/linked-list-tests (Makefile.am): New variable
68605         test_linked_list_LDADD.
68606         * modules/linkedhash-list-tests (Makefile.am): New variable
68607         test_linkedhash_list_LDADD.
68608         * modules/rbtree-list-tests (Makefile.am): New variable
68609         test_rbtree_list_LDADD.
68610         * modules/rbtree-oset-tests (Makefile.am): New variable
68611         test_rbtree_oset_LDADD.
68612         * modules/rbtreehash-list-tests (Makefile.am): New variable
68613         test_rbtreehash_list_LDADD.
68614         * modules/xvasprintf-tests (Makefile.am): New variable
68615         test_xvasprintf_LDADD.
68616         Reported by Eric Blake.
68617
68618 2007-04-03  Eric Blake  <ebb9@byu.net>
68619
68620         * DEPENDENCIES: Weaken m4 requirements.
68621
68622 2007-04-03  Bruno Haible  <bruno@clisp.org>
68623
68624         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
68625         * modules/isnanl-tests (configure.ac): Likewise.
68626
68627 2007-04-03  Ben Pfaff  <blp@gnu.org>
68628
68629         * modules/iconv_open: Add $(srcdir)/ to source directory
68630         references in Makefile fragments that call gperf, to fix VPATH
68631         builds.
68632
68633 2007-04-03  Bruno Haible  <bruno@clisp.org>
68634
68635         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
68636         * lib/ldexpl.c: Undo last change.
68637
68638 2007-04-03  Bruno Haible  <bruno@clisp.org>
68639
68640         * modules/printf-frexpl (Depends-on): Undo last change.
68641         (Files): Add m4/ldexpl.m4.
68642
68643 2007-04-03  Bruno Haible  <bruno@clisp.org>
68644
68645         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
68646         * modules/isnanl (Link): New section.
68647
68648         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
68649         * modules/frexp (Link): New section.
68650
68651         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
68652         * modules/frexpl (Link): New section.
68653
68654         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
68655         * modules/ldexpl (Link): New section.
68656
68657 2007-04-03  Bruno Haible  <bruno@clisp.org>
68658
68659         * modules/TEMPLATE-EXTENDED: New file.
68660         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
68661
68662 2007-04-03  Bruno Haible  <bruno@clisp.org>
68663
68664         * DEPENDENCIES: New file.
68665         Suggested by Simon Josefsson.
68666
68667 2007-04-03  Bruno Haible  <bruno@clisp.org>
68668
68669         * doc/gnulib.texi: Escape @.
68670
68671 2007-04-03  James Youngman  <jay@gnu.org>
68672         and Paul Eggert  <eggert@cs.ucla.edu>
68673
68674         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
68675         birthtime on all systems that have birthtime, not just those which
68676         use st_birthtimensec rather than st_birthtim.  Putting zero in
68677         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
68678         that the birth time is not available for files on an NFS mount.
68679
68680 2007-04-03  Simon Josefsson  <simon@josefsson.org>
68681
68682         * modules/memxor: Move back from crypto/, suggested by Bruno.
68683         * modules/crypto/hmac-sha1: Fix memxor dependency.
68684
68685         * modules/crypto/gc: Moved from ../.
68686
68687 2007-04-02  Eric Blake  <ebb9@byu.net>
68688
68689         * lib/ldexpl.c (includes): Avoid libm.
68690
68691         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
68692
68693 2007-04-02  Bruno Haible  <bruno@clisp.org>
68694
68695         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
68696         on IRIX.
68697
68698 2007-04-02  Bruno Haible  <bruno@clisp.org>
68699
68700         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
68701         x86 or x86_64 platforms running MacOS X.
68702         Reported by Ryan Schmidt <@ryandesign.com>.
68703
68704 2007-04-02  Bruno Haible  <bruno@clisp.org>
68705
68706         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
68707         i386.
68708
68709 2007-04-01  Simon Josefsson  <simon@josefsson.org>
68710
68711         * modules/crypto/arcfour: Moved from ../.
68712         * modules/crypto/arcfour-tests: Moved from ../.
68713         * modules/crypto/arctwo: Moved from ../.
68714         * modules/crypto/arctwo-tests: Moved from ../.
68715         * modules/crypto/des: Moved from ../.
68716         * modules/crypto/des-tests: Moved from ../.
68717         * modules/crypto/gc-arcfour: Moved from ../.
68718         * modules/crypto/gc-arcfour-tests: Moved from ../.
68719         * modules/crypto/gc-arctwo: Moved from ../.
68720         * modules/crypto/gc-arctwo-tests: Moved from ../.
68721         * modules/crypto/gc-des: Moved from ../.
68722         * modules/crypto/gc-des-tests: Moved from ../.
68723         * modules/crypto/gc-hmac-md5: Moved from ../.
68724         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
68725         * modules/crypto/gc-hmac-sha1: Moved from ../.
68726         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
68727         * modules/crypto/gc-md2: Moved from ../.
68728         * modules/crypto/gc-md2-tests: Moved from ../.
68729         * modules/crypto/gc-md4: Moved from ../.
68730         * modules/crypto/gc-md4-tests: Moved from ../.
68731         * modules/crypto/gc-md5: Moved from ../.
68732         * modules/crypto/gc-md5-tests: Moved from ../.
68733         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
68734         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
68735         * modules/crypto/gc-random: Moved from ../.
68736         * modules/crypto/gc-rijndael: Moved from ../.
68737         * modules/crypto/gc-rijndael-tests: Moved from ../.
68738         * modules/crypto/gc-sha1: Moved from ../.
68739         * modules/crypto/gc-sha1-tests: Moved from ../.
68740         * modules/crypto/gc-tests: Moved from ../.
68741         * modules/crypto/hmac-md5: Moved from ../.
68742         * modules/crypto/hmac-md5-tests: Moved from ../.
68743         * modules/crypto/hmac-sha1: Moved from ../.
68744         * modules/crypto/hmac-sha1-tests: Moved from ../.
68745         * modules/crypto/md2: Moved from ../.
68746         * modules/crypto/md2-tests: Moved from ../.
68747         * modules/crypto/md4: Moved from ../.
68748         * modules/crypto/md4-tests: Moved from ../.
68749         * modules/crypto/md5: Moved from ../.
68750         * modules/crypto/md5-tests: Moved from ../.
68751         * modules/crypto/memxor: Moved from ../.
68752         * modules/crypto/rijndael: Moved from ../.
68753         * modules/crypto/rijndael-tests: Moved from ../.
68754         * modules/crypto/sha1: Moved from ../.
68755
68756 2007-03-30  James Youngman  <jay@gnu.org>
68757
68758         * tests/test-stat-time.c (prepare_test): use chmod() rather than
68759         rename() to change the ctime of a file (because ctime is unaffected
68760         by rename on jfs2 on AIX 5.1).
68761         (main): Start by doing cleanup, in case a previous run failed leaving
68762         test files behind.
68763
68764 2007-03-31  Bruno Haible  <bruno@clisp.org>
68765
68766         Support old proprietary implementations of iconv.
68767         * modules/iconv_open: New file.
68768         * lib/iconv_.h: New file.
68769         * m4/iconv_h.m4: New file.
68770         * lib/iconv_open.c: New file.
68771         * lib/iconv_open-aix.gperf: New file.
68772         * lib/iconv_open-hpux.gperf: New file.
68773         * lib/iconv_open-irix.gperf: New file.
68774         * lib/iconv_open-osf.gperf: New file.
68775         * m4/iconv_open.m4: New file.
68776         * modules/linebreak (Depends-on): Add iconv_open.
68777         * modules/striconv (Depends-on): Likewise.
68778         * modules/striconveh (Depends-on): Likewise.
68779         * modules/unicodeio (Depends-on): Likewise.
68780         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
68781         (iconv_t)(-1).
68782         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
68783         conversion if cd is (iconv_t)(-1).
68784         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
68785         is not possible.
68786
68787 2007-03-31  Bruno Haible  <bruno@clisp.org>
68788
68789         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68790         work on Solaris either. Protect also second use of "autodetect_jp".
68791
68792 2007-03-31  Bruno Haible  <bruno@clisp.org>
68793
68794         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
68795         the function is not present.
68796
68797 2007-03-31  Bruno Haible  <bruno@clisp.org>
68798
68799         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
68800         the function is not present.
68801
68802 2007-03-31  Bruno Haible  <bruno@clisp.org>
68803
68804         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
68805         a bug in HP-UX iconv_open().
68806
68807 2007-03-31  Bruno Haible  <bruno@clisp.org>
68808
68809         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
68810         (Mathematics <math.h>): New section, add fpieee.
68811         (Input/output <stdio.h>): Add fseterr.
68812         (Mathematics <math.h>): New section, add printf-frexp.
68813         (Container data structures): Add sublist.
68814         (Core language properties): Add fpucw, inline.
68815         (Functions for greatest-width integer types <inttypes.h>): Add
68816         imaxabs, imaxdiv, inttypes.
68817         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
68818         isnanl-nolibm, ldexp.
68819         (Mathematics <math.h>): New section, add printf-frexpl.
68820         (Support for systems lacking POSIX:2001): Add fprintf-posix,
68821         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
68822         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
68823         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
68824         (Unicode string functions): Add unistr/u*-mbtoucr.
68825         (Java): Add javacomp-script, javaexec-script.
68826         (C#): Add csharpcomp-script, csharpexec-script.
68827         (Support for building libraries and executables): Add havelib,
68828         relocatable-*.
68829         (Support for maintaining and releasing projects): Renamed from
68830         'Support for maintaining and release projects'. Add announce-gen.
68831
68832 2007-03-31  Bruno Haible  <bruno@clisp.org>
68833
68834         * README: Talk primarily about git.
68835         (git and CVS): Renamed from CVS.
68836         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
68837         gnulib is available through git.
68838         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
68839
68840 2007-03-30  Bruno Haible  <bruno@clisp.org>
68841
68842         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
68843         * lib/poll_.h: Likewise.
68844         * lib/stat_.h: Likewise.
68845         * lib/sys_time_.h: Likewise.
68846         * lib/sysexit_.h: Likewise.
68847         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
68848         * lib/stdbool_.h: Likewise.
68849         * lib/byteswap_.h: Add double-inclusion guard.
68850
68851 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
68852
68853         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
68854
68855 2007-03-30  Karl Berry  <karl@gnu.org>
68856
68857         * config/srclist-update: double space after USA in the license
68858         substitution, since that's how it's usually (?) written.
68859
68860 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
68861
68862         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
68863         reported by Bruno Haible.
68864
68865 2007-03-29  Bruno Haible  <bruno@clisp.org>
68866
68867         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
68868         a bug in AIX iconv().
68869
68870 2007-03-29  Bruno Haible  <bruno@clisp.org>
68871
68872         * modules/ldexpl-tests: New file.
68873         * tests/test-ldexpl.c: New file.
68874
68875 2007-03-29  Bruno Haible  <bruno@clisp.org>
68876
68877         * lib/ldexpl.c: Include fpucw.h.
68878         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
68879         multiplication.
68880         * modules/ldexpl (Depends-on): Add fpucw.
68881
68882 2007-03-29  Bruno Haible  <bruno@clisp.org>
68883
68884         * modules/ldexpl: New file.
68885         * m4/ldexpl.m4: New file.
68886         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
68887         set.
68888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
68889         REPLACE_LDEXPL.
68890         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
68891         REPLACE_LDEXPL.
68892         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68893         gl_FUNC_LDEXPL_WORKS.
68894         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
68895         * modules/mathl (Files): Remove lib/ldexpl.c.
68896         (Depends-on): Add ldexpl.
68897
68898 2007-03-29  Bruno Haible  <bruno@clisp.org>
68899
68900         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
68901
68902 2007-03-29  Bruno Haible  <bruno@clisp.org>
68903
68904         * tests/test-striconveh.c (main): Don't assume that a direct conversion
68905         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
68906         and possibly also HP-UX.
68907         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68908         work on AIX, IRIX, HP-UX, OSF/1.
68909         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
68910         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
68911         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
68912         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
68913         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
68914         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
68915
68916 2007-03-29  Bruno Haible  <bruno@clisp.org>
68917
68918         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
68919
68920 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68921
68922         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
68923         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
68924
68925 2007-03-29  Eric Blake  <ebb9@byu.net>
68926
68927         * lib/acl-internal.h: Remove redundant include.
68928         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
68929         Cygwin when a file is locked.
68930
68931 2007-03-29  Bruno Haible  <bruno@clisp.org>
68932
68933         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
68934         file.
68935         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
68936
68937 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68938
68939         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
68940         try to remove a parent directory if the child couldn't be removed
68941         (except for the first rmdir, which could fail because the child
68942         doesn't exist).  Problem reported by Jeff Blaine in
68943         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
68944
68945 2007-03-28  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/striconveh.c (utf8conv_carefully): New function.
68948         (mem_cd_iconveh_internal): Invoke it.
68949
68950 2007-03-28  Bruno Haible  <bruno@clisp.org>
68951
68952         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
68953         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
68954         input.
68955         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
68956         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
68957         unistr/u8-uctomb.
68958
68959 2007-03-28  Bruno Haible  <bruno@clisp.org>
68960
68961         * modules/unistr/u8-mbtoucr: New file.
68962         * lib/unistr/u8-mbtoucr.c: New file.
68963         * modules/unistr/u16-mbtoucr: New file.
68964         * lib/unistr/u16-mbtoucr.c: New file.
68965         * modules/unistr/u16-mbtoucr: New file.
68966         * lib/unistr/u16-mbtoucr.c: New file.
68967         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
68968
68969 2007-03-27  Simon Josefsson  <simon@josefsson.org>
68970             Bruno Haible  <bruno@clisp.org>
68971
68972         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
68973         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
68974         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
68975
68976         * m4/stdio_h.m4: Add stubs for vasprintf too.
68977
68978         * modules/stdio: Support vasprintf in sed command.
68979
68980         * modules/vasprintf: Depend on stdio for prototypes.  Remove
68981         vasprintf.h.  Add stdio module indicator.
68982
68983         * lib/stdio_.h: Declare asprintf and vasprintf, based on
68984         vasprintf.h.
68985
68986         * lib/vasprintf.h: File removed.
68987
68988         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
68989         * lib/vasprintf.c: Ditto.
68990         * lib/xvasprintf.c: Ditto.
68991         * tests/test-vasprintf-posix.c: Ditto.
68992         * tests/test-vasprintf.c: Ditto.
68993
68994 2007-03-27  Bruno Haible  <bruno@clisp.org>
68995
68996         Make vasnprintf multithread-safe.
68997         * lib/vasnprintf.c (decimal_point_char): New function.
68998         (VASNPRINTF): Use it.
68999         Suggested by Simon Josefsson.
69000
69001 2007-03-27  Eric Blake  <ebb9@byu.net>
69002
69003         Support sub-second birthtime on cygwin.
69004         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69005         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69006         (get_stat_birthtime): Also work with st_birthtim.
69007
69008 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69009
69010         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69011         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69012         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69013         (get_stat_birthtime_ns): Simplify compile-time tests.
69014         (get_stat_birthtime): Change the API to look like
69015         get_stat_mtime etc., except return a negative tv_nsec on error.
69016         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69017         Don't check for "spare" fields.
69018         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69019         or for struct stat.st_birthtime, as these tests aren't used.
69020         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69021
69022 2007-03-27  Bruno Haible  <bruno@clisp.org>
69023
69024         * lib/stat-time.h: Include <sys/stat.h>.
69025
69026 2007-03-27  James Youngman  <jay@gnu.org>
69027
69028         * lib/stat-time.h (get_stat_birthtime): New function for
69029           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69030         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69031           and its variants.
69032         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69033         * modules/stat-time-test: New file.
69034         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69035
69036 2007-03-26  Bruno Haible  <bruno@clisp.org>
69037
69038         Better support of signalling NaNs.
69039         * lib/atanl.c: Include isnanl.h.
69040         (atanl): Perform test for NaN at the beginning of the function and
69041         through a call to isnanl.
69042         * lib/cosl.c: Include isnanl.h.
69043         (cosl): Perform test for NaN at the beginning of the function and
69044         through a call to isnanl.
69045         * lib/ldexpl.c: Include isnanl.h.
69046         (ldexpl): Perform test for NaN through a call to isnanl.
69047         * lib/logl.c: Include isnanl.h.
69048         (logl): Perform test for NaN at the beginning of the function and
69049         through a call to isnanl.
69050         * lib/sinl.c: Include isnanl.h.
69051         (sinl): Perform test for NaN at the beginning of the function and
69052         through a call to isnanl.
69053         * lib/sqrtl.c: Include isnanl.h.
69054         (sqrtl): Perform test for NaN at the beginning of the function and
69055         through a call to isnanl.
69056         * lib/tanl.c: Include isnanl.h.
69057         (tanl): Perform test for NaN at the beginning of the function and
69058         through a call to isnanl.
69059         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69060         * modules/mathl (Depends-on): Add isnanl.
69061
69062 2007-03-26  Eric Blake  <ebb9@byu.net>
69063
69064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69065         regression in logic sense of previous patch.
69066
69067 2007-03-26  Bruno Haible  <bruno@clisp.org>
69068
69069         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69070         unportable shell command "if ! ...".
69071         Reported by Ralf Wildenhues.
69072
69073 2007-03-25  Bruno Haible  <bruno@clisp.org>
69074
69075         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69076         <sysexits.h> file, and only add EX_CONFIG.
69077         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69078         absolute file name and whether it is sufficient. Substitute also
69079         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69080         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69081         ABSOLUTE_SYSEXITS_H into sysexits.h.
69082
69083 2007-03-25  Bruno Haible  <bruno@clisp.org>
69084
69085         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69086         hints is NULL.
69087
69088 2007-03-25  Bruno Haible  <bruno@clisp.org>
69089
69090         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69091         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69092
69093 2007-03-25  Bruno Haible  <bruno@clisp.org>
69094
69095         * lib/vasnprintf.c: Include langinfo.h.
69096         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69097         multithread-safe.
69098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69100         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69101         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69102         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69103         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69104         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69105         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69106         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69107         Reported by Simon Josefsson.
69108
69109 2007-03-25  Bruno Haible  <bruno@clisp.org>
69110
69111         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69112         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69113         * modules/vasnprintf (Depends-on): Add stdint.
69114
69115 2007-03-25  Bruno Haible  <bruno@clisp.org>
69116
69117         * modules/fpieee: New file.
69118         * m4/fpieee.m4: New file.
69119         * modules/isnan-nolibm (Depends-on): Add fpieee.
69120         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69121         * modules/isnanl (Depends-on): Add fpieee.
69122
69123 2007-03-25  Bruno Haible  <bruno@clisp.org>
69124
69125         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69126
69127 2007-03-25  Bruno Haible  <bruno@clisp.org>
69128
69129         Avoid test failures on IRIX 6.5.
69130         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69131         (main): Use it.
69132         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69133         macros.
69134         (main): Use them.
69135
69136 2007-03-25  Bruno Haible  <bruno@clisp.org>
69137
69138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69139         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69140         exists but doesn't work.
69141         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69142         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69144         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69145         math.h.
69146
69147 2007-03-25  Bruno Haible  <bruno@clisp.org>
69148
69149         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69150         returns inf. Needed on IRIX 6.5.
69151
69152 2007-03-25  Bruno Haible  <bruno@clisp.org>
69153
69154         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69155         (main): Use isnanl instead of x != x idiom.
69156         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69157
69158         * tests/test-frexp.c: Include isnan.h.
69159         (main): Use isnan instead of x != x idiom.
69160         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69161
69162 2007-03-25  Bruno Haible  <bruno@clisp.org>
69163
69164         * tests/test-frexp.c (NaN): New function/macro.
69165         (main): Use it instead of 0.0 / 0.0.
69166         * tests/test-isnan.c (NaN): New function/macro.
69167         (main): Use it instead of 0.0 / 0.0.
69168         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69169         (test_function): Use it instead of 0.0 / 0.0.
69170         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69171         (test_function): Use it instead of 0.0 / 0.0.
69172         * tests/test-snprintf-posix.h (NaN): New function/macro.
69173         (test_function): Use it instead of 0.0 / 0.0.
69174         * tests/test-sprintf-posix.h (NaN): New function/macro.
69175         (test_function): Use it instead of 0.0 / 0.0.
69176         * tests/test-fprintf-posix.h (NaN): New function/macro.
69177         (test_function): Use it instead of 0.0 / 0.0.
69178         * tests/test-printf-posix.h (NaN): New function/macro.
69179         (test_function): Use it instead of 0.0 / 0.0.
69180
69181         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69182
69183 2007-03-25  Bruno Haible  <bruno@clisp.org>
69184
69185         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69186
69187 2007-03-25  Bruno Haible  <bruno@clisp.org>
69188
69189         * lib/regexec.c (merge_state_with_log): Make static.
69190
69191 2007-03-25  Bruno Haible  <bruno@clisp.org>
69192
69193         * lib/trigl.c (kernel_rem_pio2): Make static.
69194
69195 2007-03-25  Bruno Haible  <bruno@clisp.org>
69196
69197         * lib/sincosl.c (sincosl_table): Make static.
69198
69199 2007-03-25  Bruno Haible  <bruno@clisp.org>
69200
69201         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69202         if the compiler does not support C99.
69203
69204 2007-03-25  Bruno Haible  <bruno@clisp.org>
69205
69206         * modules/time (Makefile.am): Ensure all rule action lines start with a
69207         tab.
69208
69209 2007-03-24  Bruno Haible  <bruno@clisp.org>
69210
69211         * modules/tsearch-tests: New file.
69212         * tests/test-tsearch.sh: New file.
69213         * tests/test-tsearch.c: New file, mostly copied from glibc.
69214
69215         * modules/search-tests: New file.
69216         * tests/test-search.c: New file.
69217
69218         * modules/search: New file.
69219         * lib/search_.h: New file, incorporating lib/tsearch.h.
69220         * m4/search_h.m4: New file.
69221         * lib/tsearch.h: Remove file.
69222         * lib/tsearch.c: Include search.h instead of tsearch.h.
69223         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69224         HAVE_TSEARCH.
69225         * modules/tsearch (Files): Remove lib/tsearch.h.
69226         (Depends-on): Add search.
69227         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69228         (Include): Change tsearch.h into search.h.
69229
69230 2007-03-24  Bruno Haible  <bruno@clisp.org>
69231
69232         * modules/fpucw: New file.
69233         * lib/fpucw.h: New file.
69234         * lib/frexp.c: Include fpucw.h.
69235         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69236         (FUNC): Use them.
69237         * lib/printf-frexp.c: Include fpucw.h.
69238         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69239         (FUNC): Use them.
69240         * lib/vasnprintf.c: Include fpucw.h.
69241         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69242         'long double' calculations.
69243         * tests/test-frexpl.c: Include fpucw.h.
69244         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69245         * tests/test-printf-frexpl.c: Include fpucw.h.
69246         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69247         * modules/frexpl (Depends-on): Add fpucw.
69248         * modules/printf-frexpl (Depends-on): Likewise.
69249         * modules/fprintf-posix (Depends-on): Likewise.
69250         * modules/snprintf-posix (Depends-on): Likewise.
69251         * modules/sprintf-posix (Depends-on): Likewise.
69252         * modules/vasnprintf-posix (Depends-on): Likewise.
69253         * modules/vasprintf-posix (Depends-on): Likewise.
69254         * modules/vfprintf-posix (Depends-on): Likewise.
69255         * modules/vsnprintf-posix (Depends-on): Likewise.
69256         * modules/vsprintf-posix (Depends-on): Likewise.
69257         * modules/frexpl-tests (Depends-on): Likewise.
69258         * modules/printf-frexpl-tests (Depends-on): Likewise.
69259
69260 2007-03-24  Bruno Haible  <bruno@clisp.org>
69261
69262         * lib/float+.h: New file.
69263         * lib/isnan.c: Include float+.h.
69264         (SIZE): New macro.
69265         (FUNC): Compare only SIZE bytes of the value.
69266         * lib/vasnprintf.c: Include float+.h.
69267         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69268         SIZEOF_LDBL or SIZEOF_DBL bytes.
69269         * modules/isnan-nolibm (Files): Add lib/float+.h.
69270         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69271         * modules/isnanl (Files): Add lib/float+.h.
69272         * modules/vasnprintf (Files): Add lib/float+.h.
69273
69274 2007-03-24  Bruno Haible  <bruno@clisp.org>
69275
69276         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69277         include isnanl-nolibm.h.
69278
69279 2007-03-24  Bruno Haible  <bruno@clisp.org>
69280
69281         * tests/test-read-file.c (main): Don't produce spurious output for
69282         expected situations. Make the test fail if it encountered unexpected
69283         results.
69284
69285 2007-03-24  Bruno Haible  <bruno@clisp.org>
69286
69287         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69288         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69289
69290 2007-03-24  Bruno Haible  <bruno@clisp.org>
69291
69292         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69293
69294 2007-03-24  Bruno Haible  <bruno@clisp.org>
69295
69296         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69297         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69298
69299         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69300         * modules/utf8-ucs4: Turn into a symbolic link to module
69301         unistr/u8-mbtouc.
69302
69303         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69304         utf8-ucs4-unsafe.
69305         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69306         unistr/u8-mbtouc-unsafe.
69307
69308         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69309         * modules/utf16-ucs4: Turn into a symbolic link to module
69310         unistr/u16-mbtouc.
69311
69312         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69313         utf16-ucs4-unsafe.
69314         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69315         unistr/u16-mbtouc-unsafe.
69316
69317         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69318         * modules/ucs4-utf8: Turn into a symbolic link to module
69319         unistr/u8-ubtomb.
69320
69321         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69322         * modules/ucs4-utf16: Turn into a symbolic link to module
69323         unistr/u16-ubtomb.
69324
69325 2007-03-24  Bruno Haible  <bruno@clisp.org>
69326
69327         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69328         Enable the function only if HAVE_INLINE.
69329         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69330         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69331         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69332         Enable the function only if HAVE_INLINE.
69333         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69334         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69335         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69336         Enable the function only if HAVE_INLINE.
69337         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69338         Enable the function only if HAVE_INLINE.
69339         * modules/utf8-ucs4: Update.
69340         * modules/utf8-ucs4-unsafe: Update.
69341         * modules/utf16-ucs4: Update.
69342         * modules/utf16-ucs4-unsafe: Update.
69343         * modules/ucs4-utf8: Update.
69344         * modules/ucs4-utf16: Update.
69345
69346 2007-03-24  Bruno Haible  <bruno@clisp.org>
69347
69348         * lib/utf8-ucs4.h: Remove file.
69349         * lib/utf8-ucs4-unsafe.h: Remove file.
69350         * lib/utf16-ucs4.h: Remove file.
69351         * lib/utf16-ucs4-unsafe.h: Remove file.
69352         * lib/ucs4-utf8.h: Remove file.
69353         * lib/ucs4-utf16.h: Remove file.
69354         * lib/unistr.h: Include their previous contents.
69355         * m4/utf-ucs4.m4: Remove file.
69356         * m4/ucs4-utf.m4: Remove file.
69357         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69358         (Depends-on): Add unistr/base.
69359         (configure.ac): Remove gl_UTF_UCS4.
69360         (Makefile.am): Update.
69361         (Include): Change to unistr.h.
69362         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69363         (Depends-on): Add unistr/base.
69364         (configure.ac): Remove gl_UTF_UCS4.
69365         (Makefile.am): Update.
69366         (Include): Change to unistr.h.
69367         * modules/utf16-ucs4 (Files): Remove lib/utf16-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/utf16-ucs4-unsafe (Files): Remove lib/utf16-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/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69378         (Depends-on): Add unistr/base.
69379         (configure.ac): Remove gl_UCS4_UTF.
69380         (Makefile.am): Update.
69381         (Include): Change to unistr.h.
69382         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69383         (Depends-on): Add unistr/base.
69384         (configure.ac): Remove gl_UCS4_UTF.
69385         (Makefile.am): Update.
69386         (Include): Change to unistr.h.
69387         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69388         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69389         utf8-ucs4-unsafe.h.
69390         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69391         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69392         utf16-ucs4-unsafe.h.
69393         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69394         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69395         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69396         * lib/unistr/u8-strchr.c: Likewise.
69397         * lib/unistr/u8-strrchr.c: Likewise.
69398         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69399         * lib/unistr/u16-strchr.c: Likewise.
69400         * lib/unistr/u16-strrchr.c: Likewise.
69401         * lib/striconveh.c: Update.
69402         * lib/linebreak.c: Update.
69403
69404 2007-03-24  Bruno Haible  <bruno@clisp.org>
69405
69406         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69407         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69408
69409 2007-03-22  Bruno Haible  <bruno@clisp.org>
69410
69411         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69412
69413 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69414
69415         * MODULES.html.sh (File system functions): New module write-any-file.
69416         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69417         * m4/write-any-file.m4: New files.
69418
69419 2007-03-23  Eric Blake  <ebb9@byu.net>
69420
69421         * gnulib-tool: Rearrange space-tab sequences, since some editors
69422         like to eat them.
69423
69424 2007-03-23  Eric Blake  <ebb9@byu.net>
69425
69426         * lib/version-etc.c (version_etc_va): Update license wording to
69427         be more concise.  Recommended by Richard Stallman.
69428
69429 2007-03-22  Bruno Haible  <bruno@clisp.org>
69430
69431         * lib/poll.c (MSG_PEEK): New fallback definition.
69432
69433 2007-03-22  Bruno Haible  <bruno@clisp.org>
69434
69435         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69436         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69437         (main): Update.
69438         Fixes a compilation error on BeOS.
69439
69440 2007-03-22  Bruno Haible  <bruno@clisp.org>
69441
69442         * modules/frexpl-tests: New file.
69443         * tests/test-frexpl.c: New file.
69444
69445         * modules/frexpl: New file.
69446         * m4/frexpl.m4: New file.
69447         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69448         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69450         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69451         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69452         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69453
69454 2007-03-22  Bruno Haible  <bruno@clisp.org>
69455
69456         * lib/frexpl.c: Share code with lib/frexp.c.
69457         * modules/mathl (Files): Add lib/frexp.c.
69458         (Depends-on): Add isnanl-nolibm.
69459
69460 2007-03-22  Bruno Haible  <bruno@clisp.org>
69461
69462         * modules/printf-frexp (Files): Add m4/frexp.m4.
69463         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69464         only if the found frexp function actually works.
69465
69466 2007-03-22  Bruno Haible  <bruno@clisp.org>
69467
69468         * lib/frexp.c: Remove older implementation that uses divisions.
69469
69470 2007-03-21  Bruno Haible  <bruno@clisp.org>
69471
69472         * modules/frexp-tests: New file.
69473         * tests/test-frexp.c: New file.
69474
69475         * modules/frexp: New file.
69476         * lib/frexp.c: New file.
69477         * m4/frexp.m4: New file.
69478         * lib/math_.h (frexp): New declaration.
69479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69480         REPLACE_FREXP.
69481         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69482
69483 2007-03-21  Bruno Haible  <bruno@clisp.org>
69484
69485         * modules/isnanl-tests: New file.
69486         * tests/test-isnanl.c: New file.
69487
69488         * modules/isnanl: New file.
69489         * lib/isnanl.h: New file.
69490         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69491         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69492         gl_FUNC_ISNANL_WORKS.
69493         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69494         New macros.
69495
69496 2007-03-21  Bruno Haible  <bruno@clisp.org>
69497
69498         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69499         lib/isnanl.h.
69500         (Include): Update.
69501         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69502         * lib/vasnprintf.c: Update.
69503         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69504         tests/test-isnanl.h, remove tests/test-isnanl.c.
69505         (Makefile.am): Update.
69506         * tests/test-isnanl-nolibm.c: New file.
69507         * tests/test-isnanl.h: New file.
69508         * tests/test-isnanl.c: Remove file.
69509
69510 2007-03-21  Jim Meyering  <jim@meyering.net>
69511
69512         When trying to open ".", treat ESTALE like EACCES.
69513         * lib/savewd.c (savewd_save): Resort to forking not just upon
69514         failure with EACCES, but also when errno is ESTALE.
69515
69516 2007-03-20  Bruno Haible  <bruno@clisp.org>
69517
69518         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69519         Needed on AIX 5.1. Reported by Matthew Woehlke.
69520
69521 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         Suggestions by Bruno Haible:
69524         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69525         our own.
69526         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
69527         * modules/acl (Depends-on): Add gettext.
69528
69529 2007-03-19  Bruno Haible  <bruno@clisp.org>
69530
69531         * modules/iconvme: Remove file.
69532         * lib/iconvme.h: Remove file.
69533         * lib/iconvme.c: Remove file.
69534         * m4/iconvme.m4: Remove file.
69535
69536 2007-03-19  Bruno Haible  <bruno@clisp.org>
69537
69538         * doc/relocatable-maint.texi: Break long shell script line.
69539         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69540
69541 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69542
69543         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
69544         handle file_has_acl.
69545         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
69546         * lib/acl.c: Move header inclusions and related macro defns into
69547         lib/acl-internal.h.
69548         (S_ISLNK): Remove defn, since that's now done for us.
69549         (file_has_acl): Move to lib/file-has-acl.c.
69550         Call acl_trivial if available.  This is the crucial part of the fix.
69551         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
69552         shared within the library.  Rewrite a bit, partly to make it compatible
69553         with the GNU coding style.
69554         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
69555         Remove unnecessary double-quotes.
69556         Don't test for acl_to_text; the build will catch that.
69557         Replace acl_entries if it doesn't exist and it is needed.
69558         Check for -lsec and acl_trivial (as used on Solaris 10).
69559         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
69560         lib/file-has-acl.c.
69561         (Depends-on): Add sys_stat, for S_ISLNK.
69562
69563 2007-03-19  Ben Pfaff  <blp@gnu.org>
69564
69565         * doc/gnulib.texi: Fix typos.
69566         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69567
69568 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69569
69570         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
69571         If size is zero here, buf must be zero.
69572
69573 2007-03-19  Simon Josefsson  <simon@josefsson.org>
69574
69575         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
69576         <bruno@clisp.org>.
69577
69578 2007-03-18  Bruno Haible  <bruno@clisp.org>
69579
69580         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
69581         Suggested by Eric Blake.
69582
69583 2007-03-18  Ben Pfaff  <blp@gnu.org>
69584
69585         * doc/relocatable.texi: Recommend using as prefix a directory
69586         that does not exist and will never be created.  Based on
69587         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
69588         and others.
69589
69590 2007-03-17  Bruno Haible  <bruno@clisp.org>
69591
69592         * lib/fchownat.c: Include lchown.h.
69593
69594 2007-03-17  Bruno Haible  <bruno@clisp.org>
69595
69596         Fix endless loop when the given allocated size was > INT_MAX.
69597         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
69598         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
69599         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
69600         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
69601         * lib/sprintf.c (sprintf): Likewise.
69602
69603 2007-03-17  Bruno Haible  <bruno@clisp.org>
69604
69605         * tests/test-argp-2.sh (func_compare): Output a context diff.
69606
69607 2007-03-17  Bruno Haible  <bruno@clisp.org>
69608
69609         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
69610         locale's decimal-point character.
69611
69612 2007-03-17  Bruno Haible  <bruno@clisp.org>
69613
69614         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
69615         before comparing it. Needed because on some platforms (e.g. x86) a
69616         'long double' occupies less bytes than sizeof (long double).
69617
69618 2007-03-17  Bruno Haible  <bruno@clisp.org>
69619
69620         * tests/test-crc.c (main): Make printf statements 64-bit clean.
69621         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
69622         * tests/test-getaddrinfo.c (simple): Likewise.
69623         * tests/test-read-file.c (main): Likewise.
69624
69625 2007-03-17  Bruno Haible  <bruno@clisp.org>
69626
69627         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
69628
69629 2007-03-17  Bruno Haible  <bruno@clisp.org>
69630
69631         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
69632         unused variable.
69633
69634 2007-03-17  Bruno Haible  <bruno@clisp.org>
69635
69636         * tests/test-c-strcasecmp.c: Include c-strcase.h.
69637         * tests/test-c-strncasecmp.c: Likewise.
69638
69639 2007-03-17  Bruno Haible  <bruno@clisp.org>
69640
69641         * modules/stdlib (Depends-on): Add unistd.
69642         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
69643         Needed for MacOS X 10.3.
69644
69645 2007-03-17  Bruno Haible  <bruno@clisp.org>
69646
69647         * lib/unistr/u-strdup.h: Include <stdlib.h>.
69648
69649 2007-03-17  Bruno Haible  <bruno@clisp.org>
69650
69651         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
69652
69653 2007-03-17  Bruno Haible  <bruno@clisp.org>
69654
69655         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
69656         to reflect files copied from gnulib (with or without modifications).
69657         Suggested by Jim Meyering.
69658
69659 2007-03-17  Eric Blake  <ebb9@byu.net>
69660
69661         * NEWS: Document stdlib change from 2007-02-18.
69662
69663 2007-03-17  Jim Meyering  <jim@meyering.net>
69664
69665         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
69666         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
69667         someone uses a name containing shell meta-characters.
69668         Reported by Alfred M. Szmidt.
69669
69670         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
69671
69672 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69673
69674         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
69675         and copy gettext configuration files only if configure.ac contains
69676         a use of AM_GNU_GETTEXT_VERSION.
69677
69678 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69679
69680         * build-aux/bootstrap (gnulib_name): New variable.
69681         (gnulib_tool_options): Use it.
69682
69683 2007-03-13  Simon Josefsson  <simon@josefsson.org>
69684
69685         * tests/test-des.c: Use new namespace.
69686
69687 2007-03-15  Bruno Haible  <bruno@clisp.org>
69688
69689         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
69690         Reported by James Youngman <jay@gnu.org>.
69691
69692 2007-03-15  Bruno Haible  <bruno@clisp.org>
69693
69694         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
69695         declared prototype. Needed with cc on OSF/1 5.1.
69696
69697 2007-03-15  Bruno Haible  <bruno@clisp.org>
69698
69699         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
69700         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
69701         (struct gl_list_implementation): Add dispose_fn argument to the
69702         'create_empty', 'create' methods.
69703         (struct gl_list_impl_base): Add field 'dispose_fn'.
69704         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
69705         argument.
69706         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
69707         dispose_fn argument.
69708         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
69709         dispose_fn on the dropped values.
69710         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
69711         dispose_fn argument.
69712         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
69713         dropped values.
69714         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
69715         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69716         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
69717         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69718         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
69719         argument.
69720         (gl_tree_list_free): Call dispose_fn on the dropped values.
69721         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
69722         the dropped values.
69723         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69724         Add dispose_fn argument.
69725         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
69726         Call dispose_fn on the dropped values.
69727         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
69728         Add dispose_fn argument.
69729         (gl_sublist_create): Initialize the 'dispose_fn' field.
69730         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
69731         * tests/test-array_list.c (main): Update.
69732         * tests/test-carray_list.c (main): Update.
69733         * tests/test-avltree_list.c (main): Update.
69734         * tests/test-rbtree_list.c (main): Update.
69735         * tests/test-avltreehash_list.c (main): Update.
69736         * tests/test-rbtreehash_list.c (main): Update.
69737         * tests/test-linked_list.c (main): Update.
69738         * tests/test-linkedhash_list.c (main): Update.
69739         * tests/test-array_oset.c (main): Update.
69740
69741 2007-03-15  Bruno Haible  <bruno@clisp.org>
69742
69743         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
69744         (gl_oset_create_empty): Add dispose_fn argument.
69745         (struct gl_oset_implementation): Add dispose_fn argument to
69746         'create_empty' method.
69747         (struct gl_oset_impl_base): Add dispose_fn field.
69748         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
69749         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
69750         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
69751         values.
69752         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
69753         (gl_tree_oset_free): Call dispose_fn on the dropped values.
69754         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69755         dropped value.
69756         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69757         dropped value.
69758         * tests/test-array_oset.c (main): Update.
69759         * tests/test-avltree_oset.c (main): Update.
69760         * tests/test-rbtree_oset.c (main): Update.
69761         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
69762
69763 2007-03-13  Bruno Haible  <bruno@clisp.org>
69764
69765         * tests/test-stdbool.c (i): Update after last patch.
69766
69767 2007-03-12  Bruno Haible  <bruno@clisp.org>
69768
69769         * lib/quotearg.c: Include <wctype.h> early, before the definition of
69770         the iswprint macro. Needed on Solaris 2.5.1.
69771
69772 2007-03-12  Bruno Haible  <bruno@clisp.org>
69773
69774         * tests/test-printf-frexp.c (main): Declare x as volatile.
69775
69776 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69777
69778         * doc/gnulib.texi (Build robot for gnulib): New section.
69779
69780 2007-03-12  Jim Meyering  <jim@meyering.net>
69781
69782         * build-aux/bootstrap: New file.
69783         * build-aux/bootstrap.conf: New file, from coreutils.
69784
69785 2007-03-11  Bruno Haible  <bruno@clisp.org>
69786
69787         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
69788
69789 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69790
69791         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
69792         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
69793         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
69794
69795 2007-03-11  Bruno Haible  <bruno@clisp.org>
69796
69797         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
69798         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
69799
69800 2007-03-11  Bruno Haible  <bruno@clisp.org>
69801
69802         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
69803         formula. Needed for SunPRO C 5.0.
69804
69805 2007-03-11  Bruno Haible  <bruno@clisp.org>
69806
69807         * modules/long-options (Depends-on): Add getopt.
69808
69809 2007-03-11  Bruno Haible  <bruno@clisp.org>
69810
69811         * modules/modechange (Depends-on): Add stdbool.
69812
69813 2007-03-11  Bruno Haible  <bruno@clisp.org>
69814
69815         * modules/i-ring (Depends-on): Add stdbool.
69816
69817 2007-03-11  Bruno Haible  <bruno@clisp.org>
69818
69819         * modules/gc-des (Depends-on): Add stdbool.
69820
69821 2007-03-11  Bruno Haible  <bruno@clisp.org>
69822
69823         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
69824
69825 2007-03-11  Bruno Haible  <bruno@clisp.org>
69826
69827         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
69828
69829 2007-03-11  Bruno Haible  <bruno@clisp.org>
69830
69831         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
69832
69833 2007-03-11  Bruno Haible  <bruno@clisp.org>
69834
69835         * lib/vasnprintf.c (sprintf): Undefine.
69836
69837 2007-03-11  Bruno Haible  <bruno@clisp.org>
69838
69839         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
69840         initializers in SunPRO C and Compaq C compilers.
69841
69842 2007-03-11  Bruno Haible  <bruno@clisp.org>
69843
69844         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
69845         decrementing code ANSI C compliant.
69846
69847 2007-03-11  Bruno Haible  <bruno@clisp.org>
69848
69849         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
69850         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
69851
69852 2007-03-11  Bruno Haible  <bruno@clisp.org>
69853
69854         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
69855         <stdbool.h> substitute doesn't pass.
69856
69857 2007-03-11  Bruno Haible  <bruno@clisp.org>
69858
69859         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
69860
69861 2007-03-11  Bruno Haible  <bruno@clisp.org>
69862
69863         * gnulib-tool (func_create_megatestdir): Create also an autobuild
69864         script, for submission to autobuild.josefsson.org.
69865
69866 2007-03-10  Bruno Haible  <bruno@clisp.org>
69867
69868         * modules/canonicalize-lgpl-tests: New file.
69869         * tests/test-canonicalize-lgpl.sh: New file.
69870         * tests/test-canonicalize-lgpl.c: New file.
69871
69872         * modules/c-strcase-tests: New file.
69873         * tests/test-c-strcase.sh: New file.
69874         * tests/test-c-strcasecmp.c: New file.
69875         * tests/test-c-strncasecmp.c: New file.
69876
69877         * modules/atexit-tests: New file.
69878         * tests/test-atexit.sh: New file.
69879         * tests/test-atexit.c: New file.
69880
69881 2007-03-10  Bruno Haible  <bruno@clisp.org>
69882
69883         * tests/test-binary-io.sh: Use temporary filenames that are not so
69884         likely to clash with those of other tests (in a parallel make).
69885         * tests/test-binary-io.c: Likewise.
69886
69887 2007-03-10  Bruno Haible  <bruno@clisp.org>
69888
69889         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
69890         fallback; use #error instead.
69891         Suggested by Simon Josefsson.
69892
69893 2007-03-10  Bruno Haible  <bruno@clisp.org>
69894
69895         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
69896         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
69897         first and the last.
69898
69899 2007-03-10  Bruno Haible  <bruno@clisp.org>
69900
69901         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
69902
69903 2007-03-10  Bruno Haible  <bruno@clisp.org>
69904
69905         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
69906         "make distcheck".
69907         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
69908         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
69909         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
69910
69911 2007-03-10  Bruno Haible  <bruno@clisp.org>
69912
69913         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
69914         variable.
69915         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
69916         variable.
69917
69918 2007-03-09  Eric Blake  <ebb9@byu.net>
69919         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
69920
69921         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
69922         types are not being provided by gnulib.
69923         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
69924         types are supported.
69925
69926 2007-03-10  Bruno Haible  <bruno@clisp.org>
69927
69928         * lib/stdio_.h (__attribute__): New macro.
69929         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
69930         vsprintf): Specify __attribute__ __format__ for GCC.
69931         Suggested by Eric Blake.
69932
69933 2007-03-09  Bruno Haible  <bruno@clisp.org>
69934
69935         * modules/printf-posix-tests: New file.
69936         * tests/test-printf-posix.sh: New file.
69937         * tests/test-printf-posix.c: New file.
69938
69939         * modules/printf-posix: New file.
69940         * lib/printf.c: New file.
69941         * m4/printf-posix-rpl.m4: New file.
69942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
69943         REPLACE_PRINTF.
69944         * lib/stdio_.h (printf): New declaration.
69945         (format, __format__, ____printf____, ____scanf____, ____strftime____,
69946         ____strfmon____): New macros.
69947         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
69948         REPLACE_PRINTF.
69949
69950 2007-03-09  Bruno Haible  <bruno@clisp.org>
69951
69952         * tests/test-vasnprintf-posix2.sh: New file.
69953         * tests/test-vasnprintf-posix2.c: New file.
69954         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
69955         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
69956         (Makefile.am): Activate test-vasnprintf-posix2.sh.
69957
69958         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
69959         a locale dependent decimal point, rather than always '.'.
69960
69961 2007-03-09  Eric Blake  <ebb9@byu.net>
69962
69963         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
69964         spite of platforms like Tandem/NSK that define it to -1.
69965
69966 2007-03-08  Bruno Haible  <bruno@clisp.org>
69967
69968         * modules/vprintf-posix-tests: New file.
69969         * tests/test-vprintf-posix.sh: New file.
69970         * tests/test-vprintf-posix.c: New file.
69971         * tests/test-printf-posix.h: New file.
69972
69973         * modules/vprintf-posix: New file.
69974         * lib/vprintf.c: New file.
69975         * m4/vprintf-posix.m4: New file.
69976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
69977         REPLACE_VPRINTF.
69978         * lib/stdio_.h (vprintf): New declaration.
69979         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
69980         REPLACE_VPRINTF.
69981
69982 2007-03-08  Bruno Haible  <bruno@clisp.org>
69983
69984         * modules/fprintf-posix-tests: New file.
69985         * tests/test-fprintf-posix.sh: New file.
69986         * tests/test-fprintf-posix.c: New file.
69987
69988         * modules/fprintf-posix: New file.
69989         * lib/fprintf.c: New file.
69990         * m4/fprintf-posix.m4: New file.
69991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
69992         REPLACE_FPRINTF.
69993         * lib/stdio_.h (fprintf): New declaration.
69994         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
69995         REPLACE_FPRINTF.
69996
69997 2007-03-08  Bruno Haible  <bruno@clisp.org>
69998
69999         * modules/vfprintf-posix-tests: New file.
70000         * tests/test-vfprintf-posix.sh: New file.
70001         * tests/test-vfprintf-posix.c: New file.
70002         * tests/test-fprintf-posix.h: New file.
70003         * tests/test-fprintf-posix.out: New file.
70004
70005         * modules/vfprintf-posix: New file.
70006         * lib/vfprintf.c: New file.
70007         * m4/vfprintf-posix.m4: New file.
70008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70009         REPLACE_VFPRINTF.
70010         * lib/stdio_.h (vfprintf): New declaration.
70011         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70012         REPLACE_VFPRINTF.
70013
70014 2007-03-08  Bruno Haible  <bruno@clisp.org>
70015
70016         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70017
70018 2007-03-08  Bruno Haible  <bruno@clisp.org>
70019
70020         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70021         instead of 'expr' invocations.
70022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70023         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70024         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70026         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70027         Suggested by Paul Eggert.
70028
70029 2007-03-08  Bruno Haible  <bruno@clisp.org>
70030
70031         * modules/fseterr-tests: New file.
70032         * tests/test-fseterr.c: New file.
70033
70034         * modules/fseterr: New file.
70035         * lib/fseterr.h: New file.
70036         * lib/fseterr.c: New file.
70037
70038 2007-03-08  Bruno Haible  <bruno@clisp.org>
70039
70040         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70041         * lib/getopt_.h: Likewise.
70042         * lib/mbswidth.h: Likewise.
70043         * lib/setenv.h: Likewise.
70044         * lib/vasnprintf.h: Likewise.
70045         * lib/vasprintf.h: Likewise.
70046         * lib/verror.h: Likewise.
70047         * lib/xsetenv.h: Likewise.
70048         * lib/xvasprintf.h: Likewise.
70049
70050 2007-03-08  Jim Meyering  <jim@meyering.net>
70051
70052         * users.txt: Add parted.
70053
70054         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70055
70056 2007-03-07  Bruno Haible  <bruno@clisp.org>
70057
70058         * m4/printf.m4: Make the shell script snippets copy&pastable.
70059
70060 2007-03-02  Bruno Haible  <bruno@clisp.org>
70061
70062         * lib/netinet_in_.h: New file.
70063         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70064         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70065         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70066         (Depends-on): Add absolute-header.
70067         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70068         into netinet/in.h.
70069
70070 2007-03-03  Bruno Haible  <bruno@clisp.org>
70071
70072         * lib/sys_select_.h: New file.
70073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70074         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70075         * modules/sys_select (Files): Add lib/sys_select_.h.
70076         (Depends-on): Add absolute-header.
70077         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70078         into sys/select.h.
70079
70080 2007-03-02  Bruno Haible  <bruno@clisp.org>
70081
70082         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70083         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70084         values.
70085         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70086         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70087         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70088         * modules/sys_socket (Depends-on): Add absolute-header.
70089         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70090         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70091         (Include): Remove requirement of inclusion of <sys/types.h>.
70092
70093 2007-03-02  Bruno Haible  <bruno@clisp.org>
70094
70095         * lib/byteswap_.h (bswap_32): Fix formula.
70096
70097 2007-03-06  Bruno Haible  <bruno@clisp.org>
70098
70099         * modules/sprintf-posix-tests: New file.
70100         * tests/test-sprintf-posix.c: New file.
70101
70102         * modules/sprintf-posix: New file.
70103         * lib/sprintf.c: New file.
70104         * m4/sprintf-posix.m4: New file.
70105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70106         REPLACE_SPRINTF.
70107         * lib/stdio_.h (sprintf): New declaration.
70108         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70109         REPLACE_SPRINTF.
70110
70111 2007-03-06  Bruno Haible  <bruno@clisp.org>
70112
70113         * modules/vsprintf-posix-tests: New file.
70114         * tests/test-vsprintf-posix.c: New file.
70115         * tests/test-sprintf-posix.h: New file.
70116
70117         * modules/vsprintf-posix: New file.
70118         * lib/vsprintf.c: New file.
70119         * m4/vsprintf-posix.m4: New file.
70120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70121         REPLACE_VSPRINTF.
70122         * lib/stdio_.h (vsprintf): New declaration.
70123         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70124         REPLACE_VSPRINTF.
70125
70126 2007-03-06  Bruno Haible  <bruno@clisp.org>
70127
70128         * modules/vsnprintf (Depend-on): Remove minmax.
70129
70130 2007-03-06  Bruno Haible  <bruno@clisp.org>
70131
70132         * modules/snprintf-posix-tests: New file.
70133         * tests/test-snprintf-posix.c: New file.
70134
70135         * modules/snprintf-posix: New file.
70136         * m4/snprintf-posix.m4: New file.
70137         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70138         gl_FUNC_SNPRINTF.
70139         (gl_FUNC_SNPRINTF): Invoke it.
70140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70141         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70142         is set.
70143         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70144
70145 2007-03-06  Bruno Haible  <bruno@clisp.org>
70146
70147         * modules/vsnprintf-posix-tests: New file.
70148         * tests/test-vsnprintf-posix.c: New file.
70149         * tests/test-snprintf-posix.h: New file.
70150
70151         * modules/vsnprintf-posix: New file.
70152         * m4/vsnprintf-posix.m4: New file.
70153         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70154         gl_FUNC_VSNPRINTF.
70155         (gl_FUNC_VSNPRINTF): Invoke it.
70156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70157         * lib/stdio_.h (vsnprintf): Define as a replacement if
70158         REPLACE_VSNPRINTF is set.
70159         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70160
70161 2007-03-06  Bruno Haible  <bruno@clisp.org>
70162
70163         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70164         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70165
70166 2007-03-06  Bruno Haible  <bruno@clisp.org>
70167
70168         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70169         (asinl): Declare also if HAVE_DECL_ASINL is set.
70170         (atanl): Declare also if HAVE_DECL_ATANL is set.
70171         (ceill): Declare also if HAVE_DECL_CEILL is set.
70172         (cosl): Declare also if HAVE_DECL_COSL is set.
70173         (expl): Declare also if HAVE_DECL_EXPL is set.
70174         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70175         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70176         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70177         (logl): Declare also if HAVE_DECL_LOGL is set.
70178         (sinl): Declare also if HAVE_DECL_SINL is set.
70179         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70180         (tanl): Declare also if HAVE_DECL_TANL is set.
70181         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70183         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70184         declaration of frexpl, ldexpl.
70185         * modules/printf-frexpl (Depends-on): Add math.
70186         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70187
70188 2007-03-05  Bruno Haible  <bruno@clisp.org>
70189
70190         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70191         frexpl and ldexpl are declared.
70192         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70193
70194 2007-03-05  Bruno Haible  <bruno@clisp.org>
70195
70196         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70197         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70198
70199 2007-03-05  Bruno Haible  <bruno@clisp.org>
70200
70201         * lib/stdio_.h: Include <stddef.h>.
70202
70203 2007-03-05  Bruno Haible  <bruno@clisp.org>
70204
70205         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70206
70207 2007-03-05  Bruno Haible  <bruno@clisp.org>
70208
70209         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70210         NetBSD 4, from Ralf Wildenhues.
70211
70212 2007-03-04  Bruno Haible  <bruno@clisp.org>
70213
70214         * lib/vasprintf.h: Update #if logic for the case when the functions
70215         exist but are overridden.
70216
70217 2007-03-04  Bruno Haible  <bruno@clisp.org>
70218
70219         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70220         implementations: glibc-2.4 and MacOS X 10.3.
70221         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70222         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70223         * tests/test-vasprintf-posix.c (test_function): Likewise.
70224
70225 2007-03-04  Bruno Haible  <bruno@clisp.org>
70226
70227         * modules/vasprintf-posix-tests: New file.
70228         * tests/test-vasprintf-posix.c: New file.
70229
70230         * modules/vasprintf-posix: New file.
70231         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70232         defined.
70233         * m4/vasprintf-posix.m4: New file.
70234         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70235         gl_FUNC_VASPRINTF.
70236         (gl_FUNC_VASPRINTF): Invoke it.
70237         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70238         here.
70239         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70240
70241 2007-03-04  Bruno Haible  <bruno@clisp.org>
70242
70243         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70244         REPLACE_GETTIMEOFDAY.
70245         * modules/sys_time (Makefile.am): Likewise.
70246         * m4/sys_time_h.m4: Likewise.
70247         * m4/gettimeofday.m4: Likewise.
70248
70249 2007-03-04  Bruno Haible  <bruno@clisp.org>
70250
70251         * modules/vasnprintf-posix-tests: New file.
70252         * tests/test-vasnprintf-posix.c: New file.
70253
70254         * modules/vasnprintf-posix: New file.
70255         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70256         printf-frexpl.h.
70257         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70258         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70259         REPLACE_VASNPRINTF is defined.
70260         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70261         gl_FUNC_VASNPRINTF.
70262         (gl_FUNC_VASNPRINTF): Invoke it.
70263         * m4/vasnprintf-posix.m4: New file.
70264         * m4/printf.m4: New file.
70265
70266 2007-03-04  Bruno Haible  <bruno@clisp.org>
70267
70268         Compile progreloc.c only if --enable-relocatable is specified.
70269         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70270         if --enable-relocatable was specified.
70271         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70272         lib_SOURCES.
70273
70274 2007-03-04  Jim Meyering  <jim@meyering.net>
70275
70276         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70277         Use it consistently, rather than enumerating errno constants.
70278
70279 2007-03-04  Bruno Haible  <bruno@clisp.org>
70280
70281         * modules/xvasprintf-tests: New file.
70282         * tests/test-xvasprintf.c: New file.
70283
70284         * modules/vasprintf-tests: New file.
70285         * tests/test-vasprintf.c: New file.
70286
70287         * modules/vasnprintf-tests: New file.
70288         * tests/test-vasnprintf.c: New file.
70289
70290         * modules/vsnprintf-tests: New file.
70291         * tests/test-vsnprintf.c: New file.
70292
70293         * modules/snprintf-tests: New file.
70294         * tests/test-snprintf.c: New file.
70295
70296 2007-03-04  Bruno Haible  <bruno@clisp.org>
70297
70298         Compile relocatable.c only if --enable-relocatable is specified.
70299         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70300         gl_RELOCATABLE_LIBRARY.
70301         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70302         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70303         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70304         gl_RELOCATABLE_LIBRARY.
70305         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70306         (Makefile.am): Remove lib_SOURCES.
70307         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70308         gl_RELOCATABLE_LIBRARY.
70309         (Makefile.am): Remove lib_SOURCES.
70310         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70311         always.
70312         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70313         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70314
70315 2007-03-04  Bruno Haible  <bruno@clisp.org>
70316
70317         * modules/argmatch-tests: New file.
70318         * tests/test-argmatch.c: New file.
70319
70320         * tests/test-allocsa.c (main): Halve the number of loop runs.
70321
70322         * modules/alloca-opt-tests: New file.
70323         * tests/test-alloca-opt.c: New file.
70324
70325 2007-03-04  Jim Meyering  <jim@meyering.net>
70326
70327         Work around difference between Linux ACLs and Solaris 10 ZFS.
70328         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70329         for EINVAL.
70330
70331 2007-03-03  Bruno Haible  <bruno@clisp.org>
70332
70333         * modules/relocatable-prog (Depends-on): Add back progreloc's
70334         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70335
70336 2007-03-03  Bruno Haible  <bruno@clisp.org>
70337
70338         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70339         * modules/relocatable-lib: New file.
70340
70341 2007-03-03  Bruno Haible  <bruno@clisp.org>
70342
70343         * modules/relocatable-prog: Renamed from modules/relocatable.
70344         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70345
70346 2007-03-03  Bruno Haible  <bruno@clisp.org>
70347
70348         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70349         m4/relocatable-lib.m4.
70350         (Depends-on): Remove 'relocatable'.
70351         (configure.ac): Add gl_RELOCATABLE_NOP.
70352
70353 2007-03-03  Bruno Haible  <bruno@clisp.org>
70354
70355         * modules/relocatable-prog-wrapper: New file.
70356         * modules/relocatable (Depends-on): Add it. Remove all other
70357         dependencies except progname.
70358         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70359
70360         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70361         (gl_FUNC_STRERROR): Nop.
70362         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70363
70364         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70365         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70366
70367         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70368         (gl_FUNC_READLINK): Update.
70369
70370         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70371
70372 2007-03-03  Bruno Haible  <bruno@clisp.org>
70373
70374         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70375         * modules/xreadlink (Depends-on): Add unistd.
70376         * modules/xreadlink-with-size (Depends-on): Likewise.
70377
70378 2007-03-03  Bruno Haible  <bruno@clisp.org>
70379
70380         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70381         extracted from gt_FUNC_SETENV.
70382         (gt_FUNC_SETENV): Remove macro.
70383         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70384         remove gt_FUNC_SETENV.
70385
70386 2007-03-03  Bruno Haible  <bruno@clisp.org>
70387
70388         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70389         ENABLE_RELOCATABLE here.
70390         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70391
70392 2007-03-03  Bruno Haible  <bruno@clisp.org>
70393
70394         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70395         * tests/test-rbtreehash_list.c: Include progname.h.
70396         (main): Call set_program_name.
70397
70398         * modules/rbtree-oset-tests (Depends-on): Add progname.
70399         * tests/test-rbtree_oset.c: Include progname.h.
70400         (main): Call set_program_name.
70401
70402         * modules/rbtree-list-tests (Depends-on): Add progname.
70403         * tests/test-rbtree_list.c: Include progname.h.
70404         (main): Call set_program_name.
70405
70406         * modules/linked-list-tests (Depends-on): Add progname.
70407         * tests/test-linked_list.c: Include progname.h.
70408         (main): Call set_program_name.
70409
70410 2007-03-03  Bruno Haible  <bruno@clisp.org>
70411
70412         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70413         All uses of __restrict changed to _Restrict_.
70414         * lib/glob_.h (__restrict): Remove macro.
70415
70416 2007-03-02  Bruno Haible  <bruno@clisp.org>
70417
70418         * modules/gettext (configure.ac): Require gettext infrastructure
70419         from version 0.16.1.
70420
70421 2007-03-02  Bruno Haible  <bruno@clisp.org>
70422
70423         * modules/linkedhash-list-tests (Depends-on): Add progname.
70424         * tests/test-linkedhash_list.c: Include progname.h.
70425         (main): Call set_program_name.
70426
70427         * modules/carray-list-tests (Depends-on): Add progname.
70428         * tests/test-carray_list.c: Include progname.h.
70429         (main): Call set_program_name.
70430
70431         * modules/avltreehash-list-tests (Depends-on): Add progname.
70432         * tests/test-avltreehash_list.c: Include progname.h.
70433         (main): Call set_program_name.
70434
70435         * modules/avltree-oset-tests (Depends-on): Add progname.
70436         * tests/test-avltree_oset.c: Include progname.h.
70437         (main): Call set_program_name.
70438
70439         * modules/avltree-list-tests (Depends-on): Add progname.
70440         * tests/test-avltree_list.c: Include progname.h.
70441         (main): Call set_program_name.
70442
70443         * modules/array-oset-tests (Depends-on): Add progname.
70444         * tests/test-array_oset.c: Include progname.h.
70445         (main): Call set_program_name.
70446
70447         * modules/array-list-tests (Depends-on): Add progname.
70448         * tests/test-array_list.c: Include progname.h.
70449         (main): Call set_program_name.
70450
70451         * modules/argp-tests (Depends-on): Add progname.
70452         * tests/test-argp.c: Include argp.h first. Include progname.h.
70453         (main): Call set_program_name.
70454
70455 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70456
70457         * doc/gnulib-tool.texi (Initial import): Reword description of
70458         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70459         limited effect even if defined after the first system include.
70460
70461 2007-03-01  Bruno Haible  <bruno@clisp.org>
70462
70463         * build-aux/config.libpath: Update to libtool-1.5.22.
70464         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70465
70466 2007-03-01  Bruno Haible  <bruno@clisp.org>
70467
70468         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70469         foo_CFLAGS.
70470         Reported by Ralf Wildenhues.
70471
70472 2007-03-01  Bruno Haible  <bruno@clisp.org>
70473
70474         * build-aux/install-reloc: Remove object files left over by some
70475         compilers.
70476         Reported by Ralf Wildenhues.
70477
70478 2007-03-01  Bruno Haible  <bruno@clisp.org>
70479
70480         * build-aux/install-reloc: Break long lines.
70481
70482 2007-03-01  Bruno Haible  <bruno@clisp.org>
70483
70484         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70485         Reported by Ralf Wildenhues.
70486
70487 2007-03-01  Bruno Haible  <bruno@clisp.org>
70488
70489         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70490         include ordering constraints.
70491
70492 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70496         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70497         as another example.
70498         * lib/time_.h: Fix misspelling.
70499         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70500         Require gl_HEADER_TIME_H_DEFAULTS.
70501         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70502         * m4/time_r.m4 (gl_TIME_R): Likewise.
70503         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70504
70505 2007-03-01  Bruno Haible  <bruno@clisp.org>
70506
70507         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70508         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70509
70510 2007-03-01  Jim Meyering  <jim@meyering.net>
70511
70512         * modules/xreadlink (Maintainer): Add my name.
70513         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70514
70515 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70516             Bruno Haible  <bruno@clisp.org>
70517
70518         * build-aux/install-reloc: Compile also c-ctype.c.
70519         * build-aux/relocatable.sh.in: New file.
70520         * doc/relocatable.texi: New file.
70521         * doc/relocatable-maint.texi: New file.
70522         * doc/gnulib.texi: Include relocatable-maint.texi.
70523         * lib/progreloc.c: Include unistd.h unconditionally.
70524         * lib/relocwrapper.c: Include unistd.h unconditionally.
70525         Include c-ctype.h.
70526         (add_dotbin): Use c_tolower.
70527         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
70528         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
70529         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
70530         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
70531         to m4/relocatable-lib.m4.
70532         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
70533         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
70534         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
70535         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
70536         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
70537         * modules/relocatable: New file.
70538         * modules/relocatable-lib: New file.
70539         * modules/relocatable-script: New file.
70540
70541 2007-02-28  Bruno Haible  <bruno@clisp.org>
70542
70543         Import --enable-relocatable infrastructure.
70544         * build-aux/config.libpath: New file, from GNU gettext.
70545         * build-aux/install-reloc: New file, from GNU gettext.
70546         * build-aux/reloc-ldflags: New file, from GNU gettext.
70547         * lib/relocatable.h: New file, from GNU gettext.
70548         * lib/relocatable.c: New file, from GNU gettext.
70549         * lib/relocwrapper.c: New file, from GNU gettext.
70550         * m4/relocatable.m4: New file, from GNU gettext.
70551
70552 2007-02-28  Bruno Haible  <bruno@clisp.org>
70553
70554         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
70555
70556         * modules/xreadlink: New file, from GNU gettext with modifications.
70557         * lib/xreadlink.c: New file, from GNU gettext.
70558         * lib/xreadlink.h: Add comments.
70559         (xreadlink): New declaration.
70560
70561         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
70562         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
70563         lib/xreadlink-with-size.c.
70564         (configure.ac): Remove gl_XREADLINK invocation.
70565         (Makefile.am): Augment lib_SOURCES.
70566         * m4/xreadlink.m4: Remove file.
70567         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
70568         (xreadlink_with_size): Renamed from xreadink.
70569         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
70570         * modules/canonicalize (Depends-on): Replace xreadlink with
70571         xreadlink-with-size.
70572         * lib/canonicalize.c (canonicalize_filename_mode): Update.
70573
70574 2007-02-25  Jim Meyering  <jim@meyering.net>
70575
70576         * build-aux/announce-gen: When complaining about excess arguments,
70577         list them.
70578
70579 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         * README: Document signed integer overflow situation more
70582         accurately.
70583
70584 2007-02-25  Bruno Haible  <bruno@clisp.org>
70585
70586         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
70587         'a' or 'A' conversion.
70588
70589 2007-02-25  Bruno Haible  <bruno@clisp.org>
70590
70591         * modules/filename: Renamed from modules/pathname.
70592         (Files): Replace lib/pathname.h with lib/filename.h. Replace
70593         lib/concatpath.c with lib/concat-filename.c.
70594         (Makefile.am): Update.
70595         (Include): Replace pathname.h with filename.h.
70596         * lib/filename.h: Renamed from lib/pathname.h.
70597         (concatenated_filename): Renamed from concatenated_pathname.
70598         * lib/concat-filename.c: Renamed from lib/concatpath.c.
70599         (concatenated_filename): Renamed from concatenated_pathname.
70600         * lib/findprog.c: Include filename.h instead of pathname.h.
70601         (find_in_path): Update.
70602         * lib/javacomp.c: Include filename.h instead of pathname.h.
70603         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70604         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70605         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70606         is_oldgcj_14_13_usable, is_javac_usable): Update.
70607         * lib/javaexec.c: Include filename.h instead of pathname.h.
70608         (execute_java_class): Update.
70609         * modules/findprog: Update.
70610         * modules/javacomp: Update.
70611         * modules/javaexec: Update.
70612         * MODULES.html.sh (File system functions): Add 'filename', remove
70613         'pathname'.
70614
70615 2007-02-25  Bruno Haible  <bruno@clisp.org>
70616
70617         * modules/printf-frexpl-tests: New file.
70618         * tests/test-printf-frexpl.c: New file.
70619
70620         * modules/printf-frexpl: New file.
70621         * lib/printf-frexpl.h: New file.
70622         * lib/printf-frexpl.c: New file.
70623         * m4/printf-frexpl.m4: New file.
70624
70625 2007-02-25  Bruno Haible  <bruno@clisp.org>
70626
70627         * modules/printf-frexp-tests: New file.
70628         * tests/test-printf-frexp.c: New file.
70629
70630         * modules/printf-frexp: New file.
70631         * lib/printf-frexp.h: New file.
70632         * lib/printf-frexp.c: New file.
70633         * m4/printf-frexp.m4: New file.
70634
70635 2007-02-25  Bruno Haible  <bruno@clisp.org>
70636
70637         Assume automake >= 1.10 for the tests.
70638         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
70639         * modules/arctwo-tests: Likewise.
70640         * modules/argp-tests: Likewise.
70641         * modules/avltree-list-tests: Likewise.
70642         * modules/avltree-oset-tests: Likewise.
70643         * modules/avltreehash-list-tests: Likewise.
70644         * modules/carray-list-tests: Likewise.
70645         * modules/crc-tests: Likewise.
70646         * modules/des-tests: Likewise.
70647         * modules/gc-arcfour-tests: Likewise.
70648         * modules/gc-arctwo-tests: Likewise.
70649         * modules/gc-des-tests: Likewise.
70650         * modules/gc-hmac-md5-tests: Likewise.
70651         * modules/gc-hmac-sha1-tests: Likewise.
70652         * modules/gc-md2-tests: Likewise.
70653         * modules/gc-md4-tests: Likewise.
70654         * modules/gc-md5-tests: Likewise.
70655         * modules/gc-pbkdf2-sha1-tests: Likewise.
70656         * modules/gc-rijndael-tests: Likewise.
70657         * modules/gc-sha1-tests: Likewise.
70658         * modules/gc-tests: Likewise.
70659         * modules/getaddrinfo-tests: Likewise.
70660         * modules/hmac-md5-tests: Likewise.
70661         * modules/hmac-sha1-tests: Likewise.
70662         * modules/linked-list-tests: Likewise.
70663         * modules/linkedhash-list-tests: Likewise.
70664         * modules/lock-tests: Likewise.
70665         * modules/md2-tests: Likewise.
70666         * modules/md4-tests: Likewise.
70667         * modules/md5-tests: Likewise.
70668         * modules/rbtree-list-tests: Likewise.
70669         * modules/rbtree-oset-tests: Likewise.
70670         * modules/rbtreehash-list-tests: Likewise.
70671         * modules/read-file-tests: Likewise.
70672         * modules/rijndael-tests: Likewise.
70673         * modules/stdint-tests: Likewise.
70674         * modules/tls-tests: Likewise.
70675
70676 2007-02-24  Bruno Haible  <bruno@clisp.org>
70677
70678         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
70679         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
70680         function; instead check whether isnan with a double argument links.
70681         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
70682         function; instead check whether isnan with a 'long double' argument
70683         links.
70684         Reported by Eric Blake <ebb9@byu.net>.
70685
70686 2007-02-24  Bruno Haible  <bruno@clisp.org>
70687
70688         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
70689         defined.
70690         * lib/isnanl.c: Remove all code. Just include isnan.c.
70691         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
70692
70693 2007-02-25  Jim Meyering  <jim@meyering.net>
70694
70695         Avoid conflicting types for 'unsetenv' on FreeBSD.
70696         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
70697         conflicting with FreeBSD's (5.0 and 6.1) function declaration
70698         in stdlib.h.
70699
70700 2007-02-24  Bruno Haible  <bruno@clisp.org>
70701
70702         * modules/isnanl-nolibm-tests: New file.
70703         * tests/test-isnanl.c: New file.
70704
70705         * modules/isnanl-nolibm: New file.
70706         * lib/isnanl.h: New file.
70707         * lib/isnanl.c: New file.
70708         * m4/isnanl.m4: New file.
70709
70710 2007-02-24  Bruno Haible  <bruno@clisp.org>
70711
70712         * modules/isnan-nolibm-tests: New file.
70713         * tests/test-isnan.c: New file.
70714
70715         * modules/isnan-nolibm: New file.
70716         * lib/isnan.h: New file.
70717         * lib/isnan.c: New file.
70718         * m4/isnan.m4: New file.
70719
70720 2007-02-24  Bruno Haible  <bruno@clisp.org>
70721
70722         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
70723         assume that an exponent fits in 20 bits.
70724
70725 2007-02-24  Jim Meyering  <jim@meyering.net>
70726
70727         * m4/regex.m4: Update the description of the configure-time option,
70728         --without-included-regex, to state accurately what the defaults are,
70729         and perhaps to give people an idea why using this option is risky.
70730
70731 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70732
70733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
70734         loops on small arguments.  This attempts to avoid the problem
70735         Bruno Haible reported for AIX 4.3.2 in
70736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
70737
70738 2007-02-23  Bruno Haible  <bruno@clisp.org>
70739
70740         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
70741         Needed for help2man.
70742
70743 2007-02-23  Karl Berry  <karl@gnu.org>
70744
70745         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
70746         exists, foo.h should be cvs-ignored, not committed.
70747
70748 2007-02-23  Eric Blake  <ebb9@byu.net>
70749
70750         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
70751         * lib/stat-time.h (includes): Likewise.
70752         * lib/utimecmp.c (includes): Likewise.
70753         * lib/utimens.h (includes): Likewise.
70754         * lib/getdate.y (includes): Also include "timespec.h" for use
70755         internal to the module.
70756         * modules/utimens (Depends-on): Revert yesterday's patch.
70757         * modules/nanosleep (Depends-on): Add missing dependency.
70758
70759 2007-02-22  Bruno Haible  <bruno@clisp.org>
70760
70761         * lib/glob.c: Don't include getlogin_r.h.
70762
70763 2007-02-22  Jim Meyering  <jim@meyering.net>
70764
70765         * modules/utimens (Depends-on): Add timespec, required for
70766         utimens.h's inclusion of timespec.h.
70767
70768 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
70769
70770         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
70771         long unreadable paths in GNU/Linux.  Problem reported by Andreas
70772         Schwab in
70773         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
70774         I'll try to think of a better way to fix the Solaris problem.
70775
70776         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
70777         like glibc; on Solaris 10, it fails with errno == EINVAL.
70778         POSIX says the behavior is unspecified if the first argument is NULL,
70779         so play it safe and never pass NULL to the system getcwd.
70780
70781 2007-02-21  Jim Meyering  <jim@meyering.net>
70782
70783         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
70784         of gettimeofday.  It would conflict with the one now always
70785         provided via sys_time_.h.  Reported by Matthew Woehlke, as
70786         an IRIX 6.5 build failure.
70787
70788 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70789
70790         Minor fixups to port to Solaris 10 with Sun C 5.8.
70791         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
70792         * modules/getcwd (Depends-on): Add dirfd.
70793         * lib/putenv.c (putenv): #undef it.
70794         (rpl_putenv): New decl.
70795         (malloc, free): Include <stdlib.h> rather than prototyping separately.
70796
70797 2007-02-20  Bruno Haible  <bruno@clisp.org>
70798
70799         * modules/stdio-tests: New file.
70800         * tests/test-stdio.c: New file.
70801
70802         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
70803         (Depends-on): Add stdio.
70804         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70805         (Include): Use <stdio.h> instead of vsnprintf.h.
70806         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70807         HAVE_DECL_VSNPRINTF.
70808         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
70809
70810         * modules/snprintf (Files): Remove lib/snprintf.h.
70811         (Depends-on): Add stdio.
70812         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70813         (Include): Use <stdio.h> instead of snprintf.h.
70814         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70815         HAVE_DECL_SNPRINTF.
70816         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
70817         * lib/getaddrinfo.c: Likewise.
70818
70819         * modules/stdio: New file.
70820         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
70821         * lib/snprintf.h: Remove file.
70822         * lib/vsnprintf.h: Remove file.
70823         * lib/.cppi-disable: Remove snprintf.h.
70824         * m4/stdio_h.m4: New file.
70825         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
70826
70827 2007-02-20  Jim Meyering  <jim@meyering.net>
70828
70829         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
70830         used by e.g., mingw.  From Bruno Haible.
70831
70832 2007-02-19  Bruno Haible  <bruno@clisp.org>
70833
70834         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
70835         warnings.
70836         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70837
70838 2007-02-19  Bruno Haible  <bruno@clisp.org>
70839
70840         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
70841         from mingw users.
70842
70843 2007-02-19  Bruno Haible  <bruno@clisp.org>
70844
70845         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
70846         warnings.
70847         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
70848
70849 2007-02-19  Jim Meyering  <jim@meyering.net>
70850
70851         Don't use FD after a successful "fdopendir (fd)".
70852         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
70853         Reset it by calling dirfd on the just-obtained DIR*.
70854
70855         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
70856         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
70857
70858 2007-02-18  Bruno Haible  <bruno@clisp.org>
70859
70860         * lib/readlink.c: Include <unistd.h>.
70861         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
70862         HAVE_READLINK.
70863         * modules/readlink (Depends-on): Add unistd.
70864         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70865         (Include): Add <unistd.h>.
70866
70867         * lib/getlogin_r.h: Remove file.
70868         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
70869         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
70870         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
70871         HAVE_DECL_GETLOGIN_R.
70872         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
70873         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70874         (Include): Use <unistd.h> instead of getlogin_r.h.
70875
70876         * lib/getcwd.h: Remove file.
70877         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
70878         * lib/xgetcwd.c: Likewise.
70879         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
70880         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
70881         * modules/getcwd (Files): Remove lib/getcwd.h.
70882         (Depends-on): Add unistd.
70883         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70884         (Include): Use <unistd.h> instad of getcwd.h.
70885
70886         * lib/ftruncate.c: Include <unistd.h> first.
70887         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
70888         Set HAVE_FTRUNCATE.
70889         * modules/ftruncate (Depends-on): Add unistd.
70890         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70891
70892         * lib/fchdir.c: Include <unistd.h> first.
70893         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
70894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
70895         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
70896         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70897         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
70898
70899         * lib/dup2.c: Include <unistd.h> first.
70900         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
70901         HAVE_DUP2.
70902         * modules/dup2 (Depends-on): Add unistd.
70903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70904
70905         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
70906         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
70907         REPLACE_CHOWN. Don't define chown as a macro here.
70908         * modules/chown (Depends-on): Add unistd.
70909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70910
70911         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
70912         Add definition for GL_LINK_WARNING.
70913         (chown, dup2): New declarations.
70914         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
70915         link warning.
70916         (ftruncate): New declaration.
70917         (getcwd): New declaration, taken from old getcwd.h.
70918         (getlogin_r): New declaration, taken from old getlogin_r.h.
70919         (readlink): New declaration.
70920         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
70921         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
70922         (gl_PREREQ_UNISTD): Remove macro.
70923         (gl_UNISTD_MODULE_INDICATOR): New macro.
70924         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
70925         many new variables. Don't set UNISTD_H.
70926         * modules/unistd (Description): Change.
70927         (Depends-on): Add link-warning.
70928         (configure.ac): Update.
70929         (Makefile.am): Create unistd.h always. Substitute many new variables
70930         into it.
70931
70932 2007-02-18  Bruno Haible  <bruno@clisp.org>
70933
70934         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
70935         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
70936         HAVE_GETSUBOPT.
70937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
70938         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
70939         * lib/getsubopt.h: Remove file.
70940         * modules/getsubopt (Files): Remove lib/getsubopt.h.
70941         (Depends-on): Add stdlib.
70942         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70943         (Includes): Use <stdlib.h> instead of getsubopt.h.
70944         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
70945         Set HAVE_GETSUBOPT.
70946         * lib/getsubopt.c: Don't include getsubopt.h.
70947
70948 2007-02-18  Bruno Haible  <bruno@clisp.org>
70949
70950         * modules/fchdir (Depends-on): Add dup2.
70951
70952 2007-02-18  Bruno Haible  <bruno@clisp.org>
70953
70954         * lib/stdlib_.h: Handle glibc's special invocation convention
70955         specially.
70956
70957 2007-02-18  Bruno Haible  <bruno@clisp.org>
70958
70959         * modules/stdlib-tests: New file.
70960         * tests/test-stdlib.c: New file.
70961
70962         * modules/mkstemp (Files): Remove lib/mkstemp.h.
70963         (Depends-on): Add stdlib.
70964         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70965         (Includes): Use <stdlib.h> instead of mkstemp.h.
70966         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70967         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
70968         * lib/mkstemp.c: Don't include mkstemp.h.
70969         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
70970         * lib/stdlib--.h: Don't include mkstemp.h.
70971
70972         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
70973         (Depends-on): Add stdlib.
70974         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70975         (Includes): Use <stdlib.h> instead of mkdtemp.h.
70976         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70977         HAVE_MKDTEMP.
70978         * lib/mkdtemp.c: Don't include mkdtemp.h.
70979         * lib/clean-temp.c: Don't include mkdtemp.h.
70980
70981         * modules/exit (Files): Remove lib/exit.h.
70982         (Depends-on): Add stdlib.
70983         (Makefile.am): Remove lib_SOURCES.
70984         (Include): Use <stdlib.h> instead of exit.h.
70985         * lib/argmatch.c: Don't include exit.h.
70986         * lib/execute.c: Likewise.
70987         * lib/pagealign_alloc.c: Likewise.
70988         * lib/pipe.c: Likewise.
70989         * lib/wait-process.c: Likewise.
70990         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
70991         * lib/exitfail.c: Likewise.
70992         * lib/savewd.c: Likewise.
70993         * lib/xsetenv.c: Likewise.
70994
70995         * modules/stdlib: New file.
70996         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
70997         and extra comments about mkstemp().
70998         * lib/exit.h: Remove file.
70999         * lib/mkdtemp.h: Remove file.
71000         * lib/mkstemp.h: Remove file.
71001         * m4/stdlib_h.m4: New file.
71002         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71003
71004 2007-02-18  Bruno Haible  <bruno@clisp.org>
71005
71006         * modules/math-tests: New file.
71007         * tests/test-math.c: New file.
71008
71009         * modules/math: New file.
71010         * modules/mathl (Files): Remove lib/mathl.h.
71011         (Depends-on): Add math.
71012         (Makefile.am): Don't mention mathl.h.
71013         (Include): Use <math.h> instead of mathl.h.
71014         * lib/math_.h: New file.
71015         * lib/mathl.h: Remove file.
71016         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71017         mathl.h.
71018         * lib/asinl.c: Likewise.
71019         * lib/atanl.c: Likewise.
71020         * lib/ceill.c: Likewise.
71021         * lib/cosl.c: Likewise.
71022         * lib/expl.c: Likewise.
71023         * lib/floorl.c: Likewise.
71024         * lib/frexpl.c: Likewise.
71025         * lib/ldexpl.c: Likewise.
71026         * lib/logl.c: Likewise.
71027         * lib/sincosl.c: Likewise.
71028         * lib/sinl.c: Likewise.
71029         * lib/sqrtl.c: Likewise.
71030         * lib/tanl.c: Likewise.
71031         * lib/trigl.c: Likewise.
71032         * m4/math_h.m4: New file.
71033         * MODULES.html.sh (Mathematics): Add math.
71034
71035 2007-02-17  Bruno Haible  <bruno@clisp.org>
71036
71037         * modules/wctype-tests: New file.
71038         * tests/test-wctype.c: New file.
71039
71040         * modules/wchar-tests: New file.
71041         * tests/test-wchar.c: New file.
71042
71043         * modules/unistd-tests: New file.
71044         * tests/test-unistd.c: New file.
71045
71046         * modules/time-tests: New file.
71047         * tests/test-time.c: New file.
71048
71049         * modules/sysexits-tests: New file.
71050         * tests/test-sysexits.c: New file.
71051
71052         * modules/sys_time-tests: New file.
71053         * tests/test-sys_time.c: New file.
71054
71055         * modules/sys_stat-tests: New file.
71056         * tests/test-sys_stat.c: New file.
71057
71058         * modules/sys_socket-tests: New file.
71059         * tests/test-sys_socket.c: New file.
71060
71061         * modules/sys_select-tests: New file.
71062         * tests/test-sys_select.c: New file.
71063
71064         * modules/string-tests: New file.
71065         * tests/test-string.c: New file.
71066
71067         * modules/stdbool-tests: New file.
71068         * tests/test-stdbool.c: New file.
71069
71070         * modules/netinet_in-tests: New file.
71071         * tests/test-netinet_in.c: New file.
71072
71073         * modules/inttypes-tests: New file.
71074         * tests/test-inttypes.c: New file.
71075
71076         * modules/fcntl-tests: New file.
71077         * tests/test-fcntl.c: New file.
71078
71079         * modules/byteswap-tests: New file.
71080         * tests/test-byteswap.c: New file.
71081
71082         * modules/arpa_inet-tests: New file.
71083         * tests/test-arpa_inet.c: New file.
71084
71085 2007-02-17  Bruno Haible  <bruno@clisp.org>
71086
71087         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71088         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71089         if the corresponding module is not enabled. Emit link warnings if
71090         the function is used nevertheless.
71091         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71092         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71093         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71094         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71095         * modules/inttypes (Depends-on): Add link-warning.
71096         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71097         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71098         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71099         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71100         * modules/imaxdiv (configure.ac): Likewise.
71101         * modules/strtoimax (configure.ac): Likewise.
71102         * modules/strtoumax (configure.ac): Likewise.
71103
71104 2007-02-17  Bruno Haible  <bruno@clisp.org>
71105
71106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71107         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71108         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71109         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71110
71111 2007-02-17  Bruno Haible  <bruno@clisp.org>
71112
71113         * modules/link-warning: New file.
71114         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71115         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71116         * modules/string (Depends-on): Add link-warning.
71117         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71118         string.h.
71119         * MODULES.html.sh (Support for building libraries and executables): Add
71120         link-warning.
71121
71122 2007-02-17  Bruno Haible  <bruno@clisp.org>
71123
71124         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71125         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71126         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71127         long lines.
71128
71129 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71130             Bruno Haible  <bruno@clisp.org>
71131
71132         * modules/tmpfile: New file.
71133         * lib/tmpfile.c: New file.
71134         * m4/tmpfile.m4: New file.
71135         * MODULES.html.sh (func_all_modules): New section "Input/output".
71136
71137 2007-02-15  Bruno Haible  <bruno@clisp.org>
71138
71139         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71140         (supports_delete_on_close): New function.
71141         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71142
71143 2007-02-14  Bruno Haible  <bruno@clisp.org>
71144
71145         * modules/mbspcasecmp-tests: New file.
71146         * tests/test-mbspcasecmp.sh: New file.
71147         * tests/test-mbspcasecmp.c: New file.
71148
71149         New module mbspcasecmp.
71150         * modules/mbspcasecmp: New file.
71151         * lib/mbspcasecmp.c: New file.
71152         * lib/string_.h (strncasecmp): Change warning message.
71153         (mbspcasecmp): New declaration.
71154         * m4/mbspcasecmp.m4: New file.
71155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71156         GNULIB_MBSPCASECMP.
71157         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71158         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71159
71160 2007-02-14  Bruno Haible  <bruno@clisp.org>
71161
71162         * modules/mbsncasecmp-tests: New file.
71163         * tests/test-mbsncasecmp.sh: New file.
71164         * tests/test-mbsncasecmp.c: New file.
71165
71166         New module mbsncasecmp.
71167         * modules/mbsncasecmp: New file.
71168         * lib/mbsncasecmp.c: New file.
71169         * lib/string_.h (mbsncasecmp): New declaration.
71170         * m4/mbsncasecmp.m4: New file.
71171         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71172         GNULIB_MBSNCASECMP.
71173         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71174         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71175
71176 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71177
71178         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71179         Verify that it doesn't overlap with our flags.
71180         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71181         do not have the desired effect in multibyte locales; instead, use
71182         mbscasecmp.
71183         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71184         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71185         we don't require GNU fnmatch ourselves (if our users require it, they
71186         should do so explicitly).
71187
71188         Fix regex code so it doesn't rely on strcasecmp.
71189         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71190         Otherwise, include gnulib's langinfo.h.
71191         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71192         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71193         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71194         * modules/regex (FILES): Remove m4/codeset.m4.
71195         (Depends-on): Add localcharset.  Remove strcase.
71196
71197 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71198
71199         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71200         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71201
71202 2007-02-13  Bruno Haible  <bruno@clisp.org>
71203
71204         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71206
71207 2007-02-12  Bruno Haible  <bruno@clisp.org>
71208
71209         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71210         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71211         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71212         time warning rather than a link error.
71213
71214 2007-02-12  Bruno Haible  <bruno@clisp.org>
71215
71216         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71217         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71219
71220 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71223         args, not 2.
71224
71225 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         New module 'time', so that apps can include <time.h> as per
71228         POSIX and GNU instead of separate include files like time_r.h
71229         and timegm.h.  This implementation tries out a simpler approach
71230         for replacing decls in standard include files (as compared to
71231         the string module), somewhat as an experiment.
71232
71233         * config/srclist.txt: Comment out mktime.c for now.
71234         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71235         since it doesn't apply any more.  Use generic wording instead.
71236         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71237         'time'.
71238         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71239         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71240         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71241         Don't include <sys/types.h>; no longer needed since we assume C89.
71242         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71243         * lib/strftime.c: Likewise.
71244         * lib/time_r.c: Likewise.
71245         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71246         * lib/nanosleep.c: Include <time.h> first, to check interface.
71247         * lib/strptime.c: Likewise.
71248         * lib/time_r.c: Likewise.
71249         * lib/timegm.c: Likewise.
71250         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71251         needed.
71252         * lib/timegm.c: Don't include timegm.h; no longer needed.
71253         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71254         time.h now handles any problems in that area.
71255         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71256         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71257         that time.h defines struct timespec.
71258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71259         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71260         handles that.
71261         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71262         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71263         needed.  Set REPLACE_LOCALTIME.
71264         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71265         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71266         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71267         nanosleep; time_h.m4 now does that.  Don't require
71268         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71269         module handles this now.
71270         * modules/getdate (Depends-on): Remove timespec.  Add time.
71271         * modules/nanosleep (Depends-on): Likewise.
71272         * modules/stat-time (Depends-on): Likewise.
71273         * modules/nanosleep (Include): Include time.h, not timespec.h.
71274         * modules/strptime (Files): Remove lib/strptime.h.
71275         (Depends-on): Add extensions, time.
71276         (Include): Include time.h, not strptime.h.
71277         * modules/time_r (Files): Remove lib/time_r.h.
71278         (Depends-on): Add time.
71279         (Include): Include time.h, not time_r.h.
71280         * modules/timegm: Likewise.
71281         * modules/timespec (Description): Now does timespec-related decls
71282         of our own, instead of struct timespec itself.
71283         (Depends-on): Add time; remove extensions.
71284         (Maintainer): Add self.
71285         * modules/utimecmp (Depends-on): Add time; remove timespec.
71286         * modules/utimens (Depends-on): Likewise.
71287         * modules/xnanosleep (Depends-on): Likewise.
71288
71289 2007-02-11  Bruno Haible  <bruno@clisp.org>
71290
71291         * lib/c-strstr.c: Include allocsa.h.
71292         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71293         * lib/c-strcasestr.c: Include allocsa.h.
71294         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71295         * lib/strcasestr.c: Include allocsa.h.
71296         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71297         * lib/mbsstr.c: Include allocsa.h.
71298         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71299         allocsa/freesa instead of malloc/free.
71300         * lib/mbscasestr.c: Include allocsa.h.
71301         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71302         allocsa/freesa instead of malloc/free.
71303         * modules/c-strstr (Depends-on): Add allocsa.
71304         * modules/c-strcasestr (Depends-on): Likewise.
71305         * modules/strcasestr (Depends-on): Likewise.
71306         * modules/mbsstr (Depends-on): Likewise.
71307         * modules/mbscasestr (Depends-on): Likewise.
71308
71309 2007-02-11  Bruno Haible  <bruno@clisp.org>
71310
71311         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71312
71313         * modules/mbsspn-tests: New file.
71314         * tests/test-mbsspn.sh: New file.
71315         * tests/test-mbsspn.c: New file.
71316
71317 2007-02-11  Bruno Haible  <bruno@clisp.org>
71318
71319         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71320
71321         * modules/mbspbrk-tests: New file.
71322         * tests/test-mbspbrk.sh: New file.
71323         * tests/test-mbspbrk.c: New file.
71324
71325 2007-02-11  Bruno Haible  <bruno@clisp.org>
71326
71327         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71328         unneeded cast.
71329
71330         * modules/mbscspn-tests: New file.
71331         * tests/test-mbscspn.sh: New file.
71332         * tests/test-mbscspn.c: New file.
71333
71334 2007-02-11  Bruno Haible  <bruno@clisp.org>
71335
71336         * modules/mbscasecmp-tests: New file.
71337         * tests/test-mbscasecmp.sh: New file.
71338         * tests/test-mbscasecmp.c: New file.
71339
71340 2007-02-11  Bruno Haible  <bruno@clisp.org>
71341
71342         Ensure O(n) worst-case complexity of mbscasestr.
71343         * lib/mbscasestr.c: Include stdbool.h.
71344         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71345         functions.
71346         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71347         the bookkeeping indicates that it's worth it.
71348         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71349
71350         * modules/mbscasestr-tests: New file.
71351         * tests/test-mbscasestr1.c: New file.
71352         * tests/test-mbscasestr2.sh: New file.
71353         * tests/test-mbscasestr2.c: New file.
71354         * tests/test-mbscasestr3.sh: New file.
71355         * tests/test-mbscasestr3.c: New file.
71356         * tests/test-mbscasestr4.sh: New file.
71357         * tests/test-mbscasestr4.c: New file.
71358         * m4/locale-tr.m4: New file.
71359
71360 2007-02-11  Bruno Haible  <bruno@clisp.org>
71361
71362         Ensure O(n) worst-case complexity of mbsstr.
71363         * lib/mbsstr.c: Include stdbool.h.
71364         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71365         functions.
71366         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71367         bookkeeping indicates that it's worth it.
71368         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71369
71370         * modules/mbsstr-tests: New file.
71371         * tests/test-mbsstr1.c: New file.
71372         * tests/test-mbsstr2.sh: New file.
71373         * tests/test-mbsstr2.c: New file.
71374         * tests/test-mbsstr3.sh: New file.
71375         * tests/test-mbsstr3.c: New file.
71376         * m4/locale-fr.m4: New file.
71377
71378 2007-02-11  Bruno Haible  <bruno@clisp.org>
71379
71380         * lib/mbsrchr.c (mbsrchr): Fix bug.
71381
71382         * modules/mbsrchr-tests: New file.
71383         * tests/test-mbsrchr.sh: New file.
71384         * tests/test-mbsrchr.c: New file.
71385
71386 2007-02-11  Bruno Haible  <bruno@clisp.org>
71387
71388         * lib/mbschr.c (mbschr): Fix bug.
71389
71390         * modules/mbschr-tests: New file.
71391         * tests/test-mbschr.sh: New file.
71392         * tests/test-mbschr.c: New file.
71393         * m4/locale-zh.m4: New file.
71394
71395 2007-02-11  Bruno Haible  <bruno@clisp.org>
71396
71397         Support for copying multibyte string iterators.
71398         * lib/mbiter.h: Include <string.h>.
71399         (mbiter_multi_copy): New function.
71400         (mbi_copy): New macro.
71401         * lib/mbuiter.h: Include <string.h>.
71402         (mbuiter_multi_copy): New function.
71403         (mbui_copy): New macro.
71404
71405 2007-02-11  Bruno Haible  <bruno@clisp.org>
71406
71407         New module mbslen.
71408         * modules/mbslen: New file.
71409         * lib/mbslen.c: New file.
71410         * lib/string_.h (mbslen): New declaration.
71411         * m4/mbslen.m4: New file.
71412         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71413         GNULIB_MBSLEN.
71414         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71415         * MODULES.html.sh (Internationalization functions): Add mbslen.
71416
71417 2007-02-11  Bruno Haible  <bruno@clisp.org>
71418
71419         Ensure O(n) worst-case complexity of strcasestr substitute.
71420         * lib/strcasestr.c: Include stdbool.h.
71421         (knuth_morris_pratt): New function.
71422         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71423         bookkeeping indicates that it's worth it.
71424         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71425
71426         * modules/strcasestr-tests: New file.
71427         * tests/test-strcasestr.c: New file.
71428
71429 2007-02-11  Bruno Haible  <bruno@clisp.org>
71430
71431         Ensure O(n) worst-case complexity of c_strcasestr.
71432         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71433         (knuth_morris_pratt): New function.
71434         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71435         the bookkeeping indicates that it's worth it.
71436         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71437
71438         * modules/c-strcasestr-tests: New file.
71439         * tests/test-c-strcasestr.c: New file.
71440
71441 2007-02-11  Bruno Haible  <bruno@clisp.org>
71442
71443         Ensure O(n) worst-case complexity of c_strstr.
71444         * lib/c-strstr.c: Include stdbool.h, string.h.
71445         (knuth_morris_pratt): New function.
71446         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71447         bookkeeping indicates that it's worth it.
71448         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71449
71450         * lib/c-strstr.c: Complete rewrite for maintainability.
71451
71452         * modules/c-strstr-tests: New file.
71453         * tests/test-c-strstr.c: New file.
71454
71455 2007-02-11  Bruno Haible  <bruno@clisp.org>
71456
71457         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71458         5.2.1 and earlier, whereby \055 was treated just like the range
71459         delimiter '-'.
71460         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71461
71462 2007-02-08  Bruno Haible  <bruno@clisp.org>
71463
71464         * modules/regex (Depends-on): Add stdbool.
71465         Reported by Dalibor Topic <robilad@kaffe.org>.
71466
71467 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71468
71469         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71470         Prefer returning from main to exiting from it.
71471         Remove unnecessary parens after sizeof.
71472
71473 2007-02-05  Bruno Haible  <bruno@clisp.org>
71474
71475         New module mbssep.
71476         * modules/mbssep: New file.
71477         * lib/mbssep.c: New file.
71478         * lib/string_.h (strsep): Add a conditional link warning.
71479         (mbssep): New declaration.
71480         * m4/mbssep.m4: New file.
71481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71482         GNULIB_MBSSEP.
71483         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71484         * MODULES.html.sh (Internationalization functions): Add mbssep.
71485
71486 2007-02-05  Bruno Haible  <bruno@clisp.org>
71487
71488         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71489         Optimize search in case of 1 delimiter.
71490
71491 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71492
71493         * lib/acl.h: Include sys/types.h before sys/acl.h.
71494
71495 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71496
71497         Merge upstream fix for glibc bugzilla #3957:
71498
71499         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71500
71501         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71502         bit for RE_HAT_LISTS_NOT_NEWLINE.
71503         (build_charclass_op): Remove bogus comment.
71504
71505 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71506
71507         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71508
71509 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71510
71511         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71512         * lib/memmem.c [!defined _LIBC]: Include config.h.
71513
71514 2007-02-04  Bruno Haible  <bruno@clisp.org>
71515
71516         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71517         warning message.
71518
71519 2007-02-04  Bruno Haible  <bruno@clisp.org>
71520
71521         New module mbstok_r.
71522         * modules/mbstok_r: New file.
71523         * lib/mbstok_r.c: New file.
71524         * lib/string_.h (strtok_r): Change argument names to match the
71525         comments. Add a conditional link warning.
71526         (mbstok_r): New declaration.
71527         * m4/mbstok_r.m4: New file.
71528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71529         GNULIB_MBSTOK_R.
71530         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
71531         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71532
71533 2007-02-04  Bruno Haible  <bruno@clisp.org>
71534
71535         New module mbsspn.
71536         * modules/mbsspn: New file.
71537         * lib/mbsspn.c: New file.
71538         * lib/string_.h (strspn): Add a conditional link warning.
71539         (mbsspn): New declaration.
71540         * m4/mbsspn.m4: New file.
71541         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71542         GNULIB_MBSSPN.
71543         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
71544         * MODULES.html.sh (Internationalization functions): Add mbsspn.
71545
71546 2007-02-04  Bruno Haible  <bruno@clisp.org>
71547
71548         New module mbspbrk.
71549         * modules/mbspbrk: New file.
71550         * lib/mbspbrk.c: New file.
71551         * lib/string_.h (strpbrk): Add a conditional link warning.
71552         (mbspbrk): New declaration.
71553         * m4/mbspbrk.m4: New file.
71554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71555         GNULIB_MBSPBRK.
71556         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
71557         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
71558
71559 2007-02-04  Bruno Haible  <bruno@clisp.org>
71560
71561         New module mbscspn.
71562         * modules/mbscspn: New file.
71563         * lib/mbscspn.c: New file.
71564         * lib/string_.h (strcspn): Add a conditional link warning.
71565         (mbscspn): New declaration.
71566         * m4/mbscspn.m4: New file.
71567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71568         GNULIB_MBSCSPN.
71569         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
71570         * MODULES.html.sh (Internationalization functions): Add mbscspn.
71571
71572 2007-02-04  Bruno Haible  <bruno@clisp.org>
71573
71574         New module mbscasestr, reduced goal of strcasestr.
71575         * modules/mbscasestr: New file.
71576         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
71577         (mbscasestr): Renamed from strcasestr.
71578         * lib/strcasestr.c: Don't include mbuiter.h.
71579         (strcasestr): Remove support for multibyte locales.
71580         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
71581         Change the conditional link warning.
71582         (mbscasestr): New declaration.
71583         * m4/mbscasestr.m4: New file.
71584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
71585         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
71586         REPLACE_STRCASESTR.
71587         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
71588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71589         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71590         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
71591         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
71592         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71593         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
71594         (Depends-on): Remove mbuiter.
71595         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
71596
71597 2007-02-04  Bruno Haible  <bruno@clisp.org>
71598
71599         Simplify handling of strncasecmp.
71600         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
71601         the conditional link warning.
71602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71603         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
71604         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
71605         * modules/strcase (configure.ac): Don't invoke
71606         gl_STRING_MODULE_INDICATOR.
71607         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
71608
71609 2007-02-04  Bruno Haible  <bruno@clisp.org>
71610
71611         New module mbscasecmp, reduced goal of strcasecmp.
71612         * modules/mbscasecmp: New file.
71613         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
71614         (mbscasecmp): Renamed from strcasecmp.
71615         * lib/strcasecmp.c: Don't include mbuiter.h.
71616         (strcasecmp): Remove support for multibyte locales.
71617         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
71618         Change the conditional link warning.
71619         (mbscasecmp): New declaration.
71620         * m4/mbscasecmp.m4: New file.
71621         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
71622         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
71623         REPLACE_STRCASECMP.
71624         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
71625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71626         GNULIB_MBSCASECMP.
71627         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
71628         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
71629         * modules/strcase (Files): Remove m4/mbrtowc.m4.
71630         (Depends-on): Remove mbuiter.
71631         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
71632
71633 2007-02-04  Bruno Haible  <bruno@clisp.org>
71634
71635         New module mbsstr. Remove module strstr.
71636         * modules/mbsstr: New file.
71637         * modules/strstr: Remove file.
71638         * lib/mbsstr.c: Renamed from lib/strstr.c.
71639         (mbsstr): Renamed from strstr.
71640         * lib/string_.h (strstr): Remove declaration. Change the conditional
71641         link warning.
71642         (mbsstr): New declaration.
71643         * m4/mbsstr.m4: New file.
71644         * m4/strstr.m4: Remove file.
71645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
71646         REPLACE_STRSTR.
71647         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
71648         Don't initialize GNULIB_STRSTR.
71649         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
71650         substitute GNULIB_STRSTR and REPLACE_STRSTR.
71651         * MODULES.html.sh (Internationalization functions): Add mbsstr.
71652         (Support for systems lacking ANSI C 89): Remove strstr.
71653
71654 2007-02-04  Bruno Haible  <bruno@clisp.org>
71655
71656         New module mbsrchr.
71657         * modules/mbsrchr: New file.
71658         * lib/mbsrchr.c: New file.
71659         * lib/string_.h (strrchr): Add a conditional link warning.
71660         (mbsrchr): New declaration.
71661         * m4/mbsrchr.m4: New file.
71662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71663         GNULIB_MBSRCHR.
71664         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
71665         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
71666
71667 2007-02-04  Bruno Haible  <bruno@clisp.org>
71668
71669         New module mbschr.
71670         * modules/mbschr: New file.
71671         * lib/mbschr.c: New file.
71672         * lib/string_.h (strchr): Add a conditional link warning.
71673         (mbschr): New declaration.
71674         * m4/mbschr.m4: New file.
71675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71676         GNULIB_MBSCHR.
71677         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
71678         * MODULES.html.sh (Internationalization functions): Add mbschr.
71679
71680 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71681
71682         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
71683
71684         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
71685
71686 2007-02-04  Bruno Haible  <bruno@clisp.org>
71687
71688         New module description section 'configure.ac-early'.
71689         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
71690         (func_get_autoconf_early_snippet): New function.
71691         (func_import, func_create_testdir): Use it. Remove special cases for
71692         modules 'extensions' and 'lock'.
71693         * modules/extensions (configure.ac-early): Require
71694         gl_USE_SYSTEM_EXTENSIONS.
71695         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
71696
71697 2007-02-04  Bruno Haible  <bruno@clisp.org>
71698
71699         Make use of gcj-4.3's -fsource and -ftarget option.
71700         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
71701         and if so try the options -fsource and -ftarget.
71702         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
71703         source_version, ftarget_option, target_version arguments.
71704         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
71705         (is_envjavac_oldgcj_14_14_usable): Renamed from
71706         is_envjavac_gcj_14_14_usable.
71707         (is_envjavac_oldgcj_14_13_usable): Renamed from
71708         is_envjavac_gcj_14_13_usable.
71709         (is_gcj_present): Update.
71710         (is_gcj_43, is_gcj43_usable): New functions.
71711         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
71712         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
71713         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
71714         try the options -fsource and -ftarget.
71715
71716 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71717
71718         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
71719         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
71720         larger value.
71721
71722 2007-02-03  Jim Meyering  <jim@meyering.net>
71723
71724         Give tools a better chance to allocate space for very large buffers.
71725         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
71726
71727         Make pwd and readlink work also when run with an unreadable parent dir
71728         on systems with openat support.
71729         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
71730         provided getcwd function, even when we have openat support.
71731         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
71732
71733 2007-02-02  Bruno Haible  <bruno@clisp.org>
71734
71735         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71736         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
71737         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
71738         portability problems if one of these functions is only used on specific
71739         platforms.
71740         Reported by Paul Eggert.
71741
71742 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
71745         is causing more trouble than it's curing.
71746         * lib/regex_internal.h (__mempcpy): Remove.
71747         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
71748         (and make the code a tad smaller to boot).
71749         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
71750
71751 2007-02-02  Jim Meyering  <jim@meyering.net>
71752
71753         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
71754         section, not in the Makefile.am: one.
71755
71756 2007-02-02  Eric Blake  <ebb9@byu.net>
71757
71758         * lib/strchrnul.c: Always include config.h first.
71759
71760         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
71761         gnulib strstr is not necessary here.
71762
71763 2007-02-02  Simon Josefsson  <simon@josefsson.org>
71764
71765         * m4/socklen.m4: Fix typo.
71766
71767 2007-02-02  Eric Blake  <ebb9@byu.net>
71768
71769         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
71770         * modules/netinet_in (Makefile.am): Likewise.
71771
71772 2007-02-01  Bruno Haible  <bruno@clisp.org>
71773
71774         * lib/string_.h (GL_LINK_WARNING): New macro.
71775         (strcasecmp, strstr, strcasestr): If provided by the system,
71776         conditionally define as a macro that leads to a warning instead of to
71777         an error.
71778         (strncasecmp): Conditionally define as a macro that leads to a warning.
71779
71780 2007-02-01  Karl Berry  <karl@gnu.org>
71781
71782         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
71783
71784 2007-02-01  Bruno Haible  <bruno@clisp.org>
71785
71786         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
71787         renamings.
71788
71789 2007-02-01  Eric Blake  <ebb9@byu.net>
71790
71791         * modules/regex (Depends-on): Revert dependence on mempcpy.
71792         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
71793         module's definition of mempcpy.
71794         Reported by Paul Eggert.
71795
71796 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71797
71798         * lib/string_.h: If the gnulib module XYZ is not present, undefine
71799         the symbol XYZ before redefining it.  This fixes a problem with
71800         programs that don't use XYZ, when compiled on systems that define
71801         XYZ to something else.
71802
71803 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
71804
71805         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
71806         occurs when "mkdir -m foo" creates a setgid directory that is (1)
71807         writeable to group or other and (2) is intended to have a special
71808         mode bit that is set or cleared.  In such a case, the directory
71809         should be neither group- nor other-writeable until the special
71810         mode bits are right.
71811
71812 2007-01-31  Eric Blake  <ebb9@byu.net>
71813
71814         * modules/mountlist (Depends-on): Add strstr.
71815
71816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
71817         bug.
71818         * modules/string (Makefile.am): Remove redundant replacement.
71819         * modules/regex (Depends-on): Add mempcpy.
71820
71821 2007-01-31  Bruno Haible  <bruno@clisp.org>
71822
71823         New module description field 'Link'.
71824         * gnulib-tool (func_usage): Document --extract-link-directive.
71825         (sed_extract_prog): Recognize 'Link' directive.
71826         (func_get_link_directive): New function.
71827         (func_import): Show summary of link directives.
71828         Handle --extract-link-directive option.
71829         * modules/acl (Link): New section.
71830         * modules/clock-time (Link): New section.
71831         * modules/euidaccess (Link): New section.
71832         * modules/gettext (Link): New section.
71833         * modules/iconv (Link): New section.
71834         * modules/lock (Link): New section.
71835         * modules/nanosleep (Link): New section.
71836         * modules/readline (Link): New section.
71837
71838 2007-01-27  Bruno Haible  <bruno@clisp.org>
71839
71840         Enforce the use of gnulib modules for unportable <string.h> functions.
71841         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
71842         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
71843         (gl_HEADER_STRING_H_BODY): Require it.
71844         * lib/string_.h: If the gnulib module XYZ is not present, redefine
71845         the symbol XYZ to one that gives a link error.
71846         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
71847         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
71848         * modules/mempcpy (configure.ac): Likewise.
71849         * modules/memrchr (configure.ac): Likewise.
71850         * modules/stpcpy (configure.ac): Likewise.
71851         * modules/stpncpy (configure.ac): Likewise.
71852         * modules/strcase (configure.ac): Likewise.
71853         * modules/strcasestr (configure.ac): Likewise.
71854         * modules/strchrnul (configure.ac): Likewise.
71855         * modules/strdup (configure.ac): Likewise.
71856         * modules/strndup (configure.ac): Likewise.
71857         * modules/strnlen (configure.ac): Likewise.
71858         * modules/strpbrk (configure.ac): Likewise.
71859         * modules/strsep (configure.ac): Likewise.
71860         * modules/strstr (configure.ac): Likewise.
71861         * modules/strtok_r (configure.ac): Likewise.
71862
71863 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
71864
71865         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
71866
71867 2007-01-30  Jim Meyering  <jim@meyering.net>
71868
71869         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
71870
71871 2007-01-29  Bruno Haible  <bruno@clisp.org>
71872
71873         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
71874         * lib/execute.c: Likewise.
71875         * lib/pipe.c: Likewise.
71876         * lib/printf-args.h: Likewise.
71877         * lib/printf-args.c: Likewise.
71878         * lib/printf-parse.c: Likewise.
71879         * lib/vasnprintf.c: Likewise.
71880
71881 2007-01-29  Eric Blake  <ebb9@byu.net>
71882
71883         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
71884         declaration.
71885
71886 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
71887
71888         * lib/strptime.h (strptime): Use 'restrict' for args where
71889         POSIX requires this.
71890         * lib/strptime.c (strptime): Likewise.
71891         Change license notice from LGPL to GPL, since gnulib-tool will
71892         change this as needed.
71893         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
71894         defined.
71895         Include "strptime.h" first, to check interface.
71896         Do not #undef _LIBC and _NL_CURRENT.
71897         Do not include <stdlib.h>; no longer needed.
71898         Include "time_r.h" and declare ptime_locale_status
71899         only if _LIBC is not defined.
71900         (__P): Remove unused macro.
71901         (match_string): Bring back glibc version, but use it only if _LIBC
71902         is defined.
71903         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
71904         Remove unnecessary assertion and abort() call.
71905         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
71906         * m4/strptime.m4: Fix serial number comment.
71907         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
71908         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
71909         (Depends-on): Add time_r.
71910
71911 2007-01-29  Bruno Haible  <bruno@clisp.org>
71912
71913         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71914         strptime.
71915         * modules/strptime (Depends-on): Add stdbool.
71916         * lib/strptime.h: Include <time.h> always. Add comments.
71917
71918 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71919
71920         * modules/strptime: New file.
71921         * lib/strptime.h: New file.
71922         * lib/strptime.c: New file.
71923         * m4/strptime.m4: New file.
71924
71925 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71926
71927         * MODULES.html.sh: New module mpsort.
71928         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
71929
71930         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
71931         a circularity problem with HP-UX ia64 reported by Bob Proulx in
71932         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
71933         All uses changed.
71934         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
71935         All uses changed.
71936         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
71937         to _Restrict_.
71938         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
71939         the parameter matches the prototype.
71940
71941 2007-01-28  Jim Meyering  <jim@meyering.net>
71942
71943         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
71944         sys/time.h here, reverting that part of the previous patch:
71945         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
71946
71947 2007-01-28  Bruno Haible  <bruno@clisp.org>
71948
71949         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
71950         value of $(SYS_TIME_H).
71951         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
71952         remove it conditionally, too. [added by Jim Meyering]
71953         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
71954         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71955         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
71956         GETTIMEOFDAY_REPLACEMENT to 1.
71957
71958 2007-01-28  Bruno Haible  <bruno@clisp.org>
71959
71960         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
71961         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
71962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
71963         Set UNISTD_H instead of UNISTD_H2.
71964         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
71965
71966 2007-01-28  Bruno Haible  <bruno@clisp.org>
71967
71968         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
71969         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
71970
71971 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71972
71973         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
71974         (func_create_testdir): Ensure C locale for `grep' and `tr'
71975         character ranges.
71976         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
71977         ACLOCAL_AMFLAGS parsing state machine.
71978
71979 2007-01-27  Bruno Haible  <bruno@clisp.org>
71980
71981         * modules/unistr/base: Update.
71982
71983 2007-01-27  Bruno Haible  <bruno@clisp.org>
71984
71985         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
71986         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
71987         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71988         modules/unistr/u32-mbtouc.
71989         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
71990         * lib/unistr.h: Update.
71991         * lib/linebreak.c: Update.
71992         * modules/unistr/u32-mbtouc: Renamed from
71993         modules/unistr/u32-mbtouc-safe.
71994         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
71995         * lib/unistr.h: Update.
71996         * lib/unistr/u32-to-u8.c: Update.
71997         * lib/unistr/u32-to-u16.c: Update.
71998
71999 2007-01-27  Bruno Haible  <bruno@clisp.org>
72000
72001         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72002         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72003         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72004         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72005         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72006         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72007         modules/unistr/u16-mbtouc.
72008         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72009         * lib/unistr.h: Update.
72010         * lib/linebreak.c: Update.
72011         * modules/linebreak: Update.
72012         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72013         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72014         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72015         * modules/unistr/u16-mbtouc: Renamed from
72016         modules/unistr/u16-mbtouc-safe.
72017         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72018         * lib/unistr.h: Update.
72019         * lib/unistr/u16-to-u8.c: Update.
72020         * modules/unistr/u16-to-u8: Update.
72021         * lib/unistr/u16-to-u32.c: Update.
72022         * modules/unistr/u16-to-u32: Update.
72023
72024 2007-01-27  Bruno Haible  <bruno@clisp.org>
72025
72026         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72027         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72028         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72029         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72030         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72031         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72032         modules/unistr/u8-mbtouc.
72033         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72034         * lib/unistr.h: Update.
72035         * lib/striconveh.c: Update.
72036         * modules/striconveh: Update.
72037         * lib/linebreak.c: Update.
72038         * modules/linebreak: Update.
72039         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72040         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72041         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72042         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72043         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72044         * lib/unistr.h: Update.
72045         * lib/striconveh.c: Update.
72046         * modules/striconveh: Update.
72047         * lib/unistr/u8-to-u16.c: Update.
72048         * modules/unistr/u8-to-u16: Update.
72049         * lib/unistr/u8-to-u32.c: Update.
72050         * modules/unistr/u8-to-u32: Update.
72051
72052 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72053
72054         Sync from Libtool.
72055         * lib/argz.c: Do not include strings.h nor memory.h, include
72056         string.h unconditionally.  Patch by Simon Josefsson.
72057
72058 2007-01-27  Bruno Haible  <bruno@clisp.org>
72059
72060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72061         from gl_HEADER_STRING_H_BODY.
72062         (gl_HEADER_STRING_H_BODY): Require it.
72063         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72064         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72065         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72066         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72067         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72068         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72070         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72071         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72072         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72073         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72074         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72075         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72076         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72077         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72078
72079 2007-01-27  Bruno Haible  <bruno@clisp.org>
72080
72081         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72082         check_PROGRAMS into noinst_PROGRAMS.
72083         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72084         check_PROGRAMS in this case.
72085         (func_import): Set for_test to false.
72086         (func_create_testdir): Set for_test to true.
72087
72088 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72089             Bruno Haible  <bruno@clisp.org>
72090
72091         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72092         (Depends-on): Add string.
72093         (Includes): Use <string.h> instead of strcasestr.h.
72094         * modules/string (Makefile.am): Also substitute the value of
72095         REPLACE_STRCASESTR.
72096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72097         assume strcasestr is declared in <string.h> not <strings.h>. Also
72098         set REPLACE_STRCASESTR.
72099         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72100         REPLACE_STRCASESTR.
72101         * lib/strcasestr.h: Remove file.
72102         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72103         * lib/string_.h (strcasestr): New declaration.
72104
72105 2007-01-27  Bruno Haible  <bruno@clisp.org>
72106
72107         * lib/string_.h: Use 'extern'.
72108
72109 2007-01-27  Jim Meyering  <jim@meyering.net>
72110
72111         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72112         of set-but-not-used local, "q".
72113
72114         * lib/mempcpy.c: Include <config.h> before <string.h>.
72115         This fixes a compilation error on HP-UX, due to the system's
72116         "restrict"-using mempcpy prototype.
72117
72118 2007-01-26  Bruno Haible  <bruno@clisp.org>
72119
72120         Small optimization.
72121         * lib/javacomp.c: Include c-strstr.h.
72122          (is_envjavac_gcj): Use c_strstr instead of strstr.
72123         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72124
72125 2007-01-26  Bruno Haible  <bruno@clisp.org>
72126
72127         * MODULES.html.sh (Unicode string functions): Add the new modules.
72128
72129         * modules/uniconv/u32-strconv-to-locale: New file.
72130         * lib/uniconv/u32-strconv-to-locale.c: New file.
72131
72132         * modules/uniconv/u16-strconv-to-locale: New file.
72133         * lib/uniconv/u16-strconv-to-locale.c: New file.
72134
72135         * modules/uniconv/u8-strconv-to-locale: New file.
72136         * lib/uniconv/u8-strconv-to-locale.c: New file.
72137
72138         * modules/uniconv/u32-strconv-from-locale: New file.
72139         * lib/uniconv/u32-strconv-from-locale.c: New file.
72140
72141         * modules/uniconv/u16-strconv-from-locale: New file.
72142         * lib/uniconv/u16-strconv-from-locale.c: New file.
72143
72144         * modules/uniconv/u8-strconv-from-locale: New file.
72145         * lib/uniconv/u8-strconv-from-locale.c: New file.
72146
72147         * modules/uniconv/u32-strconv-to-enc: New file.
72148         * lib/uniconv/u32-strconv-to-enc.c: New file.
72149         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72150         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72151
72152         * modules/uniconv/u16-strconv-to-enc: New file.
72153         * lib/uniconv/u16-strconv-to-enc.c: New file.
72154         * lib/uniconv/u-strconv-to-enc.h: New file.
72155         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72156         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72157
72158         * modules/uniconv/u8-strconv-to-enc: New file.
72159         * lib/uniconv/u8-strconv-to-enc.c: New file.
72160         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72161         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72162
72163         * modules/uniconv/u32-strconv-from-enc: New file.
72164         * lib/uniconv/u32-strconv-from-enc.c: New file.
72165         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72166         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72167
72168         * modules/uniconv/u16-strconv-from-enc: New file.
72169         * lib/uniconv/u16-strconv-from-enc.c: New file.
72170         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72171         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72172
72173         * modules/uniconv/u8-strconv-from-enc: New file.
72174         * lib/uniconv/u8-strconv-from-enc.c: New file.
72175         * lib/uniconv/u-strconv-from-enc.h: New file.
72176         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72177         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72178
72179         * modules/uniconv/u32-conv-from-enc: New file.
72180         * lib/uniconv/u32-conv-from-enc.c: New file.
72181         * modules/uniconv/u32-conv-from-enc-tests: New file.
72182         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72183
72184         * modules/uniconv/u16-conv-from-enc: New file.
72185         * lib/uniconv/u16-conv-from-enc.c: New file.
72186         * lib/uniconv/u-conv-from-enc.h: New file.
72187         * modules/uniconv/u16-conv-from-enc-tests: New file.
72188         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72189
72190         * modules/uniconv/u8-conv-from-enc: New file.
72191         * lib/uniconv/u8-conv-from-enc.c: New file.
72192         * modules/uniconv/u8-conv-from-enc-tests: New file.
72193         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72194
72195         * modules/uniconv/base: New file.
72196         * lib/uniconv.h: New file.
72197
72198 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72199
72200         * doc/gnulib-tool.texi (Initial import): Update to match current
72201         behavior with strdup module.
72202         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72203         * lib/memmem.h: Remove; all uses removed.  This is now done
72204         by <string.h>.
72205         * lib/mempcpy.h: Likewise.
72206         * lib/memrchr.h: Likewise.
72207         * lib/stpcpy.h: Likewise.
72208         * lib/stpncpy.h: Likewise.
72209         * lib/strcase.h: Likewise.
72210         * lib/strchrnul.h: Likewise.
72211         * lib/strdup.h: Likewise.
72212         * lib/strndup.h: Likewise.
72213         * lib/strnlen.h: Likewise.
72214         * lib/strpbrk.h: Likewise.
72215         * lib/strsep.h: Likewise.
72216         * lib/strstr.h: Likewise.
72217         * lib/strtok_r.h: Likewise.
72218         * lib/string_.h: New file.
72219         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72220         Rely on <string.h> instead.
72221         * lib/canon-host.c: Likewise.
72222         * lib/chdir-long.c: Likewise.
72223         * lib/concatpath.c: Likewise.
72224         * lib/exclude.c: Likewise.
72225         * lib/fchdir.c: Likewise.
72226         * lib/getaddrinfo.c: Likewise.
72227         * lib/getcwd.c: Likewise.
72228         * lib/getsubopt.c: Likewise.
72229         * lib/glob.c: Likewise.
72230         * lib/hard-locale.c: Likewise.
72231         * lib/iconvme.c: Likewise.
72232         * lib/javacomp.c: Likewise.
72233         * lib/mempcpy.c: Likewise.
72234         * lib/memrchr.c: Likewise.
72235         * lib/regex_internal.h: Likewise.
72236         * lib/stpncpy.c: Likewise.
72237         * lib/strcasecmp.c: Likewise.
72238         * lib/strchrnul.c: Likewise.
72239         * lib/strdup.c: Likewise.
72240         * lib/striconv.c: Likewise.
72241         * lib/striconveh.c: Likewise.
72242         * lib/striconveha.c: Likewise.
72243         * lib/strncasecmp.c: Likewise.
72244         * lib/strndup.c: Likewise.
72245         * lib/strnlen.c: Likewise.
72246         * lib/strsep.c: Likewise.
72247         * lib/strstr.c: Likewise.
72248         * lib/strtok_r.c: Likewise.
72249         * lib/userspec.c: Likewise.
72250         * lib/w32spawn.h: Likewise.
72251         * lib/xstrndup.c: Likewise.
72252         * lib/mountlist.c (strstr): Remove decl.
72253         * m4/string_h.m4: New file.
72254         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72255         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72256         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72257         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72258         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72259         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72260         Set REPLACE_STRCASECMP if necessary.
72261         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72262         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72263         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72264         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72265         HAVE_DECL_STRDUP if necessary.
72266         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72267         since gl_FUNC_STRNDUP does that now.
72268         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72269         Check for decl here...
72270         (gl_PREREQ_STRNLEN): ... not here.
72271         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72272         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72273         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72274         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72275         necessary.
72276         * modules/string: New file.
72277         * modules/memmem (Files): Remove special-purpose include file.
72278         (Depends-on): Add string.
72279         (Include): Include <string.h>, not the removed file.
72280         * modules/mempcpy: Likewise.
72281         * modules/memrchr: Likewise.
72282         * modules/stpcpy: Likewise.
72283         * modules/stpncpy: Likewise.
72284         * modules/strcase: Likewise.
72285         * modules/strchrnul: Likewise.
72286         * modules/strdup: Likewise.
72287         * modules/strndup: Likewise.
72288         * modules/strnlen: Likewise.
72289         * modules/strpbrk: Likewise.
72290         * modules/strsep: Likewise.
72291         * modules/strstr: Likewise.
72292         * modules/strtok_r: Likewise.
72293         * tests/test-dirname.c: Don't include "strdup.h", since
72294         <string.h> now suffices.
72295         * tests/test-memmem.c: Don't include "memmem.h", since
72296         <string.h> now suffices.
72297
72298 2007-01-25  Bruno Haible  <bruno@clisp.org>
72299
72300         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72301         *resultp is 0.
72302
72303         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72304         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72305         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72306         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72307
72308         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72309         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72310         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72311         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72312         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72313         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72314
72315 2007-01-24  Bruno Haible  <bruno@clisp.org>
72316
72317         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72318         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72319         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72320         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72321         gl_FUNC_FTS_CORE.
72322         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72323         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72324         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72325         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72326         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72327         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72328         gl_FUNC_FCHOWNAT.
72329         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72330         gl_FUNC_STRFTIME.
72331         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72332         Reported by Ralf Wildenhues.
72333
72334 2007-01-24  Bruno Haible  <bruno@clisp.org>
72335
72336         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72337         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72338         gl_GETADDRINFO.
72339         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72340         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72341         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72342
72343 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72344
72345         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72346         Don't use 'exit'; just return from 'main'.
72347         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72348
72349         * lib/fnmatch_.h: Readjust white space and comments to match
72350         glibc, to avoid spurious diffs.
72351
72352 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72353
72354         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72355         2004-12-01 change by Jakub Jelinek, since this code won't compile
72356         if !LIBC.  Problem reported by Bob Proulx.
72357
72358 2007-01-23  Bruno Haible  <bruno@clisp.org>
72359
72360         * lib/striconveh.c: Include c-strcaseeq.h.
72361         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72362         * modules/striconveh (Depends-on): Add c-strcaseeq.
72363
72364 2007-01-23  Bruno Haible  <bruno@clisp.org>
72365
72366         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72367
72368         * modules/c-strcaseeq: New file.
72369         * lib/c-strcaseeq.h: New file.
72370
72371         * modules/streq: New file.
72372         * lib/streq.h: New file.
72373
72374 2007-01-23  Bruno Haible  <bruno@clisp.org>
72375
72376         * modules/striconveha-tests: New file.
72377         * tests/test-striconveha.c: New file.
72378
72379         * lib/striconveha.h: Include <stdbool.h>.
72380         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72381         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72382         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72383         (mem_iconveha): New function.
72384         (str_iconveha_notranslit): Renamed from str_iconveha.
72385         (str_iconveha): New function.
72386         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72387         c-strcase.
72388
72389 2007-01-23  Bruno Haible  <bruno@clisp.org>
72390
72391         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72392         encodings without forgiving before trying any encoding with handler.
72393         (str_iconveha): Try all encodings without forgiving before trying any
72394         encoding with handler.
72395
72396 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         Import the following changes from libc.
72399
72400         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72401
72402         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72403
72404         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72405
72406         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72407         normal_bracket label.
72408
72409         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72410
72411         [BZ #361]
72412         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72413         to normal_bracket after fetching the next character.
72414
72415 2007-01-22  Bruno Haible  <bruno@clisp.org>
72416
72417         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72418         argument.
72419         * lib/striconveh.c (iconv_carefully_1): New function.
72420         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72421         argument.
72422         (str_cd_iconveh): Update.
72423         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72424         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72425         * tests/test-striconveh.c (MAGIC): New macro.
72426         (new_offsets): New function.
72427         (main): Test call with and without offsets.
72428
72429 2007-01-22  Bruno Haible  <bruno@clisp.org>
72430
72431         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72432         * modules/sys_select (Makefile.am): Likewise.
72433         * modules/sys_socket (Makefile.am): Likewise.
72434         * modules/sys_time (Makefile.am): Likewise.
72435
72436 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72437
72438         * modules/gettimeofday (License): Change from GPL to LGPL, since
72439         gettimeofday is a library function.
72440
72441 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72442
72443         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72444
72445 2007-01-21  Bruno Haible  <bruno@clisp.org>
72446
72447         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72448
72449 2007-01-21  Bruno Haible  <bruno@clisp.org>
72450
72451         * modules/striconveha: New file.
72452         * lib/striconveha.h: New file.
72453         * lib/striconveha.c: New file.
72454         * MODULES.html.sh (Internationalization functions): Add striconveha.
72455         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72456         string.
72457         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72458
72459 2007-01-21  Bruno Haible  <bruno@clisp.org>
72460
72461         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72462         * lib/striconveh.c (str_iconveh): Likewise.
72463
72464 2007-01-21  Bruno Haible  <bruno@clisp.org>
72465
72466         * lib/striconveh.h (mem_iconveh): New declaration.
72467         * lib/striconveh.c (mem_iconveh): New function.
72468         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72469
72470 2007-01-21  Bruno Haible  <bruno@clisp.org>
72471
72472         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72473
72474         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72475         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72476         original result buffer.
72477         (str_cd_iconveh): Update.
72478         * tests/test-striconveh.c (main): Update.
72479
72480         * lib/striconv.h (mem_cd_iconv): Change specification.
72481         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72482         result buffer.
72483         (str_cd_iconv): Update.
72484         * tests/test-striconv.c (main): Update.
72485
72486 2007-01-21  Bruno Haible  <bruno@clisp.org>
72487
72488         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72489
72490 2007-01-20  Jim Meyering  <jim@meyering.net>
72491
72492         * lib/userspec.c (parse_with_separator): If a user or group string
72493         starts with "+", skip the corresponding name-to-ID look-up, since
72494         such a look-up must fail: user and group names may not include "+".
72495
72496 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72497
72498         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72499         since we now assume the sys_time module.
72500         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72501         check for sys/time.h; no longer needed.
72502         * modules/poll (Depends-on): Depend on sys_time.
72503
72504 2007-01-18  Bruno Haible  <bruno@clisp.org>
72505
72506         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72507         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72508
72509         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72510         gettimeofday.
72511
72512         * tests/test-gettimeofday.c: Include <time.h>.
72513         (dummy): Remove variable.
72514
72515         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72516         gl_HEADER_SYS_TIME_H.
72517         (gl_HEADER_SYS_TIME_H): New macro.
72518
72519         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72520         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72521         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72522         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72523         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72524         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72525         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
72526         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72527         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
72528         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
72529         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72530
72531         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
72532         last change; it caused a compilation error when cross-compiling to
72533         Cygwin.
72534
72535 2007-01-18  Jim Meyering  <jim@meyering.net>
72536
72537         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
72538         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
72539         than the race-prone "test -d sys || mkdir sys".
72540         (configure.ac): Use AC_PROG_MKDIR_P.
72541         * modules/sys_select: Likewise.
72542         * modules/sys_socket: Likewise.
72543         * modules/sys_time: Likewise.
72544
72545 2007-01-18  Eric Blake  <ebb9@byu.net>
72546
72547         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
72548         replace gettimeofday.
72549         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
72550         name, to avoid infinite recursion.
72551
72552 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
72553
72554         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
72555         module sys_time.
72556         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
72557         assume timespec.h defines struct timeval.
72558         * lib/settime.c: Likewise.
72559         * lib/utimens.c: Likewise.
72560         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
72561         since we now assume the gettimeofday module.
72562         * lib/tempname.c (__gen_tempname): Likewise.
72563         * lib/gettimeofday.h: Remove.
72564         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
72565         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
72566         Include <time.h>, for 'time()'.
72567         (localtime_buffer_addr): Also use this workaround if
72568         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
72569         to simplify the uses.  All uses changed.
72570         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
72571         that #undef is inside {}, and 'const' follows type name consistently.
72572         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
72573         (gettimeofday): Do not use the maximum possible value for
72574         tv->tv_usec, since that might break usages other than ls.c.
72575         Instead, we'll leave ls.c alone.  This undoes today's patch
72576         by Bruno.  Add a compile-time warning for 1s-clock resolution;
72577         we've never observed the problem but might as well keep the
72578         canary.
72579         * lib/nanosleep.c: Include timespec.h first, for interface check.
72580         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
72581         now assume the sys_time module.
72582         * lib/tempname.c: Likewise.
72583         * lib/timespec.h: Likewise.
72584         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
72585         needed.
72586         * lib/strftime.c: Likewise.
72587         * lib/timespec.h: Likewise.
72588         * lib/posixtm.c: Include posixtm.h first, for interface check.
72589         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
72590         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
72591         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
72592         * lib/sys_time_.h: New file.
72593         * lib/timespec.h (struct timespec): Use long int, not long.
72594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72595         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
72596         Remove obsolescent call to AC_HEADER_TIME.
72597         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
72598         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72599         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72600         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
72601         Likewise.
72602         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
72603         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
72604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
72605         into the sys_time module.  Check for gettimeofday just once.
72606         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
72607         for gettimeofday signature to just check the signature.  Merely
72608         compile it, since linking doesn't test signature.  Improve test for
72609         whether gettimeofday.o is actually needed.
72610         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
72611         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
72612         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
72613         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72614         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
72615         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
72616         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
72617         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
72618         than worrying about sys/time.h.
72619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72620         Don't bother worrying about TIME_WITH_SYS_TIME.
72621         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
72622         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
72623         * m4/sys_time_h.m4: New file.
72624         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
72625         Don't include sys/time.h.  Return from main rather than exiting.
72626         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
72627         all uses changed.
72628         * modules/gethrxtime (Depends-on): Add sys_time.
72629         * modules/gettime (Depends-on): Likewise.
72630         * modules/gettimeofday (Depends-on): Likewise.
72631         * modules/nanosleep (Depends-on): Likewise.
72632         * modules/settime (Depends-on): Likewise.
72633         * modules/tempname (Depends-on): Likewise.
72634         * modules/utimens (Depends-on): Likewise.
72635         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
72636         (Include): Change back to <sys/time.h>.
72637         (Maintainer): Add self.
72638         * modules/sys_time: New file.
72639         * modules/tempname (Depends-on): Add gettimeofday.
72640         * tests/test-gettimeofday.c: Include <sys/time.h>
72641         rather than gettimeofday.h.
72642
72643 2007-01-17  Bruno Haible  <bruno@clisp.org>
72644
72645         * gnulib-tool (func_get_license): Revert last patch. Instead, let
72646         the license default to GPL.
72647         (func_create_testdir): Don't complain if a module is LGPL and its
72648         tests module depends on GPLed modules.
72649
72650 2007-01-17  Bruno Haible  <bruno@clisp.org>
72651
72652         * lib/gettimeofday.c (gettimeofday): Add code for the case
72653         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
72654         maximum possible value for tv->tv_usec, rather than the minimum one.
72655
72656 2005-10-08  Martin Lambers  <marlam@marlam.de>
72657 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72658 2007-01-16  Bruno Haible  <bruno@clisp.org>
72659
72660         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
72661         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
72662         gl_FUNC_GETTIMEOFDAY.
72663         (Include): Add gettimeofday.h.
72664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
72665         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
72666         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
72667         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
72668         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
72669         * lib/gettimeofday.h: New file.
72670         * lib/gettimeofday.c: Include <sys/timeb.h>.
72671         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
72672         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72673         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
72674         fall back on time().
72675
72676         * tests/test-gettimeofday.c: New file.
72677         * modules/gettimeofday-tests: New file.
72678
72679 2007-01-16  Eric Blake  <ebb9@byu.net>
72680
72681         * modules/fnmatch (Depends-on): Depend on wchar.
72682         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
72683         * m4/fnmatch.m4: Likewise.
72684         * modules/mbchar (Makefile.am): Assume <wchar.h>.
72685         * m4/mbchar.m4: Likewise.
72686         * modules/mbswidth (Depends-on): Depend on wchar.
72687         * lib/mbswidth.c: Assume <wchar.h>.
72688         * m4/mbswidth.m4: Likewise.
72689         * modules/quotearg (Depends-on): Depend on wchar.
72690         * lib/quotearg.c: Assume <wchar.h>.
72691         * m4/quotearg.m4: Likewise.
72692         * modules/regex (Depends-on): Depend on wchar.
72693         * lib/regex_internal.h: Assume <wchar.h>.
72694         * m4/regex.m4: Likewise.
72695         * modules/stdint (Depends-on): Depend on wchar.
72696         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
72697         * m4/stdint.m4: Likewise.
72698         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
72699         * modules/strftime (Depends-on): Depend on wchar.
72700         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
72701         * modules/strtol (Depends-on): Depend on wchar.
72702         * lib/strtol.c: Assume <wchar.h>.
72703         * modules/wcwidth (Depends-on): Depend on wchar.
72704         * lib/wcwidth.h: Assume <wchar.h>.
72705         * m4/wcwidth.m4: Likewise.
72706
72707 2007-01-16  Bruno Haible  <bruno@clisp.org>
72708
72709         * modules/csharpexec-script: New, created from...
72710         * modules/csharpexec: ... this.
72711
72712 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
72713
72714         * modules/javaexec-script: New, created from...
72715         * modules/javaexec: ... this.
72716
72717 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72718
72719         * modules/poll (Dependencies): Add sys_select.
72720
72721 2007-01-15  Jim Meyering  <jim@meyering.net>
72722
72723         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
72724         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
72725         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
72726         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
72727
72728 2007-01-15  Bruno Haible  <bruno@clisp.org>
72729
72730         * modules/striconveh: New file.
72731         * lib/striconveh.h: New file.
72732         * lib/striconveh.c: New file.
72733         * MODULES.html.sh (Internationalization functions): Add striconveh.
72734
72735         * modules/striconveh-tests: New file.
72736         * tests/test-striconveh.c: New file.
72737
72738 2007-01-15  Bruno Haible  <bruno@clisp.org>
72739
72740         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
72741         not from GNU libiconv or GNU libc.
72742
72743 2007-01-15  Bruno Haible  <bruno@clisp.org>
72744
72745         * doc/gnulib-intro.texi (Copyright): Explain the different license
72746         terms for module descriptions, autoconf macros, tests, documentation.
72747
72748 2007-01-14  Bruno Haible  <bruno@clisp.org>
72749
72750         * modules/striconv-tests: New file.
72751         * tests/test-striconv.c: New file.
72752
72753 2007-01-14  Bruno Haible  <bruno@clisp.org>
72754
72755         * modules/iconv-tests: New file.
72756         * tests/test-iconv.c: New file.
72757
72758 2007-01-14  Bruno Haible  <bruno@clisp.org>
72759
72760         * gnulib-tool (func_get_license): For test modules, use the license of
72761         the main module.
72762
72763 2007-01-14  Bruno Haible  <bruno@clisp.org>
72764
72765         * modules/iconv (Include): Clarify that <iconv.h> can only be included
72766         if iconv is found to exist.
72767
72768 2007-01-14  Bruno Haible  <bruno@clisp.org>
72769
72770         * modules/c-ctype-tests: New file.
72771         * tests/test-c-ctype.c: New file.
72772
72773 2007-01-14  Bruno Haible  <bruno@clisp.org>
72774
72775         * modules/binary-io-tests: New file.
72776         * tests/test-binary-io.sh: New file.
72777         * tests/test-binary-io.c: New file.
72778
72779 2007-01-14  Bruno Haible  <bruno@clisp.org>
72780
72781         * modules/array-oset-tests: New file.
72782         * tests/test-array_oset.c: New file.
72783
72784 2007-01-14  Bruno Haible  <bruno@clisp.org>
72785
72786         * modules/array-list-tests: New file.
72787         * tests/test-array_list.c: New file.
72788
72789 2007-01-14  Bruno Haible  <bruno@clisp.org>
72790
72791         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
72792         and make.
72793         Reported by Simon Josefsson in
72794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
72795
72796 2007-01-14  Bruno Haible  <bruno@clisp.org>
72797
72798         * modules/allocsa-tests: New file.
72799         * tests/test-allocsa.c: New file.
72800
72801 2007-01-14  Bruno Haible  <bruno@clisp.org>
72802
72803         * modules/fchdir (Depends-on): Add absolute-header.
72804         * modules/unistd (Depends-on): Likewise.
72805
72806 2006-12-30  Bruno Haible  <bruno@clisp.org>
72807
72808         * modules/fchdir: New file.
72809         * modules/unistd (Files): Add lib/unistd_.h.
72810         (Makefile.am): Generate unistd.h from unistd_.h.
72811         * lib/fchdir.c: New file.
72812         * lib/dirent_.h: New file.
72813         * lib/unistd_.h: New file.
72814         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
72815         * m4/fchdir.m4: New file.
72816         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
72817         (gl_HEADER_UNISTD): Invoke it.
72818         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
72819         function.
72820         * lib/backupfile.c (opendir, closedir): Undefine.
72821         * lib/chown.c (open, close): Undefine.
72822         * lib/clean-temp.c (open, close): Undefine.
72823         * lib/copy-file.c (open, close): Undefine.
72824         * lib/execute.c (open, close): Undefine.
72825         * lib/fsusage.c (open, close): Undefine.
72826         * lib/gc-gnulib.c (open, close): Undefine.
72827         * lib/getcwd.c (opendir, closedir): Undefine.
72828         * lib/glob.c (opendir, closedir): Undefine.
72829         * lib/javacomp.c (open, close): Undefine.
72830         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
72831         * lib/openat-proc.c (open, close): Undefine.
72832         * lib/pagealign_alloc.c (open, close): Undefine.
72833         * lib/pipe.c (open, close): Undefine.
72834         * lib/progreloc.c (open, close): Undefine.
72835         * lib/savedir.c (opendir, closedir): Undefine.
72836         * lib/utime.c (open, close): Undefine.
72837         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
72838
72839 2007-01-10  Bruno Haible  <bruno@clisp.org>
72840
72841         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
72842
72843 2007-01-12  Eric Blake  <ebb9@byu.net>
72844
72845         Provide a robust <wchar.h>.  Further simplifications are now
72846         possible in other modules, but not included here.
72847         * modules/wchar: New module.
72848         * m4/wchar.m4: New file.
72849         * lib/wchar_.h: Likewise.
72850         * modules/mbchar (Depends-on): Depend on wchar, as the first use
72851         of the new module.
72852         * MODULES.html.sh (Extended multibyte and wide character utilities):
72853         New section.
72854
72855 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
72858         to a reasonable default for memory allocation.
72859         (xreadlink): Don't allocate a huge buffer, to work around a buggy
72860         file system that reports garbage st_size values for symlinks.
72861         Problem reported by Liyang Hu.
72862
72863 2007-01-11  Simon Josefsson  <simon@josefsson.org>
72864
72865         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
72866         Emacs .#* auto-save files).
72867
72868 2007-01-11  Bruno Haible  <bruno@clisp.org>
72869
72870         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
72871         directory.
72872
72873 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72874
72875         Use @...@ consistently in lib/wctype_.h.
72876         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
72877         on it being set to 1 or 0.
72878         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
72879         go back to AC_SUBSTing it.
72880         * modules/wctype (Makefile.am): Undo previous change.
72881
72882 2007-01-10  Eric Blake  <ebb9@byu.net>
72883
72884         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
72885         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
72886         * modules/wctype (Makefile.am): Likewise.
72887         Reported by Chris McGuire.
72888
72889 2007-01-10  Jim Meyering  <jim@meyering.net>
72890
72891         fts.c: a small readability/maintainability improvement
72892         * lib/fts.c (fts_read): Make this code slightly more readable and
72893         maintainable by hoisting the "sp->fts_cur = p" assignments to
72894         immediately follow the statements that set P.  Derived from
72895         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
72896
72897 2007-01-10  Eric Blake  <ebb9@byu.net>
72898
72899         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
72900         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
72901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72902         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72903         Reported by Chris McGuire.
72904
72905 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72906
72907         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
72908         in sed script.
72909
72910 2007-01-09  Bruno Haible  <bruno@clisp.org>
72911
72912         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
72913         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
72914         variables.
72915         (func_module): Use them.
72916
72917 2007-01-09  Bruno Haible  <bruno@clisp.org>
72918
72919         * modules/unistr/base: New file.
72920         * lib/unistr.h: New file.
72921
72922         * modules/unistr/u8-to-u16: New file.
72923         * lib/unistr/u8-to-u16.c: New file.
72924
72925         * modules/unistr/u8-to-u32: New file.
72926         * lib/unistr/u8-to-u32.c: New file.
72927
72928         * modules/unistr/u16-to-u8: New file.
72929         * lib/unistr/u16-to-u8.c: New file.
72930
72931         * modules/unistr/u16-to-u32: New file.
72932         * lib/unistr/u16-to-u32.c: New file.
72933
72934         * modules/unistr/u32-to-u8: New file.
72935         * lib/unistr/u32-to-u8.c: New file.
72936
72937         * modules/unistr/u32-to-u16: New file.
72938         * lib/unistr/u32-to-u16.c: New file.
72939
72940         * modules/unistr/u8-check: New file.
72941         * modules/unistr/u16-check: New file.
72942         * modules/unistr/u32-check: New file.
72943         * lib/unistr/u8-check.c: New file.
72944         * lib/unistr/u16-check.c: New file.
72945         * lib/unistr/u32-check.c: New file.
72946
72947         * modules/unistr/u8-chr: New file.
72948         * modules/unistr/u16-chr: New file.
72949         * modules/unistr/u32-chr: New file.
72950         * lib/unistr/u8-chr.c: New file.
72951         * lib/unistr/u16-chr.c: New file.
72952         * lib/unistr/u32-chr.c: New file.
72953
72954         * modules/unistr/u8-cmp: New file.
72955         * modules/unistr/u16-cmp: New file.
72956         * modules/unistr/u32-cmp: New file.
72957         * lib/unistr/u8-cmp.c: New file.
72958         * lib/unistr/u16-cmp.c: New file.
72959         * lib/unistr/u32-cmp.c: New file.
72960
72961         * modules/unistr/u8-cpy: New file.
72962         * modules/unistr/u16-cpy: New file.
72963         * modules/unistr/u32-cpy: New file.
72964         * lib/unistr/u8-cpy.c: New file.
72965         * lib/unistr/u16-cpy.c: New file.
72966         * lib/unistr/u32-cpy.c: New file.
72967         * lib/unistr/u-cpy.h: New file.
72968
72969         * modules/unistr/u8-cpy-alloc: New file.
72970         * modules/unistr/u16-cpy-alloc: New file.
72971         * modules/unistr/u32-cpy-alloc: New file.
72972         * lib/unistr/u8-cpy-alloc.c: New file.
72973         * lib/unistr/u16-cpy-alloc.c: New file.
72974         * lib/unistr/u32-cpy-alloc.c: New file.
72975         * lib/unistr/u-cpy-alloc.h: New file.
72976
72977         * modules/unistr/u8-endswith: New file.
72978         * modules/unistr/u16-endswith: New file.
72979         * modules/unistr/u32-endswith: New file.
72980         * lib/unistr/u8-endswith.c: New file.
72981         * lib/unistr/u16-endswith.c: New file.
72982         * lib/unistr/u32-endswith.c: New file.
72983         * lib/unistr/u-endswith.h: New file.
72984
72985         * modules/unistr/u8-mblen: New file.
72986         * modules/unistr/u16-mblen: New file.
72987         * modules/unistr/u32-mblen: New file.
72988         * lib/unistr/u8-mblen.c: New file.
72989         * lib/unistr/u16-mblen.c: New file.
72990         * lib/unistr/u32-mblen.c: New file.
72991
72992         * modules/unistr/u8-mbtouc: New file.
72993         * modules/unistr/u16-mbtouc: New file.
72994         * modules/unistr/u32-mbtouc: New file.
72995         * lib/unistr/u8-mbtouc.c: New file.
72996         * lib/unistr/u16-mbtouc.c: New file.
72997         * lib/unistr/u32-mbtouc.c: New file.
72998
72999         * modules/unistr/u8-mbtouc-safe: New file.
73000         * modules/unistr/u16-mbtouc-safe: New file.
73001         * modules/unistr/u32-mbtouc-safe: New file.
73002         * lib/unistr/u8-mbtouc-safe.c: New file.
73003         * lib/unistr/u16-mbtouc-safe.c: New file.
73004         * lib/unistr/u32-mbtouc-safe.c: New file.
73005
73006         * modules/unistr/u8-move: New file.
73007         * modules/unistr/u16-move: New file.
73008         * modules/unistr/u32-move: New file.
73009         * lib/unistr/u8-move.c: New file.
73010         * lib/unistr/u16-move.c: New file.
73011         * lib/unistr/u32-move.c: New file.
73012         * lib/unistr/u-move.h: New file.
73013
73014         * modules/unistr/u8-next: New file.
73015         * modules/unistr/u16-next: New file.
73016         * modules/unistr/u32-next: New file.
73017         * lib/unistr/u8-next.c: New file.
73018         * lib/unistr/u16-next.c: New file.
73019         * lib/unistr/u32-next.c: New file.
73020
73021         * modules/unistr/u8-prev: New file.
73022         * modules/unistr/u16-prev: New file.
73023         * modules/unistr/u32-prev: New file.
73024         * lib/unistr/u8-prev.c: New file.
73025         * lib/unistr/u16-prev.c: New file.
73026         * lib/unistr/u32-prev.c: New file.
73027
73028         * modules/unistr/u8-set: New file.
73029         * modules/unistr/u16-set: New file.
73030         * modules/unistr/u32-set: New file.
73031         * lib/unistr/u8-set.c: New file.
73032         * lib/unistr/u16-set.c: New file.
73033         * lib/unistr/u32-set.c: New file.
73034         * lib/unistr/u-set.h: New file.
73035
73036         * modules/unistr/u8-startswith: New file.
73037         * modules/unistr/u16-startswith: New file.
73038         * modules/unistr/u32-startswith: New file.
73039         * lib/unistr/u8-startswith.c: New file.
73040         * lib/unistr/u16-startswith.c: New file.
73041         * lib/unistr/u32-startswith.c: New file.
73042         * lib/unistr/u-startswith.h: New file.
73043
73044         * modules/unistr/u8-stpcpy: New file.
73045         * modules/unistr/u16-stpcpy: New file.
73046         * modules/unistr/u32-stpcpy: New file.
73047         * lib/unistr/u8-stpcpy.c: New file.
73048         * lib/unistr/u16-stpcpy.c: New file.
73049         * lib/unistr/u32-stpcpy.c: New file.
73050         * lib/unistr/u-stpcpy.h: New file.
73051
73052         * modules/unistr/u8-stpncpy: New file.
73053         * modules/unistr/u16-stpncpy: New file.
73054         * modules/unistr/u32-stpncpy: New file.
73055         * lib/unistr/u8-stpncpy.c: New file.
73056         * lib/unistr/u16-stpncpy.c: New file.
73057         * lib/unistr/u32-stpncpy.c: New file.
73058         * lib/unistr/u-stpncpy.h: New file.
73059
73060         * modules/unistr/u8-strcat: New file.
73061         * modules/unistr/u16-strcat: New file.
73062         * modules/unistr/u32-strcat: New file.
73063         * lib/unistr/u8-strcat.c: New file.
73064         * lib/unistr/u16-strcat.c: New file.
73065         * lib/unistr/u32-strcat.c: New file.
73066         * lib/unistr/u-strcat.h: New file.
73067
73068         * modules/unistr/u8-strchr: New file.
73069         * modules/unistr/u16-strchr: New file.
73070         * modules/unistr/u32-strchr: New file.
73071         * lib/unistr/u8-strchr.c: New file.
73072         * lib/unistr/u16-strchr.c: New file.
73073         * lib/unistr/u32-strchr.c: New file.
73074
73075         * modules/unistr/u8-strcmp: New file.
73076         * modules/unistr/u16-strcmp: New file.
73077         * modules/unistr/u32-strcmp: New file.
73078         * lib/unistr/u8-strcmp.c: New file.
73079         * lib/unistr/u16-strcmp.c: New file.
73080         * lib/unistr/u32-strcmp.c: New file.
73081
73082         * modules/unistr/u8-strcpy: New file.
73083         * modules/unistr/u16-strcpy: New file.
73084         * modules/unistr/u32-strcpy: New file.
73085         * lib/unistr/u8-strcpy.c: New file.
73086         * lib/unistr/u16-strcpy.c: New file.
73087         * lib/unistr/u32-strcpy.c: New file.
73088         * lib/unistr/u-strcpy.h: New file.
73089
73090         * modules/unistr/u8-strcspn: New file.
73091         * modules/unistr/u16-strcspn: New file.
73092         * modules/unistr/u32-strcspn: New file.
73093         * lib/unistr/u8-strcspn.c: New file.
73094         * lib/unistr/u16-strcspn.c: New file.
73095         * lib/unistr/u32-strcspn.c: New file.
73096         * lib/unistr/u-strcspn.h: New file.
73097
73098         * modules/unistr/u8-strdup: New file.
73099         * modules/unistr/u16-strdup: New file.
73100         * modules/unistr/u32-strdup: New file.
73101         * lib/unistr/u8-strdup.c: New file.
73102         * lib/unistr/u16-strdup.c: New file.
73103         * lib/unistr/u32-strdup.c: New file.
73104         * lib/unistr/u-strdup.h: New file.
73105
73106         * modules/unistr/u8-strlen: New file.
73107         * modules/unistr/u16-strlen: New file.
73108         * modules/unistr/u32-strlen: New file.
73109         * lib/unistr/u8-strlen.c: New file.
73110         * lib/unistr/u16-strlen.c: New file.
73111         * lib/unistr/u32-strlen.c: New file.
73112         * lib/unistr/u-strlen.h: New file.
73113
73114         * modules/unistr/u8-strmblen: New file.
73115         * modules/unistr/u16-strmblen: New file.
73116         * modules/unistr/u32-strmblen: New file.
73117         * lib/unistr/u8-strmblen.c: New file.
73118         * lib/unistr/u16-strmblen.c: New file.
73119         * lib/unistr/u32-strmblen.c: New file.
73120
73121         * modules/unistr/u8-strmbtouc: New file.
73122         * modules/unistr/u16-strmbtouc: New file.
73123         * modules/unistr/u32-strmbtouc: New file.
73124         * lib/unistr/u8-strmbtouc.c: New file.
73125         * lib/unistr/u16-strmbtouc.c: New file.
73126         * lib/unistr/u32-strmbtouc.c: New file.
73127
73128         * modules/unistr/u8-strncat: New file.
73129         * modules/unistr/u16-strncat: New file.
73130         * modules/unistr/u32-strncat: New file.
73131         * lib/unistr/u8-strncat.c: New file.
73132         * lib/unistr/u16-strncat.c: New file.
73133         * lib/unistr/u32-strncat.c: New file.
73134         * lib/unistr/u-strncat.h: New file.
73135
73136         * modules/unistr/u8-strncmp: New file.
73137         * modules/unistr/u16-strncmp: New file.
73138         * modules/unistr/u32-strncmp: New file.
73139         * lib/unistr/u8-strncmp.c: New file.
73140         * lib/unistr/u16-strncmp.c: New file.
73141         * lib/unistr/u32-strncmp.c: New file.
73142
73143         * modules/unistr/u8-strncpy: New file.
73144         * modules/unistr/u16-strncpy: New file.
73145         * modules/unistr/u32-strncpy: New file.
73146         * lib/unistr/u8-strncpy.c: New file.
73147         * lib/unistr/u16-strncpy.c: New file.
73148         * lib/unistr/u32-strncpy.c: New file.
73149         * lib/unistr/u-strncpy.h: New file.
73150
73151         * modules/unistr/u8-strnlen: New file.
73152         * modules/unistr/u16-strnlen: New file.
73153         * modules/unistr/u32-strnlen: New file.
73154         * lib/unistr/u8-strnlen.c: New file.
73155         * lib/unistr/u16-strnlen.c: New file.
73156         * lib/unistr/u32-strnlen.c: New file.
73157         * lib/unistr/u-strnlen.h: New file.
73158
73159         * modules/unistr/u8-strpbrk: New file.
73160         * modules/unistr/u16-strpbrk: New file.
73161         * modules/unistr/u32-strpbrk: New file.
73162         * lib/unistr/u8-strpbrk.c: New file.
73163         * lib/unistr/u16-strpbrk.c: New file.
73164         * lib/unistr/u32-strpbrk.c: New file.
73165         * lib/unistr/u-strpbrk.h: New file.
73166
73167         * modules/unistr/u8-strrchr: New file.
73168         * modules/unistr/u16-strrchr: New file.
73169         * modules/unistr/u32-strrchr: New file.
73170         * lib/unistr/u8-strrchr.c: New file.
73171         * lib/unistr/u16-strrchr.c: New file.
73172         * lib/unistr/u32-strrchr.c: New file.
73173
73174         * modules/unistr/u8-strspn: New file.
73175         * modules/unistr/u16-strspn: New file.
73176         * modules/unistr/u32-strspn: New file.
73177         * lib/unistr/u8-strspn.c: New file.
73178         * lib/unistr/u16-strspn.c: New file.
73179         * lib/unistr/u32-strspn.c: New file.
73180         * lib/unistr/u-strspn.h: New file.
73181
73182         * modules/unistr/u8-strstr: New file.
73183         * modules/unistr/u16-strstr: New file.
73184         * modules/unistr/u32-strstr: New file.
73185         * lib/unistr/u8-strstr.c: New file.
73186         * lib/unistr/u16-strstr.c: New file.
73187         * lib/unistr/u32-strstr.c: New file.
73188         * lib/unistr/u-strstr.h: New file.
73189
73190         * modules/unistr/u8-strtok: New file.
73191         * modules/unistr/u16-strtok: New file.
73192         * modules/unistr/u32-strtok: New file.
73193         * lib/unistr/u8-strtok.c: New file.
73194         * lib/unistr/u16-strtok.c: New file.
73195         * lib/unistr/u32-strtok.c: New file.
73196         * lib/unistr/u-strtok.h: New file.
73197
73198         * modules/unistr/u8-uctomb: New file.
73199         * modules/unistr/u16-uctomb: New file.
73200         * modules/unistr/u32-uctomb: New file.
73201         * lib/unistr/u8-uctomb.c: New file.
73202         * lib/unistr/u16-uctomb.c: New file.
73203         * lib/unistr/u32-uctomb.c: New file.
73204
73205         * MODULES.html.sh (Unicode string functions): Add the new modules.
73206
73207 2007-01-08  Bruno Haible  <bruno@clisp.org>
73208
73209         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73210         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73211         subdirectories.
73212
73213 2007-01-08  Karl Berry  <karl@gnu.org>
73214
73215         * doc/error.texi: mention that main() fns must set program_name
73216         when progname is used.
73217
73218 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73219
73220         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73221         WCTYPE_H is empty, for the benefit of builds from non-distclean
73222         directories.  Problem reported by Eric Blake in
73223         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73224
73225 2007-01-08  Bruno Haible  <bruno@clisp.org>
73226
73227         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73228         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73229         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73230         PROVIDE_CANONICALIZE_FILENAME_MODE.
73231         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73232
73233 2007-01-08  Bruno Haible  <bruno@clisp.org>
73234
73235         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73236         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73237         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73238         * lib/fts.c: Likewise.
73239         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73240
73241 2006-12-25  Bruno Haible  <bruno@clisp.org>
73242
73243         * modules/utf8-ucs4-safe: New file.
73244         * lib/utf8-ucs4-safe.h: New file.
73245         * lib/unistr/utf8-ucs4-safe.c: New file.
73246
73247         * modules/utf16-ucs4-safe: New file.
73248         * lib/utf16-ucs4-safe.h: New file.
73249         * lib/unistr/utf16-ucs4-safe.c: New file.
73250
73251         * MODULES.html.sh (Unicode string functions): Add the new modules.
73252
73253 2007-01-08  Bruno Haible  <bruno@clisp.org>
73254
73255         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73256         (Depends-on): Add unitypes.
73257         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73258         (u8_mbtouc_aux): Move out to separate file.
73259         (u8_mbtouc): Use ucs4_t, uint8_t types.
73260         * lib/unistr/utf8-ucs4.c: New file.
73261
73262         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73263         (Depends-on): Add unitypes.
73264         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73265         (u16_mbtouc_aux): Move out to separate file.
73266         (u16_mbtouc): Use ucs4_t, uint16_t types.
73267         * lib/unistr/utf16-ucs4.c: New file.
73268
73269         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73270         (Depends-on): Add unitypes.
73271         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73272         (u8_uctomb_aux): Move out to separate file.
73273         (u8_uctomb): Use ucs4_t, uint8_t types.
73274         * lib/unistr/ucs4-utf8.c: New file.
73275
73276         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73277         (Depends-on): Add unitypes.
73278         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73279         (u16_uctomb_aux): Move out to separate file.
73280         (u16_uctomb): Use ucs4_t, uint16_t types.
73281         * lib/unistr/ucs4-utf16.c: New file.
73282
73283 2006-12-25  Bruno Haible  <bruno@clisp.org>
73284
73285         * modules/unitypes: New file.
73286         * lib/unitypes.h: New file.
73287         * MODULES.html.sh (func_all_modules): New section "Unicode string
73288         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73289         this section. Add unitypes.
73290
73291 2007-01-08  Bruno Haible  <bruno@clisp.org>
73292
73293         Avoid variable names that conflict with those from libtool.
73294         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73295         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73296         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73297         library_names_spec to acl_library_names_spec, hardcode_* to
73298         acl_hardcode_*.
73299         Reported by Ralf Wildenhues.
73300
73301 2007-01-08  Bruno Haible  <bruno@clisp.org>
73302
73303         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73304         definition.
73305         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73306         definition.
73307         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73308         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73309         definition.
73310         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73311         definition.
73312         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73313         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73314         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73315         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73316         definition.
73317         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73318         definition.
73319         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73320         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73321         GC_USE_<algorithm>.
73322         * lib/gc-libgcrypt.c: Likewise.
73323         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73324         * modules/gc-arctwo (configure.ac): Likewise.
73325         * modules/gc-des (configure.ac): Likewise.
73326         * modules/gc-hmac-md5 (configure.ac): Likewise.
73327         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73328         * modules/gc-md2 (configure.ac): Likewise.
73329         * modules/gc-md4 (configure.ac): Likewise.
73330         * modules/gc-md5 (configure.ac): Likewise.
73331         * modules/gc-random (configure.ac): Likewise.
73332         * modules/gc-rijndael (configure.ac): Likewise.
73333         * modules/gc-sha1 (configure.ac): Likewise.
73334
73335 2007-01-08  Bruno Haible  <bruno@clisp.org>
73336
73337         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73338         macro definition.
73339         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73340         definition.
73341         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73342         definition.
73343         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73344         * modules/fcntl-safer (configure.ac): Likewise.
73345         * modules/fopen-safer (configure.ac): Likewise.
73346         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73347         GNULIB_FWRITEERROR macro definition.
73348
73349 2007-01-08  Bruno Haible  <bruno@clisp.org>
73350
73351         * m4/gnulib-common.m4: New file.
73352         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73353         (func_get_filelist): Add m4/gnulib-common.m4.
73354
73355 2007-01-08  Bruno Haible  <bruno@clisp.org>
73356
73357         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73358         command.
73359
73360 2007-01-08  Jim Meyering  <jim@meyering.net>
73361
73362         Use a more robust test for a "can't happen" condition.
73363         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73364         narrowed the st_size value.  Presuming the "can't happen" condition
73365         is true, that narrowing could conceivably convert an invalid st_size
73366         value into a valid one.  Instead, use a change based on Matthew
73367         Woehlke's original patch.
73368
73369         Slight readability improvement: use an assert-like macro
73370         in place of literal "abort ()" uses.
73371         * lib/fts.c (fts_assert): Define.
73372         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73373         Use this macro instead of a bare 'abort'.
73374
73375 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73376
73377         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73378         simply work around them.
73379         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73380         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73381         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73382         declaring.
73383         Don't bother to define as macros, since the standard doesn't require it.
73384         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73385         longer worry about IRIX 5.3.
73386         (HAVE_WCTYPE_CTMP_BUG): Remove.
73387
73388 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73391         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73392         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73393         Problems reported by Georg Schwarz for IRIX 5.3.
73394
73395         * gnulib-tool (autoconf_minversion): Take the maximum version number
73396         found, not the minimum.  Problem reported by James Youngman.
73397
73398 2007-01-03  Karl Berry  <karl@gnu.org>
73399
73400         * doc/error.texi: new file, explaining interaction with progname.
73401         * doc/gnulib.texi: include it.  Update copyright.
73402
73403 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73404
73405         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73406         AC_CANONICAL_HOST, to improve autobuild outputs.
73407
73408 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73409             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73410
73411         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73412         sockets, server sockets, and other file descriptors.  Count errors
73413         to compute the return value.  Reorder the code a bit to be easier
73414         to follow.  Don't set event bits that were not requested (except
73415         POLLERR and POLLHUP).
73416
73417 2007-01-01  Bruno Haible  <bruno@clisp.org>
73418
73419         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73420
73421 2007-01-03  Jim Meyering  <jim@meyering.net>
73422
73423         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73424
73425 2007-01-02  Bruno Haible  <bruno@clisp.org>
73426
73427         * modules/settime (Include): Require timespec.h.
73428         * modules/nanosleep (Include): Likewise.
73429
73430 2007-01-01  Bruno Haible  <bruno@clisp.org>
73431
73432         * gnulib-tool (func_emit_copyright_notice): Bump year.
73433         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73434
73435 2007-01-01  Bruno Haible  <bruno@clisp.org>
73436
73437         Improve support for OpenBSD.
73438         * build-aux/config.rpath (libname_spec): Export.
73439         (library_names_spec): New variable. Export.
73440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73441         library_names_spec from the config.rpath output. Locate shared library
73442         through the name pattern in library_names_spec.
73443
73444 2007-01-01  Eric Blake  <ebb9@byu.net>
73445
73446         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73447
73448 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73449
73450         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73451         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73452         assume the C locale, and avoid an "eval" that could cause trouble.
73453         Problem with SORT reported by Bob Proulx.
73454
73455         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73456         Define.  Trivial patch from Henning Nielsen Lund, originally
73457         sent to bug-grep@gnu.org today.
73458
73459 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73460
73461         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73462         struct stat.  Problem reported by Henning Nielsen Lund.
73463         * lib/acl.c: Include acl.h first, to check interface.  Don't
73464         bother to include sys/types.h and sys/stat.h again.
73465
73466 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73467
73468         Import the following change from libc; problem reported by
73469         Sven Verdoolaege.
73470
73471         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73472
73473         [BZ #1373]
73474         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73475
73476 2006-12-28  Jim Meyering  <jim@meyering.net>
73477
73478         * build-aux/announce-gen: Do not assume that the package
73479         builds any of tar.gz, tar.bz2, and .xdelta files.
73480         Suggestion from Simon Josefsson.
73481
73482 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73483
73484         * modules/announce-gen: New file.
73485
73486 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73487
73488         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73489         handles its gotchas now.
73490         * lib/mbswidth.c: Likewise.
73491         * lib/wcwidth.h: Likewise.
73492         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73493         and iswcntrl; the wctype module does this stuff now.
73494         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73496         * modules/mbchar (Depends-on): Add wctype.
73497         * modules/mbswidth (Depends-on): Likewise.
73498         * modules/wcwidth (Depends-on): Likewise.
73499
73500 2006-12-27  Eric Blake  <ebb9@byu.net>
73501
73502         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73503         module uses more than what <wctype.h> is required to provide.
73504
73505 2006-12-26  Eric Blake  <ebb9@byu.net>
73506
73507         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73508
73509 2006-12-26  Eric Blake  <ebb9@byu.net>
73510
73511         * modules/absolute-header: New module.
73512         * modules/fcntl (Depends-on): Depend on it.
73513         * modules/inttypes (Depends-on): Likewise.
73514         * modules/stdint (Depends-on): Likewise.
73515         * modules/sys_stat (Depends-on): Likewise.
73516         * modules/wctype (Depends-on): Likewise.
73517         * MODULES.html.sh (Support for building libraries and
73518         executables): Document it.
73519
73520 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73521
73522         * gnulib-tool (SED): Remove, undoing previous change.
73523         The problem was that it broke coreutils on Solaris, because
73524         "sed --posix" leaked into a makefile.
73525         (sed): New alias, if 'alias' and GNU sed.
73526
73527 2006-12-24  Jim Meyering  <jim@meyering.net>
73528
73529         Work around an fchownat bug in glibc-2.4:
73530         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
73531         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
73532         in spite of the -P option.
73533         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
73534         New macros.
73535         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
73536         * modules/openat (Files): Add lib/fchownat.c.
73537         * lib/openat.c (fchownat): Don't define here.  Move to...
73538         * lib/fchownat.c: ...this new file.
73539
73540 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         Fix bug reported by Bruno Haible in
73543         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
73544         where quotearg.c didn't compile on Mac OS X 10.2 because it
73545         lacks <wchar.h> and wint_t.
73546         * lib/wctype_.h (__wctype_wint_t): New type.
73547         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
73548         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
73549         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
73550         Arg is now of type __wctype_wint_t, not wint_t.
73551         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
73552         substitute HAVE_WINT_T.
73553         * modules/wctype (Files): Add m4/wint_t.m4.
73554         (wctype.h): Substitute HAVE_WINT_T.
73555
73556 2006-12-23  Bruno Haible  <bruno@clisp.org>
73557
73558         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
73559
73560 2006-12-23  Bruno Haible  <bruno@clisp.org>
73561
73562         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
73563         S_ISLNK.
73564         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
73565         mingw.
73566
73567 2006-12-22  Bruno Haible  <bruno@clisp.org>
73568
73569         * lib/copy-file.c: Include acl.h.
73570         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
73571         Close the file descriptors only after being done with copy_acl.
73572         * modules/copy-file (Depends-on): Add acl.
73573
73574 2006-12-22  Bruno Haible  <bruno@clisp.org>
73575
73576         * gnulib-tool (SED): New variable.
73577         Use $SED instead of sed everywhere.
73578
73579 2006-12-22  Bruno Haible  <bruno@clisp.org>
73580
73581         * modules/no-c++: New file.
73582         * m4/no-c++.m4: New file.
73583         * MODULES.html.sh (Support for building libraries and executables):
73584         Add no-c++.
73585
73586 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
73587
73588         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73589         Include <limits.h>, and use its INT_MAX to rewrite the
73590         j loop so that it does not overflow 'int'.  Problem reported by
73591         Ralf Wildenhues in
73592         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
73593         Play it safe by shifting left by 1 rather than multiplying by 2,
73594         as GCC is less likely to optimize this away when the value
73595         is signed (when it assumes overflow leads to undefined behavior).
73596         Also, don't assume time_t uses two's complement.
73597
73598 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
73599
73600         * MODULES.html.sh: New module wctype.
73601         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
73602         * lib/fnmatch.c: Don't bother to include <wchar.h> before
73603         <wctype.h>, since the new wctype module should fix this.
73604         * lib/quotearg.c: Include <wctype.h> unconditionally, since
73605         the wctype module should arrange for it.
73606         * lib/regex_internal.h: Likewise.
73607         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
73608         since the wctype module should handle this now.
73609         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
73610         * modules/fnmatch (Depends-on): Add wctype.
73611         * modules/quotearg (Depends-on): Likewise.
73612         * modules/regex (Depends-on): Likewise.
73613
73614 2006-12-19  Bruno Haible  <bruno@clisp.org>
73615
73616         * lib/strdup.h [C++]: Wrap definitions in extern "C".
73617         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
73618
73619 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73620
73621         * modules/savewd (Depends-on): Fix dependency on fcntl.
73622
73623 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
73626         conforms to C99, rather than relying on the user's environment
73627         setting of STDINT_H.
73628
73629 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73630         and Eric Blake  <ebb9@byu.net>
73631
73632         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
73633         This is more consistent with the other defines here.
73634         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
73635         Port to z/OS.  Problem reported by Paul Gilmartin.
73636         Change local vars to use gl_ prefix rather than ac_.
73637         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
73638         with other defines.
73639         * modules/double-slash-root: New module.
73640         * modules/dirname (Files): Remove m4/double-slash-root.m4.
73641         (Depends-on): Add double-slash-root.
73642         * MODULES.html.sh (File system functions): Mention new module.
73643
73644 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
73645
73646         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
73647         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
73648         This is for the benefit of gzip, which doesn't do i18n.
73649
73650 2006-12-12  Jim Meyering  <jim@meyering.net>
73651
73652         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
73653         Reported by Andreas Schwab <schwab@suse.de>.
73654
73655 2006-12-12  Bruno Haible  <bruno@clisp.org>
73656
73657         Merge these changes.
73658         2006-09-05  Bruno Haible  <bruno@clisp.org>
73659         * lib/iconvme.c (iconv_string): No need to save and restore errno when
73660         iconv_alloc succeeded.
73661         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
73662         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
73663         test for " && dest " at the end - dest is always != NULL there. Call
73664         iconv with 4xNULL arguments initially, to reset the state. Call iconv
73665         with 2xNULL arguments, also to flush the state storage. Handle the
73666         IRIX iconv behaviour. Realloc the final result, to throw away unused
73667         memory.
73668
73669 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
73670
73671         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
73672         and fchmodat unconditionally, since glibc 2.4 has them.
73673         Problem reported by Arkadiusz Miskiewicz.
73674
73675 2006-12-10  Bruno Haible  <bruno@clisp.org>
73676
73677         * gnulib-tool (func_import): Show the include files only for those
73678         modules that are copied and specified.
73679         Reported by Karl Berry.
73680
73681 2006-12-08  Jim Meyering  <jim@meyering.net>
73682
73683         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
73684         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
73685
73686         * build-aux/announce-gen: Add two new options, both optional:
73687         --bootstrap-tools=TOOL_LIST
73688               a comma-separated list of tools, e.g.,
73689               autoconf,automake,bison,gnulib
73690         --gnulib-snapshot-date=DATE
73691               if gnulib is in the bootstrap tool list,
73692               then report this as the snapshot date.
73693               If not specified, use the current date/time.
73694               If you specify a date here, be sure it's UTC.
73695
73696 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73697
73698         * tests/test-argp-2.sh: Fix test to match actual output.
73699         (func_compare): Fix sed script to be portable.
73700
73701 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
73704         workaround for this case.  It is not autoconfigured now; offhand
73705         it's hard to see how to autoconfigure it.
73706
73707 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
73708
73709         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
73710         a directory that is about to be chowned.  Such a directory's
73711         initial file permissions should permit the owner only and this
73712         should not be changed until after the chown, since the group and
73713         other bits would be incorrect if they granted permission before
73714         the chown.
73715
73716         Fix porting problem for iswctype reported by Georg Schwarz in:
73717         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
73718         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
73719         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
73720         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
73721         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73722
73723 2006-12-03  Jim Meyering  <jim@meyering.net>
73724
73725         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
73726         p->fts_statp may not yet be defined.
73727         (fts_read): Instead, set it in the caller, once p->fts_statp is
73728         sure to be defined, and corresponds to a top-level directory.
73729         This bug made du -x fail.  Here's the coreutils test case:
73730         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
73731         Reported by Mike Frysinger.
73732
73733 2006-12-01  Jim Meyering  <jim@meyering.net>
73734
73735         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
73736         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
73737         Reported by Simon Josefsson.
73738
73739 2006-11-30  Jim Meyering  <jim@meyering.net>
73740
73741         * m4/warning.m4: Use the all-permissive copyright notice
73742         recommended by RMS (rather than LGPL).
73743         * m4/vararrays.m4: Likewise.
73744         * m4/flexmember.m4: Likewise.
73745
73746 2006-11-29  Bruno Haible  <bruno@clisp.org>
73747
73748         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73749         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
73750         using +=.
73751         Reported by Simon Josefsson <simon@josefsson.org>.
73752
73753 2006-11-28  James Youngman <jay@gnu.org>
73754
73755         * README: Advise users that they might find the bug-gnulib@gnu.org
73756         and autotools-announce@gnu.org mailing lists useful.
73757
73758 2006-11-28  Bruno Haible  <bruno@clisp.org>
73759
73760         * m4/ptrdiff_max.m4: Remove file.
73761
73762 2006-11-21  Bruno Haible  <bruno@clisp.org>
73763
73764         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
73765         _AC_COMPUTE_INT.
73766         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73767         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
73768         _AC_COMPUTE_INT.
73769         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73770         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
73771         _AC_COMPUTE_INT.
73772         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73773
73774 2006-11-28  Jim Meyering  <jim@meyering.net>
73775
73776         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
73777         warning from "gcc -Wshadow" about shadowing the builtin.
73778
73779 2006-11-27  Bruno Haible  <bruno@clisp.org>
73780
73781         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
73782         _AC_COMPUTE_INT.
73783         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73784
73785 2006-11-27  Bruno Haible  <bruno@clisp.org>
73786             Paul Eggert  <eggert@cs.ucla.edu>
73787
73788         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
73789
73790 2006-11-26  Bruno Haible  <bruno@clisp.org>
73791
73792         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73793         noinst_LTLIBRARIES.
73794
73795 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73796             Bruno Haible  <bruno@clisp.org>
73797
73798         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
73799         if compiling with "gcc -ansi".
73800
73801 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73802
73803         Fix some incompatibilities with gcc -ansi -pedantic.
73804         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
73805         if compiling pedantically with GCC, unless it's C99 or later.
73806         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
73807         it mishandles gcc -ansi -pedantic as well.
73808         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
73809         if gcc -pedantic.
73810         * lib/regexec.c (check_node_accept_bytes): Don't use auto
73811         initializers for struct if -pedantic, unless it's C99 or later.
73812
73813 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
73814
73815         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
73816         Don't close an fd more than once. Identical atimes indicate
73817         success, not failure.
73818
73819 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
73820
73821         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
73822
73823 2006-11-23  Jim Meyering  <jim@meyering.net>
73824
73825         * build-aux/announce-gen: New file.  From coreutils.
73826
73827 2006-11-22  Jim Meyering  <jim@meyering.net>
73828
73829         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
73830         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
73831         (fts_read): Use a temporary to narrow the overused st_size member
73832         before using it in a switch statement.  Reported by Matthew Woehlke.
73833
73834         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
73835         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73836
73837 2006-11-20  Bruno Haible  <bruno@clisp.org>
73838
73839         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
73840         changequote instead of pairs of brackets.
73841         Reported by Andreas Schwab <schwab@suse.de>.
73842
73843 2006-11-21  Jim Meyering  <jim@meyering.net>
73844
73845         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
73846         so as to remain compatible with older compilers.
73847         Patch from Michael Deutschmann.
73848
73849 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73850
73851         * MODULES.html.sh (File system functions): Add openat.
73852
73853         * lib/openat.h (rpl_fstatat): New macro, if
73854         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
73855         (fstatat): Define to rpl_fstatat under the same conditions,
73856         unless COMPILING_FSTATAT.
73857         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
73858         seems to have the bug.
73859         * lib/fstatat.c: New file.
73860         * modules/openat (Files): Add it.
73861
73862 2006-11-20  Bruno Haible  <bruno@clisp.org>
73863
73864         * Makefile: New file.
73865
73866 2006-11-20  Jim Meyering  <jim@meyering.net>
73867
73868         The beginnings of syntax-related checks for gnulib.
73869         * lib/Makefile: New file.
73870         * lib/t-idcache: New script.  Ensure that the two halves of
73871         idcache.c stay in sync.
73872
73873         * lib/idcache.c: Adjust comments in user- and group- portions to
73874         be more accurate, and to be consistent with one another.
73875
73876 2006-11-20  Jim Meyering  <jim@meyering.net>
73877
73878         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
73879         continue using the flexible array member (thus, this module performs
73880         half as many malloc calls), with the addition that...
73881         (getgroup, getuser): Consistently record a non-match via an empty
73882         "name" string, and map an empty string match to a NULL return value.
73883         * modules/idcache (Depends-on): Re-add flexmember.
73884
73885         * lib/idcache.c (getuser): Remove all uses of the register keyword.
73886         (getuidbyname, getgroup, getgidbyname): Likewise.
73887
73888         Use cleaner syntax: NULL rather than 0.
73889         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
73890
73891 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73892
73893         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
73894         It mishandled the case where the group was missing.
73895         Problem reported by Greg Schafer.
73896         * modules/idcache: Likewise.
73897
73898 2006-11-18  Jim Meyering  <jim@meyering.net>
73899
73900         * check-module (%exempt_header): Add exception for some
73901         conditionally-included headers.
73902
73903         * modules/i-ring (Depends-on): Add verify.
73904         (License): Change to LGPL.
73905
73906 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
73909         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
73910         and inttostr.h.  Use snprintf rather than uinttostr, so that
73911         LGPLed code doesn't depend on GPLed.
73912
73913 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73914
73915         * modules/inline (License): Change from GPL to LGPL.
73916
73917 2006-11-17  Jim Meyering  <jim@meyering.net>
73918
73919         * modules/d-type (License): Switch to LGPL.
73920
73921 2006-11-15  Bruno Haible  <bruno@clisp.org>
73922
73923         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
73924
73925 2006-11-15  Eric Blake  <ebb9@byu.net>
73926
73927         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
73928         the module dependency.
73929
73930 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73931             Bruno Haible  <bruno@clisp.org>
73932
73933         * gnulib-tool (func_create_testdir): Add license consistency check.
73934
73935 2006-11-15  Eric Blake  <ebb9@byu.net>
73936
73937         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
73938         random "(cached)" in configure output.
73939
73940 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73941
73942         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
73943         test for conforming inttypes.h is both announced and cached.
73944
73945         * MODULES.html.sh (seen_modules, seen_files): New variables.
73946         (func_module): Rewrite to use a few less gnulib-tool and sed
73947         invocations.  Avoid a couple of quadratic algorithms for ...
73948         (missed_modules, missed_files): ... these, with ...
73949         (func_append, func_tmpdir): ... these new functions, from
73950         gnulib-tool.  Analogously, install traps for cleanup.
73951
73952         * tests/test-gc.c (main): Remove unused variables.
73953         * tests/test-read-file.c: Include stdlib.h, for 'free'.
73954
73955 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
73956
73957         * modules/inttostr (License): Change to LGPL.
73958
73959 2006-11-14  Eric Blake  <ebb9@byu.net>
73960
73961         * modules/tempname (License): Change to LGPL.
73962
73963 2006-11-14  Eric Blake  <ebb9@byu.net>
73964
73965         * doc/functions.texi (Function Portability): *printf functions on
73966         Cygwin now understand all POSIX size specifiers.
73967
73968 2006-11-14  Bruno Haible  <bruno@clisp.org>
73969
73970         * modules/c-ctype (License): Change to LGPL.
73971
73972 2006-11-12  Bruno Haible  <bruno@clisp.org>
73973
73974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73975         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
73976         for GNOME libraries, for which the include files are installed in
73977         subdirectories of $prefix/include.
73978
73979 2006-11-12  Bruno Haible  <bruno@clisp.org>
73980
73981         * m4/lib-link.m4: Require at least autoconf-2.54.
73982         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
73983         name to underscores for the --with option.
73984
73985 2006-11-13  Bruno Haible  <bruno@clisp.org>
73986
73987         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
73988         the tests directory.
73989         Reported by Ralf Wildenhues.
73990
73991 2006-11-13  Bruno Haible  <bruno@clisp.org>
73992
73993         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
73994         (func_emit_initmacro_end): Undo the override here.
73995         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
73996         Works around the famous automake error in coreutils.
73997
73998 2006-11-13  Eric Blake  <ebb9@byu.net>
73999
74000         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74001         element, not its node.
74002
74003 2006-11-12  Bruno Haible  <bruno@clisp.org>
74004
74005         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74006         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74007
74008 2006-11-12  Bruno Haible  <bruno@clisp.org>
74009
74010         * gnulib-tool: New option --local-symlink.
74011         (func_usage): Document it.
74012         (lsymbolic): New variable.
74013         (func_import, func_create_testdir): If --symlink was not specified,
74014         test whether --local-symlink was specified and the file comes from
74015         the local_gnulib_dir.
74016
74017 2006-11-12  Bruno Haible  <bruno@clisp.org>
74018
74019         * gnulib-tool (func_ln): New function.
74020         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74021
74022 2006-11-12  Bruno Haible  <bruno@clisp.org>
74023
74024         Finish support for source files in subdirectories.
74025         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74026         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74027         AUTOMAKE_OPTIONS.
74028         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74029
74030 2006-11-12  Bruno Haible  <bruno@clisp.org>
74031
74032         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74033         EXTRA_lib_SOURCES augmentation.
74034         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74035
74036 2006-11-12  Jim Meyering  <jim@meyering.net>
74037
74038         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74039         file descriptors.  This also averts a failure on systems with
74040         native openat support when a traversed directory lacks "x" access.
74041         * lib/fts_.h: Include "i-ring.h"
74042         (struct FTS) [fts_fd_ring]: New member.
74043         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74044         (FCHDIR): Add parentheses.
74045         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74046         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74047         When descending, rather than simply closing the previous
74048         fts_cwd_fd value, push that file descriptor onto the ring.
74049         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74050         (fts_open): Initialize the new fd_ring member.
74051         (fts_close): Clear the ring.
74052         (fts_safe_changedir): When possible, use our new fd_ring to skip
74053         the diropen and fstat and dev/ino comparison that would normally
74054         accompany a virtual `chdir ("..")'.
74055
74056         * modules/fts (Depends-on): Add i-ring.
74057         * modules/i-ring: New module.
74058         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74059         * m4/i-ring.m4: New file.
74060
74061 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74062
74063         * gnulib-tool (func_create_testdir): Fix replacement of
74064         `build-aux' in configure.ac.  Run autotools in gltests
74065         subdirectory.
74066         (func_create_testdir, func_create_megatestdir, test): There is
74067         no need for '--force' in most autotool invocations in a new
74068         tree.  Actually fail the whole test if any of the tools, or the
74069         configure or make stages fail.
74070
74071         Sync from Automake.
74072         * build-aux/gnupload: Revert last change.  Add pointer to upload
74073         instructions of the GNU Maintenance Instructions.
74074         Suggestion by Karl Berry.
74075
74076 2006-11-10  Jim Meyering  <jim@meyering.net>
74077
74078         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74079
74080 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74083         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74084         (bind_textdomain_codeset) [! ENABLE_NLS]:
74085         Evaluate all the arguments.  That way, callers get compatible behavior
74086         if the arguments have side effects.  Also, it avoids some GCC
74087         diagnostics in some cases; Joel E. Denny reported problems when Bison
74088         was configured with --enable-gcc-warnigs.
74089
74090 2006-11-10  Jim Meyering  <jim@meyering.net>
74091
74092         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74093         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74094         account.
74095
74096 2006-11-10  Jim Meyering  <jim@meyering.net>
74097
74098         * modules/inline: New file/module.
74099         * modules/xalloc (Files): Remove m4/inline.m4.
74100         (Depends-on): Add inline, instead.
74101         * modules/oset: Likewise.
74102         * modules/list: Likewise.
74103
74104 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74105
74106         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74107         Problem reported by Matthew Woehlke.
74108
74109 2006-11-09  Bruno Haible  <bruno@clisp.org>
74110
74111         * lib/tempname.c (gen_tempname): Remove variant that invokes
74112         __gen_tempname.
74113         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74114         __gen_tempname.
74115
74116 2006-11-08  Bruno Haible  <bruno@clisp.org>
74117
74118         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74119         to 'yes' instead of 'cross-compiling'.
74120
74121 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74122
74123         * lib/quotearg.h (quotearg_free): New decl.
74124         * lib/quotearg.c (quotearg_free): New function.
74125         (slot0, nslots, slotvec0, slotvec):
74126         Now file-scope so that quotearg_free can get at them.
74127
74128 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74129
74130         Sync from Automake.
74131         * build-aux/gnupload: Add missing 'gnu' to example URL.
74132         Report by Karl Berry.
74133
74134 2006-11-08  Bruno Haible  <bruno@clisp.org>
74135
74136         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74137         Suggested by Paul Eggert.
74138
74139 2006-11-08  Jim Meyering  <jim@meyering.net>
74140
74141         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74142         It's already included if !_LIBC.
74143         (fts_safe_changedir): Add a comment.
74144
74145 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74148         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74149         Matthew Woehlke.
74150
74151         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74152         definitions up, to avoid colliding with change below.
74153         (static_inline) [HAVE_INLINE]: New macro.
74154         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74155         Provide extern decls when !HAVE_INLINE.  Do not define unless
74156         static_inline is defined, either by us or by xmalloc.c.  Use
74157         static_inline rather than static inline.
74158         (XCALLOC): Optimize sizeof(T) = 1 case.
74159         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74160
74161 2006-11-07  Bruno Haible  <bruno@clisp.org>
74162
74163         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74164         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74165         AC_C_INLINE.
74166         * modules/xalloc (Files): Add m4/inline.m4.
74167
74168 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74169
74170         * README: Fix typo.
74171         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74172         (Miscellanous Notes): ...from this.
74173
74174 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74177         Mention that offsetof should be used instead of sizeof.
74178         From Bruno Haible.
74179
74180 2006-11-07  Bruno Haible  <bruno@clisp.org>
74181
74182         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74183
74184 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74187         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74188         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74189         (gl_tree_add_before, gl_tree_add_after):
74190         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74191         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74192         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74193         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74194         (gl_linked_add_after, gl_linked_add_at): Likewise.
74195         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74196         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74197         (gl_tree_add_before, gl_tree_add_after): Likewise.
74198         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74199         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74200         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74201
74202 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74203
74204         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74205
74206 2006-11-06  Bruno Haible  <bruno@clisp.org>
74207
74208         * m4/inline.m4: New file.
74209         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74210         * modules/list (Files): Add m4/inline.m4.
74211         * modules/oset (Files): Likewise.
74212
74213 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74214
74215         * lib/idcache.c: Include <stddef.h>, for offsetof.
74216         (struct userid.name): Change from char * to a flexible array member.
74217         All uses changed.
74218         * modules/idcache (Depends-on): Add flexmember.
74219
74220         * MODULES.html.sh (Core language properties): New module flexmember.
74221         * modules/flexmember, m4/flexmember.m4: New files.
74222
74223         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74224         inline functions that are identical with the old xnmalloc_inline,
74225         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74226         that we can avoid some unnecessary integer multiplications and
74227         divisions in the common case where the element size is known at
74228         compile time.
74229         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74230         needed.
74231         (xnboundedmalloc): Remove.
74232         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74233         arguments, for consistency with rest of this header.
74234         (xcharalloc): Rewrite using XNMALLOC.
74235         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74236         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74237         versions have been moved to lib/xalloc.h and renamed to be the
74238         non-*_inline versions.
74239         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74240         and xnrealloc functions, since those functions are now inline and
74241         now call us.
74242         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74243         renaming described above.
74244         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74245         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74246         captures the dependency in AC_C_INLINE.
74247
74248         New module canonicalize-lgpl, proposed by Charles Wilson in
74249         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74250         with a few small changes afterwards.
74251         * MODULES.html.sh (File system functions): New module
74252         canonicalize-lgpl.
74253         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74254         and canonicalize_file_name.
74255         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74256         * modules/canonicalize-lgpl: New files.
74257
74258 2006-11-05  Bruno Haible  <bruno@clisp.org>
74259
74260         * gnulib-tool (func_import, func_create_testdir): Create directories
74261         also for files in subdirectories of lib/.
74262
74263 2006-11-05  Bruno Haible  <bruno@clisp.org>
74264
74265         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74266         ANSI C compliant.
74267
74268 2006-11-03  Bruno Haible  <bruno@clisp.org>
74269
74270         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74271         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74272         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74273         (xnboundedmalloc): New inline function.
74274         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74275         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74276         xmalloc.
74277         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74278         xmalloc.
74279         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74280         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74281         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74282         xmalloc.
74283         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74284         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74285         xmalloc.
74286         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74287         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74288         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74289         xmalloc.
74290         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74291         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74292         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74293         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74294         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74295         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74296         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74297
74298 2006-11-03  Bruno Haible  <bruno@clisp.org>
74299
74300         * lib/c-ctype.h [C++]: Define functions without name mangling.
74301         * lib/fwriteerror.h [C++]: Likewise.
74302         * lib/gcd.h [C++]: Likewise.
74303         * lib/linebreak.h [C++]: Likewise.
74304
74305 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74306
74307         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74308         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74309         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74310         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74311         Check for functions and headers just once.
74312         Check for declaration of canonicalize_file_name.
74313         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74314
74315 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74316
74317         * gnulib-tool (func_import): Fix typo in actioncmd.
74318
74319 2006-11-02  Bruno Haible  <bruno@clisp.org>
74320
74321         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74322         newline sequence in the Makefile.am snippet as a space, like "make"
74323         does.
74324         Reported by Roger Persson <perrog@gmail.com>.
74325
74326 2006-11-01  Bruno Haible  <bruno@clisp.org>
74327
74328         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74329         already declared in <string.h>.
74330         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74331
74332 2006-11-01  Bruno Haible  <bruno@clisp.org>
74333
74334         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74335         * lib/strcase.h: Include <string.h>.
74336         (strcasecmp): Define to rpl_strcasecmp here.
74337
74338 2006-11-01  Bruno Haible  <bruno@clisp.org>
74339
74340         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74341
74342 2006-11-01  Eric Blake  <ebb9@byu.net>
74343
74344         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74345
74346         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74347
74348 2006-10-29  Bruno Haible  <bruno@clisp.org>
74349
74350         Make it compile in C++ mode.
74351         * lib/full-write.c (full_rw): Add a cast.
74352
74353 2006-11-01  Bruno Haible  <bruno@clisp.org>
74354
74355         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74356         be POSIX compliant.
74357         Reported by Roger Persson <perrog@gmail.com>.
74358
74359 2006-11-01  Eric Blake  <ebb9@byu.net>
74360
74361         * lib/getopt_.h: Fix comments.
74362
74363 2006-10-31  Eric Blake  <ebb9@byu.net>
74364
74365         * modules/tmpdir (Depends-on): Add sys_stat.
74366         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74367         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74368         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74369         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74370         tempname.
74371
74372 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74373
74374         Avoid some C++ diagnostics reported by Bruno Haible.
74375         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74376         xmalloc.
74377         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74378         (struct slotvec): Move to top level.
74379         (quotearg_n_options): Rewrite to avoid xmalloc.
74380         * lib/xalloc.h (xcharalloc): New function.
74381         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74382         [defined __cplusplus]: Add function template that provides result
74383         type propagation.  This part of the change is from Bruno Haible.
74384
74385 2006-10-29  Bruno Haible  <bruno@clisp.org>
74386
74387         Make it compile in C++ mode.
74388         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74389         * lib/strnlen1.c (strnlen1): Cast memchr result.
74390         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74391         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74392         (create_temp_dir): Rename local variable 'template'.
74393         (compile_csharp_using_sscli): Add cast.
74394         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74395         * lib/findprog.c (find_in_path): Likewise.
74396         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74397         * lib/wait-process.c (register_slave_subprocess): Likewise.
74398
74399 2006-10-22  Bruno Haible  <bruno@clisp.org>
74400
74401         * modules/tsearch: New file.
74402         * lib/tsearch.h: New file.
74403         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74404         * m4/tsearch.m4: New file.
74405         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74406
74407 2006-10-29  Eric Blake  <ebb9@byu.net>
74408
74409         * lib/arcfour.c: Assume config.h.
74410         * lib/arctwo.c: Likewise.
74411         * lib/base64.c: Likewise.
74412         * lib/check-version.c: Likewise.
74413         * lib/crc.c: Likewise.
74414         * lib/des.c: Likewise.
74415         * lib/gc-gnulib.c: Likewise.
74416         * lib/gc-libgcrypt.c: Likewise.
74417         * lib/gc-pbkdf2-sha1.c: Likewise.
74418         * lib/getaddrinfo.c: Likewise.
74419         * lib/getdelim.c: Likewise.
74420         * lib/getline.c: Likewise.
74421         * lib/hmac-md5.c: Likewise.
74422         * lib/hmac-sha1.c: Likewise.
74423         * lib/iconvme.c: Likewise.
74424         * lib/md2.c: Likewise.
74425         * lib/md4.c: Likewise.
74426         * lib/memxor.c: Likewise.
74427         * lib/read-file.c: Likewise.
74428         * lib/readline.c: Likewise.
74429         * lib/rijndael-alg-fst.c: Likewise.
74430         * lib/rijndael-api-fst.c: Likewise.
74431         * lib/xgetdomainname.c: Likewise.
74432
74433 2006-10-28  Eric Blake  <ebb9@byu.net>
74434
74435         * lib/xstrndup.c: Assume config.h.
74436
74437 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74438
74439         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74440         stat-macros.h is now for our own macros, whereas stat_h is for
74441         macros in the <sys/stat.h> name space.
74442         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74443         (STAT_MACROS_H): Remove.
74444         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74445         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74446         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74447         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74448         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74449         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74450         Move these macros to ...
74451         * lib/stat_.h: here.  Don't include stat-macros.h.
74452         * lib/canonicalize.c: Don't include stat-macros.h.
74453         * lib/chown.c: Likewise.
74454         * lib/euidaccess.c: Likewise.
74455         * lib/file-type.c: Likewise.
74456         * lib/filemode.c: Likewise.
74457         * lib/glob.c: Likewise.
74458         * lib/isapipe.c: Likewise.
74459         * lib/lchown.c: Likewise.
74460         * lib/lstat.c: Likewise.
74461         * lib/mkdir-p.c: Likewise.
74462         * lib/rmdir.c: Likewise.
74463         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74465         unless mkdir isn't declared, to speed up 'configure'.
74466         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74467         would define all the S_* symbols.
74468         * modules/canonicalize (Depends-on):
74469         Depend on sys_stat, not stat-macros.
74470         * modules/chown: Likewise.
74471         * modules/euidaccess: Likewise.
74472         * modules/filemode: Likewise.
74473         * modules/file-type: Likewise.
74474         * modules/glob: Likewise.
74475         * modules/isapipe: Likewise.
74476         * modules/lchown: Likewise.
74477         * modules/lstat: Likewise.
74478         * modules/mkancesdirs: Likewise.
74479         * modules/rmdir: Likewise.
74480         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74481         * modules/modechange: Likewise.
74482         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74483         (configure.ac): Remove gl_STAT_MACROS.
74484         * modules/sys_stat (Depends-on): Remove stat-macros.
74485
74486 2006-10-27  Bruno Haible  <bruno@clisp.org>
74487
74488         * m4/signed.m4: Remove file.
74489         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74490         invocation.
74491         * modules/vasnprintf (Files): Remove m4/signed.m4.
74492
74493 2006-10-27  Bruno Haible  <bruno@clisp.org>
74494
74495         Update to GNU gettext 0.16.
74496         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74497         m4/inttypes-h.m4, m4/signed.m4.
74498         * m4/gettext.m4: Update to GNU gettext 0.16.
74499         * m4/intl.m4: New file, from GNU gettext.
74500         * m4/intldir.m4: New file, from GNU gettext.
74501         * config/srclist.txt: Update
74502
74503 2006-10-27  Eric Blake  <ebb9@byu.net>
74504
74505         * MODULES.html.sh: Document tempname.
74506         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74507         dependencies.
74508         (Files): Move lib/tempname.c...
74509         * modules/tempname: ...to this new module.
74510         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74511         (gl_PREREQ_TEMPNAME): Move...
74512         * m4/tempname.m4: ...to this new file.
74513         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74514         * modules/sys_stat (Depends-on): Add stat-macros.
74515         * lib/stat_.h (includes): Pick up stat macros.
74516         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74517         if stat macros are broken.
74518         * lib/tempname.c (includes): No need to include "stat-macros.h".
74519         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74520         (direxists, __path_search) [!_LIBC]: Don't compile these in
74521         gnulib; the tmpdir module covers that.
74522         * lib/tempname.h: New file.
74523
74524 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         * COPYING: Explain how gnulib-tool converts licence headers.
74527         Almost all wording by Eric Blake.
74528
74529 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
74530
74531         * lib/mbchar.h (is_basic_table): Make read-only.
74532         * lib/mbchar.c (is_basic_table): Likewise.
74533         Reported by John Darrington.
74534
74535 2006-10-25  Bruno Haible  <bruno@clisp.org>
74536
74537         * lib/progname.h (set_program_name): Undefine before defining.
74538
74539 2006-10-25  Bruno Haible  <bruno@clisp.org>
74540
74541         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
74542         false for non-gcc C++ compilers.
74543         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74544
74545 2006-10-24  Bruno Haible  <bruno@clisp.org>
74546
74547         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
74548         iconv implementations like Irix iconv.
74549
74550 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74551
74552         * modules/vararrays: New file.
74553         * m4/vararrays.m4: New file, taken from diffutils.
74554         * MODULES.html.sh: New module vararrays.
74555
74556 2006-10-24  Karl Berry  <karl@gnu.org>
74557
74558         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
74559         Don't call GNU Unix.
74560
74561 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74562
74563         * users.txt: Add Libtool.
74564
74565         Sync from Libtool:
74566
74567         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74568
74569         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
74570         to gnulib's policy of including config.h unconditionally.
74571
74572 2006-10-24  Bruno Haible  <bruno@clisp.org>
74573
74574         * modules/wcwidth (Files): Add m4/wint_t.m4.
74575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
74576         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
74577
74578 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
74581         to pacify GCC with some -W flags enabled.  Problem reported by
74582         Bruno Haible.
74583
74584 2006-10-24  Jim Meyering  <jim@meyering.net>
74585
74586         * MODULES.html.sh: Remove uinttostr.  It's not a module.
74587         Reported by Karl Berry.
74588
74589 2006-10-23  Bruno Haible  <bruno@clisp.org>
74590
74591         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
74592
74593 2006-10-24  Bruno Haible  <bruno@clisp.org>
74594
74595         * lib/gl_list.h: Use C comment style, not C++ comment style.
74596
74597 2006-10-23  Eric Blake  <ebb9@byu.net>
74598
74599         * lib/getaddrinfo.c (includes): Add missing include.
74600
74601 2006-10-23  Bruno Haible  <bruno@clisp.org>
74602             Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         Ability to rename obstack_free.
74605         * lib/obstack.h (__obstack_free): New macro. Declare instead of
74606         obstack_free.
74607         (obstack_free): Invoke the __obstack_free macro.
74608         * lib/obstack.c (obstack_free): Use __obstack_free macro.
74609
74610 2006-10-23  Bruno Haible  <bruno@clisp.org>
74611             Paul Eggert  <eggert@cs.ucla.edu>
74612
74613         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
74614         __argc, __argv from the declaration. (They are defined as macros on
74615         mingw.)
74616
74617 2006-10-22  Bruno Haible  <bruno@clisp.org>
74618
74619         * doc/gnulib-intro.texi: New file.
74620         * doc/gnulib.texi: Include it.
74621
74622 2006-10-21  Bruno Haible  <bruno@clisp.org>
74623
74624         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
74625         "Introduction", "Miscellanous Notes", "Particular Modules".
74626
74627 2006-10-21  Bruno Haible  <bruno@clisp.org>
74628
74629         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74630         Change mostlyclean-local rule to avoid sh syntax error from bash
74631         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
74632
74633 2006-10-23  Jim Meyering  <jim@meyering.net>
74634
74635         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
74636         in place of snprintf.
74637
74638         * modules/inttostr (Files): Add lib/uinttostr.c.
74639         * lib/uinttostr.c (inttostr): New file/function.
74640         * lib/inttostr.h (uinttostr): Declare.
74641         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
74642         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74643         Add uinttostr.
74644         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
74645
74646 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74647
74648         * lib/canonicalize.c (ELOOP): Define if not already defined.
74649         Problem reported by Bruno Haible in
74650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
74651
74652 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74653
74654         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
74655         Problem reported by Perry Smith and Ville Laurikari.
74656
74657         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
74658         uses.
74659
74660 2006-10-19  Bruno Haible  <bruno@clisp.org>
74661
74662         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
74663         for mingw.
74664
74665 2006-10-19  Bruno Haible  <bruno@clisp.org>
74666
74667         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
74668         Needed for mingw.
74669
74670 2006-10-19  Bruno Haible  <bruno@clisp.org>
74671
74672         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
74673
74674 2006-10-19  Bruno Haible  <bruno@clisp.org>
74675
74676         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
74677         it.
74678
74679 2006-10-19  Bruno Haible  <bruno@clisp.org>
74680
74681         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
74682         invocation.
74683
74684 2006-10-19  Bruno Haible  <bruno@clisp.org>
74685
74686         * gnulib-tool (func_create_testdir): Don't include ftruncate and
74687         mountlist by default.
74688
74689 2006-10-16  Bruno Haible  <bruno@clisp.org>
74690
74691         * lib/c-strstr.c: Include c-strstr.h.
74692
74693 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74694
74695         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
74696         in a slash.
74697
74698 2006-10-18  Bruno Haible  <bruno@clisp.org>
74699
74700         * lib/lock.h [C++]: Wrap definitions in extern "C".
74701
74702 2006-10-18  Bruno Haible  <bruno@clisp.org>
74703
74704         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
74705         gl_LIBOBJS list.
74706
74707 2006-10-18  Bruno Haible  <bruno@clisp.org>
74708
74709         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
74710
74711 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * lib/xstrtol.h: Include gettext.h.
74714         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
74715         Problem reported by Eric Blake.
74716         * modules/xstrtol (Depends-on): Add gettext-h.
74717
74718 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
74719
74720         * lib/strftime.c (advance): New macro.
74721         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
74722         incomplete type, so you can't add 0 to it.  Problem and patch
74723         reported by Eelco Dolstra for dietlibc.
74724
74725 2006-10-18  Jim Meyering  <jim@meyering.net>
74726
74727         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
74728         type for a local, and rename it: s/up/user_proc/.
74729
74730 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
74731
74732         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
74733         READ_UTMP_USER_PROCESS.
74734         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
74735
74736 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74737
74738         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
74739         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
74740
74741 2006-10-17  Eric Blake  <ebb9@byu.net>
74742
74743         * lib/sigprocmask.c (sigprocmask): Fix typo.
74744
74745         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
74746
74747         * modules/clean-temp (Makefile.am): Don't add to make output...
74748         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
74749         config.h.
74750
74751 2006-10-17  Bruno Haible  <bruno@clisp.org>
74752
74753         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
74754         differently if DEFAULT_TEXT_DOMAIN is set.
74755
74756 2006-10-16  Bruno Haible  <bruno@clisp.org>
74757
74758         * lib/clean-temp.c: Include fwriteerror.h.
74759
74760 2006-10-16  Bruno Haible  <bruno@clisp.org>
74761
74762         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
74763
74764 2006-10-16  Bruno Haible  <bruno@clisp.org>
74765
74766         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
74767         * lib/sigprocmask.h: Include <sys/types.h>.
74768         (sigset_t): Use the system's definition if present.
74769
74770 2006-10-17  Eric Blake  <ebb9@byu.net>
74771
74772         * lib/xvasprintf.c (includes): Assume config.h.
74773         * lib/xasprintf.c (includes): Likewise.
74774
74775 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
74778         at least as wide as intmax_t.
74779
74780 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
74781
74782         (Imported from Automake.)
74783         * build-aux/gnupload: Update to version 1.1 of directive file.
74784
74785 2006-10-16  Eric Blake  <ebb9@byu.net>
74786
74787         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
74788         match Automake 1.10a.
74789
74790 2006-10-14  Bruno Haible  <bruno@clisp.org>
74791
74792         * modules/sigprocmask: New file.
74793         * lib/sigprocmask.h: New file.
74794         * lib/sigprocmask.c: New file.
74795         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
74796         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
74797         request sigprocmask.o.
74798         (gl_PREREQ_SIGPROCMASK): New macro.
74799         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
74800         (Depends-on): Add sigprocmask.
74801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
74802         gt_SIGNALBLOCKING. Test for 'raise' only once.
74803         * lib/fatal-signal.c: Include sigprocmask.h.
74804         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
74805         unblock_fatal_signals): Define always.
74806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74807         sigprocmask.
74808
74809 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74810
74811         Sync from Automake.
74812         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
74813         which incorrectly sets the mode of an existing destination
74814         directory.  In some cases the unpatched install-sh could do the
74815         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
74816         system.  We hope this is rare in practice, but it's clearly worth
74817         fixing.  Problem reported by Alex Unleashed in
74818         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
74819         Also, don't bother to check for -m bugs unless we're using -m;
74820         suggested by Stepan Kasal.
74821
74822 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74823
74824         Sync from Automake.
74825         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
74826         `-c' flag, so they appear at the same position as in %FASTDEP%
74827         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
74828         which ignores unknown options only after the first non-option.
74829         Bug report against M4 by Nelson H. F. Beebe.
74830
74831 2006-10-13  Jim Meyering  <jim@meyering.net>
74832
74833         Fix a bug in yesterday's change.
74834         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
74835         p->fts_statp->st_dev would be used uninitialized.
74836         Ensures that we always call fts_stat on the very first entry.
74837         Miklos Szeredi reported that find -xdev stopped working.
74838
74839 2006-10-12  Bruno Haible  <bruno@clisp.org>
74840
74841         * gnulib-tool (func_get_automake_snippet): Append an automatically
74842         computed EXTRA_DIST augmentation.
74843         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
74844         * modules/alloca-opt (Makefile.am): Likewise.
74845         * modules/allocsa (Makefile.am): Likewise.
74846         * modules/arcfour (Makefile.am): Likewise.
74847         * modules/arctwo (Makefile.am): Likewise.
74848         * modules/argmatch (Makefile.am): Likewise.
74849         * modules/argz (Makefile.am): Likewise.
74850         * modules/atexit (Makefile.am): Likewise.
74851         * modules/backupfile (Makefile.am): Likewise.
74852         * modules/byteswap (Makefile.am): Likewise.
74853         * modules/c-strtod (Makefile.am): Likewise.
74854         * modules/c-strtold (Makefile.am): Likewise.
74855         * modules/calloc (Makefile.am): Likewise.
74856         * modules/canon-host (Makefile.am): Likewise.
74857         * modules/canonicalize (Makefile.am): Likewise.
74858         * modules/chdir-long (Makefile.am): Likewise.
74859         * modules/chdir-safer (Makefile.am): Likewise.
74860         * modules/check-version (Makefile.am): Likewise.
74861         * modules/chown (Makefile.am): Likewise.
74862         * modules/cloexec (Makefile.am): Likewise.
74863         * modules/close-stream (Makefile.am): Likewise.
74864         * modules/closeout (Makefile.am): Likewise.
74865         * modules/crc (Makefile.am): Likewise.
74866         * modules/csharpexec (Makefile.am): Likewise.
74867         * modules/cycle-check (Makefile.am): Likewise.
74868         * modules/des (Makefile.am): Likewise.
74869         * modules/dev-ino (Makefile.am): Likewise.
74870         * modules/dirfd (Makefile.am): Likewise.
74871         * modules/dirname (Makefile.am): Likewise.
74872         * modules/dup2 (Makefile.am): Likewise.
74873         * modules/eealloc (Makefile.am): Likewise.
74874         * modules/error (Makefile.am): Likewise.
74875         * modules/euidaccess (Makefile.am): Likewise.
74876         * modules/exclude (Makefile.am): Likewise.
74877         * modules/exitfail (Makefile.am): Likewise.
74878         * modules/fcntl-safer (Makefile.am): Likewise.
74879         * modules/fcntl (Makefile.am): Likewise.
74880         * modules/file-type (Makefile.am): Likewise.
74881         * modules/fileblocks (Makefile.am): Likewise.
74882         * modules/filemode (Makefile.am): Likewise.
74883         * modules/filenamecat (Makefile.am): Likewise.
74884         * modules/fnmatch (Makefile.am): Likewise.
74885         * modules/fopen-safer (Makefile.am): Likewise.
74886         * modules/fpending (Makefile.am): Likewise.
74887         * modules/fprintftime (Makefile.am): Likewise.
74888         * modules/free (Makefile.am): Likewise.
74889         * modules/fsusage (Makefile.am): Likewise.
74890         * modules/ftruncate (Makefile.am): Likewise.
74891         * modules/fts (Makefile.am): Likewise.
74892         * modules/gc-arcfour (Makefile.am): Likewise.
74893         * modules/gc-des (Makefile.am): Likewise.
74894         * modules/gc-hmac-md5 (Makefile.am): Likewise.
74895         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
74896         * modules/gc-md4 (Makefile.am): Likewise.
74897         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74898         * modules/gc-sha1 (Makefile.am): Likewise.
74899         * modules/gc (Makefile.am): Likewise.
74900         * modules/getaddrinfo (Makefile.am): Likewise.
74901         * modules/getcwd (Makefile.am): Likewise.
74902         * modules/getdelim (Makefile.am): Likewise.
74903         * modules/getdomainname (Makefile.am): Likewise.
74904         * modules/getgroups (Makefile.am): Likewise.
74905         * modules/gethostname (Makefile.am): Likewise.
74906         * modules/gethrxtime (Makefile.am): Likewise.
74907         * modules/getline (Makefile.am): Likewise.
74908         * modules/getloadavg (Makefile.am): Likewise.
74909         * modules/getlogin_r (Makefile.am): Likewise.
74910         * modules/getndelim2 (Makefile.am): Likewise.
74911         * modules/getopt (Makefile.am): Likewise.
74912         * modules/getpagesize (Makefile.am): Likewise.
74913         * modules/getpass-gnu (Makefile.am): Likewise.
74914         * modules/getpass (Makefile.am): Likewise.
74915         * modules/getsubopt (Makefile.am): Likewise.
74916         * modules/gettime (Makefile.am): Likewise.
74917         * modules/gettimeofday (Makefile.am): Likewise.
74918         * modules/getugroups (Makefile.am): Likewise.
74919         * modules/getusershell (Makefile.am): Likewise.
74920         * modules/glob (Makefile.am): Likewise.
74921         * modules/group-member (Makefile.am): Likewise.
74922         * modules/hard-locale (Makefile.am): Likewise.
74923         * modules/hash (Makefile.am): Likewise.
74924         * modules/hmac-md5 (Makefile.am): Likewise.
74925         * modules/hmac-sha1 (Makefile.am): Likewise.
74926         * modules/human (Makefile.am): Likewise.
74927         * modules/idcache (Makefile.am): Likewise.
74928         * modules/imaxabs (Makefile.am): Likewise.
74929         * modules/imaxdiv (Makefile.am): Likewise.
74930         * modules/inet_ntop (Makefile.am): Likewise.
74931         * modules/inet_pton (Makefile.am): Likewise.
74932         * modules/intprops (Makefile.am): Likewise.
74933         * modules/inttostr (Makefile.am): Likewise.
74934         * modules/inttypes (Makefile.am): Likewise.
74935         * modules/isapipe (Makefile.am): Likewise.
74936         * modules/javaversion (Makefile.am): Likewise.
74937         * modules/lchmod (Makefile.am): Likewise.
74938         * modules/lchown (Makefile.am): Likewise.
74939         * modules/localcharset (Makefile.am): Likewise.
74940         * modules/long-options (Makefile.am): Likewise.
74941         * modules/lstat (Makefile.am): Likewise.
74942         * modules/malloc (Makefile.am): Likewise.
74943         * modules/mathl (Makefile.am): Likewise.
74944         * modules/mbchar (Makefile.am): Likewise.
74945         * modules/md2 (Makefile.am): Likewise.
74946         * modules/md4 (Makefile.am): Likewise.
74947         * modules/md5 (Makefile.am): Likewise.
74948         * modules/memcasecmp (Makefile.am): Likewise.
74949         * modules/memchr (Makefile.am): Likewise.
74950         * modules/memcmp (Makefile.am): Likewise.
74951         * modules/memcoll (Makefile.am): Likewise.
74952         * modules/memcpy (Makefile.am): Likewise.
74953         * modules/memmem (Makefile.am): Likewise.
74954         * modules/memmove (Makefile.am): Likewise.
74955         * modules/mempcpy (Makefile.am): Likewise.
74956         * modules/memrchr (Makefile.am): Likewise.
74957         * modules/memset (Makefile.am): Likewise.
74958         * modules/memxor (Makefile.am): Likewise.
74959         * modules/mkancesdirs (Makefile.am): Likewise.
74960         * modules/mkdir-p (Makefile.am): Likewise.
74961         * modules/mkdir (Makefile.am): Likewise.
74962         * modules/mkdtemp (Makefile.am): Likewise.
74963         * modules/mkstemp (Makefile.am): Likewise.
74964         * modules/mktime (Makefile.am): Likewise.
74965         * modules/modechange (Makefile.am): Likewise.
74966         * modules/mountlist (Makefile.am): Likewise.
74967         * modules/nanosleep (Makefile.am): Likewise.
74968         * modules/obstack (Makefile.am): Likewise.
74969         * modules/openat (Makefile.am): Likewise.
74970         * modules/pagealign_alloc (Makefile.am): Likewise.
74971         * modules/pathmax (Makefile.am): Likewise.
74972         * modules/physmem (Makefile.am): Likewise.
74973         * modules/poll (Makefile.am): Likewise.
74974         * modules/posixtm (Makefile.am): Likewise.
74975         * modules/posixver (Makefile.am): Likewise.
74976         * modules/putenv (Makefile.am): Likewise.
74977         * modules/quote (Makefile.am): Likewise.
74978         * modules/quotearg (Makefile.am): Likewise.
74979         * modules/raise (Makefile.am): Likewise.
74980         * modules/read-file (Makefile.am): Likewise.
74981         * modules/readline (Makefile.am): Likewise.
74982         * modules/readlink (Makefile.am): Likewise.
74983         * modules/readtokens (Makefile.am): Likewise.
74984         * modules/readutmp (Makefile.am): Likewise.
74985         * modules/realloc (Makefile.am): Likewise.
74986         * modules/regex (Makefile.am): Likewise.
74987         * modules/rename-dest-slash (Makefile.am): Likewise.
74988         * modules/rename (Makefile.am): Likewise.
74989         * modules/rijndael (Makefile.am): Likewise.
74990         * modules/rmdir (Makefile.am): Likewise.
74991         * modules/rpmatch (Makefile.am): Likewise.
74992         * modules/safe-read (Makefile.am): Likewise.
74993         * modules/safe-write (Makefile.am): Likewise.
74994         * modules/same-inode (Makefile.am): Likewise.
74995         * modules/same (Makefile.am): Likewise.
74996         * modules/save-cwd (Makefile.am): Likewise.
74997         * modules/savedir (Makefile.am): Likewise.
74998         * modules/setenv (Makefile.am): Likewise.
74999         * modules/settime (Makefile.am): Likewise.
75000         * modules/sha1 (Makefile.am): Likewise.
75001         * modules/sig2str (Makefile.am): Likewise.
75002         * modules/snprintf (Makefile.am): Likewise.
75003         * modules/stat-macros (Makefile.am): Likewise.
75004         * modules/stat-time (Makefile.am): Likewise.
75005         * modules/stdbool (Makefile.am): Likewise.
75006         * modules/stdint (Makefile.am): Likewise.
75007         * modules/stdlib-safer (Makefile.am): Likewise.
75008         * modules/stpcpy (Makefile.am): Likewise.
75009         * modules/stpncpy (Makefile.am): Likewise.
75010         * modules/strcase (Makefile.am): Likewise.
75011         * modules/strcasestr (Makefile.am): Likewise.
75012         * modules/strchrnul (Makefile.am): Likewise.
75013         * modules/strcspn (Makefile.am): Likewise.
75014         * modules/strdup (Makefile.am): Likewise.
75015         * modules/strerror (Makefile.am): Likewise.
75016         * modules/strftime (Makefile.am): Likewise.
75017         * modules/strndup (Makefile.am): Likewise.
75018         * modules/strnlen (Makefile.am): Likewise.
75019         * modules/strpbrk (Makefile.am): Likewise.
75020         * modules/strsep (Makefile.am): Likewise.
75021         * modules/strstr (Makefile.am): Likewise.
75022         * modules/strtod (Makefile.am): Likewise.
75023         * modules/strtoimax (Makefile.am): Likewise.
75024         * modules/strtok_r (Makefile.am): Likewise.
75025         * modules/strtol (Makefile.am): Likewise.
75026         * modules/strtoll (Makefile.am): Likewise.
75027         * modules/strtoul (Makefile.am): Likewise.
75028         * modules/strtoull (Makefile.am): Likewise.
75029         * modules/strtoumax (Makefile.am): Likewise.
75030         * modules/strverscmp (Makefile.am): Likewise.
75031         * modules/sys_socket (Makefile.am): Likewise.
75032         * modules/sys_stat (Makefile.am): Likewise.
75033         * modules/sysexits (Makefile.am): Likewise.
75034         * modules/time_r (Makefile.am): Likewise.
75035         * modules/timegm (Makefile.am): Likewise.
75036         * modules/timespec (Makefile.am): Likewise.
75037         * modules/tmpfile-safer (Makefile.am): Likewise.
75038         * modules/trim (Makefile.am): Likewise.
75039         * modules/unistd-safer (Makefile.am): Likewise.
75040         * modules/unlinkdir (Makefile.am): Likewise.
75041         * modules/unlocked-io (Makefile.am): Likewise.
75042         * modules/userspec (Makefile.am): Likewise.
75043         * modules/utime (Makefile.am): Likewise.
75044         * modules/utimecmp (Makefile.am): Likewise.
75045         * modules/utimens (Makefile.am): Likewise.
75046         * modules/vasnprintf (Makefile.am): Likewise.
75047         * modules/vasprintf (Makefile.am): Likewise.
75048         * modules/vsnprintf (Makefile.am): Likewise.
75049         * modules/xalloc (Makefile.am): Likewise.
75050         * modules/xgetcwd (Makefile.am): Likewise.
75051         * modules/xnanosleep (Makefile.am): Likewise.
75052         * modules/xreadlink (Makefile.am): Likewise.
75053         * modules/xstrtod (Makefile.am): Likewise.
75054         * modules/xstrtol (Makefile.am): Likewise.
75055         * modules/xstrtold (Makefile.am): Likewise.
75056         * modules/yesno (Makefile.am): Likewise.
75057         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75058
75059 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75060
75061         * modules/error (Makefile.am): Distribute files through
75062         EXTRA_DIST, not lib_SOURCES.
75063
75064 2006-10-12  Eric Blake  <ebb9@byu.net>
75065
75066         * modules/error (Makefile.am): Distribute files in /lib.
75067         * modules/obstack (Makefile.am): Likewise.
75068
75069 2006-10-12  Bruno Haible  <bruno@clisp.org>
75070
75071         * modules/acl (Makefile.am): Distribute all files in lib/ through
75072         EXTRA_DIST.
75073         * modules/arcfour (Makefile.am): Likewise.
75074         * modules/arctwo (Makefile.am): Likewise.
75075         * modules/argmatch (Makefile.am): Likewise.
75076         * modules/argz (Makefile.am): Likewise.
75077         * modules/atexit (Makefile.am): Likewise.
75078         * modules/backupfile (Makefile.am): Likewise.
75079         * modules/c-strtod (Makefile.am): Likewise.
75080         * modules/c-strtold (Makefile.am): Likewise.
75081         * modules/calloc (Makefile.am): Likewise.
75082         * modules/canon-host (Makefile.am): Likewise.
75083         * modules/canonicalize (Makefile.am): Likewise.
75084         * modules/chdir-long (Makefile.am): Likewise.
75085         * modules/chdir-safer (Makefile.am): Likewise.
75086         * modules/check-version (Makefile.am): Likewise.
75087         * modules/chown (Makefile.am): Likewise.
75088         * modules/cloexec (Makefile.am): Likewise.
75089         * modules/close-stream (Makefile.am): Likewise.
75090         * modules/closeout (Makefile.am): Likewise.
75091         * modules/crc (Makefile.am): Likewise.
75092         * modules/cycle-check (Makefile.am): Likewise.
75093         * modules/des (Makefile.am): Likewise.
75094         * modules/dirfd (Makefile.am): Likewise.
75095         * modules/dirname (Makefile.am): Likewise.
75096         * modules/dup2 (Makefile.am): Likewise.
75097         * modules/euidaccess (Makefile.am): Likewise.
75098         * modules/exclude (Makefile.am): Likewise.
75099         * modules/exitfail (Makefile.am): Likewise.
75100         * modules/fcntl-safer (Makefile.am): Likewise.
75101         * modules/file-type (Makefile.am): Likewise.
75102         * modules/fileblocks (Makefile.am): Likewise.
75103         * modules/filemode (Makefile.am): Likewise.
75104         * modules/filenamecat (Makefile.am): Likewise.
75105         * modules/fnmatch (Makefile.am): Likewise.
75106         * modules/fopen-safer (Makefile.am): Likewise.
75107         * modules/fpending (Makefile.am): Likewise.
75108         * modules/fprintftime (Makefile.am): Likewise.
75109         * modules/free (Makefile.am): Likewise.
75110         * modules/fsusage (Makefile.am): Likewise.
75111         * modules/ftruncate (Makefile.am): Likewise.
75112         * modules/fts (Makefile.am): Likewise.
75113         * modules/gc (Makefile.am): Likewise.
75114         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75115         * modules/getaddrinfo (Makefile.am): Likewise.
75116         * modules/getcwd (Makefile.am): Likewise.
75117         * modules/getdelim (Makefile.am): Likewise.
75118         * modules/getdomainname (Makefile.am): Likewise.
75119         * modules/getgroups (Makefile.am): Likewise.
75120         * modules/gethostname (Makefile.am): Likewise.
75121         * modules/gethrxtime (Makefile.am): Likewise.
75122         * modules/getline (Makefile.am): Likewise.
75123         * modules/getloadavg (Makefile.am): Likewise.
75124         * modules/getlogin_r (Makefile.am): Likewise.
75125         * modules/getopt (Makefile.am): Likewise.
75126         * modules/getpass (Makefile.am): Likewise.
75127         * modules/getpass-gnu (Makefile.am): Likewise.
75128         * modules/getsubopt (Makefile.am): Likewise.
75129         * modules/gettime (Makefile.am): Likewise.
75130         * modules/gettimeofday (Makefile.am): Likewise.
75131         * modules/getugroups (Makefile.am): Likewise.
75132         * modules/getusershell (Makefile.am): Likewise.
75133         * modules/glob (Makefile.am): Likewise.
75134         * modules/group-member (Makefile.am): Likewise.
75135         * modules/hard-locale (Makefile.am): Likewise.
75136         * modules/hash (Makefile.am): Likewise.
75137         * modules/hmac-md5 (Makefile.am): Likewise.
75138         * modules/hmac-sha1 (Makefile.am): Likewise.
75139         * modules/human (Makefile.am): Likewise.
75140         * modules/idcache (Makefile.am): Likewise.
75141         * modules/imaxabs (Makefile.am): Likewise.
75142         * modules/imaxdiv (Makefile.am): Likewise.
75143         * modules/inet_ntop (Makefile.am): Likewise.
75144         * modules/inet_pton (Makefile.am): Likewise.
75145         * modules/inttostr (Makefile.am): Likewise.
75146         * modules/isapipe (Makefile.am): Likewise.
75147         * modules/lchown (Makefile.am): Likewise.
75148         * modules/long-options (Makefile.am): Likewise.
75149         * modules/lstat (Makefile.am): Likewise.
75150         * modules/malloc (Makefile.am): Likewise.
75151         * modules/mathl (Makefile.am): Likewise.
75152         * modules/mbchar (Makefile.am): Likewise.
75153         * modules/md2 (Makefile.am): Likewise.
75154         * modules/md4 (Makefile.am): Likewise.
75155         * modules/md5 (Makefile.am): Likewise.
75156         * modules/memcasecmp (Makefile.am): Likewise.
75157         * modules/memchr (Makefile.am): Likewise.
75158         * modules/memcmp (Makefile.am): Likewise.
75159         * modules/memcoll (Makefile.am): Likewise.
75160         * modules/memcpy (Makefile.am): Likewise.
75161         * modules/memmem (Makefile.am): Likewise.
75162         * modules/memmove (Makefile.am): Likewise.
75163         * modules/mempcpy (Makefile.am): Likewise.
75164         * modules/memrchr (Makefile.am): Likewise.
75165         * modules/memset (Makefile.am): Likewise.
75166         * modules/memxor (Makefile.am): Likewise.
75167         * modules/mkancesdirs (Makefile.am): Likewise.
75168         * modules/mkdir (Makefile.am): Likewise.
75169         * modules/mkdir-p (Makefile.am): Likewise.
75170         * modules/mkdtemp (Makefile.am): Likewise.
75171         * modules/mkstemp (Makefile.am): Likewise.
75172         * modules/mktime (Makefile.am): Likewise.
75173         * modules/modechange (Makefile.am): Likewise.
75174         * modules/mountlist (Makefile.am): Likewise.
75175         * modules/nanosleep (Makefile.am): Likewise.
75176         * modules/openat (Makefile.am): Likewise.
75177         * modules/pagealign_alloc (Makefile.am): Likewise.
75178         * modules/physmem (Makefile.am): Likewise.
75179         * modules/poll (Makefile.am): Likewise.
75180         * modules/posixtm (Makefile.am): Likewise.
75181         * modules/posixver (Makefile.am): Likewise.
75182         * modules/putenv (Makefile.am): Likewise.
75183         * modules/quote (Makefile.am): Likewise.
75184         * modules/quotearg (Makefile.am): Likewise.
75185         * modules/raise (Makefile.am): Likewise.
75186         * modules/read-file (Makefile.am): Likewise.
75187         * modules/readline (Makefile.am): Likewise.
75188         * modules/readlink (Makefile.am): Likewise.
75189         * modules/readtokens (Makefile.am): Likewise.
75190         * modules/readutmp (Makefile.am): Likewise.
75191         * modules/realloc (Makefile.am): Likewise.
75192         * modules/regex (Makefile.am): Likewise.
75193         * modules/rename (Makefile.am): Likewise.
75194         * modules/rename-dest-slash (Makefile.am): Likewise.
75195         * modules/rijndael (Makefile.am): Likewise.
75196         * modules/rmdir (Makefile.am): Likewise.
75197         * modules/rpmatch (Makefile.am): Likewise.
75198         * modules/safe-read (Makefile.am): Likewise.
75199         * modules/safe-write (Makefile.am): Likewise.
75200         * modules/same (Makefile.am): Likewise.
75201         * modules/save-cwd (Makefile.am): Likewise.
75202         * modules/savedir (Makefile.am): Likewise.
75203         * modules/setenv (Makefile.am): Likewise.
75204         * modules/settime (Makefile.am): Likewise.
75205         * modules/sha1 (Makefile.am): Likewise.
75206         * modules/sig2str (Makefile.am): Likewise.
75207         * modules/snprintf (Makefile.am): Likewise.
75208         * modules/stdlib-safer (Makefile.am): Likewise.
75209         * modules/stpcpy (Makefile.am): Likewise.
75210         * modules/stpncpy (Makefile.am): Likewise.
75211         * modules/strcase (Makefile.am): Likewise.
75212         * modules/strcasestr (Makefile.am): Likewise.
75213         * modules/strchrnul (Makefile.am): Likewise.
75214         * modules/strcspn (Makefile.am): Likewise.
75215         * modules/strdup (Makefile.am): Likewise.
75216         * modules/strerror (Makefile.am): Likewise.
75217         * modules/strftime (Makefile.am): Likewise.
75218         * modules/strndup (Makefile.am): Likewise.
75219         * modules/strnlen (Makefile.am): Likewise.
75220         * modules/strpbrk (Makefile.am): Likewise.
75221         * modules/strsep (Makefile.am): Likewise.
75222         * modules/strstr (Makefile.am): Likewise.
75223         * modules/strtod (Makefile.am): Likewise.
75224         * modules/strtoimax (Makefile.am): Likewise.
75225         * modules/strtok_r (Makefile.am): Likewise.
75226         * modules/strtol (Makefile.am): Likewise.
75227         * modules/strtoll (Makefile.am): Likewise.
75228         * modules/strtoul (Makefile.am): Likewise.
75229         * modules/strtoull (Makefile.am): Likewise.
75230         * modules/strtoumax (Makefile.am): Likewise.
75231         * modules/strverscmp (Makefile.am): Likewise.
75232         * modules/time_r (Makefile.am): Likewise.
75233         * modules/timegm (Makefile.am): Likewise.
75234         * modules/tmpfile-safer (Makefile.am): Likewise.
75235         * modules/unistd-safer (Makefile.am): Likewise.
75236         * modules/unlinkdir (Makefile.am): Likewise.
75237         * modules/userspec (Makefile.am): Likewise.
75238         * modules/utime (Makefile.am): Likewise.
75239         * modules/utimecmp (Makefile.am): Likewise.
75240         * modules/utimens (Makefile.am): Likewise.
75241         * modules/vasnprintf (Makefile.am): Likewise.
75242         * modules/vasprintf (Makefile.am): Likewise.
75243         * modules/vsnprintf (Makefile.am): Likewise.
75244         * modules/xalloc (Makefile.am): Likewise.
75245         * modules/xgetcwd (Makefile.am): Likewise.
75246         * modules/xnanosleep (Makefile.am): Likewise.
75247         * modules/xreadlink (Makefile.am): Likewise.
75248         * modules/xstrtod (Makefile.am): Likewise.
75249         * modules/xstrtol (Makefile.am): Likewise.
75250         * modules/xstrtold (Makefile.am): Likewise.
75251         * modules/yesno (Makefile.am): Likewise.
75252
75253 2006-10-12  Jim Meyering  <jim@meyering.net>
75254
75255         * m4/getloadavg.m4: Revert the change below.
75256
75257         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75258         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75259         fail with a symlink, which is what coreutils' ./bootstrap now
75260         creates by default.
75261
75262 2006-10-12  Bruno Haible  <bruno@clisp.org>
75263
75264         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75265         mingw.
75266         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75267         MSVC and mingw explicitly.
75268
75269 2006-10-11  Simon Josefsson  <jas@extundo.com>
75270             Bruno Haible  <bruno@clisp.org>
75271
75272         Add support for multiple gnulib-tool invocations in the scope of a
75273         single configure.ac file.
75274         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75275         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75276         with the same contents as the _LIBADD variable.
75277         (func_emit_initmacro_start, func_emit_initmacro_end,
75278         func_emit_initmacro_done): New functions.
75279         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75280         gl_LIBOBJS and gl_LTLIBOBJS.
75281
75282 2006-10-11  Bruno Haible  <bruno@clisp.org>
75283
75284         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75285         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75286         autoreconf. Instead, invoke autopoint explicitly but move back the
75287         *.m4 files from gnulib.
75288
75289 2006-10-11  Bruno Haible  <bruno@clisp.org>
75290
75291         * gnulib-tool (func_usage): Make module names after --create-testdir
75292         optional.
75293         (func_create_testdir): If no module was specified, use nearly all
75294         modules.
75295
75296 2006-10-12  Jim Meyering  <jim@meyering.net>
75297
75298         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75299         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75300         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75301         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75302         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75303         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75304         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75305         (fts_set_stat_required): New function.
75306         (fts_open): Defer the calls to fts_stat, if possible or requested.
75307         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75308         into fts_stat itself.
75309         (fts_read): Perform any required (deferred) fts_stat call.
75310         (fts_build): Likewise, for the directory we're about to open and read.
75311         In the readdir loop, carefully decide whether each entry will require
75312         an eventual call to fts_stat, using dirent.d_type info if available.
75313         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75314         a command line argument into this function.  Update all callers.
75315         Map a return value of FTS_DOT to FTS_D for a command line argument.
75316         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75317         Thanks to Miklos Szeredi for his tenacity and for the initial
75318         bug report about "find" failing on a FUSE-based file system.
75319
75320         * lib/fts.c (fts_open): Use consistent indentation.
75321
75322 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75323
75324         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75325         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75326         reported by Jim Meyering.  All uses of cache variables renamed
75327         to match Autoconf's.
75328         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75329         the other one.
75330
75331         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75332         Fix misspelling in diagnostic.
75333
75334 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75335
75336         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75337         defined.  Problem reported by Matthew Woehlke.
75338
75339         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75340         Add support for Tandem NonStop R series.
75341         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75342         Use new macro.
75343
75344         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75345         (has_trailing_slash): Omit size arg; all callers changed.
75346         Omit 'inline', since it doesn't help performance and we'd
75347         need to configure it.
75348         Don't count //, ///, etc. as having a trailing slash.
75349         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75350         (rpl_rename_dest_slash): On failure, use rename's errno rather
75351         than (in some cases) an incorrect or junk errno.
75352         Simplify code by removing need to compute length; this does
75353         cause it to make two passes instead of one over the file name,
75354         but it's worth it.
75355
75356         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75357         change, since Autoconf's version may no longer be appropriate now
75358         that we are using CVS Autoconf's version.  Add support for Tandem.
75359
75360 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75361             Bruno Haible  <bruno@clisp.org>
75362
75363         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75364         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75365         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75366         gl_AC_TYPE_LONG_LONG.
75367
75368         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75369         instead of HAVE_LONG_LONG.
75370         * lib/printf-args.c (printf_fetchargs): Likewise.
75371         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75372         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75373         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75374         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75375         gl_AC_TYPE_LONG_LONG.
75376
75377 2006-10-11  Bruno Haible  <bruno@clisp.org>
75378
75379         * m4/longlong.m4: Add comments.
75380         * m4/ulonglong.m4: Likewise.
75381
75382 2006-10-10  Bruno Haible  <bruno@clisp.org>
75383
75384         Make it possible to #define stpcpy, strdup to aliases.
75385         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75386         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75387
75388 2006-10-10  Bruno Haible  <bruno@clisp.org>
75389
75390         Make it possible to #define gcd to an alias.
75391         * lib/gcd.c: Include config.h.
75392
75393 2006-10-10  Bruno Haible  <bruno@clisp.org>
75394
75395         Make it possible to #define c_isascii to an alias.
75396         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75397         defined. Undefine the macros before defining them, to avoid gcc
75398         warnings.
75399         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75400         define NO_C_CTYPE_MACROS early.
75401
75402 2006-10-10  Bruno Haible  <bruno@clisp.org>
75403
75404         Make it possible to #define set_program_name to an alias.
75405         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75406         ENABLE_RELOCATABLE early.
75407
75408 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75411         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75412         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75413         More generally, don't assume that 64-bit signed int is available
75414         if unsigned int is, and vice versa.
75415         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75416         unsigned symbols, not on their signed counterparts.
75417         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75418         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75419         (UINT64_C, UINTMAX_C):
75420         Likewise.
75421         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75422         unsigned counterparts.
75423         (Have_long_long, Unsigned): New macros.
75424         (Int): Renamed from INT.
75425         (strtoimax): Use the new macros.
75426         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75427         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75428         * modules/inttypes (inttypes.h): Substitute
75429         HAVE_UNSIGNED_LONG_LONG_INT.
75430         * modules/stdint (stdint.h): Likewise.
75431         (Files): Add m4/ulonglong.m4.
75432
75433 2006-10-10  Bruno Haible  <bruno@clisp.org>
75434
75435         Fix a gcc -Wshadow warning.
75436         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75437         to 'bucket'.
75438         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75439         gl_linked_indexof_from_to): Likewise.
75440         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75441         Likewise.
75442         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75443         Likewise.
75444         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75445         Reported by Eric Blake.
75446
75447 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75448
75449         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75450         for NetBSD.  Problem reported by Bruno Haible.
75451
75452 2006-10-09  Jim Meyering  <jim@meyering.net>
75453
75454         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75455         Patch from Bruno Haible.
75456
75457 2006-10-09  Jim Meyering  <jim@meyering.net>
75458
75459         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75460         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75461         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75462
75463 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75464
75465         Don't include <config.h> twice; this doesn't work in some cases,
75466         e.g., when config.h has "#define intmax_t long long int" and
75467         we include <config.h>, <inttypes.h>, <config.h> in that order.
75468         Problem reported by Matthew Woehlke in:
75469         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75470         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75471         * lib/fts-cycle.c: Don't include config.h.
75472         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75473         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75474         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75475         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75476         inttypes.h.
75477         * lib/xstrtoumax.c: Likewise.
75478         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75479         __strtol and the like, so that this module is more like its siblings.
75480         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75481         Remove; no longer needed now that we assume gnulib inttypes.h.
75482
75483 2006-10-08  Bruno Haible  <bruno@clisp.org>
75484
75485         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75486         option.
75487
75488 2006-10-07  Jim Meyering  <jim@meyering.net>
75489
75490         * modules/inttypes (inttypes.h): Revert what seems to have been
75491         an inadvertent part of today's change: use "|", not "/" in the
75492         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75493
75494 2006-10-07  Bruno Haible  <bruno@clisp.org>
75495
75496         * modules/sublist: New file.
75497
75498 2006-10-07  Bruno Haible  <bruno@clisp.org>
75499
75500         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75501         * modules/argz (argz.h): Likewise.
75502         * modules/arpa_inet (arpa/inet.h): Likewise.
75503         * modules/byteswap (byteswap.h): Likewise.
75504         * modules/configmake (configmake.h): Likewise.
75505         * modules/fcntl (fcntl.h): Likewise.
75506         * modules/fnmatch (fnmatch.h): Likewise.
75507         * modules/getopt (getopt.h): Likewise.
75508         * modules/glob (glob.h): Likewise.
75509         * modules/inttypes (inttypes.h): Likewise.
75510         * modules/netinet_in (netinet/in.h): Likewise.
75511         * modules/poll (poll.h): Likewise.
75512         * modules/stdbool (stdbool.h): Likewise.
75513         * modules/stdint (stdint.h): Likewise.
75514         * modules/sys_select (sys/select.h): Likewise.
75515         * modules/sys_socket (sys/socket.h): Likewise.
75516         * modules/sys_stat (sys/stat.h): Likewise.
75517         * modules/sysexits (sysexits.h): Likewise.
75518         * modules/unistd (unistd.h): Likewise.
75519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75520         Add a "DO NOT EDIT" comment to the generated file.
75521         (func_import): Likewise for gnulib-comp.m4.
75522
75523 2006-10-07  Bruno Haible  <bruno@clisp.org>
75524
75525         * lib/gl_sublist.h: New file.
75526         * lib/gl_sublist.c: New file.
75527
75528 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75529
75530         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
75531         name (relative to the original working directory) and the file
75532         name component (relative to the temporary working directory).  All
75533         callers changed.
75534         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
75535         * lib/mkdir-p.c (make_dir_parents): Likewise.
75536         * lib/mkdir-p.h (make_dir_parents): Likewise.
75537
75538 2006-10-06  Eric Blake  <ebb9@byu.net>
75539
75540         Define several macros for use by the clean-temp module.
75541         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
75542         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
75543         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
75544
75545         * lib/clean-temp.h (close_stream_temp): New declaration.
75546         * lib/clean-temp.c (includes): Pull in headers according to what
75547         other modules are in use.
75548         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
75549
75550 2006-10-06  Bruno Haible  <bruno@clisp.org>
75551
75552         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
75553         instead of fopen, fwriteerror.
75554
75555 2006-10-06  Bruno Haible  <bruno@clisp.org>
75556
75557         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
75558         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
75559         int.
75560         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
75561         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
75562         Return an error indicator.
75563         Suggested by Eric Blake.
75564
75565 2006-10-06  Bruno Haible  <bruno@clisp.org>
75566
75567         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
75568         Reported by Eric Blake.
75569
75570 2006-10-06  Bruno Haible  <bruno@clisp.org>
75571
75572         * modules/closeout (Description): Mention stderr too.
75573
75574 2006-10-06  Bruno Haible  <bruno@clisp.org>
75575         and Paul Eggert  <eggert@cs.ucla.edu>
75576
75577         * lib/closeout.c (close_stdout): Also close stderr.
75578         * lib/closeout.h: Update comment.
75579
75580 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75581
75582         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
75583         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
75584         * lib/dirchownmod.c: Include lchown.h.
75585         * lib/lchown.c: Don't include files that lchown.h now includes.
75586         Don't declare chown, since lchown.h now does that.
75587         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
75588         (lchown): Define to rpl_chown if lchown is declared but
75589         does not exist.  Declare using a prototype if lchown is not
75590         declared.  Add a copyright notice.
75591         * lib/mkstemp.h: Include <unistd.h>.
75592         * lib/openat.c: Include lchown.h.
75593
75594         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
75595         we now test for that separately.
75596         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
75597         rather than O_NOFOLLOW, when testing whether it's possible to
75598         avoid a race condition reliably.
75599         * lib/savewd.c (savewd_chdir): Likewise.
75600
75601         Remove macros that are no longer needed now that stdint.h is
75602         reliable.
75603         * lib/fsusage.c (UINTMAX_MAX): Remove.
75604         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
75605         * lib/utimecmp.c (SIZE_MAX): Remove.
75606
75607         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
75608
75609         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
75610         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
75611         O_NOATIME works.
75612
75613 2006-10-05  Bruno Haible  <bruno@clisp.org>
75614
75615         * lib/gl_list.h (gl_sortedlist_search_from_to,
75616         gl_sortedlist_indexof_from_to): New declarations.
75617         (gl_list_implementation): New fields sortedlist_search_from_to,
75618         sortedlist_indexof_from_to.
75619         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
75620         inline functions.
75621         * lib/gl_list.c (gl_sortedlist_search_from_to,
75622         gl_sortedlist_indexof_from_to): New functions.
75623         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
75624         function.
75625         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
75626         (gl_array_sortedlist_search_from_to): New function.
75627         (gl_array_list_implementation): Update.
75628         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
75629         function.
75630         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
75631         (gl_carray_sortedlist_search_from_to): New function.
75632         (gl_carray_list_implementation): Update.
75633         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
75634         gl_linked_sortedlist_indexof_from_to): New functions.
75635         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75636         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75637         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
75638         gl_tree_sortedlist_indexof_from_to): New functions.
75639         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75640         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75641         Update.
75642         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75643         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
75644         Update.
75645
75646 2006-10-05  Bruno Haible  <bruno@clisp.org>
75647
75648         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
75649         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
75650         (struct gl_list_implementation): Add fields search_from_to,
75651         indexof_from_to. Remove fields search, indexof.
75652         (gl_list_search): Use the search_from_to method.
75653         (gl_list_search_from, gl_list_search_from_to): New functions.
75654         (gl_list_indexof): Use the indexof_from_to method.
75655         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75656         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
75657         (gl_list_search_from, gl_list_search_from_to): New functions.
75658         (gl_list_indexof): Use the indexof_from_to method.
75659         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75660         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
75661         gl_array_indexof. Add start_index, end_index arguments.
75662         (gl_array_search_from_to): Renamed from gl_array_search. Add
75663         start_index, end_index arguments.
75664         (gl_array_remove, gl_array_list_implementation): Update.
75665         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
75666         gl_carray_indexof. Add start_index, end_index arguments.
75667         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
75668         start_index, end_index arguments.
75669         (gl_carray_remove, gl_carray_list_implementation): Update.
75670         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
75671         gl_linked_search. Add start_index, end_index arguments.
75672         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
75673         start_index, end_index arguments.
75674         (gl_linked_remove): Update.
75675         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75676         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75677         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
75678         field to 'size_t'.
75679         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
75680         gl_tree_search. Add start_index, end_index arguments.
75681         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75682         start_index, end_index arguments.
75683         (gl_tree_remove): Update.
75684         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75685         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75686         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
75687         function.
75688         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
75689         gl_tree_search. Add start_index, end_index arguments.
75690         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75691         start_index, end_index arguments.
75692         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75693         Update.
75694         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
75695
75696 2006-10-05  Bruno Haible  <bruno@clisp.org>
75697
75698         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
75699
75700         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
75701         fwriteerror_temp): New declarations.
75702         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
75703         (descriptors): New variable.
75704         (cleanup): First, close the descriptors.
75705         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
75706         fclose_temp, fwriteerror_temp): New functions.
75707
75708 2006-10-04  Jim Meyering  <jim@meyering.net>
75709
75710         * lib/fts.c (fts_open): Tiny comment change.
75711
75712 2006-10-04  Bruno Haible  <bruno@clisp.org>
75713
75714         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
75715         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
75716         gl_LOCK_BODY.
75717         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
75718         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
75719         gl_LOCK_EARLY_BODY.
75720         (gl_LOCK): Require gl_LOCK_BODY.
75721
75722 2006-10-04  Bruno Haible  <bruno@clisp.org>
75723
75724         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
75725         (gl_oset_search_atleast): New declaration.
75726         (struct gl_oset_implementation): Add field 'search_atleast'.
75727         (gl_oset_search_atleast): New inline function.
75728         * lib/gl_oset.c (gl_oset_search_atleast): New function.
75729         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
75730         (gl_array_oset_implementation): Update.
75731         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
75732         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
75733         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
75734
75735 2006-10-04  Bruno Haible  <bruno@clisp.org>
75736
75737         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
75738
75739 2006-10-03  Bruno Haible  <bruno@clisp.org>
75740
75741         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
75742         from gl_avltreehash_list_implementation.
75743
75744 2006-10-03  Bruno Haible  <bruno@clisp.org>
75745
75746         * lib/gl_oset.c (gl_oset_add): Fix return type.
75747
75748 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
75749
75750         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
75751
75752 2006-10-02  Eric Blake  <ebb9@byu.net>
75753
75754         * modules/strnlen (Depends-on): Add extensions.
75755
75756 2006-10-02  Eric Blake  <ebb9@byu.net>
75757
75758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
75759         definition in 2.60+.
75760
75761 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
75762
75763         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
75764         checks.
75765
75766 2006-10-02  Bruno Haible  <bruno@clisp.org>
75767
75768         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
75769         to the AUTOMAKE_OPTIONS.
75770         Reported by Jim Meyering.
75771
75772 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75773
75774         Work around bug in Solaris 10 /proc file system:
75775         /proc/self/fd/NNN/.. isn't the parent directory of
75776         the directory whose file descriptor is NNN.  This needs to
75777         be worked around at run time, not compile time, since a
75778         program might be built on Solaris 8, where things work, and
75779         run on Solaris 10.
75780         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
75781         to use the following interface instead:
75782         (OPENAT_BUFFER_SIZE): New macro.
75783         (openat_proc_name): New function.
75784         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
75785         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
75786         Likewise.
75787         * lib/openat-proc.c: New file.
75788         * modules/openat (Files): Add lib/openat-proc.c.
75789         (Depends-on): Add same-inode, stdbool.
75790         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
75791
75792 2006-09-29  Bruno Haible  <bruno@clisp.org>
75793
75794         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
75795         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
75796         argument. Set stdout_closed before testing for ferror, not after.
75797         (fwriteerror, fwriteerror_no_ebadf): New functions.
75798
75799 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75800
75801         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
75802
75803 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
75804
75805         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
75806         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
75807
75808 2006-09-28  Jim Meyering  <jim@meyering.net>
75809
75810         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
75811         Include <unistd.h>.
75812
75813 2006-09-28  Bruno Haible  <bruno@clisp.org>
75814
75815         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
75816         * modules/linkedhash-list (Depends-on): Likewise.
75817         * modules/rbtreehash-list (Depends-on): Likewise.
75818
75819 2006-09-28  Bruno Haible  <bruno@clisp.org>
75820
75821         * lib/strndup.h: Simplify the redefinition of strndup.
75822         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
75823         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
75824
75825 2006-09-28  Bruno Haible  <bruno@clisp.org>
75826
75827         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
75828         * lib/gl_linkedhash_list.c: Likewise.
75829         * lib/gl_rbtreehash_list.c: Likewise.
75830
75831 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75832
75833         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
75834         getaddrinfo.
75835
75836         * lib/__fpending.h: Don't include <stdio_ext.h> unless
75837         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
75838         it causes <stdio_ext.h> to cause a compile-time error.
75839         Problem reported by Nelson H. F. Beebe.
75840         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
75841         of HAVE_DECL___PENDING.
75842
75843         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
75844         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
75845         declaration.
75846
75847 2006-09-27  Jim Meyering  <jim@meyering.net>
75848
75849         This file could end up with a definition for a function
75850         named __strndup, rather than rpl_strndup on a system with
75851         incomplete weak_alias support.
75852         * lib/strndup.c (strndup): Rename from __strndup.
75853         Remove #defines that used to map __strndup to strndup.
75854         Don't use K&R prototypes.
75855         Remove LIBC-related code, since this file is not sync'd with glibc.
75856         * lib/strndup.h: Revamp, accordingly.
75857         * m4/strndup.m4: Modernize.
75858
75859 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         * modules/savewd (Depends-on): Add 'raise'.
75862         * lib/savewd.c: Include <signal.h>, for 'raise'.
75863
75864 2006-09-26  Jim Meyering  <jim@meyering.net>
75865
75866         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
75867         when we detect Darwin 8.7.0's acl_get_file bug.
75868         Rearrange to perform the new (below) run-test while $LIBS
75869         contains any acl-related library.  Set USE_ACL at the end.
75870         (gl_ACL_GET_FILE): New function.
75871
75872 2006-09-26  Eric Blake  <ebb9@byu.net>
75873
75874         * lib/verror.c: Include <config.h> unconditionally.
75875
75876 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
75877
75878         * modules/clock-time (Maintainer): Add self.
75879         * modules/getlogin_r (Depends-on): Add extensions.
75880
75881 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75882
75883         * modules/clock-time: New module.
75884         * modules/nanosleep (Depends-on): Add clock-time.
75885         * modules/gethrxtime (Depends-on): Likewise.
75886         * modules/gettime (Depends-on): Likewise.
75887         * modules/settime (Depends-on): Likewise.
75888
75889         * modules/fts-lgpl: Depend on openat.
75890         * modules/mkancesdirs: Depend on savewd.
75891         * modules/mkdir-p: Likewise.
75892
75893 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75894
75895         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
75896
75897         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
75898         `gl_have_arbitrary_file_name_length_limit' to
75899         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
75900         actually works between configure runs.
75901
75902 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75903             Bruno Haible  <bruno@clisp.org>
75904
75905         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
75906
75907 2006-09-25  Jim Meyering  <jim@meyering.net>
75908
75909         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
75910         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
75911
75912 2006-09-25  Eric Blake  <ebb9@byu.net>
75913
75914         * gnulib-tool (func_import, func_create_testdir): Fix typos in
75915         exec's in 2006-09-18 patch when shuffling fds.
75916
75917 2006-09-25  Bruno Haible  <bruno@clisp.org>
75918
75919         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
75920         Reported by Jim Meyering.
75921
75922 2006-09-24  Jim Meyering  <jim@meyering.net>
75923
75924         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
75925         compare a pointer against a literal "0".  That caused failures with
75926         at least HP-UX's hpcc.
75927
75928 2006-09-22  Simon Josefsson  <jas@extundo.com>
75929
75930         * modules/gc-sha1:
75931         * modules/gc-md4:
75932         * modules/gc-hmac-sha1:
75933         * modules/gc-hmac-md5:
75934         * modules/gc-des:
75935         * modules/gc-arcfour: Distribute more files.
75936
75937 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75938
75939         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
75940         (gl_linked_iterator_from_to): Initialize struct completely.
75941         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
75942         (gl_tree_iterator_from_to): Likewise
75943         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
75944         * lib/gl_array_list.c [lint] (gl_array_iterator)
75945         (gl_array_iterator_from_to): Likewise.
75946         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
75947         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
75948         (gl_carray_iterator_from_to): Likewise.
75949
75950         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
75951         * lib/md4.c (md4_process_block): Remove unused variable.
75952         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
75953         parentheses for clarity.
75954
75955 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75956
75957         * modules/bison-i18n (Depends-on): Add gettext.
75958
75959 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75960
75961         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
75962         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
75963         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
75964         also add missing comma that caused broken test.
75965         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
75966         stdlib.h, for `abort'.
75967         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
75968         variables.
75969         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
75970         include unistd.h if present, for `rmdir'.
75971         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
75972         variables.
75973         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
75974         in the process include standard headers for prototypes.
75975         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
75976         gets declared on GNU/Linux.
75977         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
75978         unistd.h, for `rmdir'.
75979         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
75980
75981         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
75982         always true.
75983         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
75984
75985         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
75986
75987 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75988
75989         * gnulib-tool (func_version): Create output all at once.  This
75990         may help avoid triggering unnecessary SIGPIPEs, and at any
75991         rate it doesn't hurt.
75992
75993 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75994             Bruno Haible  <bruno@clisp.org>
75995
75996         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
75997         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75998         * m4/signed.m4 (bh_C_SIGNED): Likewise.
75999
76000         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76001         (gl_FUNC_VASPRINTF): Invoke it.
76002
76003 2006-09-22  Bruno Haible  <bruno@clisp.org>
76004
76005         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76006         getloadavg.c as first argument.
76007
76008 2006-09-22  Bruno Haible  <bruno@clisp.org>
76009
76010         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76011         at the beginning of the gl_INIT macro.
76012         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76013         gl_GETLOADAVG.
76014
76015 2006-09-22  Bruno Haible  <bruno@clisp.org>
76016
76017         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76018         module.
76019         Suggested by Ralf Wildenhues.
76020
76021 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76022
76023         Import this patch from libc:
76024
76025         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76026
76027         * lib/regex_internal.c (re_string_reconstruct): Handle
76028         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76029         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76030         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76031         re_string_context_at.
76032
76033         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76034         now requires it.
76035         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76036         gl_REGEX now does it for us.
76037         (gl_REGEX): Add test taken from
76038         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76039
76040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76041         Check that large offsets work.  Modernize Autoconf usages.
76042         Prefer "yes" to mean a good thing rather than a bad.
76043         Don't put "#define mkstemp" in config.h, as this might interfere
76044         with standard system headers that "#define mkstemp mkstemp64".
76045
76046         * modules/mkstemp (Depends-on): Add extensions, so that
76047         mkstemp is visible on some platforms.
76048         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76049         (Include): Change to "mkstemp.h" from <stdlib.h>.
76050         (Files): Add mkstemp.h.
76051
76052         * lib/mkstemp.h: New file, since some standard headers
76053         #define mkstemp.
76054         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76055         Include "mkstemp.h".
76056         Make the _LIBC code resemble glibc original more,
76057         e.g., use K&R style.
76058         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76059         (mkstemp): Remove, since mkstemp.h does this for us.
76060         * lib/stdlib--.h: Include mkstemp.h.
76061
76062         Import this patch from libc:
76063
76064         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76065
76066         * lib/tempname.c (__gen_tempname): Change attempts_min
76067         into a macro.  Use preprocessor to decide how to initialize
76068         attempts [Coverity CID 67].
76069
76070 2006-09-20  Bruno Haible  <bruno@clisp.org>
76071
76072         * lib/mkdtemp.c: Import from libc.
76073         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76074                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76075                 attempts_min into a macro.  Use preprocessor to decide how to
76076                 initialize attempts [Coverity CID 67].
76077         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76078                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76079                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76080
76081 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76082
76083         * gnulib-tool (func_exit): New function, to allow to pass the
76084         exit status portably through the trap.  Use everywhere.
76085         (--help, --version): Signal a write error.
76086         (trap): catch SIGPIPE, for write errors.
76087         Exit at the end of the trap, with the correct exit status.
76088
76089 2006-09-19  Karl Berry  <karl@gnu.org>
76090
76091         * doc/gnulib.texi: note about the license texinfo files.
76092
76093 2006-09-19  Eric Blake  <ebb9@byu.net>
76094
76095         * gnulib-tool: Avoid space-tab.
76096
76097 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76098
76099         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76100         that prevented coreutils 6.1 from building.  Problem reported
76101         by Petter Reinholdtsen.
76102
76103 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76104
76105         * gnulib-tool (avoidlist): Fix typo that broke options like
76106         --avoid=lock that are used by coreutils bootstrap.
76107
76108 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76109
76110         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76111         more systematically.
76112
76113 2006-09-18  Jim Meyering  <jim@meyering.net>
76114
76115         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76116
76117 2006-09-18  Bruno Haible  <bruno@clisp.org>
76118
76119         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76120
76121 2006-09-18  Bruno Haible  <bruno@clisp.org>
76122
76123         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76124         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76125         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76126         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76127         * m4/gettext.m4: Require autoconf >= 2.52.
76128         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76129         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76130         of gl_cv_header_inttypes_h.
76131
76132 2006-09-18  Bruno Haible  <bruno@clisp.org>
76133
76134         * lib/javaversion.c: Include configmake.h.
76135
76136 2006-09-18  Bruno Haible  <bruno@clisp.org>
76137
76138         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76139         avoid that the while loops be executed in a subshell.
76140
76141 2006-09-18  Bruno Haible  <bruno@clisp.org>
76142
76143         * MODULES.html.sh (func_module): Break long lines.
76144         Suggested by Bruce Korb <bkorb@gnu.org>.
76145
76146 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76147
76148         Speed up by a factor of 1.12.
76149         * gnulib-tool (nl): New variable.
76150         (func_import): Rewrite include directive extraction to only read each
76151         directive once.
76152
76153 2006-09-17  Bruno Haible  <bruno@clisp.org>
76154
76155         * modules/javaversion (Makefile.am): Remove DEFS setting.
76156         (Depends-on): Add configmake, for PKGDATADIR definition.
76157
76158 2006-09-17  Bruno Haible  <bruno@clisp.org>
76159
76160         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76161
76162 2006-09-17  Bruno Haible  <bruno@clisp.org>
76163
76164         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76165         (func_modules_transitive_closure, func_modules_add_dummy,
76166         func_modules_to_filelist, func_import, func_create_testdir,
76167         func_create_megatestdir, ...): Use it wherever possible.
76168         Suggested by Ralf Wildenhues.
76169
76170 2006-09-16  Karl Berry  <karl@gnu.org>
76171
76172         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76173         to avoid sectioning errors.
76174         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76175         [ifinfo]: blank line after @center-ed titles.
76176         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76177         Spell FSF address consistently with others.
76178         (These changes approved by rms.)
76179
76180 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76181
76182         Speed up by a factor of 1.61.
76183         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76184         already checked module names again.
76185
76186 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76187
76188         Speed up by a factor of 1.13.
76189         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76190         for new_files, and the input to func_add_or_update.
76191
76192 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76193
76194         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76195         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76196
76197 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76198
76199         * modules/mkancesdirs (Depends-on): Add fcntl.
76200         * modules/savewd: New file.
76201         * MODULES.html.sh (File system functions): Add savewd.
76202
76203         * modules/configmake (Makefile.am): Add support for the
76204         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76205
76206 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76207
76208         * m4/savewd.m4: New file.
76209
76210 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76211
76212         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76213         (dirchownmod): New arg FD.  All callers changed.
76214         Use FD rather than opening the directory ourself, as opening is
76215         now the caller's responsibility.
76216         * lib/dirchownmod.h: Likewise.
76217         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76218         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76219         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76220         (test_dir): Remove.
76221         (mkancesdirs): Return length of prefix of FILE that has already
76222         been made, or -2 if there is a child doing the work.  Redo
76223         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76224         ".", and treat ".." specially since it might stray back into
76225         already-created areas.  Use a subprocess if necessary.  New arg
76226         WD; all users changed.  MAKE_DIR function should now return 1
76227         if it creates a directory that is not readable.  Return -2 if
76228         a child process is spun off.
76229         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76230         Adjust signature to match code.
76231         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76232         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76233         all users changed.
76234         * lib/savewd.c, lib/savewd.h: New files.
76235
76236 2006-09-15  Jim Meyering  <jim@meyering.net>
76237
76238         * modules/rename-dest-slash: New module.
76239         * MODULES.html.sh (posix_compat): Add it here.
76240
76241         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76242
76243 2006-09-15  Jim Meyering  <jim@meyering.net>
76244
76245         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76246         file.
76247
76248         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76249
76250 2006-09-15  Jim Meyering  <jim@meyering.net>
76251
76252         * lib/rename-dest-slash.c (has_trailing_slash): Use
76253         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76254         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76255         test before testing whether SRC is a directory.
76256         Suggestions from Bruno Haible.
76257
76258         Avoid a warning about an unused variable.
76259         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76260         into the #ifdef block where it's used.
76261
76262         * lib/rename-dest-slash.c: New file.
76263
76264 2006-09-14  Bruno Haible  <bruno@clisp.org>
76265
76266         * lib/allocsa.c: Include <config.h> unconditionally.
76267         * lib/asnprintf.c: Likewise.
76268         * lib/asprintf.c: Likewise.
76269         * lib/c-strcasecmp.c: Likewise.
76270         * lib/c-strcasestr.c: Likewise.
76271         * lib/c-strncasecmp.c: Likewise.
76272         * lib/c-strstr.c: Likewise.
76273         * lib/classpath.c: Likewise.
76274         * lib/clean-temp.c: Likewise.
76275         * lib/concatpath.c: Likewise.
76276         * lib/copy-file.c: Likewise.
76277         * lib/csharpcomp.c: Likewise.
76278         * lib/csharpexec.c: Likewise.
76279         * lib/execute.c: Likewise.
76280         * lib/fatal-signal.c: Likewise.
76281         * lib/findprog.c: Likewise.
76282         * lib/fwriteerror.c: Likewise.
76283         * lib/gl_array_list.c: Likewise.
76284         * lib/gl_array_oset.c: Likewise.
76285         * lib/gl_avltree_list.c: Likewise.
76286         * lib/gl_avltree_oset.c: Likewise.
76287         * lib/gl_avltreehash_list.c: Likewise.
76288         * lib/gl_carray_list.c: Likewise.
76289         * lib/gl_linked_list.c: Likewise.
76290         * lib/gl_linkedhash_list.c: Likewise.
76291         * lib/gl_list.c: Likewise.
76292         * lib/gl_oset.c: Likewise.
76293         * lib/gl_rbtree_list.c: Likewise.
76294         * lib/gl_rbtree_oset.c: Likewise.
76295         * lib/gl_rbtreehash_list.c: Likewise.
76296         * lib/imaxabs.c: Likewise.
76297         * lib/imaxdiv.c: Likewise.
76298         * lib/javacomp.c: Likewise.
76299         * lib/javaexec.c: Likewise.
76300         * lib/javaversion.c: Likewise.
76301         * lib/linebreak.c: Likewise.
76302         * lib/localcharset.c: Likewise.
76303         * lib/lock.c: Likewise.
76304         * lib/mbchar.c: Likewise.
76305         * lib/mbswidth.c: Likewise.
76306         * lib/mkdtemp.c: Likewise.
76307         * lib/pipe.c: Likewise.
76308         * lib/printf-args.c: Likewise.
76309         * lib/printf-parse.c: Likewise.
76310         * lib/progname.c: Likewise.
76311         * lib/progreloc.c: Likewise.
76312         * lib/readlink.c: Likewise.
76313         * lib/sh-quote.c: Likewise.
76314         * lib/stpcpy.c: Likewise.
76315         * lib/stpncpy.c: Likewise.
76316         * lib/strcasecmp.c: Likewise.
76317         * lib/strcasestr.c: Likewise.
76318         * lib/strcspn.c: Likewise.
76319         * lib/striconv.c: Likewise.
76320         * lib/strncasecmp.c: Likewise.
76321         * lib/strnlen1.c: Likewise.
76322         * lib/strstr.c: Likewise.
76323         * lib/strtok_r.c: Likewise.
76324         * lib/tls.c: Likewise.
76325         * lib/tmpdir.c: Likewise.
76326         * lib/unicodeio.c: Likewise.
76327         * lib/unsetenv.c: Likewise.
76328         * lib/vasnprintf.c: Likewise.
76329         * lib/vasprintf.c: Likewise.
76330         * lib/wait-process.c: Likewise.
76331         * lib/xallocsa.c: Likewise.
76332         * lib/xsetenv.c: Likewise.
76333         * lib/xstriconv.c: Likewise.
76334
76335 2006-09-13  Simon Josefsson  <jas@extundo.com>
76336
76337         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76338         that internally, suggested by Ralf Wildenhues
76339         <Ralf.Wildenhues@gmx.de>.
76340
76341 2006-09-13  Simon Josefsson  <jas@extundo.com>
76342
76343         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76344         @LIBOBJS@.
76345         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76346
76347 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76348
76349         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76350         longer worry about uses that don't define HAVE_CONFIG_H.
76351         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76352         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76353         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76354         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76355         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76356         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76357         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76358         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76359         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76360         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76361         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76362         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76363         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76364         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76365         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76366         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76367         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76368         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76369         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76370         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76371         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76372         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76373         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76374         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76375         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76376         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76377         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76378         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76379         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76380         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76381         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76382         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76383         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76384         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76385         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76386         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76387         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76388         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76389         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76390         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76391         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76392         Likewise.
76393
76394 2006-09-13  Eric Blake  <ebb9@byu.net>
76395
76396         * lib/getopt.c: Fix typo in last commit.
76397
76398 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76399
76400         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76401         dgettext.
76402
76403 2006-09-12  Jim Meyering  <jim@meyering.net>
76404
76405         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76406         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76407         Reported by Nelson H. F. Beebe.
76408
76409 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76410
76411         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76412         program_invocation_name and program_invocation_short_name are
76413         initialized.
76414         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76415         and program_invocation_short_name to argp.h, so they are visible
76416         to user programs.
76417         * lib/argp.h: Likewise
76418
76419 2006-09-10  Bruno Haible  <bruno@clisp.org>
76420
76421         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76422         m4/inttypes_h.m4, m4/uintmax_t.m4.
76423
76424 2006-09-10  Bruno Haible  <bruno@clisp.org>
76425
76426         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76427         gl_AC_TYPE_UINTMAX_T.
76428
76429 2006-09-10  Bruno Haible  <bruno@clisp.org>
76430
76431         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76432
76433 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76434
76435         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76436         convention.  Text proposed by Bruno Haible.
76437         (struct argp_option): Document the use of N_() wrappers.
76438
76439         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76440         '\v', and translate the two parts separately, instead of feeding
76441         the whole string to gettext.  This allows to exclude
76442         '\v' from the strings visible to the translator by writing doc
76443         strings as N_("..") "\v" N_("..").
76444
76445 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76446
76447         * config/srclist.txt: Undo latest change; the bug was fixed.
76448
76449 2006-09-09  Bruno Haible  <bruno@clisp.org>
76450
76451         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76452         assignments if building a library without libtool.
76453         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76454         in func_emit_lib_Makefile_am.
76455         (func_import): When building a static library libfoo.a, arrange to
76456         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76457         (func_create_testdir): Likewise.
76458         * modules/gc (configure.ac, Makefile.am): If building statically,
76459         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76460         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76461         * modules/striconv (configure.ac, Makefile.am): Likewise.
76462         Based on a suggestion by Ralf Wildenhues.
76463
76464 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76465
76466         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76467         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76468         Also:
76469
76470         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76471         Add year_2050_test to catch glibc bug 2821
76472         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76473
76474         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76475         Prefer #ifdef to #if.
76476
76477         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76478         Return from 'main' instead of calling 'exit'.
76479
76480 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76481
76482         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76483         returned the maximum time_t value rather than (time_t) -1.
76484         Problem originally reported by William Bardwell
76485         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76486
76487         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76488         Moved to here ...
76489         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76490         ... from here.
76491
76492 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76493
76494         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76495         2821 is fixed.
76496
76497 2006-09-08  Jim Meyering  <jim@meyering.net>
76498
76499         Don't make generated files read-only.  That would bother too many
76500         people.  However, do retain the ability to work when targets are
76501         read-only: remove the destination and temporary files before writing
76502         them (when generated via sed or echo), or by using the -f option for
76503         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76504         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76505         * modules/byteswap, modules/configmake, modules/fcntl:
76506         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76507         * modules/localcharset, modules/netinet_in, modules/poll:
76508         * modules/stdbool, modules/stdint, modules/sys_select:
76509         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76510
76511 2006-09-08  Jim Meyering  <jim@meyering.net>
76512
76513         Avoid new build failure on FreeBSD 6.0.
76514         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76515         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76516         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76517
76518 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76519
76520         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76521
76522 2006-09-07  Jim Meyering  <jim@meyering.net>
76523
76524         Fix global typo in last change: use chmod u-w, not chmod u-x.
76525         Spotted by Paul Eggert and Bruce Korb.
76526         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76527         * modules/byteswap, modules/configmake, modules/fcntl:
76528         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76529         * modules/localcharset, modules/netinet_in, modules/poll:
76530         * modules/stdbool, modules/stdint, modules/sys_select:
76531         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76532
76533 2006-09-06  Jim Meyering  <jim@meyering.net>
76534
76535         Make generated files be read-only.
76536         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
76537         Ensure that each generated file is now read-only.
76538         * modules/argz: Likewise.
76539         * modules/arpa_inet: Likewise.
76540         * modules/byteswap: Likewise.
76541         * modules/configmake: Likewise.
76542         * modules/fcntl: Likewise.
76543         * modules/fnmatch: Likewise.
76544         * modules/getopt: Likewise.
76545         * modules/glob: Likewise.
76546         * modules/inttypes: Likewise.
76547         * modules/netinet_in: Likewise.
76548         * modules/poll: Likewise.
76549         * modules/stdbool: Likewise.
76550         * modules/stdint: Likewise.
76551         * modules/sys_select: Likewise.
76552         * modules/sys_socket: Likewise.
76553         * modules/sys_stat: Likewise.
76554         * modules/sysexits: Likewise.
76555         * modules/localcharset: Same as above, but continue using temporary
76556         file named "t-$@" (why different?) rather than the "$@-t" used
76557         everywhere else.
76558
76559         * modules/sysexits (Makefile.am): Replace literal occurrences
76560         of "sysexit.h" more readable, and more consistent, "$@".
76561
76562 2006-09-06  Bruno Haible  <bruno@clisp.org>
76563
76564         * modules/striconv: New file.
76565         * modules/xstriconv: New file.
76566         * MODULES.html.sh (Internationalization functions): Add striconv,
76567         xstriconv.
76568
76569 2006-09-06  Bruno Haible  <bruno@clisp.org>
76570
76571         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
76572         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
76573         not using libtool correctly.
76574
76575 2006-09-06  Bruno Haible  <bruno@clisp.org>
76576
76577         * lib/striconv.h: New file.
76578         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
76579         iconvstring.c.
76580         * lib/xstriconv.h: New file.
76581         * lib/xstriconv.c: New file.
76582
76583 2006-09-06  Bruno Haible  <bruno@clisp.org>
76584
76585         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76586         lib_..._LDFLAGS.
76587
76588 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76589
76590         * lib/argz_.h: Sync from Libtool.
76591
76592         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
76593                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76594
76595         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
76596
76597 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76598
76599         * modules/trim: New file.
76600
76601 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76602
76603         * lib/trim.h: New file.
76604         * lib/trim.c: New file.
76605
76606 2006-09-05  Bruno Haible  <bruno@clisp.org>
76607
76608         * MODULES.html.sh (String handling): Add trim.
76609
76610 2006-09-04  Karl Berry  <karl@gnu.org>
76611
76612         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
76613         until next release.
76614
76615 2006-09-03  Bruno Haible  <bruno@clisp.org>
76616
76617         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
76618         correctly.
76619
76620 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
76623         not gl_GETLOADAVG.  Omit unneeded semicolons.
76624         Problems reported by Ralf Wildenhues in
76625         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76626         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
76627         at the end, which is the usual gnulib style.
76628
76629         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
76630         of doing all the work ourselves.
76631         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
76632         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
76633
76634 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76635
76636         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
76637         Problem reported by Ralf Wildenhues in
76638         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76639
76640         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
76641         HAVE_STRUCT_STATFS_F_FSTYPENAME.
76642
76643 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76644
76645         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
76646         yesterday's patch by changing test -n to test -z.
76647
76648 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76649
76650         * modules/getloadavg (Files): Add m4/getloadavg.m4.
76651         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
76652         the former is now obsolescent.
76653
76654         * modules/chdir-long (Depends-on): Add fcntl.
76655
76656 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76657
76658         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
76659         obsolescent, and programs should use gnulib instead.
76660         * m4/getloadavg.m4: New file, with contents taken from Autoconf
76661         but with prefixes changed.
76662
76663 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76664
76665         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
76666         or stdbool.h, because they might not exist while configuring.
76667
76668         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
76669         Don't include unistd.h or limits.h; not needed, since chdir-long.h
76670         does that for us.
76671         (O_DIRECTORY): Remove.
76672
76673 2006-08-31  Eric Blake  <ebb9@byu.net>
76674
76675         * gnulib-tool: Don't let emacs change spaces to TAB.
76676
76677 2006-08-31  Bruno Haible  <bruno@clisp.org>
76678
76679         * gnulib-tool: When calling func_import more than once, do it in a
76680         subshell.
76681         Reported by Eric Blake <ebb9@byu.net>.
76682
76683 2006-08-31  Bruno Haible  <bruno@clisp.org>
76684
76685         * gnulib-tool (nl): Remove variable.
76686         (sed_transform_lib_file): Use more robust test for config-h module.
76687         (func_import): Fix typo in 2006-08-25 patch.
76688
76689 2006-08-31  Bruno Haible  <bruno@clisp.org>
76690
76691         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
76692         specified, augment Makefile.am variables instead of assigning them.
76693
76694 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76695
76696         Work around a bug in both the Linux and SunOS 64-bit kernels:
76697         nanosleep mishandles sleeps for longer than 2**31 seconds.
76698         Problem reported by Frank v Waveren in
76699         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
76701         Check for nanosleep bug.
76702         (LIB_NANOSLEEP): Append clock_gettime library if needed.
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         * lib/nanosleep.c (BILLION): New constant.
76711         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
76712         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
76713         implementation.
76714
76715 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76716
76717         * modules/nanosleep (Depends-on): Add gettime.
76718
76719 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76720         and Simon Josefsson  <jas@extundo.com>
76721         and Oskar Liljeblad  <oskar@osk.mine.nu>
76722
76723         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
76724         * gnulib-tool (func_import): New license type 'unmodifiable license
76725         text'.
76726         * modules/fdl: Use it.  Longer description.
76727         * module/gpl, module/lgpl: New files.
76728
76729 2006-08-30  Jim Meyering  <jim@meyering.net>
76730
76731         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
76732         shadowing the parameter.
76733
76734 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76735
76736         Sync from Libtool:
76737
76738         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76739
76740         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
76741         sharing with gnulib.  Report by Eric Blake.
76742
76743 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         * modules/isapipe: New file.
76746         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
76747
76748 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76749
76750         * modules/configmake (Makefile.am): Add a comment, and omit
76751         the CONFIGMAKE_ prefix from generated macro names.  Suggested
76752         by Bruno Haible.
76753
76754 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76755
76756         * m4/isapipe.m4: New file.
76757
76758 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76759
76760         * lib/isapipe.c, lib/isapipe.h: New files.
76761
76762 2006-08-29  Jim Meyering  <jim@meyering.net>
76763
76764         * modules/configmake (Makefile.am): Make configmake.h depend on
76765         Makefile.  Otherwise, a stale configmake.h could hang around.
76766
76767 2006-08-29  Eric Blake  <ebb9@byu.net>
76768
76769         * lib/error.c (error_at_line, print_errno_message): Match libc, after
76770         resolution of upstream bug 3044.
76771
76772 2006-08-29  Bruno Haible  <bruno@clisp.org>
76773
76774         * modules/localcharset (Depends-on): Add configmake.
76775         (Makefile.am): Remove setting of LIBDIR through DEFS.
76776
76777 2006-08-29  Bruno Haible  <bruno@clisp.org>
76778
76779         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
76780         defined.
76781
76782 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         * modules/fcntl: New file.
76785         * modules/chdir-safer (Depends-on): Add fcntl.
76786         * modules/fts: Likewise.
76787         * modules/mkdir-p: Likewise.
76788
76789         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
76790         This undoes the most recent change, since we're now addressing the
76791         problem in a different way.
76792
76793         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
76794         into output, since the output might be called Makefile.am even
76795         if $makefile_name is something different.
76796         (func_import): Use $makefile_am rather than
76797         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
76798         empty.
76799
76800         * modules/inttypes (Files): Add m4/inttypes-h.m4.
76801
76802 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76803
76804         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
76805         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
76806         recent change to stdint.m4, since we're now addressing the problem in a
76807         different way.
76808
76809 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76810
76811         * m4/fcntl_h.m4: New file.
76812
76813 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76814
76815         * lib/fcntl_.h: New file.
76816         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
76817         the fcntl module.
76818         * lib/dirchownmod.c: Likewise.
76819         * lib/fts.c: Likewise.
76820
76821         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
76822         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
76823         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
76824         just before including <inttypes.h>, to avoid circular inclusion.
76825
76826 2006-08-28  Jim Meyering  <jim@meyering.net>
76827
76828         * doc/visibility.texi: Actually read and correct the grammar of the
76829         sentence affected by yesterday's change.
76830
76831 2006-08-28  Eric Blake  <ebb9@byu.net>
76832
76833         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
76834         needs wrapper.
76835
76836 2006-08-28  Eric Blake  <ebb9@byu.net>
76837
76838         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
76839
76840 2006-08-28  Eric Blake  <ebb9@byu.net>
76841
76842         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
76843
76844 2006-08-28  Bruno Haible  <bruno@clisp.org>
76845
76846         * modules/c-strstr: New file, from GNU gettext.
76847         * MODULES.html.sh (String handling): Add c-strstr.
76848
76849 2006-08-28  Bruno Haible  <bruno@clisp.org>
76850
76851         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
76852         macros.
76853         Reported by Eric Blake.
76854
76855 2006-08-28  Bruno Haible  <bruno@clisp.org>
76856
76857         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
76858         (VASNPRINTF): Return a string of length > INT_MAX without failing.
76859         * lib/vasprintf.c: Include errno.h, limits.h.
76860         (EOVERFLOW): New fallback definition.
76861         (vasprintf): Test here whether the string length is > INT_MAX.
76862         * lib/vsnprintf.c: Include errno.h, limits.h.
76863         (EOVERFLOW): New fallback definition.
76864         (vsnprintf): Fix bug when generated string was too long for the buffer.
76865         Test here whether the string length is > INT_MAX.
76866
76867 2006-08-28  Bruno Haible  <bruno@clisp.org>
76868
76869         * lib/inttypes_.h (SCNX*): Remove definitions.
76870         Reported by Eric Blake.
76871
76872 2006-08-28  Bruno Haible  <bruno@clisp.org>
76873
76874         * lib/c-strstr.h: New file, from GNU gettext.
76875         * lib/c-strstr.c: New file, from GNU gettext.
76876
76877 2006-08-28  Bruno Haible  <bruno@clisp.org>
76878
76879         * gnulib-tool: Reorder some statements.
76880
76881 2006-08-28  Bruno Haible  <bruno@clisp.org>
76882
76883         * gnulib-tool: New option --makefile-name.
76884         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
76885         $makefile_name.
76886         (func_import): Write $makefile_name to the cache file, and read it from
76887         there unless explicitly specified. Use $makefile_name as file name
76888         instead of Makefile.am. Adjust the recommendations accordingly.
76889
76890 2006-08-28  Bruno Haible  <bruno@clisp.org>
76891
76892         * gnulib-tool (func_verify_module): Check against misapplying patch.
76893
76894 2006-08-28  Bruno Haible  <bruno@clisp.org>
76895
76896         * gnulib-tool (func_relativize, func_relconcat): New functions.
76897         Give an error if --local-dir is given with --update.
76898         Remove trailing slashes from $local_gnulib_dir.
76899         (func_import): Store the relativized $local_gnulib_dir in
76900         gnulib-cache.m4, and read it from there if not specified explicitly.
76901
76902 2006-08-28  Bruno Haible  <bruno@clisp.org>
76903
76904         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
76905         is the current directory. Respect also $local_gnulib_dir.
76906
76907 2006-08-28  Bruno Haible  <bruno@clisp.org>
76908             Simon Josefsson  <jas@extundo.com>
76909
76910         BeOS portability.
76911         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
76912
76913 2006-08-27  Jim Meyering  <jim@meyering.net>
76914
76915         * doc/visibility.texi: Remove duplicate word: "pointer".
76916
76917 2006-08-26  Bruno Haible  <bruno@clisp.org>
76918
76919         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
76920         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
76921         (Makefile.am): Create inttypes.h from inttypes_.h.
76922         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
76923
76924         * modules/imaxabs: New file.
76925
76926         * modules/imaxdiv: New file.
76927
76928 2006-08-26  Bruno Haible  <bruno@clisp.org>
76929
76930         * m4/inttypes.m4: New file.
76931         * m4/_inttypes_h.m4: Remove file.
76932         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
76933         PRI_MACROS_BROKEN.
76934         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
76935
76936         * m4/imaxabs.m4: New file.
76937
76938         * m4/imaxdiv.m4: New file.
76939
76940 2006-08-26  Bruno Haible  <bruno@clisp.org>
76941
76942         * lib/inttypes_.h: New file.
76943         * lib/inttypes.h: Remove file.
76944         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
76945
76946         * lib/imaxabs.c: New file.
76947
76948         * lib/imaxdiv.c: New file.
76949
76950 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76951
76952         New config-h module, so that "make" output needn't be cluttered
76953         by -DHAVE_CONFIG_H.
76954         * MODULES.html.sh (Support for building libraries and executables):
76955         Add config-h.
76956         * modules/config-h: New file.
76957         * gnulib-tool (nl, sed_transform_lib_file): New vars.
76958         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
76959         the config-h module is used.
76960
76961         New configmake module, so that "make" output needn't be cluttered
76962         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
76963         * MODULES.html.sh (Support for building libraries and executables):
76964         Add configmake.
76965         * modules/configmake: New file.
76966
76967 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76968
76969         * m4/config-h.m4: New file.
76970
76971 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         * config/srclist.txt: Add elisp-comp.
76974
76975 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76976
76977         * MODULES.html.sh (Support for building libraries and executables):
76978         Add elisp-comp.
76979         * build-aux/elisp-comp: New file.
76980         * modules/elisp-comp: New file.
76981
76982 2006-08-24  Bruno Haible  <bruno@clisp.org>
76983
76984         * gnulib-tool (func_create_testdir): Use non-default values of
76985         sourcebase and m4base.
76986
76987 2006-08-24  Bruno Haible  <bruno@clisp.org>
76988
76989         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
76990         HTML structure.
76991
76992 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76993
76994         * modules/openat (Depends-on): Add lchown.
76995
76996 2006-08-23  Bruno Haible  <bruno@clisp.org>
76997
76998         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
76999         of gl_LOCK_EARLY instead of gl_LOCK.
77000
77001 2006-08-23  Bruno Haible  <bruno@clisp.org>
77002
77003         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77004         on OSF/1 to no.
77005         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77006
77007 2006-08-23  Bruno Haible  <bruno@clisp.org>
77008
77009         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77010         as unusable.
77011
77012         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77013         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77014         (gl_LOCK): New macro.
77015
77016 2006-08-22  Simon Josefsson  <jas@extundo.com>
77017
77018         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77019         to md5 module.
77020
77021 2006-08-22  Simon Josefsson  <jas@extundo.com>
77022
77023         * MODULES.html.sh: Add "Support for maintaining and release
77024         projects".
77025
77026         * build-aux/gnupload: New file, from coreutils.
77027
77028 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77029
77030         Avoid the need for AC_LIBSOURCES in m4 macros.
77031         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77032         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77033         * modules/check-version (EXTRA_DIST): Add check-version.h.
77034         * modules/crc (EXTRA_DIST): Add crc.h.
77035         * modules/des (EXTRA_DIST): Add des.h.
77036         * modules/gc (EXTRA_DIST): Add gc.h.
77037         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77038         * modules/getline (EXTRA_DIST): Add getline.h.
77039         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77040         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77041         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77042         * modules/md2 (EXTRA_DIST): Add md2.h.
77043         * modules/md4 (EXTRA_DIST): Add md4.h.
77044         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77045         * modules/read-file (EXTRA_DIST): Add read-file.h.
77046         * modules/readline (EXTRA_DIST): Add readline.h.
77047         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77048         rijndael-api-fst.h.
77049
77050 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77051
77052         * m4/rijndael.m4 (gl_ARCFOUR):
77053         * m4/arctwo.m4 (gl_ARCTWO):
77054         * m4/check-version.m4 (gl_CHECK_VERSION):
77055         * m4/crc.m4 (gl_CRC):
77056         * m4/des.m4 (gl_DES):
77057         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77058         * m4/gc.m4 (gl_GC):
77059         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77060         * m4/getline.m4 (gl_FUNC_GETLINE):
77061         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77062         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77063         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77064         * m4/md2.m4 (gl_MD2):
77065         * m4/md4.m4 (gl_MD4):
77066         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77067         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77068         * m4/readline.m4 (gl_FUNC_READLINE):
77069         * m4/rijndael.m4 (gl_RIJNDAEL):
77070         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77071         to get the necessary .h files and whatnot.
77072
77073 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77074
77075         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77076         gnulib rather than the other way around.
77077         * config/srclistvars.sh (COREUTILS): Remove.
77078
77079 2006-08-22  Jim Meyering  <jim@meyering.net>
77080
77081         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77082
77083         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77084
77085 2006-08-22  Eric Blake  <ebb9@byu.net>
77086
77087         * modules/regexprops-generic: New file.
77088         * MODULES.html.sh (Support for building documentation): List it.
77089
77090 2006-08-22  Eric Blake  <ebb9@byu.net>
77091
77092         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77093         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77094         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77095         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77096
77097 2006-08-22  Bruno Haible  <bruno@clisp.org>
77098
77099         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77100         and lib_LTLIBRARIES like the other lib_* variables.
77101
77102 2006-08-22  Bruno Haible  <bruno@clisp.org>
77103
77104         * build-aux/x-to-1.in: New file, from GNU gettext.
77105
77106 2006-08-22  Bruno Haible  <bruno@clisp.org>
77107
77108         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77109         <utmpx.h> exists.
77110
77111 2006-08-22  Bruno Haible  <bruno@clisp.org>
77112
77113         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77114         <utmpx.h> exists.
77115
77116 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77117
77118         BeOS portability.
77119         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77120         exist.
77121         Problem reported by Bruno Haible.
77122
77123 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77124
77125         Avoid the need for AC_LIBSOURCES in m4 macros.
77126         * modules/acl (EXTRA_DIST): Add acl.h.
77127         * modules/argmatch (Files): Add m4/argmatch.m4.
77128         (configure.ac): Add gl_ARGMATCH.
77129         (EXTRA_DIST): Renamed from lib_SOURCES, for
77130         consistency with the other modules.  Remove argmatch.c.
77131         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77132         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77133         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77134         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77135         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77136         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77137         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77138         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77139         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77140         * modules/closeout (EXTRA_DIST): Add closeout.h.
77141         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77142         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77143         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77144         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77145         dirname.h; remove basename.c and stripslash.c.
77146         * modules/exclude (EXTRA_DIST): Add exclude.h.
77147         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77148         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77149         * modules/file-type (EXTRA_DIST): Add file-type.h.
77150         * modules/filemode (EXTRA_DIST): Add filemode.h.
77151         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77152         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77153         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77154         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77155         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77156         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77157         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77158         * modules/getdate (EXTRA_DIST): Add getdate.c.
77159         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77160         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77161         * modules/getpass (EXTRA_DIST): Add getpass.h.
77162         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77163         * modules/group-member (EXTRA_DIST): Add group-member.h.
77164         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77165         * modules/hash (EXTRA_DIST): Add hash.h.
77166         * modules/human (EXTRA_DIST): Add human.h.
77167         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77168         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77169         * modules/lchown (EXTRA_DIST): Add lchown.h.
77170         * modules/long-options (EXTRA_DIST): Add long-options.h.
77171         * modules/lstat (EXTRA_DIST): Add lstat.h.
77172         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77173         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77174         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77175         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77176         * modules/memxor (EXTRA_DIST): Add memxor.h.
77177         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77178         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77179         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77180         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77181         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77182         * modules/physmem (EXTRA_DIST): Add physmem.h.
77183         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77184         * modules/posixver (EXTRA_DIST): Add posixver.h.
77185         * modules/quote (EXTRA_DIST): Add quote.h.
77186         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77187         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77188         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77189         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77190         regex_internal.h regexec.c.
77191         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77192         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77193         * modules/same (EXTRA_DIST): Add same.h.
77194         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77195         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77196         * modules/savedir (EXTRA_DIST): Add savedir.h.
77197         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77198         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77199         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77200         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77201         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77202         * modules/strdup (EXTRA_DIST): Add strdup.h.
77203         * modules/strftime (EXTRA_DIST): Add strftime.h.
77204         * modules/strndup (EXTRA_DIST): Add strndup.h.
77205         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77206         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77207         * modules/time_r (EXTRA_DIST): Add time_r.h.
77208         * modules/timespec (EXTRA_DIST): Add timespec.h.
77209         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77210         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77211         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77212         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77213         * modules/userspec (EXTRA_DIST): Add userspec.h.
77214         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77215         * modules/utimens (EXTRA_DIST): Add utimens.h.
77216         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77217         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77218         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77219         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77220         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77221         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77222         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77223         * modules/yesno (EXTRA_DIST): Add yesno.h.
77224
77225 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77226
77227         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77228
77229         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77230         * m4/dev-ino.m4, same-inode.m4: Remove.
77231
77232         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77233         * m4/acl.m4 (AC_FUNC_ACL):
77234         * m4/backupfile.m4 (gl_BACKUPFILE):
77235         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77236         * m4/canon-host.m4 (gl_CANON_HOST):
77237         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77238         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77239         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77240         * m4/cloexec.m4 (gl_CLOEXEC):
77241         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77242         * m4/closeout.m4 (gl_CLOSEOUT):
77243         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77244         * m4/dirname.m4 (gl_DIRNAME):
77245         * m4/exclude.m4 (gl_EXCLUDE):
77246         * m4/exitfail.m4 (gl_EXITFAIL):
77247         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77248         * m4/file-type.m4 (gl_FILE_TYPE):
77249         * m4/filemode.m4 (gl_FILEMODE):
77250         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77251         * m4/fpending.m4 (gl_FUNC_FPENDING):
77252         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77253         * m4/fts.m4 (gl_FUNC_FTS):
77254         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77255         * m4/getdate.m4 (gl_GETDATE):
77256         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77257         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77258         * m4/getpass.m4 (gl_FUNC_GETPASS):
77259         * m4/gettime.m4 (gl_GETTIME):
77260         * m4/getugroups.m4 (gl_GETUGROUPS):
77261         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77262         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77263         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77264         * m4/hash.m4 (gl_HASH):
77265         * m4/idcache.m4 (gl_IDCACHE):
77266         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77267         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77268         * m4/long-options.m4 (gl_LONG_OPTIONS):
77269         * m4/lstat.m4 (gl_FUNC_LSTAT):
77270         * m4/md5.m4 (gl_MD5):
77271         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77272         * m4/memcoll.m4 (gl_MEMCOLL):
77273         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77274         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77275         * m4/memxor.m4 (gl_MEMXOR):
77276         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77277         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77278         * m4/modechange.m4 (gl_MODECHANGE):
77279         * m4/mountlist.m4 (gl_MOUNTLIST):
77280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77281         * m4/openat.m4 (gl_FUNC_OPENAT):
77282         * m4/pathmax.m4 (gl_PATHMAX):
77283         * m4/physmem.m4 (gl_PHYSMEM):
77284         * m4/posixtm.m4 (gl_POSIXTM):
77285         * m4/posixver.m4 (gl_POSIXVER):
77286         * m4/quote.m4 (gl_QUOTE):
77287         * m4/quotearg.m4 (gl_QUOTEARG):
77288         * m4/readtokens.m4 (gl_READTOKENS):
77289         * m4/readutmp.m4 (gl_READUTMP):
77290         * m4/regex.m4 (gl_REGEX):
77291         * m4/safe-read.m4 (gl_SAFE_READ):
77292         * m4/safe-write.m4 (gl_SAFE_WRITE):
77293         * m4/same.m4 (gl_SAME):
77294         * m4/save-cwd.m4 (gl_SAVE_CWD):
77295         * m4/savedir.m4 (gl_SAVEDIR):
77296         * m4/settime.m4 (gl_SETTIME):
77297         * m4/sha1.m4 (gl_SHA1):
77298         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77299         * m4/stat-macros.m4 (gl_STAT_MACROS):
77300         * m4/stat-time.m4 (gl_STAT_TIME):
77301         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77302         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77303         * m4/strdup.m4 (gl_FUNC_STRDUP):
77304         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77305         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77306         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77307         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77308         * m4/time_r.m4 (gl_TIME_R):
77309         * m4/timespec.m4 (gl_TIMESPEC):
77310         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77311         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77312         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77313         * m4/userspec.m4 (gl_USERSPEC):
77314         * m4/utimecmp.m4 (gl_UTIMECMP):
77315         * m4/utimens.m4 (gl_UTIMENS):
77316         * m4/xalloc.m4 (gl_XALLOC):
77317         * m4/xgetcwd.m4 (gl_XGETCWD):
77318         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77319         * m4/xreadlink.m4 (gl_XREADLINK):
77320         * m4/xstrtod.m4 (gl_XSTRTOD):
77321         * m4/yesno.m4 (gl_YESNO):
77322         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77323         to get the necessary .h files and whatnot.
77324
77325 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77326             Bruno Haible  <bruno@clisp.org>
77327
77328         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77329         /bin/sh understanding of '!' conditional negation.
77330
77331 2006-08-21  Jim Meyering  <jim@meyering.net>
77332
77333         * modules/openat (Depends-on): Really alphabetize.
77334
77335         * modules/acl (Depends-on): Add error and quote.
77336
77337         * check-module (find_included_lib_files): Add at-func.c to the
77338         ok-to-include-more-than-once white list.
77339
77340         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77341
77342 2006-08-21  Bruno Haible  <bruno@clisp.org>
77343
77344         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77345         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77346         Reported by Martin Lambers <marlam@marlam.de>.
77347
77348 2006-08-21  Bruno Haible  <bruno@clisp.org>
77349
77350         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77351         specify an installation location, don't emit a noinst_LIBRARIES or
77352         noinst_LTLIBRARIES assignment.
77353
77354 2006-08-21  Bruno Haible  <bruno@clisp.org>
77355
77356         BeOS portability.
77357         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77358         BeOS has mbrtowc() but no <wctype.h>.
77359
77360 2006-08-21  Bruno Haible  <bruno@clisp.org>
77361
77362         BeOS portability.
77363         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77364         exist.
77365
77366 2006-08-21  Bruno Haible  <bruno@clisp.org>
77367
77368         BeOS portability.
77369         * lib/mbchar.h: Include <wctype.h> only if it exists.
77370
77371 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77372
77373         Remove files that are no longer needed by their respective modules.
77374         * m4/obstack.m4: Remove.
77375         * m4/strerror_r.m4: Remove.
77376         * m4/uint32_t.m4: Remove.
77377         * m4/uintptr_t.m4: Remove.
77378         * m4/ullong_max.m4: Remove.
77379         * m4/xstrtoimax.m4: Remove.
77380         * m4/xstrtoumax.m4: Remove.
77381
77382         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77383         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77384         dependencies now capture this.
77385
77386         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77387         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77388         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77389         * m4/human.m4 (gl_HUMAN): Likewise.
77390         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77391         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77392
77393         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77394
77395         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77396         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77397         stdint.
77398         * m4/human.m4 (gl_HUMAN): Likewise.
77399         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77400         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77401         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77402         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77403         * m4/xstrtol (gl_XSTRTOL): Likewise.
77404
77405         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77406         AC_TYPE_LONG_LONG_INT.
77407         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77408         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77409         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77410         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77411
77412         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77413         on stdbool.
77414
77415         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77416         (gl_PREREQ_XSTRTOUL): Remove.
77417
77418         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77419
77420         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77421         mode.
77422
77423 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77424
77425         Add and change modules to make it easier for coreutils to use
77426         gnulib-tool.
77427         * modules/backupfile (Files): Remove m4/d-ino.m4.
77428         (Depends-on): Add d-ino.
77429         * modules/cycle-check (Depends-on): Add stdint.
77430         (lib_SOURCES): Add cycle-check.h.
77431         * modules/d-ino: New module.
77432         * modules/d-type: New module.
77433         * modules/error (Files): Remove m4/strerror_r.m4.
77434         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77435         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77436         m4/inttypes_h.m4, m4/uintmax_t.m4.
77437         (Depends-on): Add stdint.
77438         (lib_SOURCES): Add fsusage.h.
77439         * modules/getcwd (Files): Remove d-ino.m4.
77440         (Depends-on): Add d-ino.
77441         * modules/getndelim2 (Depends-on): Add stdint.
77442         * modules/glob (Files): Remove m4/d-type.m4.
77443         (Depends-on): Add d-type.
77444         * modules/host-os: New module.
77445         * modules/human (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 human.h.
77449         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77450         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77451         m4/uintmax_t.m4, m4/ulonglong.m4.
77452         (Depends-on): Add stdint.
77453         (EXTRA_DIST): Add inttostr.h.
77454         * modules/lchmod: New module.
77455         * modules/link-follow: New module.
77456         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77457         (Depends-on): Add lchmod.
77458         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77459         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77460         (Depends-on): Add stdint.
77461         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77462         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77463         (Depends-on): Add stdint.
77464         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77465         * modules/perl: New module.
77466         * modules/regex (Depends-on): Add stdint.
77467         * modules/rmdir-errno: New module.
77468         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77469         m4/intmax_t.m4.
77470         (Depends-on): Add stdint.
77471         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77472         m4/uintmax_t.m4.
77473         (Depends-on): Add stdint.
77474         * modules/unlink-busy: New module.
77475         * modules/utimecmp (Depends-on): Add stdint.
77476         * modules/uptime: New module.
77477         * modules/winsz-ioctl: New module.
77478         * modules/winsz-termios: New module.
77479         * modules/xnanosleep (Depends-on): Add nanosleep.
77480         * modules/ullong_max: Remove.
77481         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77482         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77483         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77484         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77485         (Depends-on): Add inttypes.
77486         (lib_SOURCES): Add xstrtol.h.
77487         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77488         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77489         * MODULES.html.sh: Move 'assert' into the assert section.
77490         Move 'dummy' into the linking section.
77491         Remove ullong_max.
77492         Add section for compatibility checks for POSIX:2001 functions,
77493         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77494         winsz-ioctl, and winsz-termios into it.
77495         Add lchmod.
77496         Add top-level Misc section and put host-os, perl, and uptime
77497         into it.
77498
77499 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77502         now assume the stdint module.  Do not include inttypes.h.
77503         * lib/fsusage.h: Likewise.
77504         * lib/getndelim2.c: Likewise.
77505         * lib/human.h: Likewise.
77506         * lib/inttostr.h: Likewise.
77507         * lib/obstack.c: Likewise.
77508         * lib/regex_internal.h: Likewise.
77509         * lib/tempname.c: Likewise.
77510         * lib/utimecmp.c: Likewise.
77511         * lib/xstrtol.h: Likewise.
77512
77513         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77514
77515         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77516         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77517         * lib/xtime.h: Likewise.
77518
77519 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * modules/openat (Files): Add lib/fchmodat.c.
77522         Fixes problem reported by Jay Youngman.
77523
77524 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
77527         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
77528
77529 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
77530             Bruno Haible  <bruno@clisp.org>
77531
77532         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
77533         and is a script that invokes bison. Tighten the code. Add comments.
77534
77535 2006-08-18  Jim Meyering  <jim@meyering.net>
77536
77537         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
77538         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
77539         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
77540         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
77541
77542 2006-08-18  Bruno Haible  <bruno@clisp.org>
77543
77544         * modules/bison-i18n: New file.
77545         * MODULES.html.sh (Internationalization functions): Add it.
77546
77547 2006-08-18  Bruno Haible  <bruno@clisp.org>
77548
77549         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
77550         sys/statvfs.h. When getmntinfo was found, check its declaration and
77551         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
77552
77553 2006-08-18  Bruno Haible  <bruno@clisp.org>
77554
77555         * m4/bison-i18n.m4: New file, from bison.
77556
77557 2006-08-18  Bruno Haible  <bruno@clisp.org>
77558
77559         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
77560         (ME_DUMMY): Treat "kernfs" as a dummy.
77561         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
77562
77563 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         Update from coreutils.
77566
77567         2006-08-15  Jim Meyering  <jim@meyering.net>
77568
77569         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
77570
77571         2006-01-17  Jim Meyering  <jim@meyering.net>
77572
77573         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
77574
77575         2006-01-11  Jim Meyering  <jim@meyering.net>
77576
77577         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
77578         Check for the lchmod function.
77579
77580 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         Update from coreutils.
77583
77584         * lib/__fpending.h: Add copyright notice.
77585         * lib/fprintftime.h: Likewise.
77586         * lib/savedir.c: Use (C) in copyright notice.
77587         * lib/savedir.h: Likewise.
77588
77589         2006-08-15  Jim Meyering  <jim@meyering.net>
77590
77591         * lib/at-func.c: New file, with the logic of all emulated at-functions.
77592         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
77593         in support of the EXPECTED_ERRNO macro.
77594         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
77595         definitions.  Instead, define the appropriate symbols and include
77596         "at-func.c".
77597         * lib/mkdirat.c (mkdirat): Likewise.
77598         * lib/fchmodat.c (fchmodat): Likewise.
77599         (ENOSYS): Remove definition.
77600         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
77601         it.  Don't include "unistd--.h" -- it wasn't ever used.
77602
77603         2006-01-17  Jim Meyering  <jim@meyering.net>
77604
77605         Rewrite fts.c not to change the current working directory,
77606         by using openat, fstatat, fdopendir, etc..
77607
77608         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
77609         (HAVE_OPENAT_SUPPORT): Define.
77610         [_LIBC] (fchdir): Don't undef or define; no longer used.
77611         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
77612         Now, this `function' always succeeds, and consumes its file descriptor
77613         parameter -- so callers must not close such FDs.  Update callers.
77614         (diropen_fd, opendirat, cwd_advance_fd): New functions.
77615         (diropen): Add parameter, SP.  Adjust all callers.
77616         Implement using diropen_fd, rather than open.
77617         (fts_open): Initialize new member, fts_cwd_fd.
77618         Remove fts_rft-setting code.
77619         (fts_close): Close fts_cwd_fd, if necessary.
77620         (__opendir2): Define in terms of opendir or opendirat,
77621         depending on whether the FST_NOCHDIR flag is set.
77622         (fts_build): Since fts_safe_changedir consumes its FD, and since
77623         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
77624         and close the dup'd file descriptor upon failure.
77625         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
77626         (fts_safe_changedir): Tweak semantics to reflect that this function
77627         now calls cwd_advance_fd and hence consumes its FD argument.
77628         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
77629         [struct FTS] (fts_rft): Remove now-unused member.
77630         [struct FTS] (fts_cycle.state): Improve comment.
77631
77632         * lib/openat.c (openat_needs_fchdir): New function.
77633         * lib/openat.h (openat_needs_fchdir): Declare it.
77634
77635 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77636
77637         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
77638         Problem and fix reported by Pádraig Brady in
77639         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
77640
77641 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77642
77643         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
77644
77645 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77646
77647         * lib/memcoll.c (memcoll): Optimize for the common case where the
77648         arguments are bytewise equal.
77649
77650 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77651
77652         * doc/regexprops-generic.texi: Add a copyright notice.
77653
77654 2006-08-15  Bruno Haible  <bruno@clisp.org>
77655
77656         * modules/tmpdir (License): Change to LGPL.
77657
77658 2006-08-15  Bruno Haible  <bruno@clisp.org>
77659
77660         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
77661         module.
77662
77663 2006-08-14  Simon Josefsson  <jas@extundo.com>
77664
77665         * config/srclist.txt: Add gnupload.
77666
77667 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77668
77669         Change copyright notice from LGPL 2 to GPL 2, since that's the
77670         standard form used in the gnulib repository.
77671         * tests/test-lock.c: Likewise.
77672         * tests/test-stdint.c: Likewise.
77673         * tests/test-tls.c: Likewise.
77674
77675         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
77676         prelude-manager.  User shorter URLs for GNU projects, without '?'.
77677         Add copyright notice.
77678
77679         * check-module: Add copyright notice.  Output a copyright
77680         notice if "--version" is specified.
77681         * modules/COPYING: New file.
77682         * tests/test-getaddrinfo.c: Add copyright notice.
77683         * tests/test-verify.c: Likewise.
77684
77685 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77686
77687         Change copyright notice from LGPL 2 to GPL 2, since that's the
77688         standard form used in the gnulib repository.
77689         * lib/lock.c: LGPL -> GPL.
77690         * lib/lock.h: Likewise.
77691         * lib/strnlen1.c: Likewise.
77692         * lib/strnlen1.h: Likewise.
77693         * lib/tls.c: Likewise.
77694         * lib/tls.h: Likewise.
77695         * lib/tmpdir.c: Likewise.
77696
77697         * lib/TODO: Remove; this belongs only in coreutils.
77698
77699 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77700
77701         Add copyright notices to long-enough files that lack them, since
77702         otherwise the files aren't clearly free.  Use the same notice that
77703         getdate.texi already uses.
77704         * doc/alloca-opt.texi: Add copyright notice.
77705         * doc/alloca.texi: Likewise.
77706         * doc/ctime.texi: Likewise.
77707         * doc/functions.texi: Likewise.
77708         * doc/gcd.texi: Likewise.
77709         * doc/gnulib-tool.texi: Likewise.
77710         * doc/inet_ntoa.texi: Likewise.
77711         * doc/visibility.texi: Likewise.
77712
77713         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
77714         * doc/quote.texi: Add copyright notice.
77715
77716         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
77717         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
77718         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
77719         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
77720         is now obsolete, and give a pointer to the Sun list.
77721         Add copyright notice.
77722
77723 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77724
77725         * config/srclistvars.sh: Add copyright notice.
77726
77727 2006-08-14  Eric Blake  <ebb9@byu.net>
77728
77729         Import the following change from libc:
77730
77731         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
77732
77733         Upstream bug 2997.
77734         * lib/misc/error.c: Add space between program name and message if file
77735         name is missing.
77736
77737 2006-08-12  Karl Berry  <karl@gnu.org>
77738
77739         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
77740         remove, these originate in gnulib now.
77741
77742 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77743
77744         * doc/Makefile (standards.info standards.html standards.dvi):
77745         Also depend on make-stds.texi.
77746
77747 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
77750         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
77751
77752         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
77753         in wchar_t.  Problem reported by Eric Blake.
77754
77755         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
77756         LEN is smaller than SIZE.  Suggested by Bruno Haible.
77757         Also, help the compiler to keep LEN in a register.
77758
77759 2006-08-11  Eric Blake  <ebb9@byu.net>
77760
77761         * users.txt: Sort.  Add tar.
77762
77763 2006-08-11  Bruno Haible  <bruno@clisp.org>
77764
77765         * users.txt: New file.
77766
77767 2006-08-11  Bruno Haible  <bruno@clisp.org>
77768
77769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
77770         before <wchar.h>. Needed for OSF/1 and BSD/OS.
77771
77772 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         * modules/snprintf (Depends-on): Remove minmax.
77775         (Maintainer): Add self and Bruno.
77776
77777 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77778
77779         * lib/.cppi-disable: Add snprintf.h, socket_.h.
77780         * lib/snprintf.c: Include <errno.h> and <limits.h>.
77781         (EOVERFLOW): Define if the system does not.
77782         Do not include "minmax.h"; it wasn't used.
77783         (snprintf): Don't assume size_t promotes to an unsigned type.
77784         Fix bug when generated string was too long for the buffer: the
77785         buffer's contents are supposed to be the initial prefix of the
77786         output.  Don't assume vasnprintf returns EOVERFLOW if the size
77787         exceeds INT_MAX; do the check ourselves.
77788
77789         Import the following changes from libc:
77790
77791         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
77792
77793         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
77794         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
77795         set wc to the byte which couldn't be converted.
77796         (re_string_reconstruct): Don't clear valid_raw_len before calling
77797         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
77798         tip_context using re_string_context_at.
77799
77800         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
77801
77802         * lib/posix/regex.h: g++ still cannot handled [restrict].
77803
77804         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
77805
77806         * lib/posix/regex.h: Remove special handling for VMS.
77807
77808 2006-08-10  Jim Meyering  <jim@meyering.net>
77809
77810         * modules/same-inode: New module.
77811         * modules/dev-ino: New module.
77812         * modules/cycle-check: Depend on these modules, rather than simply
77813         including their .h files.
77814         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
77815         required via m4/cycle-check.m4.
77816         * modules/same: Depend on new same-inode module, rather than
77817         including same-inode.h.
77818         * modules/chdir-safer: New file.
77819
77820         * modules/chown (Depends-on): Add stat-macros.
77821
77822 2006-08-10  Jim Meyering  <jim@meyering.net>
77823
77824         * m4/cycle-check.m4: New file.
77825         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
77826         * m4/dev-ino.m4, m4/same-inode.m4: New files.
77827
77828 2006-08-10  Eric Blake  <ebb9@byu.net>
77829
77830         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
77831         in from original proposal.
77832
77833 2006-08-10  Eric Blake  <ebb9@byu.net>
77834         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77835
77836         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
77837         namespace.
77838
77839 2006-08-10  Bruno Haible  <bruno@clisp.org>
77840
77841         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
77842         as well.
77843
77844 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77845
77846         Sync from coreutils.
77847
77848         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
77849
77850         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
77851         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
77852
77853 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77854
77855         * modules/restrict: Remove; no longer needed now that we assume
77856         Autoconf 2.59 or later.
77857         * MODULES.html.sh: Remove 'restrict'.
77858         * modules/argp (Depends-on): Remove 'restrict'.
77859         * modules/base64 (Depends-on): Likewise.
77860         * modules/gc (Depends-on): Likewise.
77861         * modules/getaddrinfo (Depends-on): Likewise.
77862         * modules/glob (Depends-on): Likewise.
77863         * modules/inet_ntop (Depends-on): Likewise.
77864         * modules/inet_pton (Depends-on): Likewise.
77865         * modules/memxor (Depends-on): Likewise.
77866         * modules/regex (Depends-on): Likewise.
77867         * modules/strtok_r (Depends-on): Likewise.
77868         * modules/time_r (Depends-on): Likewise.
77869
77870 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77871
77872         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
77873         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
77874         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77875         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
77876         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
77877         * m4/memxor.m4 (gl_MEMXOR): Likewise.
77878         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
77879         gl_C_RESTRICT replaced by AC_C_RESTRICT.
77880
77881         Merge from coreutils.
77882         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
77883         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
77884         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
77885         * m4/time_r.m4 (gl_TIME_R): Likewise.
77886
77887 2006-08-09  Karl Berry  <karl@gnu.org>
77888
77889         * config/srclist.txt: no more gettext-tools, per Bruno.
77890
77891 2006-08-08  Eric Blake  <ebb9@byu.net>
77892
77893         * modules/verror: New module.
77894         * MODULES.html.sh: Document it.
77895
77896 2006-08-08  Eric Blake  <ebb9@byu.net>
77897
77898         * lib/verror.h, lib/verror.c: New files.
77899
77900 2006-08-08  Eric Blake  <ebb9@byu.net>
77901
77902         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
77903         verror_at_line output complies with GNU Coding Standards even when
77904         file is NULL.
77905
77906 2006-08-07  Bruno Haible  <bruno@clisp.org>
77907
77908         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
77909         versions of AIX.
77910         Reported by Ralf Wildenhues.
77911
77912 2006-08-07  Bruno Haible  <bruno@clisp.org>
77913
77914         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
77915         in an AC_DEFUN. Needed so that the autoconf snippets can use
77916         AC_REQUIRE.
77917
77918 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77919
77920         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77921         Initialize pkgdata_DATA.
77922         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
77923         overriding it.
77924
77925 2006-08-06  Eric Blake  <ebb9@byu.net>
77926
77927         * lib/error.h: Fold in some upstream changes from glibc.
77928         * lib/error.c: Likewise.
77929
77930 2006-08-04  Bruno Haible  <bruno@clisp.org>
77931
77932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77933         Make the mostlyclean-local rule depend on mostlyclean-generic.
77934         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
77935
77936 2006-07-31  Bruno Haible  <bruno@clisp.org>
77937
77938         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
77939         <stdlib.h>, <string.h>.
77940
77941 2006-07-30  Bruno Haible  <bruno@clisp.org>
77942
77943         * modules/readlink (License): Change to LGPL.
77944
77945 2006-07-30  Bruno Haible  <bruno@clisp.org>
77946
77947         * modules/javaversion (Makefile.am): Distribute javaversion.java and
77948         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
77949         set PKGDATADIR to point to it.
77950
77951 2006-07-30  Bruno Haible  <bruno@clisp.org>
77952
77953         * modules/csharpexec (configure.ac): Comment out macro invocation.
77954         * modules/javaexec (configure.ac): Likewise.
77955         * modules/javacomp-script (configure.ac): Likewise.
77956
77957         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
77958
77959 2006-07-30  Bruno Haible  <bruno@clisp.org>
77960
77961         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
77962         linked-list.
77963
77964 2006-07-30  Bruno Haible  <bruno@clisp.org>
77965
77966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
77967
77968 2006-07-30  Bruno Haible  <bruno@clisp.org>
77969
77970         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77971         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
77972         get removed.
77973
77974 2006-07-29  Bruno Haible  <bruno@clisp.org>
77975
77976         Make it possible for gnulib-tool to work with locally modified or
77977         augmented gnulib repositories.
77978         * gnulib-tool (func_usage): Document --local-dir option.
77979         (local_gnulib_dir): New variable.
77980         Handle --local-dir option.
77981         (func_lookup_file): New function.
77982         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
77983         (func_get_description, func_get_filelist, func_get_description,
77984         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
77985         func_get_automake_snippet, func_get_include_directive,
77986         func_get_license, func_get_maintainer): Use func_lookup_file.
77987         (func_import, func_create_testdir): Use func_lookup_file.
77988
77989 2006-07-29  Bruno Haible  <bruno@clisp.org>
77990
77991         * modules/setenv (Depends-on): Add unistd.
77992
77993 2006-07-29  Bruno Haible  <bruno@clisp.org>
77994
77995         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
77996
77997 2006-07-29  Bruno Haible  <bruno@clisp.org>
77998
77999         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78000
78001 2006-07-29  Bruno Haible  <bruno@clisp.org>
78002
78003         * gnulib-tool (import, update): If there is no Makefile.am, look at
78004         aclocal.m4, instead of bailing out.
78005
78006 2006-07-29  Bruno Haible  <bruno@clisp.org>
78007
78008         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78009         Categorize the options by when they are useful.
78010
78011 2006-07-29  Bruno Haible  <bruno@clisp.org>
78012
78013         * gnulib-tool (func_usage): Document option --no-libtool.
78014         Handle option --no-libtool.
78015         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78016         for changed semantics of $libtool variable.
78017         (func_import): Likewise. If libtool is not used, show this through
78018         an option --no-libtool.
78019         (func_create_testdir): Update.
78020
78021 2006-07-29  Bruno Haible  <bruno@clisp.org>
78022
78023         * gnulib-tool (func_import): Extend error message about missing
78024         --doc-base.
78025
78026 2006-07-29  Bruno Haible  <bruno@clisp.org>
78027
78028         * gnulib-tool (func_import): Don't create the $docbase directory if
78029         there is no file to store there.
78030
78031 2006-07-29  Bruno Haible  <bruno@clisp.org>
78032
78033         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78034         relevant, look for configure.ac there, not in the current directory.
78035         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78036
78037 2006-07-29  Bruno Haible  <bruno@clisp.org>
78038
78039         * gnulib-tool (SORT): New variable.
78040         (func_usage): Undocument --assume-autoconf option.
78041         Remove --assume-autoconf option handling.
78042         (autoconf_minversion): Determine from the contents of configure.ac.
78043         (func_import): Remove autoconf_minversion handling.
78044         Suggested by Eric Blake.
78045
78046 2006-07-29  Bruno Haible  <bruno@clisp.org>
78047
78048         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78049
78050 2006-07-29  Bruno Haible  <bruno@clisp.org>
78051
78052         * config/srclist.txt (*setenv.[ch]): Remove rules.
78053
78054 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78055
78056         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78057
78058 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78059
78060         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78061         arpa/inet.h.
78062
78063 2006-07-28  Simon Josefsson  <jas@extundo.com>
78064
78065         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78066         * modules/inet_pton (Depends-on): Likewise.
78067
78068 2006-07-28  Simon Josefsson  <jas@extundo.com>
78069
78070         * m4/netinet_in_h.m4: New file.
78071
78072 2006-07-28  Simon Josefsson  <jas@extundo.com>
78073
78074         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78075         #include's.
78076
78077 2006-07-28  Simon Josefsson  <jas@extundo.com>
78078
78079         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78080         #include's.
78081
78082 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78083
78084         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78085         setgid on directories only if they set these bits.
78086         * lib/modechange.h: Remove obsolete comment about masks.
78087
78088 2006-07-28  Eric Blake  <ebb9@byu.net>
78089
78090         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78091         macro expansion.
78092
78093 2006-07-28  Bruno Haible  <bruno@clisp.org>
78094
78095         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78096
78097 2006-07-28  Bruno Haible  <bruno@clisp.org>
78098
78099         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78100
78101 2006-07-28  Bruno Haible  <bruno@clisp.org>
78102
78103         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78104         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78105         Define fallbacks.
78106         Avoids link error on FreeBSD 4.x.
78107         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78108
78109         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78110         encoding.
78111         * lib/mbswidth.c (iswcntrl): Likewise.
78112
78113 2006-07-27  Bruno Haible  <bruno@clisp.org>
78114
78115         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78116         test.
78117
78118 2006-07-27  Bruno Haible  <bruno@clisp.org>
78119
78120         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78121         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78122         defined.
78123
78124 2006-07-26  Eric Blake  <ebb9@byu.net>
78125
78126         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78127
78128 2006-07-26  Eric Blake  <ebb9@byu.net>
78129
78130         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78131         like mingw that lack mkstemp.
78132         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78133         avoid compilation warning on mingw.
78134
78135 2006-07-26  Bruno Haible  <bruno@clisp.org>
78136
78137         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78138         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78139         INT_FAST*_MIN, INTPTR_MIN.
78140
78141 2006-07-25  Bruno Haible  <bruno@clisp.org>
78142
78143         * modules/version-etc (Depends-on): Add stdarg.
78144
78145 2006-07-25  Bruno Haible  <bruno@clisp.org>
78146
78147         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78148         complex commands.
78149
78150 2006-07-25  Bruno Haible  <bruno@clisp.org>
78151
78152         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78153         defined in <stdarg.h> or config.h.
78154
78155 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78156
78157         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78158         (gl_STDIO_SAFER): Remove.
78159
78160 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78161
78162         * MODULES.html.sh (File stream based Input/Output):
78163         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78164         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78165         * modules/fopen-safer, modules/tmpfile-safer: New files.
78166         * modules/stdio-safer: Remove.
78167
78168 2006-07-24  Bruno Haible  <bruno@clisp.org>
78169
78170         * modules/tmpdir: New file.
78171         * MODULES.html.sh (File system functions): Add it.
78172
78173 2006-07-24  Bruno Haible  <bruno@clisp.org>
78174
78175         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78176         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78177
78178 2006-07-24  Bruno Haible  <bruno@clisp.org>
78179
78180         * modules/clean-temp: New file.
78181
78182 2006-07-24  Bruno Haible  <bruno@clisp.org>
78183
78184         * m4/tmpdir.m4: New file, from GNU gettext.
78185
78186 2006-07-24  Bruno Haible  <bruno@clisp.org>
78187
78188         * lib/tmpdir.h: New file, from GNU gettext.
78189         * lib/tmpdir.c: New file, from GNU gettext.
78190
78191 2006-07-24  Bruno Haible  <bruno@clisp.org>
78192
78193         * lib/clean-temp.h: New file, from GNU gettext.
78194         * lib/clean-temp.c: New file, from GNU gettext.
78195
78196 2006-07-23  Eric Blake  <ebb9@byu.net>
78197
78198         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78199         (Depends-on): Add binary-io.
78200
78201 2006-07-23  Eric Blake  <ebb9@byu.net>
78202
78203         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78204
78205 2006-07-23  Eric Blake  <ebb9@byu.net>
78206
78207         * lib/tmpfile-safer.c: New file.
78208         * lib/stdio-safer.h (fopen_safer): Add prototype.
78209         * lib/stdio--.h (tmpfile): Make safer.
78210
78211 2006-07-23  Bruno Haible  <bruno@clisp.org>
78212
78213         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78214         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78215         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78216         gl_linked_remove_at): Use it.
78217
78218 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78219         and Simon Josefsson <jas@extundo.com>
78220
78221         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78222
78223         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78224
78225 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78226
78227         * modules/close-stream: New file.
78228         * modules/closeout (Description): Make it clear that it exits
78229         with a diagnostic on error.
78230         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78231         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78232
78233 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78234
78235         * m4/close-stream.m4: New file.
78236
78237 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78238
78239         * lib/close-stream.c, lib/close-stream.h: New files.
78240
78241 2006-07-22  Bruno Haible  <bruno@clisp.org>
78242
78243         Merge from GNU gettext 0.15.
78244
78245         2006-05-01  Bruno Haible  <bruno@clisp.org>
78246
78247                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78248
78249         2006-07-22  Bruno Haible  <bruno@clisp.org>
78250
78251                 * modules/javaversion: New file.
78252                 * MODULES.html.sh (Java): Add javaversion.
78253
78254         2006-03-12  Bruno Haible  <bruno@clisp.org>
78255
78256                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78257
78258         2005-12-04  Bruno Haible  <bruno@clisp.org>
78259
78260                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78261                 (untested).
78262
78263         2006-06-21  Bruno Haible  <bruno@clisp.org>
78264
78265                 Avoid warnings from recent versions of mcs.
78266                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78267                 -o, -L, -r any more. Use options documented since mcs-1.0
78268                 instead. Similarly for -g.
78269
78270         2005-12-04  Bruno Haible  <bruno@clisp.org>
78271
78272                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78273                 .resources, not .resource.
78274
78275         2005-07-09  Bruno Haible  <bruno@clisp.org>
78276
78277                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78278                 add a .dll suffix.
78279                 Reported by Mark Junker <mjscod@gmx.de>.
78280
78281         2006-07-22  Bruno Haible  <bruno@clisp.org>
78282
78283                 * modules/gettext: Upgrade to gettext-0.15.
78284                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78285                 m4/visibility.m4.
78286                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78287
78288 2006-07-22  Bruno Haible  <bruno@clisp.org>
78289
78290         Merge from GNU gettext 0.15.
78291
78292         2006-03-25  Bruno Haible  <bruno@clisp.org>
78293
78294                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78295
78296         2006-07-21  Bruno Haible  <bruno@clisp.org>
78297
78298                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78299                 "1.1".
78300
78301         2006-05-09  Bruno Haible  <bruno@clisp.org>
78302
78303                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78304                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78305                 for the conftestver execution.
78306
78307         2006-05-01  Bruno Haible  <bruno@clisp.org>
78308
78309                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78310                 optional target-version argument. Verify that the compiler
78311                 groks source of the specified source-version, or add -source
78312                 option as necessary. Verify that the compiler produces
78313                 bytecode in the specified target-version, or add -target and
78314                 -source options as necessary. Make the result of the test
78315                 available as variable CONF_JAVAC. Also log error output in
78316                 config.log.
78317
78318         2006-03-11  Bruno Haible  <bruno@clisp.org>
78319
78320                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78321
78322         2006-05-09  Bruno Haible  <bruno@clisp.org>
78323
78324                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78325                 CLASSPATH_SEPARATOR to a semicolon.
78326
78327         2006-03-12  Bruno Haible  <bruno@clisp.org>
78328
78329                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78330                 available as variable CONF_JAVA, for subsequent autoconf
78331                 tests. Also log error output in config.log.
78332
78333         2006-07-19  Bruno Haible  <bruno@clisp.org>
78334
78335                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78336                 that getline works on glibc2 systems. Needed to avoid trouble
78337                 in relocatable.c.
78338                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78339
78340         2005-12-04  Bruno Haible  <bruno@clisp.org>
78341
78342                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78343                 launcher (untested).
78344
78345         2005-12-04  Bruno Haible  <bruno@clisp.org>
78346
78347                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78348
78349         2006-07-22  Bruno Haible  <bruno@clisp.org>
78350
78351                 * gettext.m4: Update from GNU gettext-0.15.
78352                 * nls.m4: Likewise.
78353                 * po.m4: Likewise.
78354                 * inttypes-pri.m4: Likewise.
78355                 * inttypes-h.m4: Renamed from inttypes.m4.
78356                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78357
78358 2006-07-22  Bruno Haible  <bruno@clisp.org>
78359
78360         Merge from GNU gettext 0.15.
78361
78362         2005-07-05  Bruno Haible  <bruno@clisp.org>
78363
78364                 * printf-args.c (printf_fetchargs): Work around broken
78365                 definition of wint_t on mingw.
78366
78367         2005-02-12  Bruno Haible  <bruno@clisp.org>
78368
78369                 * xallocsa.h: Add extern "C" for C++.
78370
78371         2006-05-17  Bruno Haible  <bruno@clisp.org>
78372
78373                 Cygwin portability.
78374                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78375
78376         2006-04-30  Bruno Haible  <bruno@clisp.org>
78377
78378                 * progreloc.c: Include <mach-o/dyld.h> if available.
78379                 (find_executable): Use _NSGetExecutablePath when possible.
78380
78381         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78382
78383                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78384                 function.
78385
78386         2005-12-29  Bruno Haible  <bruno@clisp.org>
78387
78388                 * progreloc.c (set_program_name_and_installdir): Fix
78389                 compilation error.
78390
78391         2005-12-04  Bruno Haible  <bruno@clisp.org>
78392
78393                 Cygwin portability.
78394                 * progreloc.c: Include <windows.h> also on Cygwin.
78395                 (find_executable): Add support for Cygwin.
78396                 (set_program_name_and_installdir): Handle also platforms with
78397                 nonempty EXEEXT.
78398
78399         2006-07-11  Bruno Haible  <bruno@clisp.org>
78400
78401                 * javacomp.c: Fix a comment.
78402                 Reported by Jim Meyering.
78403
78404         2006-04-30  Bruno Haible  <bruno@clisp.org>
78405
78406                 * javacomp.h (compile_java_class): Add source_version,
78407                 target_version arguments.
78408                 * javacomp.c: Rewritten to choose only a compiler that
78409                 respects the specified source_version and target_version.
78410
78411         2006-06-27  Bruno Haible  <bruno@clisp.org>
78412
78413                 Assume correct S_ISDIR macro.
78414                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78415
78416         2006-07-22  Bruno Haible  <bruno@clisp.org>
78417
78418                 * javaversion.h: New file, from GNU gettext.
78419                 * javaversion.c: New file, from GNU gettext.
78420                 * javaversion.java: New file, from GNU gettext.
78421                 * javaversion.class: New file, from GNU gettext.
78422
78423         2006-05-17  Bruno Haible  <bruno@clisp.org>
78424
78425                 Cygwin portability.
78426                 * javaexec.c (execute_java_class): Test for jview program
78427                 also on Cygwin.
78428
78429         2006-04-09  Bruno Haible  <bruno@clisp.org>
78430
78431                 * fatal-signal.c: Don't include string.h.
78432                 (at_fatal_signal): Use a copying loop instead of memcpy.
78433
78434         2005-12-04  Bruno Haible  <bruno@clisp.org>
78435
78436                 * csharpexec.c: Add support for 'clix' launcher (untested).
78437                 (execute_csharp_using_sscli): New function.
78438                 (execute_csharp_program): Call it.
78439
78440         2006-06-21  Bruno Haible  <bruno@clisp.org>
78441
78442                 Avoid warnings from recent versions of mcs.
78443                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78444                 -o, -L, -r any more. Use options documented since mcs-1.0
78445                 instead. Similarly for -g.
78446
78447         2005-07-09  Bruno Haible  <bruno@clisp.org>
78448
78449                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78450                 add a .dll suffix.
78451                 Reported by Mark Junker <mjscod@gmx.de>.
78452
78453         2006-06-17  Bruno Haible  <bruno@clisp.org>
78454
78455                 * config.charset: Update for NetBSD 3.0.
78456
78457         2006-05-17  Bruno Haible  <bruno@clisp.org>
78458
78459                 Cygwin portability.
78460                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78461
78462         2006-05-16  Bruno Haible  <bruno@clisp.org>
78463
78464                 * localcharset.c [CYGWIN]: Include <windows.h>.
78465                 (get_charset_aliases): For Cygwin, return the same CPxxx
78466                 aliases list as under WIN32.
78467                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78468                 the environment variables. Fall back to GetACP().
78469
78470         2006-04-05  Bruno Haible  <bruno@clisp.org>
78471
78472                 * config.charset: Update Juan Manuel Guerrero's address.
78473
78474         2005-02-12  Bruno Haible  <bruno@clisp.org>
78475
78476                 * allocsa.h: Add extern "C" for C++.
78477
78478         2005-02-10  Bruno Haible  <bruno@clisp.org>
78479
78480                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78481                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78482
78483         2006-07-22  Bruno Haible  <bruno@clisp.org>
78484
78485                 * gettext.h: Update to GNU gettext-0.15.
78486
78487 2006-07-22  Bruno Haible  <bruno@clisp.org>
78488
78489         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78490         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78491         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78492
78493 2006-07-21  Eric Blake  <ebb9@byu.net>
78494
78495         * modules/stdlib-safer: New file.
78496         * MODULES.html.sh (File stream based Input/Output): Add
78497         stdlib-safer.
78498
78499 2006-07-21  Eric Blake  <ebb9@byu.net>
78500
78501         * lib/stdlib-safer.h: New file from coreutils, required by
78502         stdlib--.h.
78503
78504 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78505
78506         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78507
78508 2006-07-20  Bruno Haible  <bruno@clisp.org>
78509
78510         * gnulib-tool: Recognize new option --assume-autoconf.
78511         (autoconf_minversion): New variable.
78512         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78513
78514 2006-07-20  Bruno Haible  <bruno@clisp.org>
78515
78516         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78517
78518 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78519
78520         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78521         Reindent and repaginate.
78522
78523 2006-07-19  Derek Price  <derek@ximbiot.com>
78524
78525         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
78526         Correct grammar.
78527
78528 2006-07-17  Bruno Haible  <bruno@clisp.org>
78529
78530         * modules/list: New file.
78531         * modules/array-list: New file.
78532         * modules/carray-list, modules/carray-list-tests: New files.
78533         * modules/linked-list, modules/linked-list-tests: New files.
78534         * modules/avltree-list, modules/avltree-list-tests: New files.
78535         * modules/rbtree-list, modules/rbtree-list-tests: New files.
78536         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
78537         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
78538         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
78539         * modules/oset: New file.
78540         * modules/array-oset: New file.
78541         * modules/avltree-oset, modules/avltree-oset-tests: New files.
78542         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
78543         * tests/test-carray_list.c: New file.
78544         * tests/test-linked_list.c: New file.
78545         * tests/test-avltree_list.c: New file.
78546         * tests/test-rbtree_list.c: New file.
78547         * tests/test-linkedhash_list.c: New file.
78548         * tests/test-avltreehash_list.c: New file.
78549         * tests/test-rbtreehash_list.c: New file.
78550         * tests/test-avltree_oset.c: New file.
78551         * tests/test-rbtree_oset.c: New file.
78552         * MODULES.html.sh (Container data structures): New section.
78553
78554 2006-07-17  Bruno Haible  <bruno@clisp.org>
78555
78556         * m4/gl_list.m4: New file.
78557
78558 2006-07-17  Bruno Haible  <bruno@clisp.org>
78559
78560         * lib/gl_list.h: New file.
78561         * lib/gl_list.c: New file.
78562         * lib/gl_array_list.h: New file.
78563         * lib/gl_array_list.c: New file.
78564         * lib/gl_carray_list.h: New file.
78565         * lib/gl_carray_list.c: New file.
78566         * lib/gl_linked_list.h: New file.
78567         * lib/gl_linked_list.c: New file.
78568         * lib/gl_anylinked_list1.h: New file.
78569         * lib/gl_anylinked_list2.h: New file.
78570         * lib/gl_avltree_list.h: New file.
78571         * lib/gl_avltree_list.c: New file.
78572         * lib/gl_anyavltree_list1.h: New file.
78573         * lib/gl_anyavltree_list2.h: New file.
78574         * lib/gl_rbtree_list.h: New file.
78575         * lib/gl_rbtree_list.c: New file.
78576         * lib/gl_anyrbtree_list1.h: New file.
78577         * lib/gl_anyrbtree_list2.h: New file.
78578         * lib/gl_anytree_list1.h: New file.
78579         * lib/gl_anytree_list2.h: New file.
78580         * lib/gl_linkedhash_list.h: New file.
78581         * lib/gl_linkedhash_list.c: New file.
78582         * lib/gl_anyhash_list1.h: New file.
78583         * lib/gl_anyhash_list2.h: New file.
78584         * lib/gl_avltreehash_list.h: New file.
78585         * lib/gl_avltreehash_list.c: New file.
78586         * lib/gl_rbtreehash_list.h: New file.
78587         * lib/gl_rbtreehash_list.c: New file.
78588         * lib/gl_anytreehash_list1.h: New file.
78589         * lib/gl_anytreehash_list2.h: New file.
78590
78591         * lib/gl_oset.h: New file.
78592         * lib/gl_oset.c: New file.
78593         * lib/gl_array_oset.h: New file.
78594         * lib/gl_array_oset.c: New file.
78595         * lib/gl_avltree_oset.h: New file.
78596         * lib/gl_avltree_oset.c: New file.
78597         * lib/gl_rbtree_oset.h: New file.
78598         * lib/gl_rbtree_oset.c: New file.
78599         * lib/gl_anytree_oset.h: New file.
78600
78601 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78602
78603         * m4/mkancesdirs.m4: New file.
78604         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
78605         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
78606         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
78607         it.
78608
78609 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78610
78611         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
78612         * lib/mkancesdirs.h: New files.
78613         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
78614         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
78615         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
78616         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
78617         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
78618         callers changed.  Revamp internals significantly, by not
78619         attempting to create directories that are temporarily more
78620         permissive than the final results.  Do not attempt to use
78621         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
78622         This removes some race conditions, fixes some bugs, and simplifies
78623         things.  Use new dirchownmod function to do owner and mode changes.
78624         * lib/mkdir-p.h: Likewise.
78625         * lib/modechange.c (octal_to_mode): New function.
78626         (struct mode_change): New member mentioned.
78627         (make_node_op_equals): New arg mentioned.  All callers changed.
78628         (mode_compile): Keep track of which mode bits the user has explicitly
78629         mentioned.
78630         (mode_adjust): New arg DIR, so that we implement the X op correctly.
78631         New arg PMODE_BITS, to keep track of which mode bits the user
78632         mentioned; it treats S_ISUID and S_ISGID speciall.
78633         All callers changed.
78634         * lib/modechange.h: Likewise.
78635
78636 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78637
78638         * MODULES.html.sh: Add mkancestors.
78639         * modules/mkancesdirs: New module.
78640         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
78641         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
78642         The chdir-safer and afs files are now orphans; I'll remove them
78643         unless someone speaks up.
78644         Add lib/dirchownmod.c, lib/dirchownmod.h.
78645         (Depends-on): Remove alloca, chown, save-cwd, dirname.
78646         Add lchown, mkancesdirs.
78647         (Maintainer): Add self.
78648
78649 2006-07-15  Karl Berry  <karl@gnu.org>
78650
78651         * gnulib-tool: help message wording/arrangement.
78652
78653 2006-07-14  Simon Josefsson  <jas@extundo.com>
78654
78655         * doc/gnulib.texi (Libtool and Windows): New section.
78656
78657 2006-07-12  Simon Josefsson  <jas@extundo.com>
78658
78659         * modules/gendocs (License): Fix license, approved by Karl.
78660
78661 2006-07-12  Eric Blake  <ebb9@byu.net>
78662
78663         * MODULES.html.sh: Add gendocs.
78664
78665 2006-07-11  Eric Blake  <ebb9@byu.net>
78666
78667         * modules/fdl: New module, to install doc/fdl.texi.
78668         * MODULES.html.sh: Add new section for documentation modules.
78669         * gnulib-tool: Avoid space-tab.
78670         (--doc-base): New option, to manage files from doc.
78671
78672 2006-07-11  Eric Blake  <ebb9@byu.net>
78673
78674         * m4/absolute-header.m4: Fix comments to match recent change.
78675
78676 2006-07-11  Eric Blake  <ebb9@byu.net>
78677
78678         * gnulib-tool: List --doc-base before --tests-base.
78679
78680 2006-07-11  Derek R. Price  <derek@ximbiot.com>
78681
78682         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
78683
78684 2006-07-11  Bruno Haible  <bruno@clisp.org>
78685
78686         * README: Mention where to put documentation.
78687
78688 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78689
78690         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
78691
78692 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78693
78694         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
78695         to stdint.m4.
78696
78697 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78698
78699         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
78700         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
78701         "no/such/file/stdint.h" when there is no such file, so that
78702         the resulting C code can be parsed by dodgy compilers.
78703         Problems reported by Bob Proulx.
78704
78705 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78706
78707         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
78708         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78709         macros into the GNU _D_EXACT_NAMLEN.
78710         * lib/savedir.c:  Likewise.
78711         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
78712
78713 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78714         and Paul Eggert  <eggert@cs.ucla.edu>
78715
78716         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
78717         * m4/savedir.m4:
78718         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78719         macros into the GNU _D_EXACT_NAMLEN.
78720
78721 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78722
78723         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
78724         around the absolute name, to work around a problem with the HP-UX
78725         11.23 native C compiler, reported by Bob Proulx.
78726
78727 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78728
78729         * doc/maintain.texi, make-stds.texi: Sync from
78730         <http://savannah.gnu.org/projects/gnustandards>.
78731
78732 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78733
78734         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
78735
78736 2006-07-09  Jim Meyering  <jim@meyering.net>
78737
78738         * m4/glob.m4: Remove a doubled word in a comment.
78739
78740 2006-07-09  Jim Meyering  <jim@meyering.net>
78741
78742         * lib/argp-pv.c: Remove a doubled word in a comment.
78743         * lib/check-version.c (check_version): Likewise.
78744         * lib/javacomp.c (compile_java_class): Likewise.
78745
78746 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78747
78748         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
78749         for the benefit of people using Autoconf 2.60.  If you want to
78750         support older Autoconf versions you can copy m4/onceonly_2_57.m4
78751         (or m4/onceonly.m4, if pre-2.57) manually.
78752
78753 2006-07-08  Jim Meyering  <jim@meyering.net>
78754
78755         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
78756         comment.
78757         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
78758         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
78759         comment.
78760
78761 2006-07-08  Jim Meyering  <jim@meyering.net>
78762
78763         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
78764
78765 2006-07-07  Simon Josefsson  <jas@extundo.com>
78766
78767         * tests/test-crc.c: Change expected crc value, the test vector
78768         were probably computed using the old broken crc.c?
78769
78770 2006-07-06  Simon Josefsson  <jas@extundo.com>
78771
78772         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
78773         now the canonical place for the M4 file).
78774
78775         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
78776         from the sys_socket dependency now.
78777
78778         * modules/inet_pton (Files): Ditto.
78779
78780         * modules/inet_ntop (Files): Ditto.
78781
78782 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78783
78784         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
78785         not gl_PREREQ_GETUSERSHELL.
78786
78787 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78788
78789         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
78790         with only one argument, for Autoconf 2.60.
78791         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
78792         expand to nothing, so add a shell command to avoid syntax error.
78793         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78794
78795 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78796
78797         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
78798
78799 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
78802         no longer needed.  Check for isblank decl.
78803         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
78804         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
78805         of existence.
78806
78807 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78808
78809         * lib/getloadavg.c: Use __VMS, not VMS.
78810         * lib/getopt.c: Likewise.
78811         * lib/getpagesize.h: Likewise.
78812         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
78813         and probably does not work.
78814
78815 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78816
78817         * lib/.cppi-disable: Add wcwidth.
78818         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
78819         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
78820         (ISGRAPH): Remove.  All uses changed to isgraph.
78821         (FOLD) [!defined _LIBC]: Remove special case.
78822         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
78823         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
78824         HAVE_ISBLANK.
78825         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
78826         case.
78827
78828 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78829
78830         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
78831         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
78832         brackets.  Other minor changes to suppress some compiler
78833         warnings.
78834
78835 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78836         and Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
78839         of invoking obsolescent AC_HEADER_DIRENT macro.
78840         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
78841         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
78842         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78843         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
78844         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
78845         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78846         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
78847         * m4/readdir.m4: Remove; no longer needed.
78848
78849 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78850         and Paul Eggert  <eggert@cs.ucla.edu>
78851
78852         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
78853         Don't worry about this obsolete case any more.
78854         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
78855         directories.
78856         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
78857         worry about this obsolete case any more.
78858         * lib/fts.c: Likewise.
78859         * lib/getcwd.c: Likewise.
78860         * lib/glob.h: Likewise.
78861         * lib/savedir.c: Likewise.
78862
78863 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78864
78865         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
78866         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
78867         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
78868         needed.
78869         All uses removed.
78870         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78871         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78872         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
78873         needed.
78874         * m4/getdate.m4 (gl_GETDATE): Likewise.
78875         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78876         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78877         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78878         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78879         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78880         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78881         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
78882         needed.
78883
78884 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78885
78886         * lib/memcasecmp.c: Include <limits.h>.
78887         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
78888         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
78889         Don't assume isdigit succeeds only on '0' through '9'.
78890
78891 2006-07-05  Eric Blake  <ebb9@byu.net>
78892
78893         * modules/getaddrinfo (Depends-on): Add snprintf.
78894
78895 2006-07-05  Eric Blake  <ebb9@byu.net>
78896
78897         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
78898         to avoid 'header present but could not be compiled' on cygwin.
78899
78900 2006-07-05  Eric Blake  <ebb9@byu.net>
78901
78902         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
78903         missing from netdb.h.
78904         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
78905
78906 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78907
78908         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
78909         no longer needed.
78910         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
78911         * m4/getdate.m4 (gl_GETDATE): Likewise.
78912         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78913         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78914         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78915         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78916         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78917
78918 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78919
78920         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
78921         All uses of is_space replaced by isspace.
78922         * lib/exit.h: Don't talk about STDC_HEADERS.
78923         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
78924         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
78925         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
78926         replaced by isprint etc.
78927         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
78928         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78929         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
78930         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
78931         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
78932         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78933
78934 2006-07-05  Bruno Haible  <bruno@clisp.org>
78935
78936         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
78937         the function exists, before testing against AIX.
78938         Reported by Martin Lambers <marlam@marlam.de>.
78939
78940 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
78943         From Mark D. Baushke.
78944
78945 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78946
78947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
78948         to the absolute name, not just one, to bypass Sun C 5.8's
78949         "warning: #include of /usr/include/... may be non-portable".
78950
78951 2006-07-04  Eric Blake  <ebb9@byu.net>
78952
78953         * modules/dirname-tests: New test module.
78954         * tests/test-dirname.c: New file, replacing dirname.c
78955         TEST_DIRNAME section that was recently deleted.
78956
78957 2006-07-04  Bruno Haible  <bruno@clisp.org>
78958
78959         Assume ANSI C header files and <ctype.h> functions.
78960         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
78961         (mbsnwidth): Use isprint, iscntrl instead.
78962
78963 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         Merge from coreutils.
78966         * MODULES.html.sh: Add xstrtold.
78967         * modules/xstrtold: New file.
78968         * modules/cycle-check (Files): Add lib/same-inode.h.
78969         * modules/dirname (Files): Add m4/double-slash-root.m4.
78970         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
78971         * modules/mkdir-p (Files): Add lib/same-inode.h.
78972         * modules/same (Files): Add lib/same-inode.h.
78973
78974 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78975
78976         * m4/absolute-header.m4: Renamed from full-header-path.m4.
78977         This is to keep the terminology clean; POSIX talks about
78978         "absolute pathnames", not "full pathnames", but the GNU
78979         Coding Standards say to use "path" for something else;
78980         so use "absolute" to keep both sides happy.
78981         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
78982         Set gl_absolute_header, not gl_full_header_path.
78983         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
78984         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
78985         All uses changed.
78986
78987         Merge from coreutils.
78988
78989         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
78992         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
78993         want to require the building of c-strtod.o.
78994         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
78995         needs -lm directly.
78996         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
78997
78998         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78999
79000         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79001         --as-needed option if available.  Problem reported by Albert Chin in
79002         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79003         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79004         cc merely issues a bunch of annoying warnings for --as-needed
79005         (this problem was reported by Bob Proulx).  Also, try linking with
79006         -lm to detect a bug in binutils 2.16 (this problem was reported
79007         by Ralf Wildenhues).
79008
79009         2006-06-18  Jim Meyering  <jim@meyering.net>
79010
79011         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79012         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79013         macro.
79014         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79015         also check for glibc-2.4's abort-inducing bug.
79016
79017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79018         Low-probability clean-up should be to use rmdir to get rid of
79019         the just-created directory, not unlink.
79020
79021         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79022         configure fail, and request a bug report to inform us about it.
79023         Add a comment that, barring reports to the contrary, in 2007 we'll
79024         assume ftruncate is universally available.
79025
79026         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79027
79028         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79029
79030         2006-03-12  Jim Meyering  <jim@meyering.net>
79031
79032         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79033         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79034         * m4/same.m4 (gl_SAME): Likewise.
79035         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79036
79037         2006-03-11  Eric Blake  <ebb9@byu.net>
79038
79039         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79040         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79041         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79042         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79043
79044 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79045
79046         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79047         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79048         reported by Mark D. Baushke, one in
79049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79050
79051         Merge from coreutils.
79052
79053         * lib/.cppi-disable: Add stdint_.h.
79054         * lib/.cvsignore: Add stdint.h.
79055
79056         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79057
79058         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79059         both double and long double versions.
79060         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79061         * lib/xstrtold.c: New file.
79062         * lib/xstrtod.h (xstrtold): New decl.
79063
79064         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79065
79066         * lib/filemode.c (setst): Remove.
79067         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79068         (arguably) clearer, and the generated code is a bit smaller on my
79069         Debian GNU/Linux stable x86 host.
79070
79071         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79074         Assume that filemode.h includes sys/types.h and sys/stat.h.
79075         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79076         (ftypelet): Reorder to put common cases first, for efficiency.
79077         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79078         to do 'M'.
79079         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79080         of 10, for compatibility with FreeBSD.  All callers changed.
79081         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79082         types that can't be deduced solely from st_mode.  First arg is now a
79083         const pointer.
79084         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79085         (strmode): Renamed from mode_string.
79086         (filemodestring): New decl.
79087         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79088         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79089         needed.
79090         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79091
79092         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79093
79094         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79095         fsusage.h now does that.  Include fsusage.h first, to test interface.
79096         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79097         at most one method (the old code could have generated decls that
79098         didn't conform to C89, not that this was ever exercised).
79099         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79100
79101         2006-03-19  Jim Meyering  <jim@meyering.net>
79102
79103         Work even in a chroot where d_ino values for entries in "/"
79104         don't match the stat.st_ino values for the same names.
79105         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79106         number, iterate through all entries again, using lstat instead.
79107         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79108         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79109
79110         * lib/getcwd.c (__getcwd): Clarify a comment.
79111         Use memcpy in place of a call to strcpy.
79112
79113         2006-03-12  Jim Meyering  <jim@meyering.net>
79114
79115         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79116         matches that of the current directory (which we're about to chdir ".."
79117         out of), then save the dev-ino of the parent, instead.
79118
79119         * lib/same-inode.h (SAME_INODE): New file/macro.
79120         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79121         Include "same-inode.h", instead.
79122         * lib/same.c: Likewise.
79123         * lib/cycle-check.h: Include "same-inode.h".
79124         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79125         * lib/cycle-check.c (SAME_INODE): Remove definition.
79126         * lib/root-dev-ino.h: Include "same-inode.h".
79127
79128         2006-03-11  Eric Blake  <ebb9@byu.net>
79129
79130         * lib/same.c (same_name): s/base_name/last_component/
79131         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79132         * lib/filenamecat.c (file_name_concat): Likewise.
79133
79134         2006-03-11  Eric Blake  <ebb9@byu.net>,
79135                     Paul Eggert  <eggert@cs.ucla.edu>
79136
79137         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79138         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79139         drive prefix.
79140         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79141         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79142         (last_component): New method.
79143         * lib/dirname.c (dir_len): Determine when drive letters need a
79144         subsequent slash.  Preserve // when it is special.
79145         (dir_name): Don't append dot when drive letter is absolute.
79146         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79147         * lib/basename.c (base_name): New semantics - malloc the result.
79148         Preserve // when it is special.  Preserve relative files that look
79149         like drive letters.
79150         (base_len): Preserve // when it is special.
79151         (last_component): New method, similar to old base_name semantics.
79152         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79153         base_name.  Strip redundant slashes from ///.
79154
79155 2006-07-03  Jim Meyering  <jim@meyering.net>
79156
79157         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79158         macro is used before the first cycle_check call.
79159
79160 2006-07-03  Eric Blake  <ebb9@byu.net>
79161
79162         * modules/dirname (Depends-on): Add xstrndup.
79163
79164 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79165
79166         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79167         test cases, so that config.log is a bit easier to follow.
79168
79169 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79170
79171         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79172         both are 64 bits, since this seems to be the tradition, and this
79173         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79174         we ever run into a host that prefers long long to long in this
79175         case, we'll need another configure-time test.  Problem reported by
79176         Jim Meyering.
79177
79178 2006-07-02  Eric Blake  <ebb9@byu.net>
79179
79180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79181
79182 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79183
79184         * modules/inttypes (Depends-on): No longer depends on stdint.
79185         * modules/stdint (Description): Say more about assumptions.
79186         Say that the fast types might differ.  Say macros are used.
79187         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79188         (Makefile.am): Revise list of substituted symbols to match
79189         new stdint.m4.
79190         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79191         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79192         * tests/test-stdint.c (verify_same_types)
79193         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79194         the code conforms to C99/C89.
79195         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79196         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79197
79198 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79199
79200         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79201         but fix a bug, by requiring at least 64 bits.
79202         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79203         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79204         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79205         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79206
79207         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79208         changes.  Make 2.59 a prerequisite.  Check and substitute for
79209         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79210         inttypes.h.  Do not use special include files; just use the
79211         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79212         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79213         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79214         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79215         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79216         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79217         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79218         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79219         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79220         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79221         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79222         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79223         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79224         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79225         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79226         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79227         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79228         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79229         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79230         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79231         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79232         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79233         not check for things that C99 does not require, e.g., int8_t.  If
79234         a test isn't needed unless <stdint.h> isn't working, and is
79235         unlikely to be needed for any other reason, then don't do it
79236         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79237         size_t, since we assume C89 freestanding at least.  Do not check
79238         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79239         the right thing even if the types are not defined.  Instead use:
79240         (gl_STDINT_TYPE_PROPERTIES): New macro.
79241         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79242         testing whether <sys/types.h> clashes, as Autoconf does this for
79243         us now.  All uses removed.
79244         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79245         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79246         (gl_CHECK_TYPE_SAME):
79247         Remove; no longer needed.
79248         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79249         exists, since we'll return 0 anyway in that case.
79250         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79251
79252 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79255         possible collision with system files.
79256         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79257         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79258         WCHAR_MIN and WCHAR_MAX in this case.
79259         (<stddef.h>): Do not include; no longer needed.
79260         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79261         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79262         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79263         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79264         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79265         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79266         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79267         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79268         !defined(__c99))]: Include in this case too, since it's harmless
79269         now.
79270         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79271         dangerous to do so.
79272         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79273         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79274         (_STDINT_MIN, _STDINT_MAX): New macros.
79275         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79276         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79277         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79278         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79279         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79280         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79281         macros, not typedefs; this simplifies things quite a bit.
79282         Use long int for all types narrower than int64_t.
79283         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79284         Define in terms of long long int or int64_t or long int,
79285         not int64_t or int32_t.  This saves some compile-time testing.
79286         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79287         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79288         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79289         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79290         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79291         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79292         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79293         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79294         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79295         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79296         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79297         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79298         undef any previous version and define our own version, for
79299         simplicity and consistency with the new macros for types.
79300         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79301         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79302         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79303         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79304         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79305         @WINT_T_SUFFIX@ to keep things simple here.
79306         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79307         Simplify by assuming typical 8/16/32/64 host, since we're
79308         already doing that elsewhere anyway.
79309         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79310         and assume long long int is 64 bits if available.  This
79311         speeds up 'configure'.
79312
79313 2006-07-01  Eric Blake  <ebb9@byu.net>
79314
79315         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79316         Reported by Andreas Buening.
79317
79318 2006-07-01  Eric Blake  <ebb9@byu.net>
79319
79320         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79321
79322 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79323
79324         * lib/getaddrinfo.c: fixed typo
79325
79326 2006-06-29  Jim Meyering  <jim@meyering.net>
79327
79328         * modules/strftime (Maintainer): Add my name, since with the
79329         FPRINTFTIME changes strftime.c has forked from glibc.
79330
79331 2006-06-29  Eric Blake  <ebb9@byu.net>
79332
79333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79334
79335 2006-06-29  Eric Blake  <ebb9@byu.net>
79336
79337         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79338
79339 2006-06-29  Eric Blake  <ebb9@byu.net>
79340
79341         * lib/stat_.h: New file.
79342
79343 2006-06-29  Eric Blake  <ebb9@byu.net>
79344
79345         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79346         unused static function.
79347
79348 2006-06-29  Eric Blake  <ebb9@byu.net>
79349
79350         * doc/functions.texi (Function Portability): Document missing lstat
79351         on mingw.
79352
79353 2006-06-29  Eric Blake  <ebb9@byu.net>
79354
79355         * MODULES.html.sh: Add sys_stat.
79356         * modules/sys_stat: New module.
79357         * modules/mkstemp (Depends-on): Add sys_stat.
79358
79359 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79360
79361         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79362
79363 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79364
79365         * m4/c-bs-a.m4: Removed.
79366
79367 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79368
79369         * lib/strftime.c: Assume strftime() exists.
79370
79371 2006-06-29  Derek Price  <derek@ximbiot.com>
79372
79373         * modules/c-bs-a: Removed - \a is C89.
79374         * MODULES.html.sh: Remove c-bs-a.
79375
79376 2006-06-29  Bruno Haible  <bruno@clisp.org>
79377
79378         * modules/wcwidth (License): Change to LGPL.
79379
79380 2006-06-28  Simon Josefsson  <jas@extundo.com>
79381
79382         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79383         on _WIN32.
79384
79385         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79386         getnameinfo.
79387
79388 2006-06-28  Simon Josefsson  <jas@extundo.com>
79389
79390         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79391
79392 2006-06-28  Simon Josefsson  <jas@extundo.com>
79393
79394         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79395         functions there.  It will succeed on Windows XP, but on Windows
79396         2000 and (presumably) earlier, it will fail, and use the internal
79397         re-implementation.
79398         (use_win32_p): New function.
79399         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79400         Support AI_NUMERICSERV to disable getservbyname.
79401         (getnameinfo): New function, only supports
79402         NI_NUMERICHOST|NI_NUMERICSERV for now.
79403
79404         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79405         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79406         getnameinfo.
79407
79408 2006-06-28  Eric Blake  <ebb9@byu.net>
79409
79410         * modules/wcwidth: New file.
79411         * modules/mbchar (Depends-on): Add wcwidth.
79412         * modules/mbswidth (Depends-on): Add wcwidth.
79413         * MODULES.html.sh: Add wcwidth.
79414
79415 2006-06-28  Eric Blake  <ebb9@byu.net>
79416
79417         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79419
79420 2006-06-28  Eric Blake  <ebb9@byu.net>
79421
79422         * lib/xvasprintf.h: Fix comments.
79423
79424 2006-06-28  Eric Blake  <ebb9@byu.net>
79425
79426         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79427         * lib/mbswidth.c (wcwidth): Move from here...
79428         * lib/wcwidth.h: ...to this new file.
79429
79430 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79431
79432         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79433
79434         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79435         it's obsolete.
79436         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79437
79438 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79439
79440         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79441         Autoconf 2.60 says this stuff was obsolete.
79442
79443 2006-06-28  Bruno Haible  <bruno@clisp.org>
79444
79445         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79446
79447 2006-06-28  Bruno Haible  <bruno@clisp.org>
79448
79449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79450         gt_TYPE_WCHAR_T.
79451
79452 2006-06-28  Bruno Haible  <bruno@clisp.org>
79453
79454         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79455         declaration for wcwidth.
79456         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79457
79458 2006-06-28  Bruno Haible  <bruno@clisp.org>
79459
79460         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79461         (mkdir): Define using _mkdir.
79462
79463 2006-06-28  Bruno Haible  <bruno@clisp.org>
79464
79465         * lib/getaddrinfo.h: Fix POSIX URL.
79466         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79467         _WIN32.
79468         (use_win32_p): Make static.
79469         (getaddrinfo): Reject service name if it is empty or does not consist
79470         solely of decimal digits, or if its value is > 65535.
79471         (getnameinfo): Remove useless casts.
79472
79473 2006-06-27  Simon Josefsson  <jas@extundo.com>
79474
79475         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79476         Eggert and Martin Lambers.
79477
79478 2006-06-27  Simon Josefsson  <jas@extundo.com>
79479
79480         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79481         Eggert and Martin Lambers.
79482
79483 2006-06-27  Bruno Haible  <bruno@clisp.org>
79484
79485         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79486         result to 0, not to empty.
79487         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79488
79489 2006-06-27  Bruno Haible  <bruno@clisp.org>
79490
79491         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79492
79493 2006-06-26  Simon Josefsson  <jas@extundo.com>
79494
79495         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79496         present.
79497
79498 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79499
79500         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79501         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79502         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79503
79504 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79505
79506         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79507
79508 2006-06-26  Bruno Haible  <bruno@clisp.org>
79509
79510         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79511
79512 2006-06-26  Bruno Haible  <bruno@clisp.org>
79513
79514         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79515
79516 2006-06-26  Bruno Haible  <bruno@clisp.org>
79517
79518         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79519         SGI C compiler in pre-C99 mode.
79520         Suggested by Mark D. Baushke and Larry Jones.
79521
79522 2006-06-26  Bruno Haible  <bruno@clisp.org>
79523
79524         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79525         WCHAR_MAX.
79526         Reported by Mark D. Baushke and Larry Jones.
79527
79528 2006-06-26  Bruno Haible  <bruno@clisp.org>
79529
79530         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
79531         in pre-C99 mode.
79532         Suggested by Mark D. Baushke and Larry Jones.
79533
79534 2006-06-23  Simon Josefsson  <jas@extundo.com>
79535             Bruno Haible  <bruno@clisp.org>
79536
79537         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
79538         Emit mostlyclean-local rule.
79539         (func_emit_tests_Makefile_am): Likewise.
79540         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
79541
79542 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
79543
79544         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
79545
79546 2006-06-23  Bruno Haible  <bruno@clisp.org>
79547
79548         * tests/test-stdint.c: Update to match ISO C 99 Technical
79549         Corrigendum 1.
79550
79551 2006-06-23  Bruno Haible  <bruno@clisp.org>
79552
79553         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
79554
79555 2006-06-23  Bruno Haible  <bruno@clisp.org>
79556
79557         * lib/stdint_.h: Treat IRIX like OpenBSD.
79558
79559 2006-06-23  Bruno Haible  <bruno@clisp.org>
79560
79561         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
79562         ISO C 99 Technical Corrigendum 1.
79563
79564 2006-06-22  Simon Josefsson  <jas@extundo.com>
79565
79566         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
79567         MinGW.
79568
79569 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79570
79571         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
79572         needed.  Some compiler complained about some of them.  Problem reported
79573         by Larry Jones in
79574         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
79575
79576 2006-06-21  Simon Josefsson  <jas@extundo.com>
79577
79578         * tests/test-getaddrinfo.c: New file.
79579
79580         * modules/getaddrinfo-tests: New file.
79581
79582         * MODULES.html.sh: Add inet_pton.
79583
79584         * modules/inet_pton: New file.
79585
79586 2006-06-21  Simon Josefsson  <jas@extundo.com>
79587
79588         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
79589         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
79590         of using the (limited) gnulib implementation on Windows XP.
79591
79592         * m4/inet_pton.m4: New file.
79593
79594 2006-06-21  Simon Josefsson  <jas@extundo.com>
79595
79596         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
79597         variable.
79598
79599         * lib/socket_.h: Don't define WINVER.
79600
79601         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
79602         slightly modified to work in gnulib.
79603
79604 2006-06-21  Simon Josefsson  <jas@extundo.com>
79605
79606         * doc/gnulib.texi (Windows sockets): Add.
79607
79608 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
79609
79610         * lib/read-file.c (fread_file): Start with buffer allocation of
79611         0 bytes rather than 1 byte; this simplifies the code.
79612         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
79613         code to free buffer and save/restore errno.
79614         (internal_read_file): Remove unused local.
79615
79616 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
79617
79618         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
79619         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
79620         Problem reported by Denis Excoffier in
79621         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
79622
79623 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79624
79625         * modules/sys_socket, modules/socklen: Include sys/types since
79626         FreeBSD 4.x's sys/socket.h needs it.
79627
79628 2006-06-19  Simon Josefsson  <jas@extundo.com>
79629
79630         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
79631
79632 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79633
79634         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
79635
79636 2006-06-19  Bruno Haible  <bruno@clisp.org>
79637
79638         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
79639         and FULL_PATH_INTTYPES_H in angle brackets.
79640         Reported by Mark D. Baushke <mdb@gnu.org>.
79641
79642 2006-06-17  Eric Blake  <ebb9@byu.net>
79643
79644         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
79645         errno.
79646
79647 2006-06-17  Bruno Haible  <bruno@clisp.org>
79648
79649         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
79650         <sys/inttypes.h>.
79651
79652 2006-06-17  Bruno Haible  <bruno@clisp.org>
79653
79654         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
79655         whether errno is declared. Assume <errno.h> declares errno.
79656
79657 2006-06-17  Bruno Haible  <bruno@clisp.org>
79658
79659         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
79660
79661 2006-06-17  Bruno Haible  <bruno@clisp.org>
79662
79663         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
79664         problem on Solaris 2.5.1.
79665
79666 2006-06-16  Eric Blake  <ebb9@byu.net>
79667
79668         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
79669         * lib/unicodeio.c [!defined errno]: Likewise.
79670         * lib/strtol.c [!defined errno]: Likewise.
79671         * lib/strtod.c [!defined errno]: Likewise.
79672
79673 2006-06-15  Eric Blake  <ebb9@byu.net>
79674
79675         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
79676
79677 2006-06-15  Eric Blake  <ebb9@byu.net>
79678
79679         * config/srclist.txt (ssize_t.m4): Lose sync.
79680
79681 2006-06-15  Bruno Haible  <bruno@clisp.org>
79682
79683         * modules/stdint (Files): Include m4/full-header-path.m4,
79684         m4/size_max.m4, m4/wchar_t.m4.
79685         (Makefile.am): Many more substitutions.
79686         * modules/stdint-tests: New file.
79687         * tests/test-stdint.c: New file.
79688
79689 2006-06-15  Bruno Haible  <bruno@clisp.org>
79690
79691         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
79692         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
79693         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
79694         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
79695         gl_CHECK_TYPE_SAME): New macros.
79696
79697 2006-06-15  Bruno Haible  <bruno@clisp.org>
79698
79699         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
79700
79701 2006-06-15  Bruno Haible  <bruno@clisp.org>
79702
79703         * lib/stdint_.h: Rewritten to be fully auto-configured.
79704         Fixes bug on HP-UX/IA64.
79705
79706 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         * lib/getdate.y (__attribute__): Don't define if already defined.
79709         Problem reported by Larry Jones.
79710         * lib/utimens.c (__attribute__): Likewise.
79711
79712 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
79713
79714         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
79715         reported by Andreas Schwab.
79716
79717 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79718             Bruno Haible  <bruno@clisp.org>
79719
79720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
79721         check for the declaration of strnlen and a run test that exposes the
79722         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
79723         rpl_strndup.
79724
79725 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79726             Bruno Haible  <bruno@clisp.org>
79727
79728         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
79729
79730 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79731
79732         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
79733         compile test, for Tru64 4.0D.
79734
79735 2006-05-28  Karl Berry  <karl@gnu.org>
79736
79737         * config/srclist.txt (printf-args.c): lose sync.
79738
79739 2006-05-26  Martin Lambers  <marlam@marlam.de>
79740
79741         * lib/getpass.c: Updates the test for the native W32 API, and adds
79742         missing includes, thus fixing compilation warnings.
79743
79744 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79745
79746         * lib/exclude.c (exclude_fnmatch): New function.
79747         (excluded_file_name): Call exclude_fnmatch.
79748         * lib/exclude.h (excluded_file_name): New prototype
79749
79750 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
79751
79752         * lib/tempname.c (small_open, large_open): New macros.
79753         (__open, __open64) [!_LIBC]: Remove.
79754         (__gen_tempname): Use small_open and large_open instead of __open
79755         and __open64.  This fixes a portability bug on HP-UX 11.11i
79756         reported by Simon Wing-Tang in
79757         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
79758
79759 2006-05-24  Bruno Haible  <bruno@clisp.org>
79760
79761         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
79762         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
79763         Reported by Thorsten Maerz <torte@netztorte.de> via
79764         Aaron Stone <aaron@serendipity.cx>.
79765
79766 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79767
79768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
79769         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
79770         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
79771         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
79772         not really conditional on the cache.
79773         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
79774
79775 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79776
79777         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
79778         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
79779         (my_usleep): Don't mishandle maximum value.
79780
79781 2006-05-19  Jim Meyering  <jim@meyering.net>
79782
79783         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
79784
79785 2006-05-17  Bruno Haible  <bruno@clisp.org>
79786
79787         Cygwin portability.
79788         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
79789
79790 2006-05-17  Bruno Haible  <bruno@clisp.org>
79791
79792         * lib/stdint_.h: Fix recognition of Cygwin.
79793
79794 2006-05-15  Bruno Haible  <bruno@clisp.org>
79795
79796         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
79797         on libtool patch by Ralf Wildenhues.
79798
79799 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79800
79801         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
79802         test for C99 conformance; (bool) 0.5 is an integer constant
79803         expression, but (bool) -0.5 is not.  Problem reported by Fedor
79804         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
79805
79806 2006-05-11  Simon Josefsson  <jas@extundo.com>
79807
79808         * m4/xvasprintf.m4: Fix obvious typo.
79809
79810 2006-05-11  Jim Meyering  <jim@meyering.net>
79811
79812         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
79813         James Lemley.
79814
79815 2006-05-10  Simon Josefsson  <jas@extundo.com>
79816
79817         * lib/md4.c: Typo fix, update copyright years.
79818         (K1, K2): Don't use L because it turn computations into 64-bit on
79819         64-bit platforms.
79820
79821 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
79822
79823         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
79824         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
79825         unwanted sign propagation, e.g., on hosts with 64-bit int.
79826         There still are some problems with reeelly weird theoretical hosts
79827         (e.g., 33-bit int) but it's not worth worrying about now.
79828         * lib/sha1.c (rol): Likewise.
79829         (K1, K2, K3, K4): Remove unnecessary L suffix.
79830
79831 2006-05-10  Bruno Haible  <bruno@clisp.org>
79832
79833         * lib/des.c: Cast to avoid warnings.
79834
79835 2006-05-09  Bruno Haible  <bruno@clisp.org>
79836
79837         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
79838         (Depends-on): Depend also on xsize, stdarg.
79839         (configure.ac): Add gl_XVASPRINTF.
79840
79841 2006-05-09  Bruno Haible  <bruno@clisp.org>
79842
79843         * m4/xvasprintf.m4: New file.
79844
79845 2006-05-09  Bruno Haible  <bruno@clisp.org>
79846
79847         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
79848         (EOVERFLOW): Define fallback value.
79849         (xstrcat): New function.
79850         (xvasprintf): Recognize the special case of a string concatenation.
79851
79852 2006-05-08  Eric Blake  <ebb9@byu.net>
79853
79854         * gnulib-tool (func_version): Base copyright year on CVS date.
79855         (func_emit_copyright_notice): New function.
79856         (func_emit_lib_Makefile_am): Use it.
79857         (func_emit_tests_Makefile_am): Likewise.
79858         (func_import): Likewise.
79859
79860 2006-05-08  Bruno Haible  <bruno@clisp.org>
79861
79862         * modules/stdarg: New file.
79863         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
79864
79865 2006-05-08  Bruno Haible  <bruno@clisp.org>
79866
79867         * m4/stdarg.m4: New file, from GNU gettext.
79868
79869 2006-05-08  Bruno Haible  <bruno@clisp.org>
79870
79871         * config/srclist.txt (build-aux/config.rpath): different from latest
79872         release.
79873
79874 2006-05-08  Bruno Haible  <bruno@clisp.org>
79875
79876         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
79877
79878 2006-05-05  Jim Meyering  <jim@meyering.net>
79879
79880         * m4/warning.m4: New file, derived from bison's file by the same name.
79881
79882 2006-05-03  Bruno Haible  <bruno@clisp.org>
79883
79884         * lib/stdint_.h: Shorter URL.
79885         * lib/inttypes.h: Likewise.
79886
79887 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79888
79889         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
79890
79891 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79892
79893         * lib/verify.h: Document the internals better.  Most of this change
79894         was written by Bruno Haible.
79895
79896 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79897
79898         * doc/verify.texi: New file, partly based on a proposal by
79899         Bruno Haible.
79900
79901 2006-05-02  Bruno Haible  <bruno@clisp.org>
79902
79903         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
79904         test from here...
79905         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
79906
79907 2006-04-29  Bruno Haible  <bruno@clisp.org>
79908
79909         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
79910         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
79911
79912 2006-04-29  Bruno Haible  <bruno@clisp.org>
79913
79914         * gnulib-tool: Make --update option actually work.
79915
79916 2006-04-29  Bruno Haible  <bruno@clisp.org>
79917
79918         * doc/gcd.texi: New file.
79919         * doc/gnulib.texi: Include it.
79920
79921 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
79922
79923         * lib/getdate.y (get_date): When adding relative date, start with the
79924         initial time, not with the result of the first mktime call.
79925
79926 2006-04-25  Bruno Haible  <bruno@clisp.org>
79927
79928         * gnulib-tool (func_import): Output the include directives in three
79929         blocks, sorted separately.
79930         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79931
79932 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79933
79934         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
79935         to define main with arguments, for C++.  Reported by Eric Blake.
79936         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
79937         Prefer 'int main ()' to 'int main (void)', for C++.
79938         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
79939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
79940         for 'main', for C99 and C++.
79941
79942 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79943
79944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
79945         Don't assume that exit status -1 is valid.
79946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79947         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79948         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79949         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
79950         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
79951         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
79952         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
79953         functions can be used without declaring them, or that you can
79954         exit with status -1.
79955         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79956
79957 2006-04-24  Karl Berry  <karl@gnu.org>
79958
79959         * config/srclist.txt (longdouble.m4): sync lost.
79960
79961 2006-04-24  Eric Blake  <ebb9@byu.net>
79962
79963         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
79964
79965 2006-04-24  Bruno Haible  <bruno@clisp.org>
79966
79967         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
79968         poll() implementation in AIX.
79969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79970
79971 2006-04-24  Bruno Haible  <bruno@clisp.org>
79972
79973         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
79974         assigned exactly once.
79975
79976 2006-04-23  Claudio Fontana  <claudio@gnu.org>
79977             Bruno Haible  <bruno@clisp.org>
79978
79979         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
79980         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
79981         for AM_CPPFLAGS.
79982
79983 2006-04-23  Bruno Haible  <bruno@clisp.org>
79984
79985         * modules/copy-file: Depend on unistd.
79986         * modules/execute: Likewise.
79987         * modules/fatal-signal: Likewise.
79988         * modules/findprog: Likewise.
79989         * modules/mkdtemp : Likewise.
79990         * modules/pipe: Likewise.
79991         * modules/wait-process: Likewise.
79992
79993 2006-04-23  Bruno Haible  <bruno@clisp.org>
79994
79995         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
79996         condition was already detected.
79997         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79998
79999 2006-04-23  Bruno Haible  <bruno@clisp.org>
80000
80001         * lib/copy-file.c: Include <unistd.h> unconditionally.
80002         * lib/execute.c: Likewise.
80003         * lib/fatal-signal.c: Likewise.
80004         * lib/findprog.c: Likewise.
80005         * lib/mkdtemp.c: Likewise.
80006         * lib/pipe.h: Likewise.
80007         * lib/pipe.c: Likewise.
80008         * lib/wait-process.h: Likewise.
80009
80010 2006-04-23  Bruno Haible  <bruno@clisp.org>
80011
80012         * gnulib-tool (func_usage): Fix --import description. Document
80013         --update.
80014         (func_import): Create temporary file in a temporary directory, if
80015         --dry-run is specified. Silence errors from 'grep' when there are no
80016         m4 files in $m4dir.
80017         (func_create_testdir): Silence errors from 'grep' when there are no
80018         m4 files in $m4dir.
80019         Reported by Karl Berry <karl@freefriends.org>.
80020
80021 2006-04-20  Bruno Haible  <bruno@clisp.org>
80022
80023         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80024         one argument, so that the code will be portable to Autoconf 2.60.
80025         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80026         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80027         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80028
80029 2006-04-19  Derek Price  <derek@ximbiot.com>
80030             Eric Blake  <ebb9@byu.net>
80031
80032         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80033         rather than "/full/path.h".  Update comment to match.  Shorten &
80034         generalize m4_translit call via AS_TR_CPP.
80035
80036 2006-04-19  Derek Price  <derek@ximbiot.com>
80037             Eric Blake  <ebb9@byu.net>
80038
80039         * lib/inttypes.h: Correct grammar in comment.
80040
80041 2006-04-18  Derek Price  <derek@ximbiot.com>
80042             Paul Eggert  <eggert@cs.ucla.edu>
80043
80044         * modules/inttypes: New file.
80045         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80046
80047 2006-04-18  Derek Price  <derek@ximbiot.com>
80048             Paul Eggert  <eggert@cs.ucla.edu>
80049
80050         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80051         New files.
80052
80053 2006-04-18  Derek Price  <derek@ximbiot.com>
80054             Paul Eggert  <eggert@cs.ucla.edu>
80055
80056         * lib/inttypes.h: New file.
80057         * lib/strtoimax.c: Assume <inttypes.h>.
80058
80059 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80060
80061         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80062         isn't mounted.  Problem reported by Kir Kolyshkin.
80063
80064 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80065
80066         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80067         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80068         Derek R. Price.
80069         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80070         implementation.
80071
80072 2006-04-12  Eric Blake  <ebb9@byu.net>
80073
80074         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80075         is now done automatically by the corresponding Autoconf macro.
80076
80077 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80078
80079         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80080         time_r.h.
80081
80082 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80083
80084         Merge regex changes from libc, removing some of our
80085         POSIX-conformance changes that were rejected and redoing them in a
80086         less-intrusive way.
80087
80088         * lib/regcomp.c (re_compile_internal, init_dfa):
80089         Length arg is now size_t, not Idx.  All uses changed.
80090         (peek_token): Forward decl now says internal_function.
80091         (__re_error_msgid, __re_error_msgid_idx):
80092         Now static rather than extern with attribute_hidden.
80093         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80094         For some reason libc prefers K&R style defns for external functions.
80095         (regerror) [!defined _LIBC]: Likewise.
80096         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80097         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80098         (build_range_exp, build_collating_symbol):
80099         Use K&R-style defn.
80100         (re_compile_fastmap): Use '\0' to memset, not 0.
80101         (utf8_sb_map): Make the calculations more obvious.
80102         (init_dfa, parse_bracket_exp, build_charclass_op):
80103         Call calloc and cast result, as glibc does.
80104         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80105         (build_range_exp, build_collating_symbol):
80106         Now internal functions.
80107
80108         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80109
80110         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80111         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80112         Don't depend on VMS; depend on __VMS instead, for POSIX
80113         namespace cleanness.
80114         (regoff_t): Define to ssize_t, not long int.
80115
80116         Remove the REG_ macros named below.  Instead, make the old names
80117         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80118         __USE_GNU_REGEX.
80119         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80120         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80121         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80122         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80123         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80124         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80125         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80126         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80127         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80128         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80129         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80130         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80131         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80132         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80133         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80134         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80135         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80136         (REG_NREGS):
80137         Remove.  All uses replaced by the old RE_* names.
80138         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80139         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80140         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80141         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80142         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80143         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80144         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80145         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80146         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80147         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80148         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80149         Don't bother having these macros be independent of each others'
80150         values, since they no longer exist in the POSIX name space.
80151
80152         Rename the following member names back to their old names,
80153         unless !__USE_GNU_REGEX.  All uses changed back.
80154         (buffer): Renamed from re_buffer.
80155         (allocated): Renamed from re_allocated.
80156         (used): Renamed from re_used.
80157         (syntax): Renamed from re_syntax.
80158         (fastmap): Renamed from re_fastmap.
80159         (translate): Renamed from re_translate.
80160         (can_be_null): Renamed from re_can_be_null.
80161         (regs_allocated): Renamed from re_regs_allocated.
80162         (fastmap_accurate): Renamed from re_fastmap_accurate.
80163         (no_sub): Renamed from re_no_sub.
80164         (not_bol): Renamed from re_not_bol.
80165         (not_eol): Renamed from re_not_eol.
80166         (newline_anchor): Renamed from re_newline_anchor.
80167         (num_regs): Renamed from rm_num_regs.
80168         (start): Renamed from rm_start.
80169         (end): Renamed from rm_end.
80170
80171         (free_state): Move up a bit.
80172
80173         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80174         #define to be empty.
80175         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80176         when that is what is intended.
80177         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80178         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80179         (MAX): New macro.
80180         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80181         All uses changed back to re_malloc, etc.  It's now the caller's
80182         responsibility to check for overflow; all callers changed.
80183         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80184         (re_x2nrealloc): Remove.
80185         (free_state): Remove decl.
80186
80187         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80188         (re_set_registers, re_exec):
80189         Use K&R-style defn.
80190
80191         2006-01-31  Roland McGrath  <roland@redhat.com>
80192
80193         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80194         Reported by Mike Frysinger <vapier@gentoo.org>.
80195
80196         2006-01-15  Andreas Jaeger  <aj@suse.de>
80197
80198         [BZ #1950]
80199         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80200         build_wcs_upper_buffer change.
80201         (build_wcs_upper_buffer): Change return type.
80202
80203         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80204
80205         * lib/regex_internal.h: Include <stdint.h> if available.
80206
80207         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80208
80209         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80210
80211         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80212
80213         * lib/regcomp.c: Adjust for changed secondary hash function.
80214
80215         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80216
80217         * lib/regex.h: Pretty printing.
80218         Clean up namespace a bit.
80219
80220         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80221
80222         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80223         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80224
80225         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80226                     Ulrich Drepper  <drepper@redhat.com>
80227
80228         [BZ #1302]
80229         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80230         changed.
80231         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80232
80233         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80234
80235         [BZ #281]
80236         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80237         * lib/regcomp.c: Remove unnecessary uses of
80238         unsigned RE_TRANSLATE_TYPE.
80239         * lib/regex_internal.h: Likewise.
80240         * lib/regex_internal.c: Likewise.
80241         * lib/regexec.c: Likewise.
80242         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80243
80244         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80245
80246         * lib/regexec.c (find_recover_state): Remove unnecessary
80247         initialization.
80248         (transit_state_bkref): Make DFA a const pointer.
80249         (get_subexp): Likewise.
80250         (check_arrival): Likewise.
80251         (update_cur_sifted_state): Likewise.
80252         (re_search_internal): Likewise.
80253         (prune_impossible_nodes): Likewise.
80254         (acquire_init_state_context): Likewise.
80255         (proceed_next_node): Likewise.
80256         (set_regs): Likewise.
80257         (free_fail_stack_return): Likewise.
80258         (check_arrival_expand_ecl): Mark DFA parameter as const.
80259         (check_arrival_expand_ecl_sub): Likewise.
80260         (check_subexp_limits): Likewise.
80261         (sub_epsilon_src_nodes):  Likewise.
80262         (add_epsilon_src_nodes):  Likewise.
80263         (merge_state_array): Likewise.
80264         (update_regs): Likewise.
80265         (build_trtable): Likewise.
80266         (sift_states_backward): Mark MCTX parameter as const.
80267         (build_sifted_states): Likewise.
80268         (update_cur_sifted_state): Likewise.
80269         (sift_states_mkref): Likewise.
80270         (check_arrival_expand_ecl): Mark eclosure as const.
80271         (check_dst_limits_calc_pos_1): Likewise.
80272         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80273         pointer.
80274
80275         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80276
80277         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80278         (transit_state_sb): Likewise.
80279         (transit_state_mb): Likewise.
80280         (sift_states_iter_mb): Likewise.
80281         (check_arrival_add_next_nodes): Likewise.
80282         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80283         [_LIBC] (re_search_2_stub): Use mempcpy.
80284
80285         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80286         mbrtowc for very simple UTF-8 case.
80287
80288         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80289         a pointer-to-const.
80290         (re_acquire_state_context): Likewise.
80291         * lib/regex_internal.h: Adjust prototypes.
80292
80293         * lib/regex.c: Prevent using C++ compilers.
80294
80295         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80296         (re_acquire_state_context): Likewise.
80297
80298 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80299
80300         * modules/regex (Depends-on): Add ssize_t.
80301
80302 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80303
80304         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80305         translation table.
80306
80307 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80308
80309         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80310
80311 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80312             Bruno Haible  <bruno@clisp.org>
80313
80314         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80315         <sys/types.h> and <inttypes.h>.
80316
80317 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80318
80319         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80320         `__error_t_defined', so argp.h will not typedef the former.
80321
80322 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80323
80324         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80325         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80326         glibc names.  Even if glibc is changed to conform to POSIX, the
80327         traditional names will be available anyway, since regex depends on
80328         the extensions module.  Also, fix a longstanding typo in the
80329         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80330         reported by Emanuele Giaquinta.  Also, change sense of cached
80331         variable, so that the message makes sense.
80332
80333 2006-03-24  Simon Josefsson  <jas@extundo.com>
80334
80335         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80336         including some doc fixes.
80337         (base64_encode_alloc): Fix +1 bug on allocation failures.
80338
80339 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80340
80341         * lib/base64.c (base64_encode): Do not read past end of array with
80342         unsanitized input on systems with CHAR_BIT > 8.
80343
80344 2006-03-24  Eric Blake  <ebb9@byu.net>
80345
80346         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80347
80348 2006-03-22  Karl Berry  <karl@gnu.org>
80349
80350         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80351         * config/srclistvars.sh (COREUTILS): new var.
80352
80353 2006-03-17  Jim Meyering  <jim@meyering.net>
80354
80355         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80356         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80357
80358 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80359
80360         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80361         no longer needs it.  Instead, check that regoff_t is as least
80362         as wide as ptrdiff_t.
80363
80364         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80365         so that our regex.h stays compatible with the installed regex.
80366         This is helpful for installers who configure --without-included-regex.
80367         Problem reported by Emanuele Giaquinta.
80368
80369 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80370
80371         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80372         Typedef to long int, not to off_, as POSIX will likely change
80373         in that direction.
80374
80375 2006-03-15  Eric Blake  <ebb9@byu.net>
80376
80377         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80378
80379 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80380
80381         * lib/argp-help.c (validate_uparams): Fix typo
80382         * lib/argp-parse.c (argp_default_options): Consistently begin help
80383         messages with a lowercase letter.
80384
80385 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80386
80387         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80388         overrun buffers and shouldn't be used (much as gets shouldn't be
80389         used).
80390         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80391
80392 2006-03-08  Simon Josefsson  <jas@extundo.com>
80393
80394         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80395         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80396
80397 2006-03-08  Simon Josefsson  <jas@extundo.com>
80398
80399         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80400         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80401
80402 2006-03-08  Simon Josefsson  <jas@extundo.com>
80403
80404         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80405         signal that configure disabled the device.
80406
80407 2006-03-08  Simon Josefsson  <jas@extundo.com>
80408
80409         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80410         languages.
80411
80412 2006-03-07  Simon Josefsson  <jas@extundo.com>
80413
80414         * modules/getopt (Depends-on): Add unistd.
80415
80416         * modules/unistd: New file.
80417
80418 2006-03-07  Simon Josefsson  <jas@extundo.com>
80419
80420         * modules/gc-random: New file.
80421
80422 2006-03-07  Simon Josefsson  <jas@extundo.com>
80423
80424         * m4/unistd_h.m4: New file.
80425
80426 2006-03-07  Simon Josefsson  <jas@extundo.com>
80427
80428         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80429         test to be side-effect free by storing the result in the cache
80430         variable gl_cv_lib_readline, and moving the assignment of
80431         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80432         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80433
80434 2006-03-07  Simon Josefsson  <jas@extundo.com>
80435
80436         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80437         error on missing devices (the functions will return an error).
80438
80439         * m4/gc.m4: Move random stuff to gc-random.m4
80440
80441 2006-03-07  Simon Josefsson  <jas@extundo.com>
80442
80443         * lib/unistd_.h: New file.
80444
80445 2006-03-07  Simon Josefsson  <jas@extundo.com>
80446
80447         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80448
80449 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80452         Problem reported by Juan Manuel Guerrero.
80453
80454 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80455
80456         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80457         the unistd module.
80458         * lib/getlogin_r.c: Likewise.
80459         * lib/getlogin_r.h: Likewise.
80460         * lib/glob.c: Likewise.
80461         * lib/pagealign_alloc.c: Likewise.
80462         * lib/unistd_.h: Remove; no longer needed.
80463
80464 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80465
80466         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80467         Add unistd.
80468         * modules/c-stack (Depends-on): Add unistd.
80469         * modules/getlogin_r: Likewise.
80470         * modules/glob: Likewise.
80471         * modules/pagealign_alloc: Likewise.
80472         * modules/unistd (Files): Remove lib/unistd_.h.
80473         (EXTRA_DIST): Remove.
80474         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80475         need unistd_.h.
80476         (MOSTLYCLEANFILES): Remove unistd.h-t.
80477
80478 2006-03-03  Simon Josefsson  <jas@extundo.com>
80479
80480         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80481
80482 2006-03-03  Simon Josefsson  <jas@extundo.com>
80483
80484         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80485         libidn and bison.
80486
80487 2006-03-03  Simon Josefsson  <jas@extundo.com>
80488
80489         * build-aux/maint.mk: Add indent target.
80490
80491 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80492
80493         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80494         our replacement poll.h in any case, to avoid a differing
80495         declaration from a system header.  Seen on AIX.
80496
80497 2006-03-01  Simon Josefsson  <jas@extundo.com>
80498
80499         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80500         <kasal@ucw.cz>.
80501
80502 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80503
80504         * modules/gettime (Depends-on): Add extensions module.
80505         * modules/nanosleep (Depends-on): Likewise.
80506         * modules/settime (Depends-on): Likewise.
80507
80508 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80509
80510         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80511         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80512         pedantically.
80513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80514         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80515
80516         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80517         not "==".  Reported by Ralf Wildenhues.
80518
80519 2006-03-01  Karl Berry  <karl@gnu.org>
80520
80521         * doc/Copyright/request-*: new files, synced from gnuorg.
80522
80523 2006-03-01  Karl Berry  <karl@gnu.org>
80524
80525         * config/srclist.txt (Copyright/*): new entries.
80526
80527 2006-02-28  Simon Josefsson  <jas@extundo.com>
80528
80529         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
80530
80531 2006-02-27  Simon Josefsson  <jas@extundo.com>
80532
80533         * lib/base64.h: Indent #define's.  From Jim Meyering
80534         <jim@meyering.net>.
80535
80536 2006-02-27  Jim Meyering  <jim@meyering.net>
80537
80538         Revert the change of 2006-02-24, so these files can continue
80539         to be sync'd from gettext.
80540         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
80541         of `config.h'.
80542
80543 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80544
80545         * modules/intprops: New file.
80546         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
80547         Add intprops.
80548         * modules/getloadavg (Files): Remove lib/intprops.h.
80549         (Depends-on): Add intprops.
80550         * modules/human: Likewise.
80551         * modules/inttostr: Likewise.
80552         * modules/openat: Likewise.
80553         * modules/sig2str: Likewise.
80554         * modules/userspec: Likewise.
80555         * modules/utimecmp: Likewise.
80556         * modules/xnanosleep: Likewise.
80557         * modules/xstrtol: Likewise.
80558
80559 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
80560
80561         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
80562         * modules/lock-tests (TESTS): Use $(EXEEXT).
80563         * modules/tls-tests: Likewise.
80564         * modules/argp-tests: Likewise.
80565         (check_PROGRAMS): New var, replacing...
80566         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
80567
80568 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80569
80570         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
80571         `config.h'.
80572
80573 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
80574
80575         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
80576
80577 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80578
80579         Sync from coreutils.
80580         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
80581         gl_CHDIR_SAFER.
80582
80583 2006-02-22  Jim Meyering  <jim@meyering.net>
80584
80585         Sync from coreutils.
80586         * m4/chdir-safer.m4: New file.
80587
80588 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
80589
80590         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
80591         AT_FDCWD exceeds INT_MAX.
80592         * lib/openat.h (AT_FDCWD): Likewise.
80593
80594 2006-02-17  Eric Blake  <address@hidden>
80595
80596         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
80597
80598 2006-02-16  Simon Josefsson  <jas@extundo.com>
80599
80600         * modules/getaddrinfo (Depends-on): Add sys_socket.
80601
80602 2006-02-15  Simon Josefsson  <jas@extundo.com>
80603
80604         * build-aux/maint.mk: Add dsyntax-check rule.
80605
80606 2006-02-15  Eric Blake  <ebb9@byu.net>
80607
80608         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
80609         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
80610         'present but cannot compile' warnings on cygwin.
80611         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
80612         use ws2tcpip.h if sys/socket.h works.
80613         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
80614         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
80615
80616 2006-02-14  Simon Josefsson  <jas@extundo.com>
80617
80618         * modules/maintainer-makefile (Files): Rename.
80619
80620         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
80621         and (the local) Makefile.cfg to maint-cfg.mk.
80622
80623         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
80624         to the latter.
80625
80626         * modules/maintainer-makefile: New module.
80627
80628         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
80629         severaly stripped to make it possible to build it up from scratch
80630         with reliable tests.
80631
80632         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
80633         fixes to permit overriding the default actions when configure and
80634         makefile are not available.
80635
80636 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
80637
80638         Sync from coreutils.
80639         * modules/lstat (Depends-on): Don't depend on xalloc.
80640         (License): Change from GPL to LGPL, since this is now simply a
80641         replacement for a libc function.
80642
80643 2006-02-14  Jim Meyering  <jim@meyering.net>
80644
80645         Sync from coreutils.
80646
80647         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
80648         failure on deficient systems, and simplify gnulib lgpl dependencies.
80649         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
80650         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
80651
80652         * lib/xalloc-die.c: Remove unused definition of N_.
80653
80654 2006-02-14  Jim Meyering  <jim@meyering.net>
80655
80656         Sync from coreutils.
80657         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
80658         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
80659         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
80660         double-quote uses of that variable, to accommodate the rare case in
80661         which getmntent is available in none of the libraries checked.  This
80662         happens at least on FreeBSD 5.0.
80663
80664 2006-02-13  Simon Josefsson  <jas@extundo.com>
80665
80666         * gnulib-tool (Usage): Fix --import, from
80667         karl@freefriends.org (Karl Berry).
80668
80669 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80670
80671         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
80672
80673 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
80674
80675         * lib/argp-namefrob.h: Restore changes accidentally lost during the
80676         "autoupdate" on 2005-12-12.
80677
80678 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80679
80680         * modules/closeout (Depends-on): Remove atexit.
80681
80682 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80683
80684         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
80685         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
80686
80687 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
80688
80689         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
80690         __EXTENSIONS__ if this causes compilation to fail.  Problem
80691         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
80692         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
80693
80694 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
80697         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
80698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
80699         All uses changed.
80700
80701 2006-01-26  Simon Josefsson  <jas@extundo.com>
80702
80703         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
80704         prototype is visible on mingw32.
80705
80706         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
80707         for mingw32.
80708
80709         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
80710         mingw32).
80711
80712 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
80713
80714         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
80715         attempt to open for write; this always fails, at least on POSIX
80716         hosts.  This reinstates the 2006-01-09 change, which was
80717         inadvertently removed.
80718
80719 2006-01-26  Bruno Haible  <bruno@clisp.org>
80720
80721         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
80722         Reported by Paul Eggert.
80723
80724 2006-01-26  Bruno Haible  <bruno@clisp.org>
80725             Paul Eggert  <eggert@cs.ucla.edu>
80726
80727         * lib/stdbool_.h (_Bool)
80728         [(! (defined __cplusplus || defined __BEOS__)
80729           && !defined __GNUC__
80730           && !(defined __HP_cc || defined __xlc__
80731                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
80732                || defined __sgi))]:
80733         #define to signed char in these cases too; this simplifies
80734         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
80735         etc., separately) and makes it more conservative.
80736
80737 2006-01-25  Simon Josefsson  <jas@extundo.com>
80738
80739         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
80740         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
80741         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
80742
80743 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80744
80745         * lib/argp-namefrob.h: Bugfix. Remove stray #
80746
80747 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80748
80749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
80750         so that we test the test.
80751         Check for yet another HP-UX cc bug involving *bool |= bool.
80752
80753 2006-01-25  Karl Berry  <karl@gnu.org>
80754
80755         * config/srclist.txt (vasnprintf.c): sync lost.
80756
80757 2006-01-25  Jim Meyering  <jim@meyering.net>
80758
80759         Sync from the stable (b5) branch of coreutils:
80760
80761         * lib/fts.c (fts_children): Don't let close() clobber errno from
80762         failed fchdir().
80763
80764         * lib/fts.c (fts_stat): When following a symlink-to-directory,
80765         don't necessarily interpret stat-fails+lstat-succeeds as indicating
80766         a dangling symlink.  That can also happen at least for ELOOP.
80767         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
80768         FYI, this bug predates the inclusion of fts.c in coreutils.
80769
80770         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
80771         in their own block, so pre-c99 compilers don't object.
80772
80773         Avoid the double-free (first in fts_read, second in fts_close) that
80774         would occur when an `active' directory is made inaccessible (e.g.,
80775         via chmod a-x) during a traversal.
80776         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80777         before returning.  Reproduce this failure by
80778         mkdir -p a/b; cd a; chmod a-x . b
80779         Reported by Stavros Passas.
80780
80781 2006-01-25  Jim Meyering  <jim@meyering.net>
80782
80783         * lib/fileblocks.c: Remove more useless parentheses.
80784         * lib/readutmp.h: Likewise.
80785
80786 2006-01-25  Bruno Haible  <bruno@clisp.org>
80787
80788         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
80789         warnings.
80790         Reported by Paul Eggert.
80791
80792 2006-01-25  Bruno Haible  <bruno@clisp.org>
80793
80794         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
80795         rid of a trap command. For Solaris sh.
80796         Reported by Mark D. Baushke <mdb@gnu.org>.
80797
80798 2006-01-24  Simon Josefsson  <jas@extundo.com>
80799
80800         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
80801         Bruno.
80802
80803 2006-01-24  Karl Berry  <karl@gnu.org>
80804
80805         * config/srclist.txt (argp-namefrob.h): sync lost.
80806
80807 2006-01-24  Jim Meyering  <jim@meyering.net>
80808
80809         * modules/openat (Files): Add lib/intprops.h.
80810         From Mark D. Baushke.
80811
80812 2006-01-24  Jim Meyering  <jim@meyering.net>
80813
80814         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
80815         Reported by Mark D. Baushke.
80816
80817 2006-01-24  Jim Meyering  <jim@meyering.net>
80818
80819         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
80820
80821 2006-01-24  Bruno Haible  <bruno@clisp.org>
80822
80823         * modules/strnlen (Maintainer): Change from glibc to all.
80824
80825 2006-01-24  Bruno Haible  <bruno@clisp.org>
80826
80827         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
80828         Patch by Paul Eggert.
80829
80830 2006-01-24  Bruno Haible  <bruno@clisp.org>
80831
80832         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
80833         already has it.
80834         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
80835         2005-11-26.
80836
80837         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
80838         'signed char' to avoid problems with the built-in _Bool type.
80839         Reported by Paul Eggert on 2005-11-26.
80840
80841 2006-01-24  Bruno Haible  <bruno@clisp.org>
80842
80843         * gnulib-tool (func_import): Avoid constructing complicated sed
80844         expressions inside backquote.
80845         Report and solution by Mark D. Baushke <mdb@gnu.org>.
80846
80847 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
80848
80849         These changes imported from libc.
80850         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
80851         test and two separate function calls.
80852         * lib/strndup.c (__strndup): Add libc_hidden_def.
80853
80854 2006-01-23  Simon Josefsson  <jas@extundo.com>
80855
80856         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
80857         Remove the test_*_SOURCES variable: automake infers it by default.
80858         * modules/tls-tests: Likewise.
80859
80860 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80861
80862         Work around porting bugs reported by Dieter in
80863         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
80864         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
80865         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
80866         Include "getopt.h" first, to check interface.
80867         (getenv): Declare only if defined HAVE_DECL_GETENV &&
80868         !HAVE_DECL_GETENV.
80869         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
80870         (__strndup): Revert to K&R-style function dfns, the glibc style.
80871         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
80872         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
80873         Include strnlen.h first, to get prototype properly.
80874         (strnlen): Renamed from __strnlen.
80875         Remove weak alias.
80876
80877 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80878
80879         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
80880
80881 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80882
80883         * config/srclist.txt: Adjust to reflect glibc reorganization.
80884         This affects only comments.
80885
80886 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80887
80888          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
80889          Reported by Bruce Korb <bkorb@gnu.org>.
80890
80891 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
80892
80893         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
80894         to pacify gcc -Wswitch-default.
80895
80896 2006-01-22  Bruno Haible  <bruno@clisp.org>
80897
80898         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
80899         temporary buffer for sprintf, take into account the precision also
80900         for 'd', 'i', 'u', 'o', 'x', 'X'.
80901
80902 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80903
80904         * modules/argp-tests: New module
80905         * tests/test-argp.c: New file
80906         * tests/test-argp-2.sh: New file
80907
80908 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80909
80910         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
80911         (__argp_base_name): Removed
80912         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
80913         typo.
80914         (__argp_base_name): Provide macro definition or extern declaration
80915         depending on the configuration
80916
80917 2006-01-20  Simon Josefsson  <jas@extundo.com>
80918
80919         * modules/inet_ntop (Depends-on): Depend on sys_socket.
80920
80921 2006-01-20  Simon Josefsson  <jas@extundo.com>
80922
80923         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
80924
80925 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80926
80927         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
80928         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
80929         Suggested by Bruno Haible.
80930
80931 2006-01-20  Karl Berry  <karl@gnu.org>
80932
80933         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
80934         until changes propagate, I guess.
80935
80936 2006-01-19  Simon Josefsson  <jas@extundo.com>
80937
80938         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
80939
80940 2006-01-19  Simon Josefsson  <jas@extundo.com>
80941
80942         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
80943
80944 2006-01-19  Simon Josefsson  <jas@extundo.com>
80945
80946         * gnulib-tool: Set check_PROGRAMS.
80947
80948         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80949         modules/des-tests, modules/gc-arcfour-tests,
80950         modules/gc-arctwo-tests, modules/gc-des-tests,
80951         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80952         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80953         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80954         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80955         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80956         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
80957         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
80958         test_*_SOURCES.
80959
80960 2006-01-18  Simon Josefsson  <jas@extundo.com>
80961
80962         * modules/socklen (Depends-on): Depend on sys_socket.
80963
80964 2006-01-18  Simon Josefsson  <jas@extundo.com>
80965
80966         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80967         modules/des-tests, modules/gc-arcfour-tests,
80968         modules/gc-arctwo-tests, modules/gc-des-tests,
80969         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80970         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80971         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80972         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80973         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80974         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
80975         $(EXEEXT) to automake TESTS variable, for mingw32.
80976
80977 2006-01-17  Simon Josefsson  <jas@extundo.com>
80978
80979         * modules/socklen (Include): Need sys/socket.h.
80980
80981 2006-01-17  Bruno Haible  <bruno@clisp.org>
80982
80983         * modules/ssize_t (Include): Add <sys/types.h>.
80984
80985 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
80986
80987         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
80988         it's not portable and it doesn't work with cross-compiles.
80989         Problem reported by Bruno Haible.  Fix missing-$ typo in
80990         'test "gl_cv_ignore_unused_libraries" ...' that prevented
80991         -zignore from being used with Sun's C compiler.
80992
80993 2006-01-12  Simon Josefsson  <jas@extundo.com>
80994
80995         * lib/base64.c: Fix warning, reported by Bruno Haible
80996         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
80997
80998 2006-01-12  Bruno Haible  <bruno@clisp.org>
80999
81000         * modules/ldd: New file.
81001         * build-aux/ldd.sh.in: New file.
81002         * MODULES.html.sh (Support for building libraries and executables): Add
81003         ldd.
81004
81005 2006-01-12  Bruno Haible  <bruno@clisp.org>
81006
81007         * m4/ldd.m4: New file.
81008
81009 2006-01-12  Bruno Haible  <bruno@clisp.org>
81010
81011         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81012         endless loop while replacing $auxdir with build-aux.
81013
81014 2006-01-11  Simon Josefsson  <jas@extundo.com>
81015
81016         * lib/stdint_.h (SIZE_MAX): Add missing (.
81017
81018 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81019
81020         Sync from coreutils.
81021         * lib/md5.c: Fix commentary typos.
81022         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81023         * lib/md5.h (__attribute__): Remove; unused.
81024         * lib/sha1.c: Fix commentary to match md5 better.
81025         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81026         so that we don't need to worry about alignment.  All uses changed.
81027         This merges the 2005-10-28 md5 change into sha1.
81028
81029 2006-01-11  Jim Meyering  <jim@meyering.net>
81030
81031         Sync from coreutils.
81032         * lib/md5.c (OP): Fix spacing.
81033
81034 2006-01-11  Bruno Haible  <bruno@clisp.org>
81035
81036         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81037         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81038         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81039
81040 2006-01-11  Bruno Haible  <bruno@clisp.org>
81041
81042         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81043         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81044         the "early" section as well.
81045
81046 2006-01-11  Bruno Haible  <bruno@clisp.org>
81047
81048         Avoid "ar: no archive members specified" error on MacOS X.
81049         * gnulib-tool (func_modules_add_dummy): New function.
81050         (func_import, func_create_testdir): Invoke it.
81051
81052 2006-01-11  Bruno Haible  <bruno@clisp.org>
81053
81054         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81055         with $auxdir in AC_CONFIG_FILES statements.
81056
81057 2006-01-11  Bruno Haible  <bruno@clisp.org>
81058
81059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81060         Initialize also noinst_HEADERS to empty.
81061
81062 2006-01-11  Bruno Haible  <bruno@clisp.org>
81063
81064         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81065         variables.
81066         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81067         autoreconf.
81068
81069 2006-01-11  Bruno Haible  <bruno@clisp.org>
81070
81071         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81072         overridable by the user.
81073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81074
81075 2006-01-10  Simon Josefsson  <jas@extundo.com>
81076
81077         * modules/sys_socket: New file.
81078
81079 2006-01-10  Simon Josefsson  <jas@extundo.com>
81080
81081         * m4/sys_socket_h.m4: New file.
81082
81083 2006-01-10  Simon Josefsson  <jas@extundo.com>
81084
81085         * lib/socket_.h: New file.
81086
81087 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81088
81089         * modules/readutmp (Maintainer): Add myself.
81090
81091 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81092
81093         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81094         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81095         People who are still concerned with buggy memcmp implementations
81096         can invoke gl_FUNC_MEMCMP themselves.
81097
81098 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81099
81100         * lib/regex_internal.h (BITSET_WORD_BITS):
81101         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81102         preprocessor mishandles large unsigned values as if they were signed.
81103         Problem reported by Claudio Fontana in
81104         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81105
81106 2006-01-10  Jim Meyering  <jim@meyering.net>
81107
81108         Avoid the double-free (first in fts_read, second in fts_close) that
81109         would occur when an `active' directory is made inaccessible (e.g.,
81110         via chmod a-x) during a traversal.
81111         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81112         before returning.  Reproduce this failure by
81113         mkdir -p a/b; cd a; chmod a-x . b
81114         Reported by Stavros Passas.
81115
81116         Sync from coreutils.
81117         * lib/sha1.c: Tweak grammar in a comment.
81118
81119 2006-01-10  Jim Meyering  <jim@meyering.net>
81120
81121         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81122         Patch by Joerg Sonnenberger.
81123
81124 2006-01-10  Bruno Haible  <bruno@clisp.org>
81125
81126         * modules/readutmp: Depend on module free.
81127         * modules/strtok_r: Depend on module restrict.
81128
81129 2006-01-10  Bruno Haible  <bruno@clisp.org>
81130
81131         * modules/gettext (configure.ac): Add an invocation of
81132         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81133
81134 2006-01-10  Bruno Haible  <bruno@clisp.org>
81135
81136         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81137         Reported by Werner Lemberg <wl@gnu.org>.
81138
81139 2006-01-10  Bruno Haible  <bruno@clisp.org>
81140
81141         * lib/localcharset.c: Update from GNU gettext.
81142
81143 2006-01-10  Bruno Haible  <bruno@clisp.org>
81144
81145         * lib/argp.h (__const): Remove macro. Use const instead.
81146         * lib/argp-fmtstream.h (__const): Likewise.
81147         * lib/glob_.h (__const): Remove macro.
81148         * lib/glob-libc.h: Use const instead of __const.
81149
81150 2006-01-10  Bruno Haible  <bruno@clisp.org>
81151
81152         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81153         variable.
81154         Needed to avoid an automake error regarding the 'gettext' module.
81155
81156 2006-01-09  Simon Josefsson  <jas@extundo.com>
81157
81158         * modules/inet_ntop (Depends-on): Add restrict.
81159
81160 2006-01-09  Simon Josefsson  <jas@extundo.com>
81161
81162         * modules/gc-rijndael-tests (License): Put under LGPL.
81163
81164         * modules/gc-des-tests (License): Likewise.
81165
81166         * modules/gc-arcfour-tests (License): Likewise.
81167
81168         * modules/gc-arctwo-tests (License): Likewise.
81169
81170         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81171
81172         * modules/gc-hmac-sha1-tests (Files): Likewise.
81173
81174         * modules/gc-hmac-md5-tests (License): Likewise.
81175
81176         * modules/gc-sha1-tests (License): Likewise.
81177
81178         * modules/gc-md5-tests (License): Likewise.
81179
81180         * modules/gc-md4-tests (License): Likewise.
81181
81182         * modules/gc-md2-tests (License): Likewise.
81183
81184         * modules/gc-tests (License): Likewise.
81185
81186         * modules/des-tests (License): Likewise.
81187
81188         * modules/md4-tests (License): Likewise.
81189
81190         * modules/md2-tests (License): Likewise.
81191
81192 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81193
81194         Sync from coreutils:
81195
81196         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81197         * modules/lib-ignore: New file.
81198         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81199         chdir-safer.m4, lchmod.m4.
81200         * modules/openat: Add mkdirat.c, openat-priv.h.
81201
81202 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81203
81204         Sync from coreutils.
81205         * m4/lib-ignore.m4: New file.
81206         * m4/lchmod.m4: New file.
81207
81208 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81209
81210         Sync from coreutils.
81211         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81212         for write access: POSIX says that must fail.
81213         * lib/fts.c (diropen): Likewise.
81214         * lib/save-cwd.c (save_cwd): Likewise.
81215         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81216         well, for minor improvements on hosts that lack O_DIRECTORY.
81217         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81218         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81219         Fall back on chown if open failed with EACCES.
81220
81221         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81222         Report an error at compile-time if only a 1-second nominal clock
81223         resolution is found.
81224
81225         * lib/lchmod.h: New file.
81226         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81227         (make_dir_parents): Use lchown rather than chown, and
81228         lchmod rather than chmod.
81229
81230         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81231         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81232         "proc" reported by n0dalus.
81233
81234         * lib/mountlist.c: Include <limits.h>.
81235         (dev_from_mount_options)
81236         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81237         New function.  It no longer assumes "dev=" has the System V meaning
81238         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81239         (read_file_system_list)
81240         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81241         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81242         dev= in that case.
81243
81244         * lib/posixtm.h (PDS_PRE_2000): New macro.
81245         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81246         allow_century.  All usages changed.  Reject dates outside the range
81247         1969-1999 if PDS_PRE_2000 is used.
81248
81249 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81250
81251         Sync from coreutils.
81252         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81253         (Time of day items): Mention the possibility of leap seconds.
81254         Problem reported by Dr. David Alan Gilbert.
81255
81256 2006-01-09  Jim Meyering  <jim@meyering.net>
81257
81258         Sync from coreutils.
81259
81260         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81261
81262         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81263
81264         * lib/modechange.c (mode_compile): Reject an invalid mode string
81265         that starts with an octal digit.  From Andreas Gruenbacher.
81266
81267         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81268         and dup to open_safer and dup_safer, respectively.
81269         (openat_permissive): Fix typo in comment.
81270
81271         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81272         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81273         (_): Remove; no longer needed.
81274         (openat): Renamed from rpl_openat; no need for rpl_openat
81275         since openat.h renames openat for us.
81276         Replace most of the body with a call to openat_permissive,
81277         to avoid duplicate code.
81278         Port to (probably hypothetical) environments were mode_t is
81279         wider than int.
81280         (openat_permissive): Require mode arg, so that we can check
81281         types better.  Put it just after flags.  Change cwd failure
81282         indicator from pointer-to-bool to pointer-to-errno-value.
81283         All callers changed.
81284         Invoke openat_save_fail and/or openat_restore_fail if
81285         cwd_errno is null, so that openat can call us.
81286         (openat_permissive, fdopendir, fstatat, unlinkat):
81287         Simplify errno handling to avoid some duplicate code,
81288         as it's OK to set errno on success.
81289         * lib/openat.h: Revamp code so that function macros depend on
81290         __OPENAT_PREFIX only, not also on AT_FDCWD.
81291         (openat_ro): Remove.  Caller changed to use openat_permissive.
81292         (openat_permissive): Now a macro, if not a function.
81293         (openat_restore_fail, openat_save_fail): Now always functions,
81294         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81295
81296         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81297         and openat.c.
81298         * lib/mkdirat.c: Include openat-priv.h.
81299         Remove definitions of macros defined therein.
81300         * lib/openat.c: Likewise.
81301
81302         * lib/mkdirat.c (mkdirat): New file and function.
81303         * lib/openat.h (mkdirat): Declare.
81304
81305         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81306
81307         * lib/openat.h (openat_permissive): Declare.
81308         (openat_ro): Define.
81309
81310         * lib/openat.c (EXPECTED_ERRNO): New macro.
81311         (openat_permissive): New function -- used in remove.c rewrite.
81312         (all functions): Set errno just before returning, only if there
81313         was an actual failure.
81314         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81315
81316         Emulate openat-family functions using Linux's procfs, if possible.
81317         Idea and some code based on Ulrich Drepper's glibc changes.
81318
81319         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81320         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81321         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81322         before falling back on save_cwd and restore_cwd.
81323         (fdopendir, fstatat, unlinkat): Likewise.
81324
81325         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81326         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81327
81328         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81329         as second argument to va_arg.  Otherwise, some versions of gcc
81330         warn that `if this code is reached, the program will abort'.
81331
81332 2006-01-09  Jim Meyering  <jim@meyering.net>
81333
81334         Sync from coreutils.
81335         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81336         Require openat-priv.h.
81337
81338 2006-01-09  Bruno Haible  <bruno@clisp.org>
81339
81340         * modules/strnlen (Include): Use strnlen.h.
81341
81342 2006-01-09  Bruno Haible  <bruno@clisp.org>
81343
81344         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81345
81346 2006-01-09  Bruno Haible  <bruno@clisp.org>
81347
81348         * lib/sysexit_.h (EX_OK): New macro.
81349         Suggested by Martin Lambers <marlam@marlam.de>.
81350
81351 2006-01-09  Bruno Haible  <bruno@clisp.org>
81352
81353         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81354         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81355
81356 2006-01-09  Bruno Haible  <bruno@clisp.org>
81357
81358         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81359         numbers.
81360
81361 2006-01-09  Bruno Haible  <bruno@clisp.org>
81362
81363         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81364         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81365         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81366         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81367
81368 2006-01-09  Bruno Haible  <bruno@clisp.org>
81369
81370         * build-aux/javacomp.sh.in: New file, moved from lib/.
81371         * modules/javacomp-script (Files): Update.
81372         (configure.ac): Add AC_CONFIG_FILES invocation.
81373         (EXTRA_DIST): Remove variable.
81374
81375         * build-aux/javaexec.sh.in: New file, moved from lib/.
81376         * modules/javaexec (Files): Update.
81377         (configure.ac): Add AC_CONFIG_FILES invocation.
81378         (EXTRA_DIST): Remove javaexec.sh.in.
81379
81380         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81381         * modules/csharpcomp-script (Files): Update.
81382         (configure.ac): Add AC_CONFIG_FILES invocation.
81383         (EXTRA_DIST): Remove variable.
81384
81385         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81386         * modules/csharpexec (Files): Update.
81387         (configure.ac): Add AC_CONFIG_FILES invocation.
81388         (EXTRA_DIST): Remove csharpexec.sh.in.
81389
81390 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81391
81392         Sync from coreutils.
81393
81394         Add POSIX ACL support
81395         * lib/acl.h (copy_acl, set_acl): Add declarations.
81396         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81397         systems other than Linux.
81398         (chmod_or_fchmod): New function: use fchmod when possible,
81399         and chmod otherwise.
81400         (file_has_acl): Add a POSIX ACL implementation, with a
81401         Linux-specific subcase.
81402         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81403         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81404         acls are unsupported.
81405         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81406         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81407         are unsupported.
81408
81409 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81410
81411         Sync from coreutils.
81412         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81413
81414 2006-01-07  Bruno Haible  <bruno@clisp.org>
81415
81416         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81417         gl_EARLY.
81418
81419 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81420
81421         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81422         Problem reported for Mingw by Mark Junker.
81423
81424 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81425
81426         * README: Gnulib normally doesn't generate a tarball.
81427
81428 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81429
81430         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81431         long int, not int, for nanosecond counts, so that people who are
81432         used to POSIX struct timespec won't be surprised.  Reported by Jim
81433         Meyering.
81434
81435 2005-12-28  Bruno Haible  <bruno@clisp.org>
81436
81437         * build-aux/config.rpath: Update from GNU gettext.
81438
81439 2005-12-16  Jim Meyering  <jim@meyering.net>
81440
81441         * modules/fprintftime: New module.
81442         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81443
81444 2005-12-16  Jim Meyering  <jim@meyering.net>
81445
81446         * m4/fprintftime.m4: New file.
81447
81448 2005-12-16  Jim Meyering  <jim@meyering.net>
81449
81450         * lib/fprintftime.c, lib/fprintftime.h: New files.
81451
81452 2005-12-15  Simon Josefsson  <jas@extundo.com>
81453
81454         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81455         new m4/socklen.m4.
81456
81457 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81458
81459         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81460         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81461
81462 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81463
81464         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81465         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81466         struct uparams is valid. Fall back to the default values if it is
81467         not.
81468
81469 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81470
81471         * modules/argp (Files): Add argp-pin.c
81472         (Depends-on): dirname
81473         (lib_SOURCES): Add argp-pin.c
81474
81475 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81476
81477         * m4/argp.m4:  Check if program_invocation_name and
81478         program_invocation_short_name are declared and define appropriate
81479         macros if they are not.
81480
81481 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81482
81483         * lib/argp-help.c (__argp_base_name): New function
81484         (__argp_short_program_name): Rewrite using __argp_base_name
81485         * lib/argp-namefrob.h: Define program_invocation_name and
81486         program_invocation_short_name if requested
81487         (__argp_base_name): Add prototype
81488         * lib/argp-parse.c (argp_def): Use gettext wrappers
81489         (argp_default_parser): Use __argp_base_name
81490         * lib/argp-pin.c: New file. Defines program_invocation_name and
81491         program_invocation_short_name on systems that lack them.
81492
81493 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81494
81495         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81496         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81497         porting problem reported by Georg Schwarz in
81498         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81499
81500 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81501
81502         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81503         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81504         porting problem reported by Georg Schwarz in
81505         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81506
81507 2005-12-05  Bruno Haible  <bruno@clisp.org>
81508
81509         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81510         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81511         Reported by Mark Junker <mjscod@gmx.de>.
81512
81513 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81514
81515         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81516         Use implementation from Albert Chin, with some
81517         comments/corrections by Stepan Kasal and myself.
81518
81519 2005-12-02  Bruno Haible  <bruno@clisp.org>
81520
81521         * gnulib-tool (func_import): Accept GPLed build tool modules when
81522         --lgpl is given.
81523         * modules/csharpcomp-script: New file.
81524         * modules/csharpcomp: Depend on it.
81525         * modules/javacomp-script: New file.
81526         * modules/javacomp: Depend on it.
81527         Suggested by Simon Josefsson.
81528
81529 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
81530
81531         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
81532         statement, to work around an HP-UX 10.20 compiler bug reported by
81533         Peter O'Gorman.
81534
81535 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81536
81537         * modules/savedir (Depends-on): Add openat.
81538
81539 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81540
81541         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
81542         (uintmax_t) [defined uintmax_t]: Do not declare.
81543         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
81544         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
81545         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
81546         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
81547         sake of portability to weird hosts that C allows (though we don't
81548         know of any practical examples).
81549
81550         * lib/savedir.h (fdsavedir): New decl.
81551         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
81552         contains most of the former guts of savedir.
81553         (savedir): Use savedirstream.
81554         Include "openat.h".
81555
81556 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81557
81558         * modules/obstack (Files): Add m4/ulonglong.m4.
81559         Problem reported by Davide Angelocola.
81560
81561 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81562
81563         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
81564         coreutils no longer futzes with rounding modes.
81565
81566 2005-11-14  Jim Meyering  <jim@meyering.net>
81567
81568         * lib/mkstemp-safer.c: Include <config.h>, required for possible
81569         replacement of mkstemp.
81570
81571 2005-11-10  Simon Josefsson  <jas@extundo.com>
81572
81573         * lib/readline.c: Remove EOL.
81574
81575 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81576
81577         * modules/gethrxtime (Depends-on): Add gettime.
81578
81579 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81580
81581         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
81582         or gettimeofday; no longer needed.
81583
81584 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81585
81586         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
81587         time business.
81588         (gethrxtime) [! (HAVE_NANOUPTIME
81589         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
81590         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
81591         our own approximation.
81592
81593 2005-11-08  Eric Blake  <ebb9@byu.net>
81594
81595         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81596
81597 2005-11-08  Eric Blake  <ebb9@byu.net>
81598
81599         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81600
81601 2005-11-04  Bruno Haible  <bruno@clisp.org>
81602
81603         * gnulib-tool: Implement --update mode.
81604
81605 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81606
81607         Fix porting problem reported by Theodoros V. Kalamatianos.
81608         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
81609         Don't assume that futimes failing means we must fail.
81610
81611 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81612
81613         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
81614         variables to suggest the intended function of the PATH_MAX check.
81615
81616 2005-10-30  Kean Johnston  <jkj@sco.com>
81617
81618         Trivial changes to support SCO systems.
81619         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
81620         as PATH_MAX.
81621         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
81622         where __ptr is null when no I/O is pending.
81623
81624 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81625
81626         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
81627         leave errno alone.  Problem reported by Dmitry V. Levin.
81628
81629 2005-10-28  Simon Josefsson  <jas@extundo.com>
81630
81631         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
81632         Test more.
81633
81634         * tests/test-gc-md2.c, tests/test-md2.c: New files.
81635
81636         * modules/md2, modules/md2-tests: New files.
81637
81638 2005-10-28  Simon Josefsson  <jas@extundo.com>
81639
81640         * m4/inet_ntop.m4: More tests.
81641
81642         * m4/gc-md2.m4, md2.m4: New file.
81643
81644 2005-10-28  Simon Josefsson  <jas@extundo.com>
81645
81646         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
81647         "restrict" keywords, as per POSIX.  Protect the function
81648         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
81649         Don't use K&R prototypes.  Check the sprintf return values.
81650         Re-define EAFNOSUPPORT if not present.  Indent.
81651
81652         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
81653         suggested by Bruno Haible <bruno@clisp.org>.
81654
81655         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
81656
81657         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
81658
81659         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
81660         libgcrypt).
81661
81662         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
81663
81664         * lib/md2.h, lib/md2.c: New files.
81665
81666 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
81667
81668         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
81669         errno alone.  Problem reported by Frederic Jolliton.
81670
81671 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
81672
81673         * modules/verify (License): Change from GPL to LGPL.  This is a
81674         tiny module and there are apparently near-equivalents that are
81675         under the BSD license.
81676
81677 2005-10-24  Simon Josefsson  <jas@extundo.com>
81678
81679         * modules/sha1: Relicense to LGPL.
81680
81681 2005-10-24  Simon Josefsson  <jas@extundo.com>
81682
81683         * lib/md4.h: Shrink buffer size, now that we changed the type.
81684
81685 2005-10-23  Simon Josefsson  <jas@extundo.com>
81686
81687         * gnulib-tool (func_import): Fix --tests-base.
81688
81689 2005-10-22  Simon Josefsson  <jas@extundo.com>
81690
81691         * modules/arcfour (Depends-on): Need stdint.
81692
81693 2005-10-22  Simon Josefsson  <jas@extundo.com>
81694
81695         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
81696         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
81697
81698 2005-10-22  Simon Josefsson  <jas@extundo.com>
81699
81700         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
81701         suggested by Bruno Haible <bruno@clisp.org>.
81702
81703 2005-10-22  Simon Josefsson  <jas@extundo.com>
81704
81705         * lib/crc.h: Include stddef.h, for size_t.
81706
81707 2005-10-22  Simon Josefsson  <jas@extundo.com>
81708
81709         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
81710         arcfour_context struct (simplify test vector testing in GNU
81711         Shishi).
81712
81713 2005-10-21  Simon Josefsson  <jas@extundo.com>
81714
81715         * modules/des, modules/des-tests: New files.
81716
81717         * modules/gc-des, modules/gc-des-tests: New files.
81718
81719         * tests/test-des.c, tests/test-gc-des.c: New file.
81720
81721 2005-10-21  Simon Josefsson  <jas@extundo.com>
81722
81723         * modules/arctwo, modules/arctwo-tests: New files.
81724
81725         * tests/test-arctwo.c: New file.
81726
81727         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
81728
81729         * tests/test-gc-arctwo.c: New file.
81730
81731 2005-10-21  Simon Josefsson  <jas@extundo.com>
81732
81733         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
81734         Bruno Haible <bruno@clisp.org>.
81735
81736         * m4/gc-des.m4: New file.
81737
81738 2005-10-21  Simon Josefsson  <jas@extundo.com>
81739
81740         * m4/arctwo.m4: New file.
81741
81742         * m4/gc-arctwo.m4: New file.
81743
81744 2005-10-21  Simon Josefsson  <jas@extundo.com>
81745
81746         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
81747         block.
81748
81749 2005-10-21  Simon Josefsson  <jas@extundo.com>
81750
81751         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
81752         <bruno@clisp.org>.
81753
81754         * lib/hmac-sha1.c (hmac_sha1): Likewise.
81755
81756         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
81757         Bruno Haible <bruno@clisp.org>.
81758
81759         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
81760         <bruno@clisp.org>.
81761
81762 2005-10-21  Simon Josefsson  <jas@extundo.com>
81763
81764         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
81765
81766 2005-10-21  Simon Josefsson  <jas@extundo.com>
81767
81768         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
81769
81770 2005-10-21  Simon Josefsson  <jas@extundo.com>
81771
81772         * lib/des.h, lib/des.c: New files.
81773
81774         * lib/gc-gnulib.c: Support DES.c
81775
81776 2005-10-21  Simon Josefsson  <jas@extundo.com>
81777
81778         * lib/arctwo.h, lib/arctwo.c: New files.
81779
81780         * lib/gc-gnulib.c: Support ARCTWO.
81781
81782 2005-10-21  Simon Josefsson  <jas@extundo.com>
81783
81784         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
81785         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81786
81787 2005-10-21  Simon Josefsson  <jas@extundo.com>
81788
81789         * gnulib-tool (func_import, func_create_testdir): Define automake
81790         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
81791         Makefile.am snippet),
81792         suggested by Bruno Haible <bruno@clisp.org>.
81793
81794         * modules/gc (Makefile.am): Use it.
81795
81796 2005-10-21  Bruno Haible  <bruno@clisp.org>
81797
81798         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
81799         patch.
81800
81801 2005-10-19  Simon Josefsson  <jas@extundo.com>
81802
81803         * tests/test-gc-rijndael.c: New file.
81804
81805         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
81806
81807 2005-10-19  Simon Josefsson  <jas@extundo.com>
81808
81809         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
81810         interface too.
81811
81812 2005-10-19  Simon Josefsson  <jas@extundo.com>
81813
81814         * tests/test-gc-arcfour.c: New file.
81815
81816         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
81817
81818 2005-10-19  Simon Josefsson  <jas@extundo.com>
81819
81820         * modules/gc-md4, modules/gc-md4-tests: New file.
81821
81822         * tests/test-gc-md4.c: New file.
81823
81824 2005-10-19  Simon Josefsson  <jas@extundo.com>
81825
81826         * m4/gc-md4.m4: New file.
81827
81828 2005-10-19  Simon Josefsson  <jas@extundo.com>
81829
81830         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
81831         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
81832         <kasal@ucw.cz>.
81833
81834 2005-10-19  Simon Josefsson  <jas@extundo.com>
81835
81836         * m4/gc-arcfour.m4: New file.
81837
81838         * m4/gc-rijndael.m4: New file.
81839
81840 2005-10-19  Simon Josefsson  <jas@extundo.com>
81841
81842         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
81843
81844 2005-10-19  Simon Josefsson  <jas@extundo.com>
81845
81846         * lib/gc-gnulib.c: Support ARCFOUR.
81847
81848 2005-10-19  Simon Josefsson  <jas@extundo.com>
81849
81850         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
81851         support.
81852
81853         * lib/gc.h: Add ECB enum type.
81854
81855         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
81856
81857 2005-10-18  Simon Josefsson  <jas@extundo.com>
81858
81859         * tests/test-md5.c: New file.
81860
81861         * modules/md5-tests: New file.
81862
81863 2005-10-18  Simon Josefsson  <jas@extundo.com>
81864
81865         * tests/test-md4.c: New file.
81866
81867         * modules/md4, modules/md4-tests: New files.
81868
81869 2005-10-18  Simon Josefsson  <jas@extundo.com>
81870
81871         * m4/md4.m4: New file.
81872
81873 2005-10-18  Simon Josefsson  <jas@extundo.com>
81874
81875         * lib/md4.h, lib/md4.c: New files, based on md5.?.
81876
81877 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
81878
81879         * gnulib-tool (func_create_testdir): Omit the second check whether
81880         BUILT_SOURCES in nonempty.
81881
81882 2005-10-17  Simon Josefsson  <jas@extundo.com>
81883
81884         * tests/test-rijndael.c: New file.
81885
81886 2005-10-17  Simon Josefsson  <jas@extundo.com>
81887
81888         * modules/sha1: Depend on stdint instead of md5.
81889
81890         * modules/md5: Depend on stdint, remove uint32_t.
81891
81892 2005-10-17  Simon Josefsson  <jas@extundo.com>
81893
81894         * modules/gc-sha1-tests: New file.
81895
81896         * tests/test-gc-sha1.c: New file.
81897
81898 2005-10-17  Simon Josefsson  <jas@extundo.com>
81899
81900         * m4/md5.m4: Remove call to uint32_t.m4.
81901
81902 2005-10-17  Simon Josefsson  <jas@extundo.com>
81903
81904         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
81905
81906         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
81907         md5.h.
81908
81909         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
81910
81911         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
81912
81913 2005-10-17  Simon Josefsson  <jas@extundo.com>
81914
81915         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
81916
81917 2005-10-17  Simon Josefsson  <jas@extundo.com>
81918
81919         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
81920
81921 2005-10-17  Simon Josefsson  <jas@extundo.com>
81922
81923         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
81924
81925         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
81926
81927 2005-10-17  Bruno Haible  <bruno@clisp.org>
81928
81929         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
81930         that it can also be used in a test.
81931
81932 2005-10-16  Bruno Haible  <bruno@clisp.org>
81933
81934         * gnulib-tool (func_emit_tests_Makefile_am): Also define
81935         TESTS_ENVIRONMENT, so that individual tests can augment it.
81936
81937         * gnulib-tool (func_create_testdir): Use an intermediate target for
81938         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
81939         macros, like $(ALLOCA_H), which cannot be passed through the command
81940         line.
81941
81942 2005-10-15  Simon Josefsson  <jas@extundo.com>
81943
81944         * modules/rijndael-tests: New file.
81945
81946         * modules/rijndael: New file.
81947
81948 2005-10-15  Simon Josefsson  <jas@extundo.com>
81949
81950         * m4/rijndael.m4: New file.
81951
81952 2005-10-15  Simon Josefsson  <jas@extundo.com>
81953
81954         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
81955
81956         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
81957
81958 2005-10-14  Simon Josefsson  <jas@extundo.com>
81959
81960         * tests/test-arcfour.c: New file.
81961
81962         * modules/arcfour, modules/arcfour-tests: New files.
81963
81964 2005-10-14  Simon Josefsson  <jas@extundo.com>
81965
81966         * m4/arcfour.m4: New file.
81967
81968 2005-10-14  Simon Josefsson  <jas@extundo.com>
81969
81970         * lib/arcfour.h, lib/arcfour.c: New files.
81971
81972 2005-10-14  Roland McGrath  <roland@redhat.com>
81973
81974         Import from libc.  [BZ #1331]
81975         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
81976         macro argument.
81977         Reported by Matej Vela <vela@debian.org>.
81978
81979 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81980
81981         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
81982         include <wchar.h>; no longer needed.
81983
81984 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81985
81986         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
81987
81988 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
81989         and  Ulrich Drepper  <drepper@redhat.com>
81990
81991         Import from libc.
81992         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
81993         instead of inline stream orientation test and two separate
81994         function calls.  Pay no attention to USE_IN_LIBIO.
81995
81996 2005-10-13  Simon Josefsson  <jas@extundo.com>
81997
81998         * modules/gc-hmac-md5-tests: New file.
81999
82000         * tests/test-gc-hmac-sha1.c: New file.
82001
82002         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82003
82004         * modules/gc-hmac-md5-tests: New file.
82005
82006         * tests/test-gc-md5.c: New file.
82007
82008         * modules/gc-md5-tests: New file.
82009
82010 2005-10-13  Simon Josefsson  <jas@extundo.com>
82011
82012         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82013         Move memory allocation outside of loop.
82014
82015 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82016
82017         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82018         intermediate directory is in a read-only file system.  Problem
82019         reported by Eric Blake.
82020
82021 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82022
82023         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82024
82025 2005-10-12  Simon Josefsson  <jas@extundo.com>
82026
82027         * tests/test-hmac-sha1.c: New file.
82028
82029         * modules/hmac-sha1-tests: New file.
82030
82031         * modules/hmac-sha1: New file.
82032
82033 2005-10-12  Simon Josefsson  <jas@extundo.com>
82034
82035         * modules/gc-sha1: New file.
82036
82037 2005-10-12  Simon Josefsson  <jas@extundo.com>
82038
82039         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82040
82041         * tests/test-gc-pbkdf2-sha1.c: New file.
82042
82043 2005-10-12  Simon Josefsson  <jas@extundo.com>
82044
82045         * modules/gc-md5, modules/gc-hmac-md5: New files.
82046
82047         * modules/gc (Files): Remove md5, memxor and hmac files.
82048
82049 2005-10-12  Simon Josefsson  <jas@extundo.com>
82050
82051         * m4/gc-pbkdf2-sha1.m4: New file.
82052
82053         * m4/gc-hmac-sha1.m4: New file.
82054
82055         * m4/gc-sha1: New file.
82056
82057         * m4/hmac-sha1.m4: New file.
82058
82059 2005-10-12  Simon Josefsson  <jas@extundo.com>
82060
82061         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82062
82063         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82064
82065 2005-10-12  Simon Josefsson  <jas@extundo.com>
82066
82067         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82068         suggested by Bruno Haible <bruno@clisp.org>.
82069
82070 2005-10-12  Simon Josefsson  <jas@extundo.com>
82071
82072         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82073
82074 2005-10-12  Simon Josefsson  <jas@extundo.com>
82075
82076         * lib/gc-pbkdf2-sha1.c: New file.
82077
82078         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82079
82080 2005-10-12  Simon Josefsson  <jas@extundo.com>
82081
82082         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82083
82084         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82085
82086 2005-10-12  Simon Josefsson  <jas@extundo.com>
82087
82088         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82089         GC_USE_HMAC_MD5, respectively.
82090
82091         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82092         (gc_md5): Fix typo.
82093
82094         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82095
82096         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82097
82098         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82099
82100 2005-10-12  Bruno Haible  <bruno@clisp.org>
82101
82102         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82103         Reported by Stepan Kasal <kasal@ucw.cz>.
82104
82105 2005-10-11  Simon Josefsson  <jas@extundo.com>
82106
82107         * tests/test-crc.c: New file.
82108
82109         * modules/crc, modules/crc-tests: New files.
82110
82111 2005-10-11  Simon Josefsson  <jas@extundo.com>
82112
82113         * m4/crc.m4: New file.
82114
82115 2005-10-11  Simon Josefsson  <jas@extundo.com>
82116
82117         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82118
82119         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82120
82121         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82122
82123 2005-10-11  Simon Josefsson  <jas@extundo.com>
82124
82125         * lib/crc.h, lib/crc.c: New files.
82126
82127         * lib/gc.h (gc_hash_buffer): Add doc.
82128
82129 2005-10-11  Bruno Haible  <bruno@clisp.org>
82130
82131         * modules/c-strcasestr: New file.
82132         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82133
82134 2005-10-11  Bruno Haible  <bruno@clisp.org>
82135
82136         * modules/c-strcase: New file.
82137         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82138
82139 2005-10-11  Bruno Haible  <bruno@clisp.org>
82140
82141         * lib/strcasecmp.c: Include limits.h.
82142         (strcasecmp): Avoid integer overflow on exotic platforms.
82143         * lib/strncasecmp.c: Include limits.h.
82144         (strncasecmp): Avoid integer overflow on exotic platforms.
82145         Reported by Paul Eggert.
82146
82147 2005-10-11  Bruno Haible  <bruno@clisp.org>
82148
82149         * lib/c-strcasestr.h: New file, from GNU gettext.
82150         * lib/c-strcasestr.c: New file, from GNU gettext.
82151
82152 2005-10-11  Bruno Haible  <bruno@clisp.org>
82153
82154         * lib/c-strcase.h: New file, from GNU gettext.
82155         * lib/c-strcasecmp.c: New file, from GNU gettext.
82156         * lib/c-strncasecmp.c: New file, from GNU gettext.
82157
82158 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82159
82160         * modules/mempcpy (License): GPL -> LGPL.
82161         * modules/strchrnul (License): Likewise.
82162         * modules/sysexits (License): Likewise.
82163
82164 2005-10-08  Simon Josefsson  <jas@extundo.com>
82165
82166         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82167
82168 2005-10-07  Simon Josefsson  <jas@extundo.com>
82169
82170         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82171
82172 2005-10-06  Simon Josefsson  <jas@extundo.com>
82173
82174         * tests/test-hmac-md5.c: New file.
82175
82176         * modules/hmac-md5-tests: New file.
82177
82178         * modules/hmac-md5: New file.
82179
82180 2005-10-06  Simon Josefsson  <jas@extundo.com>
82181
82182         * m4/hmac-md5.m4: New file.
82183
82184         * m4/memxor.m4: Require gl_C_RESTRICT.
82185
82186 2005-10-06  Simon Josefsson  <jas@extundo.com>
82187
82188         * lib/memxor.c (memxor): Avoid casts and warnings.
82189
82190 2005-10-06  Simon Josefsson  <jas@extundo.com>
82191
82192         * lib/hmac-md5.c: New file.
82193
82194         * lib/hmac.h: New file.
82195
82196 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82197
82198         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82199         promotes to int, not unsigned int, to catch the AIX 5.3
82200         compiler bug.
82201
82202 2005-10-05  Simon Josefsson  <jas@extundo.com>
82203
82204         * modules/memxor: New file.
82205
82206         * modules/iconv (Files): Move config.rpath to havelib, it is used
82207         there.
82208
82209         * modules/havelib (Files): Add config.rpath.
82210
82211 2005-10-05  Simon Josefsson  <jas@extundo.com>
82212
82213         * m4/memxor.m4: New file.
82214
82215 2005-10-05  Simon Josefsson  <jas@extundo.com>
82216
82217         * lib/memxor.c (memxor): Fix compiler error.
82218
82219         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82220         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82221
82222         * lib/memxor.h, lib/memxor.c: New files.
82223
82224         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82225         we assume all systems have it, suggested by Jim Meyering
82226         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82227         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82228         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82229         same reasons.
82230
82231 2005-10-05  Simon Josefsson  <jas@extundo.com>
82232
82233         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82234
82235 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82236
82237         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82238         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82239         needed, since the source code now assumes these .h files.
82240
82241 2005-10-05  Derek Price  <derek@ximbiot.com>
82242
82243         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82244
82245 2005-10-05  Bruno Haible  <bruno@clisp.org>
82246
82247         * modules/stdint (License): Change to LGPL.
82248
82249 2005-10-04  Simon Josefsson  <jas@extundo.com>
82250
82251         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82252         D. Baushke" <mdb@gnu.org>.
82253
82254 2005-10-04  Bruno Haible  <bruno@clisp.org>
82255
82256         * lib/verify.h (verify_true): Provide alternative definition for C++.
82257
82258 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82259
82260         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82261         (SSIZE_MAX): New macro, if not already defined.
82262         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82263         than 2 GiB.
82264
82265 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82266
82267         Sync from coreutils.
82268         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82269         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82270         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82271         ULLONG_MAX doesn't work with 2.7.2.1.
82272
82273 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82274
82275         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82276         From Ben Pfaff.
82277
82278         * modules/exclude (Depends-on): Depend on verify.
82279         * modules/strtoimax (Depends-on): Likewise.
82280         * modules/utimecmp (Depends-on): Likewise.
82281
82282 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         * lib/exclude.c: Include verify.h.
82285         (verify): Remove.  All callers changed to use verify.h's version.
82286         * lib/strtoimax.c: Likewise.
82287         * lib/utimecmp.c: Likewis.e
82288
82289         Sync from coreutils.
82290         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82291         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82292         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82293         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82294         bother returning ENOSYS if settimeofday or stime fails; just let
82295         them return whatever errno they want to return.
82296         * lib/utimens.c: Include unistd.h, for dup2.
82297         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82298         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82299
82300 2005-10-02  Jim Meyering  <jim@meyering.net>
82301
82302         Sync from coreutils.
82303         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82304         from glibc-2.2.5 that fails for read-only files.
82305
82306 2005-10-02  Jim Meyering  <jim@meyering.net>
82307
82308         Sync from coreutils.
82309         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82310         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82311         `#if HAVE_CONFIG_H'.
82312         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82313         Remove AT_FDCWD test.
82314         Do not consume the fd unless successful.
82315         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82316         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82317         block, so that we don't even try to compile it if settimeofday is
82318         available.  This works around a compilation failure on OSF1 V5.1,
82319         due to stime requiring a `long int*' while tv_sec is `int'.
82320
82321 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82322
82323         Sync from coreutils.
82324         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82325         against `yes', rather than just testing for nonempty.
82326
82327 2005-10-01  Simon Josefsson  <jas@extundo.com>
82328
82329         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82330         and Darwin.
82331
82332         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82333         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82334         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82335         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82336         Check if struct addrinfo is declared.
82337
82338 2005-10-01  Simon Josefsson  <jas@extundo.com>
82339
82340         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82341         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82342         AI_* and EAI_* definitions.  Protect function declarations.
82343
82344 2005-10-01  Jim Meyering  <jim@meyering.net>
82345
82346         Sync from coreutils.
82347
82348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82349         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82350         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82352         in the inet and nsl libraries.  Required on Solaris 5.7.
82353
82354 2005-10-01  Jim Meyering  <jim@meyering.net>
82355
82356         Sync from coreutils.
82357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82358         in the inet and nsl libraries.  Required on Solaris 5.7.
82359
82360 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82361
82362         * lib/getdelim.c (getdelim): Remove unused variables.
82363
82364 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82365
82366         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82367         so that the code works even with ancient cpp.  Portability problem
82368         with GCC 2.7.2.1 reported by Thomas M.Ott.
82369
82370 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82371
82372         * modules/regex (Depends-on): Add strcase.
82373
82374         * modules/gethostname (Licence): Change from GPL to LGPL, since
82375         gethostname.c is a trivial implementation of a standard library
82376         function.
82377         * modules/poll (License): Change from GPL to LGPL, since it's
82378         derived from LGPL code.
82379
82380 2005-09-27  Jim Meyering  <jim@meyering.net>
82381
82382         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82383         HAVE_CONFIG_H.
82384
82385         * lib/intprops.h (signed_type_or_expr__): Define.
82386         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82387         for unsigned types.
82388
82389 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82390
82391         * lib/verify.h (verify_expr): Remove, replacing with:
82392         (verify_true): New macro that returns true instead of void.
82393         (verify_type__): Remove.
82394         (verify): Use verify_true rather than verify_type__.
82395
82396 2005-09-26  Bruno Haible  <bruno@clisp.org>
82397
82398         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82399         is necessary.
82400         (lib_SOURCES): Remove mbchar.c.
82401         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82402         (Files): Add m4/mbrtowc.m4.
82403         * modules/mbiter: Likewise.
82404         * modules/mbuiter: Likewise.
82405
82406 2005-09-26  Bruno Haible  <bruno@clisp.org>
82407
82408         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82409         compile mbchar.c if they are not both present.
82410         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82411         * m4/mbiter.m4 (gl_MBITER): Likewise.
82412         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82413         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82414         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82415
82416 2005-09-25  Jim Meyering  <jim@meyering.net>
82417
82418         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82419         also uses socklen_t.
82420
82421 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82422
82423         * lib/utimens.c (ENOSYS): Define if not already defined.
82424         (futimens): Support having a null PATH if the file descriptor
82425         is nonnegative.
82426
82427         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82428         Remove.
82429         (__attribute): Define to empty unless GCC 3.1 or later.
82430         This works around a core dump on OpenBSD 3.4, which has GCC
82431         2.95.3, which dumps core when given __attribute__(()).  It also
82432         simplifies other tests, since we really don't want to bother with
82433         worrying about which ancient version of GCC supported what.
82434         Original problem reported by Yoann Vandoorselaere, with part of
82435         the fix suggested by Derek Price.
82436
82437 2005-09-24  Jim Meyering  <jim@meyering.net>
82438
82439         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82440         so we can once again use a positive bitfield width of 1 -- now we
82441         don't have to explain why we were using a bitfield width of 2.
82442
82443 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82444
82445         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82446         and similarly for the other external symbols.  Problem reported
82447         by James Gallager.
82448
82449         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82450         bug reported by Jim Meyering.
82451
82452         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82453         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82454         not needed, since socklen is a prerequisite module.
82455
82456 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82457
82458         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82459         Problem reported by Eric Blake.
82460         (getaddrinfo): Initialize se so that it's not garbage.
82461         Redo internal storage allocation so that it doesn't make unportable
82462         assumptions about alignment.
82463         Fix a memory leak.
82464
82465         * lib/utimens.c (futimens): Use futimesat if available.
82466         Prefer it to futimes since it doesn't have the futimes bug.
82467
82468         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82469         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82470         Instead, declare a function that returns a pointer to an array,
82471         and use verify_type__ to declare the size of the array.
82472         Problem and germ of a solution reported by Bruno Haible.
82473         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82474         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82475
82476 2005-09-23  Jim Meyering  <jim@meyering.net>
82477
82478         Sync from coreutils.
82479         Correct build failure (socklen_t not defined) on at least
82480         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82481         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82482
82483 2005-09-23  Jim Meyering  <jim@meyering.net>
82484
82485         * modules/getaddrinfo (Depends-on): Add socklen.
82486
82487 2005-09-23  Bruno Haible  <bruno@clisp.org>
82488
82489         * tests/test-verify.c: New file.
82490
82491 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82492
82493         Sync from coreutils.
82494
82495         * modules/argmatch (Depends-on): Add verify.
82496         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82497         unistd-safer.
82498         * modules/save-cwd (Depends-on): Likewise.
82499
82500         * modules/openat (Files): Add lib/openat-die.c.
82501         (Depends-on): Remove error, exitfail.
82502         Add dirname.
82503
82504         * modules/verify: New file.
82505         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82506         with "verify" module.
82507
82508 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82509
82510         Sync from coreutils.
82511
82512         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82513         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82514         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82515         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82516         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82517         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82518         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82519         Don't bother checking for string.h, stdlib.h, unistd.h.
82520         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82521         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82522         module's job.
82523         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82524         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82525
82526         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
82527         (gl_GETDATE): Use it.
82528
82529         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
82530
82531 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82532
82533         Sync from coreutils.
82534
82535         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
82536         stat-time.h.
82537         * lib/argmatch.h: Include verify.h
82538         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
82539         (ARGMATCH_ASSERT): Remove; unused.
82540         * lib/canonicalize.c: Assume STDC_HEADERS.
82541         * lib/exclude.c: Include "strcase.h".
82542         * lib/regex_internal.h [!defined _LIBC]: Likewise.
82543         * lib/getusershell.c: Include stdio--.h rather than stdio.h
82544         and stdio-safer.h.
82545         (getusershell): Call fopen, not fopen_safer.
82546         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
82547         Do not include unistd-safer.h.
82548         (save_cwd): Don't call fd_safer; no longer needed
82549         now that we include fcntl--.h.
82550
82551         * lib/getdate.y (relative_time): New type.
82552         (RELATIVE_TIME_0): New constant.
82553         (parser_control): Use relative_time instead of doing it ourselves.
82554         (%union): Add new relative_time rel member.
82555         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
82556         Now typeless.
82557         (relunit, relunit_snumber): Now of type rel.
82558         (zone, rel, relunit, get_date): Adjust to above changes.
82559
82560         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
82561         Do not include unistd-safer.h.
82562         (getloadavg): Don't call fd_safer; no longer needed
82563         now that we include fcntl--.h.
82564
82565         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
82566         (make_dir_parents): Treat ENOSYS like EEXIST.
82567
82568         Improve quality of diagnostics on restore_cwd failure.
82569         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
82570         (make_dir_parents): Last arg is now int * (for errno), not bool *.
82571         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
82572         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
82573         each time through the loop.  Do not diagnose restore_cwd failure;
82574         that is the caller's job (and perhaps the caller does not care).
82575
82576         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
82577         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
82578         If the file already exists but is not a directory, don't bother
82579         to try to make its parents.
82580         Close potential file descriptor leak if we can't chdir("/") (!).
82581         Don't always return true if chdir($PWD) fails; return true only
82582         if the requested action was done successfully (except for the
82583         chdir($PWD)).
82584         Don't log final directory unless we actually made it.
82585         Refactor to avoid duplicate code to fix up permissions.
82586         Don't attempt to fix up parent permissions if chdir($PWD) fails.
82587
82588         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
82589         to make it a bit faster and (I hope) clearer.
82590         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
82591         Fix bug in formats like %2N.
82592
82593         * lib/verify.h: New file.
82594
82595 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82596
82597         Sync from coreutils.
82598         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
82599
82600 2005-09-22  Jim Meyering  <jim@meyering.net>
82601
82602         Sync from coreutils.
82603
82604         * m4/lstat.m4 (gl_FUNC_LSTAT):
82605         Use AC_LIBSOURCES to require lstat.c and lstat.h.
82606         Remove obsolete comment.
82607         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
82608         * m4/xstrtod.m4: Likewise.
82609
82610         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
82611
82612 2005-09-22  Jim Meyering  <jim@meyering.net>
82613
82614         Sync from coreutils.
82615
82616         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
82617
82618         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
82619         the .tm_year member, since otherwise gcc-4.0 would now warn about
82620         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
82621
82622         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
82623         order to avoid an unsuppressible warning from gcc on 64-bit systems.
82624
82625         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
82626         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
82627         when run in a time zone for which daylight savings time is in effect
82628         for the starting date.
82629
82630         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
82631         stop us from restricting permissions of just-created absolute-named
82632         directories.
82633         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
82634         to restore initial working directory.
82635         * lib/mkdir-p.c (make_dir_parents): New parameter:
82636         different_working_dir, to tell caller if/when we change the working
82637         directory and are unable to return to the initial one.
82638         * lib/mkdir-p.h (make_dir_parents): Update prototype.
82639         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
82640         `return false'.  This fixes a bug introduced on 2004-07-30.
82641
82642         * lib/openat.c (fdopendir): Be sure to close the supplied
82643         file descriptor before returning.  This makes our replacement
82644         implementation a little closer to Solaris's, where fdopendir
82645         ties the file descriptor to the returned DIR* pointer.
82646         * lib/openat.c (unlinkat): New function.
82647         * lib/openat.h (unlinkat): Add prototype.
82648         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
82649         (openat_restore_fail): Rename from openat_restore_die.
82650         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
82651
82652         Provide an alternative to exiting immediately upon save_cwd or
82653         restore_cwd failure.  Now, an application can arrange e.g.,
82654         to perform a longjump in that case.
82655         * lib/openat.c: Include dirname.h.
82656         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
82657         (rpl_openat, fdopendir, fstatat): Call openat_save_die
82658         and openat_restore_die rather than calling error directly.
82659         Don't include "error.h" or "exitfail.h"; they're no longer needed.
82660
82661         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
82662         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
82663         define.
82664
82665         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
82666         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
82667                             int utc, int nanoseconds);
82668         Background:
82669         date should not have to allocate a megabyte of virtual memory to
82670         handle a format argument like +%1048575T.  When implemented with
82671         strftime, it must allocate such a buffer, use strftime to fill it
82672         in, print it, then free it.
82673         With fprintftime, it simply prints everything and exits.
82674         With no need for memory allocation, that's one fewer way to fail.
82675         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
82676         optional field width, not before, so we accept %9:z, not %:9z.
82677         (my_strftime): Be sure to use L_('x') for literals.
82678
82679         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
82680         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
82681         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
82682         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
82683         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
82684         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
82685         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
82686         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
82687         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
82688         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
82689         * lib/xgethostname.c, lib/xreadlink.c:
82690         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
82691
82692         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
82693         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
82694         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
82695         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82696         and don't include <sys/file.h>).
82697
82698 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
82699
82700         Sync from coreutils.
82701
82702         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
82703         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
82704         [!LDAV_DONE]: Avoid unused variable warning.
82705
82706 2005-09-21  Bruno Haible  <bruno@clisp.org>
82707
82708         * lib/unicodeio.h (unicode_to_mb): New declaration.
82709
82710 2005-09-20  Derek Price  <derek@ximbiot.com>
82711
82712         * lib/getaddrinfo.c: Don't include <netdb.h> included from
82713         getaddrinfo.h.
82714
82715 2005-09-20  Bruno Haible  <bruno@clisp.org>
82716
82717         * gnulib-tool: Remove trailing slashes from the values specified for
82718         --source-base, --m4-base, --tests-base, --aux-dir.
82719         Suggested by Simon Josefsson <jas@extundo.com>.
82720
82721 2005-09-20  Bruno Haible  <bruno@clisp.org>
82722
82723         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
82724         func_modules_to_filelist, func_import, func_create_testdir): Make all
82725         sorting results locale-independent, so that gnulib-cache.m4 doesn't
82726         change when gnulib-tool is invoked in a different locale.
82727
82728 2005-09-19  Simon Josefsson  <jas@extundo.com>
82729
82730         * m4/socklen.m4: Fix typo.
82731
82732 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82733
82734         Use a consistent style for including <config.h>.
82735         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
82736         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
82737         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
82738         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
82739         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
82740         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
82741         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
82742         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
82743         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
82744         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
82745         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
82746         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
82747         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
82748         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
82749         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
82750         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
82751         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
82752         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
82753         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
82754         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
82755         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
82756         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
82757         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
82758         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
82759         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
82760         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
82761         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
82762         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
82763         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
82764         lib/xstrtoumax.c, lib/yesno.c:
82765         Standardize inclusion of config.h.
82766         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
82767         lib/inttostr.h:  Removed inclusion of config.h from header files.
82768         * lib/inttostr.c:  Adjusted in-tree users.
82769         * lib/timespec.h: Remove superfluous warning to include config.h.
82770         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
82771         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
82772         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
82773         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
82774         config.h with HAVE_CONFIG_H.
82775
82776 2005-09-19  Jim Meyering  <jim@meyering.net>
82777
82778         * modules/pathmax (License): Change to LGPL.
82779
82780 2005-09-19  Derek Price  <derek@ximbiot.com>
82781
82782         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
82783
82784 2005-09-19  Bruno Haible  <bruno@clisp.org>
82785
82786         * gnulib-tool (import): Provide default for --tests-base.
82787
82788 2005-09-19  Bruno Haible  <bruno@clisp.org>
82789
82790         * doc/quote.texi: New file, extracted from gnulib.texi.
82791         * doc/ctime.texi: New file, extracted from gnulib.texi.
82792         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
82793         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
82794         * doc/gnulib.texi: Include them.
82795
82796 2005-09-18  Bruno Haible  <bruno@clisp.org>
82797
82798         Portability fix.
82799         * gnulib-tool (func_readlink): New function.
82800         (func_ln_if_changed): Use it.
82801
82802 2005-09-18  Bruno Haible  <bruno@clisp.org>
82803
82804         * gnulib-tool: Support --with-tests also with --import.
82805         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
82806         (func_import): Use variables $testsbase and $inctests. Emit a
82807         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
82808         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
82809         SUBDIRS += $testsdir.
82810         (func_create_testdir): Update.
82811
82812 2005-09-18  Bruno Haible  <bruno@clisp.org>
82813
82814         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
82815         instead of $dry_run.
82816         (func_cp_if_changed, func_mv_if_changed): Remove functions.
82817         (func_ln_if_changed): Don't handle dry-run here.
82818         (func_import): In dry-run mode, detect more precisely which actions
82819         would be performed, and don't use "...ing" verbs.
82820
82821 2005-09-18  Bruno Haible  <bruno@clisp.org>
82822
82823         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
82824         (func_import): Use join on two temporary files instead of three nested
82825         loops, in order to determine which files are new or old.
82826
82827 2005-09-18  Bruno Haible  <bruno@clisp.org>
82828
82829         * gnulib-tool (func_import): Comment out code that spits out the
82830         new files with --dry-run.
82831
82832 2005-09-18  Bruno Haible  <bruno@clisp.org>
82833
82834         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
82835
82836 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82837
82838         * lib/stat-time.h: New file.
82839         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
82840         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
82841         in a different way.
82842         (timespec_cmp): New function.
82843         * lib/utimecmp.c: Include stat-time.h.
82844         (SYSCALL_RESOLUTION): Depend on whether various struct stat
82845         members exist, not on the obsolescent ST_MTIM_NSEC.
82846         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
82847
82848 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82849
82850         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
82851
82852 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82853
82854         * MODULES.html.sh (File system functions): Add stat-time.
82855         * modules/stat-time: New file.
82856         * modules/timespec (Files): Remove m4/st_mtim.m4; this
82857         is now done in a different way, by the stat-time module.
82858         * modules/utimecmp (Depends-on): Add stat-time.
82859
82860 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
82861
82862         * m4/st_mtim.m4: Remove.  Superseded by...
82863         * m4/stat-time.m4: New file.
82864         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
82865         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
82866
82867 2005-09-15  Derek Price  <derek@ximbiot.com>
82868
82869         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
82870
82871 2005-09-15  Derek Price  <derek@ximbiot.com>
82872
82873         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
82874         * lib/regex_internal.c: Ditto, using this...
82875         (__GNUC_PREREQ): ...new macro.
82876         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
82877         using...
82878         (__GNUC_PREREQ): ...this new macro.
82879
82880         * lib/strstr.h: Include string.h. Define strstr as a macro here.
82881
82882 2005-09-15  Derek Price  <derek@ximbiot.com>
82883             Paul Eggert  <eggert@cs.ucla.edu>
82884
82885         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
82886         changes, consolidating in...
82887         * lib/regex_internal.h: ...this file.
82888
82889 2005-09-13  Jim Meyering  <jim@meyering.net>
82890
82891         * lib/canon-host.c: Filter through gnu indent and reword comments
82892         slightly.
82893         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
82894
82895 2005-09-13  Derek Price  <derek@ximbiot.com>
82896
82897         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
82898         failure.
82899         Reported by Jim Meyering  <jim@meyering.net>.
82900
82901 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82902
82903         * lib/base64.c: Typo.
82904         (base64_encode): Put b64str in initialized data section.
82905
82906 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
82907
82908         Merge glibc and coreutils changes into gnulib, plus a few
82909         extra fixes.
82910         * lib/md5.c: Use #error rather than a string.
82911         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
82912         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
82913         (__attribute__): Define to empty for non recent-GCC.
82914         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
82915         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
82916         Renamed from their non-__ counterparts, with new macros replacing
82917         them if not _LIBC.  Add __THROW attribute.
82918         (rol): Remove.
82919         (struct md5_ctx): Align buffer if using GCC.
82920         * lib/sha1.h (struct sha1_ctx): Likewise.
82921         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
82922         The old name was backwards.
82923         (NOTSWAP): Remove; not used.
82924         (rol): New macro, moved here from md5.h.
82925         (sha1_process_block): Remove a FIXME that doesn't make sense.
82926
82927 2005-09-12  Derek Price  <derek@ximbiot.com>
82928
82929         Return usable errors from canon-host.
82930         * lib/canon-host.h: New file.
82931         * lib/canon-host.c (canon_host): Wrap...
82932         (canon_host_r): ...this new function, which now relies exclusively on
82933         getaddrinfo.
82934         (ch_strerror): New function.
82935         (last_cherror): New global.
82936         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
82937         interface.
82938         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
82939         void *.
82940         (freeaddrinfo): Free ai->ai_canonname when set.
82941
82942 2005-09-12  Derek Price  <derek@ximbiot.com>
82943
82944         Make canon-host require getaddrinfo.
82945         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
82946         AC_LIBSOURCE canon-host.h.  Call...
82947         (gl_PREREQ_CANON_HOST): ...this new function, which requires
82948         gl_GETADDRINFO.
82949         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
82950
82951 2005-09-12  Derek Price  <derek@ximbiot.com>
82952
82953         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
82954         LGPL.
82955         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
82956
82957 2005-09-12  Derek Price  <derek@ximbiot.com>
82958
82959         * lib/gai_strerror.c: Include config.h when available.  Include
82960         getaddrinfo.h before other headers to test interface.
82961         Reported by Larry Jones <lawrence.jones@ugs.com>.
82962
82963 2005-09-12  Derek Price  <derek@ximbiot.com>
82964             Paul Eggert  <eggert@cs.ucla.edu>
82965
82966         * modules/glob (Files): Add glob-libc.h.
82967
82968 2005-09-12  Derek Price  <derek@ximbiot.com>
82969             Paul Eggert  <eggert@cs.ucla.edu>
82970
82971         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
82972         glob_.h, glob-libc.h.
82973         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
82974
82975 2005-09-12  Derek Price  <derek@ximbiot.com>
82976             Paul Eggert  <eggert@cs.ucla.edu>
82977
82978         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
82979         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
82980         protecting things that should be done only in gnulib contexts.
82981         * lib/glob_.h: New file, containing only the glob things needed for
82982         gnulib.
82983         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
82984         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
82985         (glob, globfree, glob_pattern_p): Now defined simply in terms of
82986         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
82987         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
82988         and to respect the namespace rules better.
82989
82990 2005-09-08  Simon Josefsson  <jas@extundo.com>
82991
82992         * modules/socklen: New file.
82993
82994 2005-09-08  Simon Josefsson  <jas@extundo.com>
82995
82996         * m4/socklen.m4: New file.
82997
82998 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82999
83000         * modules/utimens (Files): Add m4/utimbuf.m4, since
83001         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83002         Reported by Sergey Poznyakoff.
83003
83004 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83005
83006         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83007         definitions, since that's the preferred style in glibc.
83008         Fix a minor spacing issue, and update copyright notice to match
83009         glibc's.
83010
83011 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83012
83013         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83014
83015 2005-09-06  Simon Josefsson  <jas@extundo.com>
83016
83017         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83018         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83019
83020 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83021
83022         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83023         warning.
83024
83025 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83026
83027         * config/srclist.txt: Add glibc bug 1302.
83028
83029 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83030
83031         Change bitset word type from unsigned int to unsigned long int,
83032         as this has better performance on typical 64-bit hosts.
83033         Port bitset code to hosts with unusual word sizes.
83034         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83035         (build_collating_symbol):
83036         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83037         argument is a bitset.  This is merely a style issue, but it makes
83038         it clearer that an entire array is expected.
83039         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83040         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83041         Port to the case where bitset_word is not the same as unsigned int.
83042         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83043         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83044         Likewise.
83045         * lib/regexec.c (check_dst_limits_calc_pos_1,
83046         check_subexp_matching_top):
83047         (build_trtable, group_nodes_into_DFAstates):
83048         Likewise.
83049         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83050         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83051         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83052         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83053         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83054         * lib/regcomp.c (optimize_subexps, lower_subexp):
83055         Work even if bitset_word has holes in its bitwise representation.
83056         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83057         * lib/regexec.c (check_dst_limits_calc_pos_1,
83058         check_subexp_matching_top):
83059         Likewise.
83060         * lib/regex_internal.c (re_string_reconstruct):
83061         Don't assume UCHAR_MAX == 255.
83062         * lib/regex_internal.h (bitset_set_all): Likewise.
83063         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83064         All uses changed.
83065         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83066         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83067         All uses changed.
83068         (BITSET_WORD_MAX): New macro.
83069         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83070         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83071         (bitset_empty, bitset_copy):
83072         Prefer sizeof (bitset) to multiplying it out ourselves.
83073         (bitset_not_merge): Remove; unused.
83074         (bitset_contain): Return bool, not unsigned int with one bit on.
83075         All callers changed.
83076         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83077         alignment than re_node_set; do this by defining a new internal
83078         type struct dests_alloc and using it to allocate memory.
83079
83080 2005-09-05  Bruno Haible  <bruno@clisp.org>
83081
83082         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83083         links.
83084
83085 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83086
83087         * modules/size_max (Makefile.am): Add size_max.h
83088
83089 2005-09-04  Derek Price  <derek@ximbiot.com>
83090
83091         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83092
83093 2005-09-03  Simon Josefsson  <jas@extundo.com>
83094
83095         * gnulib-tool: Fix typo.
83096
83097 2005-09-03  Simon Josefsson  <jas@extundo.com>
83098
83099         * config/srclist.txt: Add glibc bug 1293.
83100
83101 2005-09-03  Derek Price  <derek@ximbiot.com>
83102
83103         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83104         From Larry Jones <lawrence.jones@ugs.com>.
83105
83106 2005-09-02  Simon Josefsson  <jas@extundo.com>
83107
83108         * modules/socklen: New file.
83109
83110 2005-09-02  Simon Josefsson  <jas@extundo.com>
83111
83112         * modules/havelib: New module.
83113
83114         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83115         Use havelib.
83116
83117 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83118
83119         Check for arithmetic overflow when calculating sizes, to prevent
83120         some buffer-overflow issues.  These patches are conservative, in the
83121         sense that when I couldn't determine whether an overflow was possible,
83122         I inserted a run-time check.
83123         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83124         macros.
83125         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83126         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83127         (re_xnrealloc, re_x2nrealloc): New inline functions.
83128         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83129         parse_bracket_exp):
83130         (build_equiv_class, build_charclass): Check for arithmetic overflow
83131         in size expression calculations.
83132         * lib/regex_internal.c (re_string_realloc_buffers):
83133         (build_wcs_upper_buffer, re_node_set_add_intersect):
83134         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83135         (re_dfa_add_node, register_state): Likewise.
83136         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83137         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83138         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83139         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83140
83141 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83142
83143         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83144         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83145
83146 2005-09-02  Bruno Haible  <bruno@clisp.org>
83147
83148         Support for lib vs. lib64 distinction on biarch platforms.
83149         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83150         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83151         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83152
83153 2005-09-02  Bruno Haible  <bruno@clisp.org>
83154
83155         * gnulib-tool (import): In the other first-use case, provide defaults
83156         as well.
83157
83158 2005-09-02  Bruno Haible  <bruno@clisp.org>
83159
83160         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83161         patches not yet found in the latest gettext release.
83162
83163 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83164
83165         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83166         to avoid a collision with bits/local_lim.h in glibc.
83167         All uses changed.  Problem reported by Dmitry V. Levin in
83168         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83169
83170         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83171         bugs in int versus size_t comparisons.
83172         (re_string_context_at): Fix bug where the code assumed that
83173         Idx is signed.
83174
83175         Use bool where appropriate.
83176         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83177         All callers changed.
83178         (calc_eclosure_iter): Likewise, for ROOT arg.
83179         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83180         (build_charclass_op): Likewise, for NON_MATCH arg.
83181         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83182         (re_string_construct_common): Likewise, for ICASE arg.
83183         * lib/regexec.c (re_search_2_stub, re_search_stub):
83184         Likewise, for RET_LEN arg.
83185         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83186         (set_regs): Likewise, for FL_BACKTRACK arg.
83187         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83188         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83189         (calc_eclosure_iter, parse_bracket_exp):
83190         Use bool for internal variables that are booleans.
83191         * lib/regexec.c (re_search_internal, check_matching,
83192         proceed_next_node):
83193         (set_regs, build_sifted_states, sift_states_bkref):
83194         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83195         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83196         (find_collation_sequence_value):
83197         Likewise.
83198         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83199         (re_node_set_compare):
83200         Return bool, not int. All callers changed.
83201         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83202         (build_trtable, check_node_accept): Likewise.
83203         * lib/regex_internal.h: Include stdbool.h.
83204
83205         Fix bugs uncovered when converting to bool.
83206         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83207         failure instead of charging ahead blindly.
83208         * lib/regex_internal.c (register_state): Likewise.
83209         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83210         for freeing internal storage.
83211         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83212         bitset pieces used as boolean, to avoid undefined behavior
83213         on hosts that do int overflow checking.
83214
83215 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83216
83217         * config/srclist.txt: Add glibc bugs 1285-1287.
83218
83219 2005-09-01  Jim Meyering  <jim@meyering.net>
83220
83221         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83222         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83223         Require gl_STAT_MACROS, too.
83224
83225 2005-09-01  Bruno Haible  <bruno@clisp.org>
83226
83227         * gnulib-tool (import): In the first-use case, provide defaults.
83228
83229 2005-09-01  Bruno Haible  <bruno@clisp.org>
83230
83231         * gnulib-tool (func_import): Remove the .tmp files.
83232
83233 2005-09-01  Bruno Haible  <bruno@clisp.org>
83234
83235         * gnulib-tool (func_import): Fix handling of symbolic links.
83236
83237 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83238
83239         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83240         old glibc regex code mishandles strings longer than 2**31 bytes.
83241         This patch fixes this when the regex code is used in gnulib
83242         (i.e., outside glibc).
83243
83244         This patch should not affect the use of the regex code inside
83245         glibc.  No doubt this problem also needs to be handled for glibc
83246         as well, but the result will be an incompatible change to the
83247         glibc ABI, and the old ABI will have to be supported too.  That
83248         can be the the subject for another patch.
83249
83250         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83251         governing whether the rest of this patch is active.  By default,
83252         the macro is disabled and the patch has no effect.
83253         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83254         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83255         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83256         (re_match_2, re_set_registers): Use the new types.
83257         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83258         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83259         New macros.
83260         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83261         (re_string_context_at, bin_tree_t, re_dfastate_t):
83262         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83263         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83264         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83265         (re_string_char_size_at, re_string_wchar_at):
83266         (re_string_elem_size_at):
83267         Use the new types and macros to port to 64-bit hosts.
83268         Use unsigned types for internal values, so that the code
83269         mostly works even for arrays larger than SSIZE_MAX.
83270         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83271         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83272         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83273         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83274         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83275         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83276         (calc_inveclosure, parse_dup_op, build_range_exp):
83277         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83278         (fetch_number, create_token_tree, mark_opt_subexp):
83279         Likewise.
83280         * lib/regex_internal.c (re_string_construct_common,
83281         create_ci_newstate):
83282         (create_cd_newstate, re_string_allocate, re_string_construct):
83283         (re_string_realloc_buffers, build_wcs_upper_buffer):
83284         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83285         (re_string_reconstruct, re_string_peek_byte_case):
83286         (re_string_fetch_byte_case, re_string_context_at):
83287         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83288         (re_node_set_init_copy, re_node_set_add_intersect):
83289         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83290         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83291         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83292         (re_acquire_state, re_acquire_state_context, register_state):
83293         Likewise.
83294         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83295         search_cur_bkref_entry):
83296         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83297         (re_search_internal, re_search_2_stub, re_search_stub)
83298         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83299         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83300         (update_cur_sifted_state, check_dst_limits):
83301         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83302         (check_subexp_limits, sift_states_bkref, merge_state_array):
83303         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83304         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83305         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83306         (expand_bkref_cache, check_node_accept_bytes):
83307         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83308         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83309         (acquire_init_state_context, check_halt_node_context):
83310         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83311         (sift_states_backward, clean_state_log_if_needed):
83312         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83313         (find_recover_state, transit_state_sb, transit_state_mb):
83314         (transit_state_bkref, build_trtable, match_ctx_clean):
83315         Likewise.
83316         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83317         to work around an assumption that REG_MISSING is negative.
83318
83319         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83320         (seek_collating_symbol_entry) [defined _LIBC]:
83321         (lookup_collation_sequence_value) [defined _LIBC]:
83322         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83323         Use prototypes rather than old-style function definitions.
83324         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83325         (transit_state_sb) [0]:
83326         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83327
83328         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83329         rm_eo.
83330
83331         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83332         (optimize_subexps, lower_subexp):
83333         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83334         since the signed shift might overflow.  Use 1u<<31 instead.
83335         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83336         Likewise.
83337         * lib/regexec.c (check_dst_limits_calc_pos_1,
83338         check_subexp_matching_top): Likewise.
83339
83340         * lib/regcomp.c (optimize_subexps, lower_subexp):
83341         Use CHAR_BIT rather than 8, for clarity.
83342         * lib/regexec.c (check_dst_limits_calc_pos_1):
83343         (check_subexp_matching_top): Likewise.
83344         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83345         have to worry about portability issues when shifting it left.
83346         Remove no-longer-needed test for table_size > 0.
83347         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83348         in a word, as the resulting behavior is undefined.
83349         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83350         in one case, a <= should have been an <, and in another case the
83351         whole test was missing.
83352         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83353         the standard name CHAR_BIT.
83354         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83355         this is not true on one's complement and signed-magnitude hosts.
83356
83357         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83358         next_last_offset.
83359         (struct re_dfa_t): Remove unused member states_alloc.
83360         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83361
83362 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83363
83364         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83365         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83366         and large-file glibc and in 32-bit large-file Solaris.
83367
83368 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83369
83370         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83371         lengths fit in regoff_t; this isn't true if regoff_t is the same
83372         width as size_t.
83373         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83374         (= START + RANGE) instead of RANGE.  This avoids overflow
83375         problems when regoff_t is the same width as size_t.
83376         All callers changed.
83377         (re_search_2_stub): Check for overflow when adding the
83378         sizes of the two strings.
83379         (re_search_stub): Check for overflow when adding START
83380         to RANGE; if it occurs, substitute the extreme value.
83381
83382 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83383
83384         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83385
83386 2005-08-31  Jim Meyering  <jim@meyering.net>
83387
83388         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83389         a pointer-to-const.
83390         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83391         (register_state): Likewise.
83392         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83393         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83394         (group_nodes_into_DFAstates): Likewise.
83395
83396 2005-08-31  Jim Meyering  <jim@meyering.net>
83397
83398         * check-module: Add a FIXME comment.
83399
83400 2005-08-31  Eric Blake  <ebb9@byu.net>
83401
83402         * modules/unistd-safer (Files): Add unistd--.h.
83403         * modules/stdio-safer (Files): Add stdio--.h.
83404
83405 2005-08-31  Derek Price  <derek@ximbiot.com>
83406
83407         * lib/getdelim.c (getdelim): Return EOF on EOF.
83408         Reported by Larry Jones <lawrence.jones@ugs.com>.
83409
83410 2005-08-31  Bruno Haible  <bruno@clisp.org>
83411
83412         Avoid unnecessary diffs in the generated lib/Makefile.am.
83413         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83414         the generated files.
83415         (func_import): Don't set cmd.
83416
83417 2005-08-31  Bruno Haible  <bruno@clisp.org>
83418
83419         * lib/strstr.c: Include <stddef.h>, for NULL.
83420         * lib/strcasestr.c: Likewise.
83421         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83422
83423 2005-08-31  Bruno Haible  <bruno@clisp.org>
83424
83425         * gnulib-tool: New option --macro-prefix.
83426         (func_import): Use macro_prefix.
83427         (import): Handle option --macro-prefix.
83428
83429 2005-08-31  Bruno Haible  <bruno@clisp.org>
83430
83431         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83432         Also use new variables cached_lgpl, cached_libtool.
83433
83434 2005-08-31  Bruno Haible  <bruno@clisp.org>
83435
83436         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83437         always instantiating them.
83438
83439 2005-08-31  Bruno Haible  <bruno@clisp.org>
83440
83441         * gnulib-tool (func_import): Read the previous cached settings
83442         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83443         earlier added by gnulib but are now dropped. Warn when a gnulib file
83444         overwrites a non-gnulib file.
83445
83446 2005-08-31  Bruno Haible  <bruno@clisp.org>
83447
83448         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83449         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83450         projects that don't keep autogenerated files in CVS. Put into
83451         actioncmd only the specified modules, not the transitive closure.
83452
83453 2005-08-31  Bruno Haible  <bruno@clisp.org>
83454
83455         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83456         Create directories that shall be filled.
83457         (import): Don't look for gl_* macros in configure.ac. Recurse across
83458         all directories containing a gnulib-cache.m4 files, if meaningful.
83459
83460 2005-08-31  Bruno Haible  <bruno@clisp.org>
83461
83462         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83463         (import): Set seen_libtool when we see gl_LIBTOOL.
83464
83465 2005-08-31  Bruno Haible  <bruno@clisp.org>
83466
83467         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83468         declaration macro definitions from generated gnulib.m4.
83469
83470 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83471
83472         * lib/iconvme.h: Add prototype for iconv_alloc.
83473
83474 2005-08-29  Simon Josefsson  <jas@extundo.com>
83475
83476         * lib/iconvme.c: Fix errno.
83477
83478 2005-08-29  Bruno Haible  <bruno@clisp.org>
83479
83480         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83481         that it works when the directory contains spaces.
83482
83483 2005-08-29  Bruno Haible  <bruno@clisp.org>
83484
83485         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83486
83487 2005-08-29  Bruno Haible  <bruno@clisp.org>
83488
83489         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83490         Emit more advice.
83491
83492 2005-08-29  Bruno Haible  <bruno@clisp.org>
83493         and Stepan Kasal  <kasal@ucw.cz>
83494
83495         * check-module: If more parameters are given, check each of them
83496         separately; add more exceptions, as noted by Jim Meyering.
83497         (check_module): New procedure.
83498         (%exempt_header): Now contains all exceptions.
83499
83500 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83501
83502         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83503
83504 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83505
83506         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83507
83508 2005-08-28  Bruno Haible  <bruno@clisp.org>
83509
83510         * m4/gnulib-tool.m4: New file.
83511
83512 2005-08-27  Jim Meyering  <jim@meyering.net>
83513
83514         * modules/unistd-safer (Files): Add pipe-safer.c.
83515         * modules/fcntl-safer (Files): Add creat-safer.c.
83516
83517 2005-08-27  Jim Meyering  <jim@meyering.net>
83518
83519         * m4/stdlib-safer.m4: New file.  From coreutils.
83520         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83521         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83522         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83523         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83524         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83525
83526 2005-08-27  Jim Meyering  <jim@meyering.net>
83527
83528         * lib/fopen-safer.c: Merge minor changes from coreutils.
83529         * lib/dup-safer.c: Likewise.
83530         * lib/fd-safer.c: Likewise.
83531
83532         Merge from coreutils.
83533         * lib/stdio--.h: New file.
83534         * lib/stdlib--.h: New file.
83535         * lib/mkstemp-safer.c: New file.
83536
83537         GNU tar needs these.
83538         * lib/pipe-safer.c: New file.
83539         * lib/creat-safer.c: New file.
83540         * lib/fcntl--.h (creat): Define to creat_safer.
83541         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
83542         * lib/unistd--.h (pipe): Define to pipe_safer.
83543         * lib/unistd-safer.h: Declare pipe_safer.
83544
83545 2005-08-26  Simon Josefsson  <jas@extundo.com>
83546
83547         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
83548         Haible <bruno@clisp.org>.
83549
83550 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
83551
83552         * lib/regex_internal.h: Remove all references to
83553         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
83554         or better.
83555         (bitset_not, bitset_merge, bitset_not_merge):
83556         (bitset_mask, re_string_allocate, re_string_construct):
83557         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
83558         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
83559         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
83560         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
83561         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83562         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83563         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
83564         (re_acquire_state_context):
83565         Remove unnecessary forward decls.
83566         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
83567         Put __attribute at function definition,
83568         now that the function decl has been removed.
83569         * lib/regex_internal.c (re_string_peek_byte_case):
83570         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
83571         Likewise.
83572
83573 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
83574
83575         * m4/regex.m4: Add AC_PREREQ(2.50).
83576         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
83577
83578 2005-08-25  Simon Josefsson  <jas@extundo.com>
83579
83580         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
83581         __fsetlocking.
83582
83583 2005-08-25  Simon Josefsson  <jas@extundo.com>
83584
83585         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
83586         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
83587         GLIBC specific code.
83588
83589 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83590
83591         Make regex safe for g++.  This fixes one real bug (an "err"
83592         that should have been "*err").  g++ problem reported by
83593         Sam Steingold.
83594         * lib/regex_internal.h (re_calloc): New macro, consistent with
83595         re_malloc etc.  All callers of calloc changed to use re_calloc.
83596         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
83597         not int.  All callers changed.
83598         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
83599         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
83600         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
83601         (find_recover_state): Change "err" to "*err"; this fixes what
83602         appears to be a real bug.
83603         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
83604         versus int.
83605
83606 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83607
83608         * modules/regex (Depends-on): Add malloc, since the code
83609         assumes that !malloc(0) means failure.
83610
83611 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83612
83613         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
83614
83615         alloca modernization/simplification for regex.
83616         * lib/regex.c: Remove portability cruft for alloca.  This no longer
83617         needs to be at the start of the file, and can be moved into
83618         regex_internal.h and simplified.
83619         * lib/regex_internal.h: Include <alloca.h>.
83620         (__libc_use_alloca) [!defined _LIBC]: New macro.
83621         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
83622         now works outside glibc.
83623
83624 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83625
83626         * config/srclist.txt: Add glibc bugs 1241, 1245.
83627
83628 2005-08-25  Jim Meyering  <jim@meyering.net>
83629
83630         * lib/open-safer.c: Include <config.h>.
83631         Otherwise, we'd lose LARGEFILE support in any file using
83632         e.g. "fcntl--.h"
83633
83634 2005-08-25  Bruno Haible  <bruno@clisp.org>
83635
83636         * m4/minmax.m4: Require autoconf 2.52.
83637         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
83638         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
83639         alternatives of translit over the alphabet.
83640         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
83641
83642 2005-08-24  Simon Josefsson  <jas@extundo.com>
83643
83644         * tests/test-getpass.c: New file.
83645
83646 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83647
83648         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
83649         for GNU regex features.
83650
83651 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83652
83653         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
83654         * lib/regex.h (regerror): Likewise.
83655
83656         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
83657         requires this.  (The code never needed it.)
83658
83659         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
83660         All uses of recently-renamed identifiers changed to use the new,
83661         POSIX-compliant names.  The code will build and run just fine
83662         without these changes, but it's better to eat our own dog food
83663         and use the standard-conforming names.
83664
83665         * lib/regex.h: Fix a multitude of POSIX name space violations.
83666         These changes have an effect only for programs that define
83667         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
83668         do not change anything for programs compiled in the normal way.
83669         Also, there is no effect on the ABI.
83670
83671         (_REGEX_SOURCE): New macro.
83672         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
83673         defined and _GNU_SOURCE is not; this fixes a name space violation.
83674
83675         Rename the following macros to obey POSIX requirements.
83676         The old names are still visible as macros if _REGEX_SOURCE is defined.
83677         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
83678         RE_BACKSLASH_ESCAPE_IN_LISTS.
83679         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
83680         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
83681         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
83682         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
83683         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
83684         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
83685         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
83686         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
83687         (REG_INTERVALS): renamed from RE_INTERVALS.
83688         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
83689         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
83690         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
83691         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
83692         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
83693         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
83694         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
83695         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
83696         RE_UNMATCHED_RIGHT_PAREN_ORD.
83697         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
83698         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
83699         (REG_DEBUG): renamed from RE_DEBUG.
83700         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
83701         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
83702         unusual, since we can't clash with the POSIX REG_ICASE.
83703         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
83704         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
83705         (REG_NO_SUB): renamed from RE_NO_SUB.
83706         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
83707         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
83708         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
83709         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
83710         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
83711         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
83712         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
83713         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
83714         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
83715         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
83716         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
83717         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
83718         RE_SYNTAX_POSIX_MINIMAL_BASIC.
83719         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
83720         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
83721         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
83722         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
83723         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
83724         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
83725         (REG_FIXED): Renamed from REGS_FIXED.
83726         (REG_NREGS): Renamed from RE_NREGS.
83727
83728         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
83729         of other REG_* macros, since POSIX says the user is allowed to
83730         #undef these macros selectively.
83731
83732         (reg_errcode_t): Update comment stating what other tables need
83733         to be consistent.
83734
83735         Rename the following enum values to obey POSIX requirements.
83736         The old names are still visible as macros.
83737         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
83738         is not defined, since GNU is supposed to be a superset of POSIX as
83739         much as possible, and since we want reg_errcode_t to be a signed
83740         type for implementation consistency.
83741         (_REG_NOERROR): Renamed from REG_NOERROR.
83742         (_REG_NOMATCH): Renamed from REG_NOMATCH.
83743         (_REG_BADPAT): Renamed from REG_BADPAT.
83744         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
83745         (_REG_ECTYPE): Renamed from REG_ECTYPE.
83746         (_REG_EESCAPE): Renamed from REG_EESCAPE.
83747         (_REG_ESUBREG): Renamed from REG_ESUBREG.
83748         (_REG_EBRACK): Renamed from REG_EBRACK.
83749         (_REG_EPAREN): Renamed from REG_EPAREN.
83750         (_REG_EBRACE): Renamed from REG_EBRACE.
83751         (_REG_BADBR): Renamed from REG_BADBR.
83752         (_REG_ERANGE): Renamed from REG_ERANGE.
83753         (_REG_ESPACE): Renamed from REG_ESPACE.
83754         (_REG_BADRPT): Renamed from REG_BADRPT.
83755         (_REG_EEND): Renamed from REG_EEND.
83756         (_REG_ESIZE): Renamed from REG_ESIZE.
83757         (_REG_ERPAREN): Renamed from REG_ERPAREN.
83758         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
83759         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
83760         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
83761         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
83762
83763         (_REG_RE_NAME, _REG_RM_NAME): New macros.
83764         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
83765         changed.  But support the old name if the new one is not defined
83766         and if _REGEX_SOURCE.
83767
83768         Change the following member names in struct re_pattern_buffer.
83769         The old names are still supported if !_REGEX_SOURCE.
83770         The new names are always supported, regardless of _REGEX_SOURCE.
83771         (re_buffer): Renamed from buffer.
83772         (re_allocated): Renamed from allocated.
83773         (re_used): Renamed from used.
83774         (re_syntax): Renamed from syntax.
83775         (re_fastmap): Renamed from fastmap.
83776         (re_translate): Renamed from translate.
83777         (re_can_be_null): Renamed from can_be_null.
83778         (re_regs_allocated): Renamed from regs_allocated.
83779         (re_fastmap_accurate): Renamed from fastmap_accurate.
83780         (re_no_sub): Renamed from no_sub.
83781         (re_not_bol): Renamed from not_bol.
83782         (re_not_eol): Renamed from not_eol.
83783         (re_newline_anchor): Renamed from newline_anchor.
83784
83785         Change the following member names in struct re_registers.
83786         The old names are still supported if !_REGEX_SOURCE.
83787         The new names are always supported, regardless of _REGEX_SOURCE.
83788         (rm_num_regs): Renamed from num_regs.
83789         (rm_start): Renamed from start.
83790         (rm_end): Renamed from end.
83791
83792         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
83793         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
83794         Prepend __ to parameter names.
83795
83796         Undo yesterday's changes.
83797
83798 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83799
83800         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
83801         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
83802         lib/regex.c.
83803
83804 2005-08-24  Jim Meyering  <jim@meyering.net>
83805
83806         Sync from coreutils.
83807         * m4/fcntl-safer.m4: New file.
83808
83809         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
83810         and object files for this module.
83811
83812 2005-08-24  Jim Meyering  <jim@meyering.net>
83813
83814         Sync from coreutils.
83815         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
83816
83817 2005-08-24  Jim Meyering  <jim@meyering.net>
83818
83819         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
83820         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
83821
83822 2005-08-24  Jim Meyering  <jim@meyering.net>
83823
83824         * modules/fcntl-safer: New module.
83825         * modules/fts (Depends-on): Add fcntl-safer.
83826         * MODULES.html.sh (File descriptor based Input/Output):
83827         Add fcntl-safer.
83828
83829 2005-08-24  Bruno Haible  <bruno@clisp.org>
83830
83831         Support for unit test modules.
83832         * modules/README: Mention tests modules.
83833         * modules/TEMPLATE-TESTS: New file.
83834         * gnulib-tool: New options --extract-tests-module, --with-tests and
83835         --tests-base (unused for the moment).
83836         (testsbase, inctests): New variables.
83837         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
83838         (func_verify_module): Exclude TEMPLATE-TESTS.
83839         (func_verify_nontests_module, func_verify_tests_module): New functions.
83840         (func_get_dependencies): Add implicit dependency for tests modules.
83841         (func_get_tests_module): New function.
83842         (func_modules_transitive_closure): When --with-tests was specified,
83843         include the unit tests as well, unless explicitly avoided.
83844         (func_emit_lib_Makefile_am): Ignore the tests modules here.
83845         (func_emit_tests_Makefile_am): New function.
83846         (func_create_testdir): When --with-tests was specified, emit a
83847         tests/ directory.
83848         * MODULES.html.sh (Future developments): Update.
83849
83850 2005-08-24  Bruno Haible  <bruno@clisp.org>
83851
83852         * modules/tls-tests: New file.
83853         * tests/test-tls.c: New file, from GNU gettext.
83854
83855 2005-08-24  Bruno Haible  <bruno@clisp.org>
83856
83857         * modules/lock-tests: New file.
83858         * tests/test-lock.c: New file, from GNU gettext.
83859
83860 2005-08-24  Bruno Haible  <bruno@clisp.org>
83861
83862         * lib/lock.h: Add multiple inclusion guard.
83863         * lib/tls.h: Add multiple inclusion guard.
83864
83865 2005-08-24  Bruno Haible  <bruno@clisp.org>
83866
83867         * gnulib-tool: Add support for the --aux-dir option to
83868         --create-testdir, --create-megatestdir, --test, --megatest.
83869         (func_create_testdir, func_create_megatestdir): Optionally emit a
83870         AC_CONFIG_AUX_DIR directive.
83871         (create-testdir, create-megatestdir, test, megatest): Provide a
83872         default value for $auxdir.
83873
83874 2005-08-24  Bruno Haible  <bruno@clisp.org>
83875
83876         * gnulib-tool (import): Use compound statement instead of subshell
83877         where possible.
83878
83879 2005-08-24  Bruno Haible  <bruno@clisp.org>
83880
83881         * gnulib-tool (import): Change --aux-dir default to "build-aux".
83882
83883 2005-08-24  Bruno Haible  <bruno@clisp.org>
83884
83885         * gnulib-tool (func_version): Update.
83886
83887 2005-08-24  Bruno Haible  <bruno@clisp.org>
83888
83889         * gnulib-tool (func_import, func_create_testdir,
83890         func_create_megatestdir): Quote all autoconf macro arguments.
83891
83892 2005-08-24  Bruno Haible  <bruno@clisp.org>
83893
83894         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
83895         option --force, because --force causes the aclocal.m4 of each
83896         subdirectory to be newer than the corresponding config.h.in.
83897
83898 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83899
83900         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
83901         All contents moved to gl_REGEX.
83902         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
83903         assume that it does.
83904
83905 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83906
83907         * lib/regex.h (REG_NOSYS)
83908         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
83909         Define, since POSIX requires it as of 2001.
83910         (_REG_ENOSYS)
83911         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
83912         New private symbol, used to keep the enum signed in all cases.
83913         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
83914         Youngman in
83915         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
83916
83917         * lib/regex_internal.c (re_string_skip_chars, register_state):
83918         (calc_state_hash):
83919         Remove forward decls; no longer needed now that we use prototypes.
83920         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
83921         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
83922         (clean_state_log_if_needed): Likewise.
83923
83924 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83925
83926         * config/srclist.txt: Add glibc bugs 1231-1233.
83927
83928 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83929
83930         Fix problems reported by Sam Steingold in
83931         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
83932         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
83933         assumed that reg_errcode_t is a signed type, which is not
83934         necessarily true if _XOPEN_SOURCE is not defined.
83935         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
83936         since some compilers warn about it otherwise.
83937
83938 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83939
83940         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
83941         (init_word_char, create_initial_state, duplicate_node_closure):
83942         (fetch_token, peek_token_bracket, build_range_exp):
83943         (build_collating_symbol): Remove forward decls; no longer needed
83944         now that we use prototypes.
83945
83946         * lib/regcomp.c:
83947         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
83948         (re_compile_fastmap_iter, regcomp, regerror, regfree):
83949         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
83950         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
83951         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
83952         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
83953         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
83954         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
83955         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
83956         (build_range_exp, build_collating_symbol, parse_bracket_exp):
83957         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
83958         (build_charclass, build_charclass_op, fetch_number, create_tree):
83959         (create_token_tree, mark_opt_subexp, duplicate_tree):
83960         Use prototypes rather than old-style definitions.
83961
83962         * lib/regex_internal.c:
83963         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
83964         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
83965         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83966         (re_string_reconstruct, re_string_peek_byte_case):
83967         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
83968         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83969         (re_node_set_init_copy, re_node_set_add_intersect):
83970         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83971         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83972         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83973         (re_acquire_state, re_acquire_state_context, register_state):
83974         (create_ci_newstate, create_cd_newstate, free_state):
83975         Likewise.
83976         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
83977         re_search_2):
83978         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
83979         (re_search_internal, prune_impossible_nodes):
83980         (acquire_init_state_context, check_matching, static):
83981         (check_halt_node_context, check_halt_state_context, proceed_next_node):
83982         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
83983         (update_regs, sift_states_backward, build_sifted_states):
83984         (clean_state_log_if_needed, merge_state_array):
83985         (update_cur_sifted_state, add_epsilon_src_nodes):
83986         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
83987         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
83988         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
83989         (find_recover_state, check_subexp_matching_top, transit_state_mb):
83990         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
83991         (check_arrival, check_arrival_add_next_nodes):
83992         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83993         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83994         (check_node_accept_bytes, check_node_accept, extend_buffers):
83995         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
83996         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
83997         (sift_ctx_init):
83998         Likewise.
83999
84000         * lib/regex_internal.h:
84001         (re_string_allocate, re_string_construct, re_string_reconstruct):
84002         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84003         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84004         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84005         (re_string_context_at, re_string_peek_byte_case):
84006         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84007         is defined, since we now use prototypes always.
84008
84009         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84010         C89 or better.  All uses removed.
84011
84012 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84013
84014         * config/srclist.txt: Add glibc bugs 1220-1227.
84015
84016 2005-08-20  Jim Meyering  <jim@meyering.net>
84017
84018         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84019         of unused local, dfa.
84020
84021 2005-08-20  Bruno Haible  <bruno@clisp.org>
84022
84023         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84024
84025 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84026
84027         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84028         (re_node_set_insert_last, re_dfa_add_node):
84029         Rename local variables to avoid GCC shadowing warnings.
84030
84031 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84032
84033         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84034         [defined lint]: Suppress bogus uninitialized-variable warnings.
84035
84036         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84037         and let the caller return REG_ESPACE if out of space.  This
84038         removes an uninitialied-variable warning with GCC 4.0.1, and also
84039         avoids taking the address of a local variable.  All callers
84040         changed.
84041
84042 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84043
84044         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84045         $LIBCSRC/posix/regexec.c.
84046         Add glibc bug 1217 for regcomp.c.
84047
84048 2005-08-19  Jim Meyering  <jim@meyering.net>
84049
84050         * lib/regexec.c (proceed_next_node): Redo local variables to
84051         avoid GCC shadowing warnings.
84052
84053 2005-08-18  Bruno Haible  <bruno@clisp.org>
84054
84055         * lib/strstr.c (strstr): Fix return value in multibyte case.
84056         * lib/strcasestr.c (strcasestr): Likewise.
84057
84058 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84061
84062 2005-08-17  Jim Meyering  <jim@meyering.net>
84063
84064         Make the %s format (seconds since the epoch) work for a negative
84065         number and when used with a zero-padded field width, e.g. %015s.
84066
84067         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84068         label so that it precedes the code to set `digits'.  Otherwise,
84069         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84070         print `00-22'.  Now, it prints `-0022', as it should.
84071
84072 2005-08-17  Bruno Haible  <bruno@clisp.org>
84073
84074         * modules/strstr (Files): Add m4/mbrtowc.m4.
84075         (Depends-on): Add mbuiter.
84076
84077 2005-08-17  Bruno Haible  <bruno@clisp.org>
84078
84079         * modules/strcasestr: New file.
84080         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84081         strcasestr.
84082
84083 2005-08-17  Bruno Haible  <bruno@clisp.org>
84084
84085         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84086
84087 2005-08-17  Bruno Haible  <bruno@clisp.org>
84088
84089         * modules/mbuiter: New file.
84090         * MODULES.html.sh (Extended multibyte and wide character utilities):
84091         Add mbuiter.
84092
84093 2005-08-17  Bruno Haible  <bruno@clisp.org>
84094
84095         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84096         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84097
84098 2005-08-17  Bruno Haible  <bruno@clisp.org>
84099
84100         * m4/strcasestr.m4: New file.
84101
84102 2005-08-17  Bruno Haible  <bruno@clisp.org>
84103
84104         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84105         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84106
84107 2005-08-17  Bruno Haible  <bruno@clisp.org>
84108
84109         * lib/strcasestr.h: New file.
84110         * lib/strcasestr.c: New file.
84111
84112 2005-08-17  Bruno Haible  <bruno@clisp.org>
84113
84114         * lib/strcasecmp.c: Use mbuiter.h.
84115
84116 2005-08-17  Bruno Haible  <bruno@clisp.org>
84117
84118         * lib/mbuiter.h: New file.
84119
84120 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84121
84122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84123         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84124         and gl_GETOPT are both invoked via different paths (as happens
84125         with GNU tar CVS because it uses both argp and getopt), the former
84126         wins.
84127
84128 2005-08-16  Bruno Haible  <bruno@clisp.org>
84129
84130         * modules/tls: New file.
84131         * MODULES.html.sh (Multithreading): Add tls.
84132
84133 2005-08-16  Bruno Haible  <bruno@clisp.org>
84134
84135         * modules/strnlen1: New file.
84136         * MODULES.html.sh (String handling): Add strnlen1.
84137
84138 2005-08-16  Bruno Haible  <bruno@clisp.org>
84139
84140         * modules/strcase (Files): Add m4/mbrtowc.m4.
84141         (Depends-on): Add strnlen1, mbchar.
84142
84143 2005-08-16  Bruno Haible  <bruno@clisp.org>
84144
84145         * modules/mbiter: New file.
84146         * MODULES.html.sh (Extended multibyte and wide character utilities):
84147         Add mbiter.
84148
84149 2005-08-16  Bruno Haible  <bruno@clisp.org>
84150
84151         * modules/mbfile: New file.
84152         * MODULES.html.sh (Extended multibyte and wide character utilities):
84153         Add mbfile.
84154
84155 2005-08-16  Bruno Haible  <bruno@clisp.org>
84156
84157         * modules/mbchar: New file.
84158         * MODULES.html.sh (Extended multibyte and wide character utilities):
84159         New section.
84160
84161 2005-08-16  Bruno Haible  <bruno@clisp.org>
84162
84163         * m4/tls.m4: New file, from GNU gettext.
84164
84165 2005-08-16  Bruno Haible  <bruno@clisp.org>
84166
84167         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84168         always.
84169         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84170
84171 2005-08-16  Bruno Haible  <bruno@clisp.org>
84172
84173         * m4/mbiter.m4: New file.
84174
84175 2005-08-16  Bruno Haible  <bruno@clisp.org>
84176
84177         * m4/mbfile.m4: New file.
84178
84179 2005-08-16  Bruno Haible  <bruno@clisp.org>
84180
84181         * m4/mbchar.m4: New file.
84182
84183 2005-08-16  Bruno Haible  <bruno@clisp.org>
84184
84185         * lib/tls.h: New file, from GNU gettext.
84186         * lib/tls.c: New file, from GNU gettext.
84187
84188 2005-08-16  Bruno Haible  <bruno@clisp.org>
84189
84190         * lib/strnlen1.h: New file.
84191         * lib/strnlen1.c: New file.
84192
84193 2005-08-16  Bruno Haible  <bruno@clisp.org>
84194
84195         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84196         (mbi_init): Update.
84197         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84198         NUL byte, not after it.
84199
84200 2005-08-16  Bruno Haible  <bruno@clisp.org>
84201
84202         * lib/strcase.h (strcasecmp): Add note in comments.
84203         * lib/strncasecmp.c: Use code from strcasecmp.c.
84204         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84205         (strcasecmp): Work correctly in multibyte locales.
84206
84207 2005-08-16  Bruno Haible  <bruno@clisp.org>
84208
84209         * lib/mbiter.h: New file.
84210
84211 2005-08-16  Bruno Haible  <bruno@clisp.org>
84212
84213         * lib/mbfile.h: New file.
84214
84215 2005-08-16  Bruno Haible  <bruno@clisp.org>
84216
84217         * lib/mbchar.h: New file.
84218         * lib/mbchar.c: New file.
84219
84220 2005-08-16  Bruno Haible  <bruno@clisp.org>
84221
84222         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84223         the valid ones. Makes the comparison operations transitive:
84224         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84225         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84226
84227 2005-08-15  Simon Josefsson  <jas@extundo.com>
84228
84229         * modules/ssize_t (License): Change to 'unlimited'.
84230
84231         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84232
84233 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84234
84235         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84236         Add comments for each pending glibc patch.
84237
84238 2005-08-15  Bruno Haible  <bruno@clisp.org>
84239
84240         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84241         __cplusplus is defined.
84242
84243 2005-08-14  Jim Meyering  <jim@meyering.net>
84244
84245         Sync from coreutils.
84246
84247         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84248         Use the hash-table-based cycle-detection code not just when
84249         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84250         Reported by James Youngman in
84251         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84252         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84253         FTS_TIGHT_CYCLE_CHECK.
84254         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84255         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84256         once again.
84257         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84258         * lib/fts.c (fd_safer): Remove decl.
84259         Include fcntl--.h rather than unistd-safer.h
84260         (fts_safe_changedir): Don't call fd_safer; no longer needed
84261         now that we include fcntl--.h.
84262
84263 2005-08-12  Simon Josefsson  <jas@extundo.com>
84264
84265         * modules/getndelim2: Use ssize_t module.
84266         * modules/getnline: Likewise.
84267         * modules/safe-read: Likewise.
84268         * modules/xreadlink: Likewise.
84269
84270         * modules/ssize_t: New file.
84271
84272 2005-08-12  Simon Josefsson  <jas@extundo.com>
84273
84274         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84275
84276 2005-08-12  Simon Josefsson  <jas@extundo.com>
84277
84278         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84279         ssize_t.
84280
84281 2005-08-12  Simon Josefsson  <jas@extundo.com>
84282
84283         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84284         readline, getdelim and check_version.
84285         (Support for systems lacking ISO C 99: Sizes of integer types):
84286         Add size_max.
84287
84288 2005-08-12  Bruno Haible  <bruno@clisp.org>
84289
84290         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84291
84292 2005-08-11  Simon Josefsson  <jas@extundo.com>
84293
84294         * modules/readline: New file.
84295
84296         * modules/strnlen (Files): Add strnlen.h.
84297
84298 2005-08-11  Simon Josefsson  <jas@extundo.com>
84299
84300         * m4/readline.m4: New file.
84301
84302 2005-08-11  Simon Josefsson  <jas@extundo.com>
84303
84304         * lib/readline.h, readline.c: New file.
84305
84306 2005-08-11  Simon Josefsson  <jas@extundo.com>
84307
84308         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84309         gl_AVOID.
84310
84311 2005-08-11  Bruno Haible  <bruno@clisp.org>
84312
84313         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84314
84315 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84316
84317         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84318
84319 2005-08-10  Simon Josefsson  <jas@extundo.com>
84320
84321         * tests/test-iconvme.c: New file.
84322
84323 2005-08-10  Simon Josefsson  <jas@extundo.com>
84324
84325         * m4/strnlen.m4: New file.
84326
84327         * m4/strndup.m4: Don't check for strnlen declaration, done in
84328         strnlen.m4.
84329
84330 2005-08-10  Simon Josefsson  <jas@extundo.com>
84331
84332         * lib/strndup.c: Use strnlen.h.
84333
84334         * lib/strnlen.h: New file.
84335
84336 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84337
84338         * README: Typos.
84339
84340 2005-08-02  Simon Josefsson  <jas@extundo.com>
84341
84342         * modules/readline: New file.
84343
84344 2005-08-02  Simon Josefsson  <jas@extundo.com>
84345
84346         * modules/getdelim: New file.
84347
84348         * modules/getline: Rewrite, don't use getndelim2.
84349
84350 2005-08-02  Simon Josefsson  <jas@extundo.com>
84351
84352         * m4/getline.m4: Separate out getdelim stuff into separate module.
84353
84354         * m4/getdelim.m4: New file.
84355
84356 2005-08-02  Simon Josefsson  <jas@extundo.com>
84357
84358         * lib/getline.h, getline.c: Rewrite.
84359
84360         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84361
84362 2005-07-31  Bruno Haible  <bruno@clisp.org>
84363
84364         * lib/lock.h (gl_lock_initializer): New macro.
84365         (gl_lock_define_initialized): Use it.
84366         (gl_rwlock_initializer): New macro.
84367         (gl_rwlock_define_initialized): Use it.
84368         (gl_recursive_lock_initializer): New macro.
84369         (gl_recursive_lock_define_initialized): Use it.
84370
84371 2005-07-30  Karl Berry  <karl@gnu.org>
84372
84373         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84374         Report from Ben Pfaff, regarding getopt.
84375
84376 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84377
84378         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84379         normal way.
84380         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84381         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84382         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84383         (gl_GETOPT): Use the new macros.  Most of the implementation
84384         is moved to the new macros.  This is for programs like Emacs
84385         that don't want all the functionality of gl_GETOPT.
84386
84387 2005-07-26  Bruno Haible  <bruno@clisp.org>
84388
84389         * m4/lock.m4: Update from GNU gettext.
84390
84391 2005-07-26  Bruno Haible  <bruno@clisp.org>
84392
84393         * lib/lock.h: Update from GNU gettext.
84394         * lib/lock.c: Update from GNU gettext.
84395
84396 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84399         obsolescent AC_TRY_RUN.  Include the default includes files, for
84400         'exit'.
84401
84402 2005-07-24  Bruno Haible  <bruno@clisp.org>
84403
84404         * modules/visibility: New file.
84405         * MODULES.html.sh (Misc): Add visibility.
84406
84407 2005-07-24  Bruno Haible  <bruno@clisp.org>
84408
84409         * m4/visibility.m4: New file.
84410
84411 2005-07-24  Bruno Haible  <bruno@clisp.org>
84412
84413         * doc/visibility.texi: New file.
84414
84415 2005-07-22  Bruno Haible  <bruno@clisp.org>
84416
84417         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84418         $(ALLOCA_H), redundant through BUILT_SOURCES.
84419         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84420         redundant through BUILT_SOURCES.
84421         * modules/byteswap (Makefile.am): Remove explicit dependency on
84422         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84423         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84424         $(FNMATCH_H), redundant through BUILT_SOURCES.
84425         * modules/getopt (Makefile.am): Remove explicit dependency on
84426         $(GETOPT_H), redundant through BUILT_SOURCES.
84427         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84428         redundant through BUILT_SOURCES.
84429         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84430         redundant through BUILT_SOURCES.
84431         * modules/stdbool (Makefile.am): Remove explicit dependency on
84432         $(STDBOOL_H), redundant through BUILT_SOURCES.
84433         * modules/stdint (Makefile.am): Remove explicit dependency on
84434         $(STDINT_H), redundant through BUILT_SOURCES.
84435         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84436         Remove explicit dependency on $(SYSEXITS_H).
84437         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84438
84439 2005-07-18  Simon Josefsson  <jas@extundo.com>
84440
84441         * lib/check-version.c (check_version): Accept identical versions too.
84442
84443 2005-07-18  Bruno Haible  <bruno@clisp.org>
84444
84445         * modules/lock: New file.
84446         * MODULES.html.sh (Multithreading): New section.
84447
84448 2005-07-18  Bruno Haible  <bruno@clisp.org>
84449
84450         * m4/lock.m4: New file, from GNU gettext.
84451
84452 2005-07-18  Bruno Haible  <bruno@clisp.org>
84453
84454         * lib/lock.h: New file, from GNU gettext.
84455         * lib/lock.c: New file, from GNU gettext.
84456
84457 2005-07-18  Bruno Haible  <bruno@clisp.org>
84458
84459         * lib/lock.h (gl_once_t): New type.
84460         (gl_once_define, gl_once): New macros.
84461         * lib/lock.c (fresh_once): New variable.
84462         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84463         functions.
84464
84465 2005-07-16  Simon Josefsson  <jas@extundo.com>
84466
84467         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84468         workaround, suggested by Bruno.
84469
84470 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84471
84472         * modules/xalloc (Depends-on): Add xalloc-die.
84473         * modules/xvasprintf (Depends-on): Add xalloc-die.
84474
84475 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84476
84477         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84478         with a minor change.
84479
84480 2005-07-15  Bruno Haible  <bruno@clisp.org>
84481
84482         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84483         When using lib/poll.c, define poll as rpl_poll.
84484
84485 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84486
84487         * modules/argp (Depends-on): Remove unlocked-io.
84488
84489 2005-07-14  Derek Price  <derek@ximbiot.com>
84490
84491         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84492         for glob symlink bug.
84493
84494 2005-07-14  Bruno Haible  <bruno@clisp.org>
84495
84496         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84497         Instead, test for *_unlocked function declarations directly.
84498
84499 2005-07-11  Simon Josefsson  <jas@extundo.com>
84500
84501         * modules/size_max: New file.
84502
84503         * modules/xsize: Depend on size_max module for size_max.m4.
84504
84505 2005-07-11  Simon Josefsson  <jas@extundo.com>
84506
84507         * lib/size_max.h: New file.
84508
84509 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84510
84511         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84512         copyright symbol and the year.
84513         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84514         (version_etc_va): Use parameterized copyright notice.
84515         Reword to conform to the current GNU coding standards.
84516
84517 2005-07-11  Karl Berry  <karl@gnu.org>
84518
84519         * doc/gnulib.texi (Quoting): new node.
84520         (Initial import): more info, from Patrice.
84521
84522 2005-07-11  Bruno Haible  <bruno@clisp.org>
84523
84524         * gnulib-tool (func_usage): Document option --avoid.
84525         (Command line options): Handle --avoid.
84526         (func_acceptable): New function.
84527         (func_modules_transitive_closure): Use it.
84528
84529 2005-07-11  Bruno Haible  <bruno@clisp.org>
84530
84531         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
84532         Reported by Jim Meyering.
84533
84534 2005-07-10  Bruno Haible  <bruno@clisp.org>
84535
84536         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
84537         Needed when size_t is smaller than 'unsigned int'.
84538         Reported by Paul Eggert.
84539
84540 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84541
84542         * modules/argp (Depends-on): Add unlocked-io
84543
84544 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84545
84546         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
84547         block of defines.
84548
84549 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
84550
84551         * config/srclist.txt: Comment out regcomp.c, since we have a porting
84552         fix now.
84553
84554 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
84555         and Paul Eggert  <eggert@cs.ucla.edu>
84556
84557         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
84558         in wint_t, not wchar_t.  Remove now-unnecessary cast.
84559
84560 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84561
84562         * modules/regex (Files): Add lib/regex_internal.c,
84563         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
84564         (Depends-on): Add extensions.
84565         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
84566
84567 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84568
84569         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
84570         pathconf.
84571         * m4/same.m4 (gl_SAME): Likewise.
84572         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
84573
84574         * m4/regex.m4: Adjust to new libc regex implementation.
84575         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
84576         all the .c and .h parts of (the new) regex.
84577         Quote the m4 stuff better.
84578         Check for RE_ICASE bug of old gnulib.
84579         Check for REG_STARTEND of recent libc.
84580         Rename local variables from jm_* to gl_*.
84581         Quote operand of "test -f".
84582         Say "recent enough" version of libc, not "version 2".
84583         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
84584         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
84585         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
84586         Remove check for btowc, isascii.
84587         Require AM_LANGINFO_CODESET.
84588
84589 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84590
84591         * lib/regex.c, regex.h: Sync from libc.
84592         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
84593         * lib/regexec.c:
84594         New files, synced from libc, except that regex_internal.h
84595         currently has a small porting fix.
84596
84597 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84598
84599         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
84600         regex_internal.c, regexec.c.
84601         Add regex_internal.h too, but as a comment, since the libc version
84602         is currently broken in gnulib mode.
84603
84604 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         Support programs like Emacs that use gnulib but not gettext.
84607         * MODULES.html.sh (Internationalization functions): Add gettext-h.
84608         * modules/gettext-h: New file.
84609         * modules/gettext (Files): Remove lib/gettext.h.
84610         (Depends-on): Add gettext-h.
84611         (Makefile.am): Remove lib_SOURCES.
84612         * modules/argmatch, modules/c-stack, modules/closeout:
84613         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
84614         * modules/execute, modules/file-type, modules/getaddrinfo:
84615         * modules/getopt, modules/human, modules/javacomp:
84616         * modules/javaexec, modules/mkdir-p, modules/obstack:
84617         * modules/openat, modules/pagealign_alloc, modules/pipe:
84618         * modules/quotearg, modules/regex, modules/rpmatch:
84619         * modules/unicodeio, modules/userspec, modules/version-etc:
84620         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
84621         * modules/xsetenv:
84622         Depend on gettext-h, not gettext.
84623
84624 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
84625
84626         * gnulib-tool (func_import): Add support for 'public domain' license.
84627         * modules/alloca, modules/atexit, modules/memmove:
84628         Now public domain, not GPL.
84629         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
84630         * modules/realloc, modules/strerror, modules/strtod:
84631         Now LGPL, not GPL.
84632
84633 2005-07-05  Bruno Haible  <bruno@clisp.org>
84634
84635         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
84636         autoconf CVS. Needed for mingw.
84637
84638 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84639
84640         Remove the dependency of the strftime module on the tzset module.
84641         * modules/strftime (Depends-on): Remove dependency on tzset.
84642
84643 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84644
84645         Remove the dependency of the strftime module on the tzset module.
84646         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
84647         gl_FUNC_TZSET_CLOBBER.
84648
84649 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84650
84651         Remove the dependency of the strftime module on the tzset module.
84652         * lib/strftime.c (my_strftime)
84653         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
84654         Copy the input structure, to work around some of the bug with
84655         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
84656         Solaris releases, you should also use the tzset module, but we won't
84657         require it as a dependency any more since we don't want LGPLed code
84658         to depend on GPLed code.
84659
84660 2005-07-02  Jim Meyering  <jim@meyering.net>
84661
84662         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
84663         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
84664         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
84665         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
84666
84667 2005-07-02  Jim Meyering  <jim@meyering.net>
84668
84669         * lib/backupfile.c (backup_args): Change a `0' to NULL.
84670
84671 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
84672
84673         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
84674         declares only 'struct timespec;' (!).
84675
84676 2005-07-01  Jim Meyering  <jim@meyering.net>
84677
84678         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
84679         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
84680         * lib/save-cwd.c, tempname.c:
84681         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84682         and don't include <sys/file.h>).
84683
84684 2005-06-29  Jim Meyering  <jim@meyering.net>
84685
84686         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
84687         type name.  Use the variable name instead.
84688         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
84689         Likewise.
84690
84691 2005-06-28  Simon Josefsson  <jas@extundo.com>
84692
84693         * modules/check-version (Files): Add check-version.m4.
84694
84695 2005-06-28  Simon Josefsson  <jas@extundo.com>
84696
84697         * m4/check-version.m4: New file, suggested by Jim Meyering
84698         <jim@meyering.net>.
84699
84700 2005-06-28  Simon Josefsson  <jas@extundo.com>
84701
84702         * lib/check-version.h, lib/check-version.c: New files.
84703
84704 2005-06-28  Simon Josefsson  <jas@extundo.com>
84705
84706         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
84707         collision with global variable.  Better indentation.  Don't
84708         increment buffer pointer beyond buffer end.  Based on comments
84709         from Paul Eggert <eggert@cs.ucla.edu>.
84710
84711         * lib/base64.h: Indent.
84712
84713 2005-06-28  Simon Josefsson  <jas@extundo.com>
84714
84715         * doc/gnulib.texi (Library version handling): New section.
84716
84717 2005-06-28  Jim Meyering  <jim@meyering.net>
84718
84719         * check-module (find_included_lib_files): Hard-code another
84720         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
84721         but modules/fts-lgpl (correctly) does not list those files.
84722
84723         * modules/canonicalize (Files): Add lib/pathmax.h.
84724
84725 2005-06-25  Simon Josefsson  <jas@extundo.com>
84726
84727         * modules/check-version: New file.
84728
84729 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
84730
84731         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
84732         initializer of struct addrinfo, as an indication that we don't
84733         care how many members the structure has.
84734
84735 2005-06-24  Derek Price  <derek@ximbiot.com>
84736         and Bruno Haible  <bruno@clisp.org>
84737
84738         Remove stat module & update lstat.
84739         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
84740         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84741         * m4/stat.m4: Remove this file.
84742
84743 2005-06-24  Derek Price  <derek@ximbiot.com>
84744         and Bruno Haible  <bruno@clisp.org>
84745
84746         Remove stat module & update lstat.
84747         * lib/stat.c: Remove this file...
84748         (slash_aware_lstat): ...moving this content and its support...
84749         * lib/lstat.c (rpl_lstat): ...into here.
84750         * lib/lstat.h: New file.
84751
84752 2005-06-24  Derek Price  <derek@ximbiot.com>
84753         and Bruno Haible  <bruno@clisp.org>
84754
84755         Remove stat module & update lstat.
84756         * config/srclist.txt (libc sources): Remove stat.
84757
84758 2005-06-24  Derek Price  <derek@ximbiot.com>
84759         and Bruno Haible  <bruno@clisp.org>
84760
84761         Remove stat module & update lstat.
84762         * MODULES.html.sh (stat): Remove.
84763         * MODULES.html: Regenerated.
84764         * modules/lstat (Description): Correct function name.
84765         (Files): Add "lstat.h".
84766         (Depends-on): Remove stat, add xalloc, stat-macros.
84767         * modules/stat: Remove this file.
84768         (Include): Add "lstat.h", remove <sys/stat.h>.
84769
84770 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84771
84772         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
84773         (ranged_convert): Don't save conversion in a temporary struct.
84774         This causes a warning with GCC 4.0.0, and anyway in the typical
84775         case it's not worth the extra 100 bytes or so of code.
84776         (ranged_convert, __mktime_internal): When calling a function via a
84777         pointer P, use P () rather than (*P) (), as we now assume C89 or
84778         better.
84779
84780 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84781
84782         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
84783         "who -r" failed to give output.  Problem reported by Tim Waugh.
84784
84785         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
84786         (xcalloc): Use it to avoid needless tests.
84787         Problem reported by Jim Meyering.
84788
84789 2005-06-20  Derek Price  <derek@ximbiot.com>
84790
84791         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
84792         unnecessary for Autoconfs > 2.59c.
84793
84794 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84795
84796         * lib/argp.h (__option_is_short): Check upper limit of
84797         __key. Isprint() requires its argument to have the value
84798         of an unsigned char or EOF.
84799
84800 2005-06-16  Jim Meyering  <jim@meyering.net>
84801
84802         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
84803         when either N or S is zero.
84804
84805 2005-06-16  Derek Price  <derek@ximbiot.com>
84806
84807         * m4/bison.m4: Declare YACC & YFLAGS precious.
84808
84809 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
84810
84811         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
84812         multibyte string or pattern, fall back on unibyte matching.
84813         Problem reported by James Youngman.
84814
84815 2005-06-08  Bruno Haible  <bruno@clisp.org>
84816
84817         * modules/csharpcomp: New file.
84818         * MODULES.html.sh (C#): Add csharpcomp.
84819
84820 2005-06-08  Bruno Haible  <bruno@clisp.org>
84821
84822         * m4/csharpcomp.m4: New file, from GNU gettext.
84823
84824 2005-06-08  Bruno Haible  <bruno@clisp.org>
84825
84826         * lib/csharpcomp.h: New file, from GNU gettext.
84827         * lib/csharpcomp.c: New file, from GNU gettext.
84828         * lib/csharpcomp.sh.in: New file, from GNU gettext.
84829
84830 2005-06-08  Bruno Haible  <bruno@clisp.org>
84831
84832         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
84833         warning on mingw.
84834
84835 2005-06-07  Derek Price  <derek@ximbiot.com>
84836
84837         Sync from CVS.
84838         * lib/glob_.h: Indent nested #ifdef.
84839
84840 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84841
84842         Sync from coreutils.
84843         Use "file name" when talking about file names, instead of "filename"
84844         or "path", as per the GNU coding standards.
84845         * lib/mkdir-p.c: Renamed from makepath.c.
84846         (make_dir_parents): Renamed from make_path.  All callers changed.
84847         * lib/mkdir-p.h: Likewise.  All includers changed.
84848         * lib/filenamecat.c: Renamed from path-concat.c.
84849         (file_name_concat): Renamed from path_concat.  All callers changed.
84850         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
84851         * lib/filenamecat.h: Likewise.  All includers changed.
84852         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
84853         in comments or local variable names.
84854         * lib/basename.c: Likewise.
84855         * lib/canonicalize.c, canonicalize.h: Likewise.
84856         * lib/dirname.c, dirname.h: Likewise.
84857         * lib/euidaccess.c: Likewise.
84858         * lib/exclude.c: Likewise
84859         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
84860         * lib/fsusage.c, fsuage.h: Likewise.
84861         * lib/fts.c, fts_.h: Likewise.
84862         * lib/getcwd.c: Likewise.
84863         * lib/getloadavg.c: Likewise.
84864         * lib/mkstemp.c: Likewise.
84865         * lib/mountlist.c, mountlist.h: Likewise.
84866         * lib/openat.c, openat.h: Likewise.
84867         * lib/readlink-stub.c: Likewise.
84868         * lib/readutmp.c, readutmp.h: Likewise.
84869         * lib/rename.c: Likewise.
84870         * lib/rmdir.c: Likewise.
84871         * lib/same.c: Likewise.
84872         * lib/savedir.c: Likewise.
84873         * lib/stripslash.c: Likewise.
84874         * lib/tempname.c: Likewise.
84875         * lib/xreadlink.c: Likewise.
84876         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
84877         All uses changed.
84878         * lib/exclude.h: Likewise.
84879
84880         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
84881         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84882         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
84883         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84884         * lib/pathmax.h: Include <limits.h> unconditionally, since other
84885         files have been getting away with it for years (MORE/BSD 4.3
84886         is extinct now).
84887         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
84888         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84889
84890         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
84891         Define to 256, not 255, as per modern POSIX.
84892
84893 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84894
84895         Sync from coreutils.
84896         Use "file name" when talking about file names, instead of "filename"
84897         or "path", as per the GNU coding standards.
84898         * MODULES.html.sh: mkdir-p renamed from makepath.
84899         filenamecat renamed from path-concat.
84900         * modules/filenamecat: Renamed from modules/path-concat.
84901         (Files): filenamecat.h and filenamecat.c renamed from
84902         path-concat.h and path-concat.c.
84903         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
84904         (Include): filenamecat.h, not path-concat.h.
84905         * modules/mkdir-p: Renamed from modules/makepath.
84906         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
84907         makepath.c.
84908         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
84909         (Include): mkdir-p.h, not makepath.h.
84910
84911 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84912
84913         Sync from coreutils.
84914         * m4/mkdir-p.m4: Renamed from makepath.m4.
84915         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
84916         Rename files from makepath.c to mkdir-p.c, and from
84917         makepath.h to mkdir-p.h.
84918         * m4/filenamecat.m4: Renamed from path-concat.m4.
84919         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
84920         Rename files from path-concat.c to filenamecat.c,
84921         and from path-concat.h to filenamecat.h.
84922         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
84923         "file name" in local variables or comments.
84924         * m4/rename.m4: Likewise.
84925
84926 2005-06-01  Bruno Haible  <bruno@clisp.org>
84927
84928         * modules/csharpexec: New file.
84929         * MODULES.html.sh (C#): New section.
84930
84931 2005-06-01  Bruno Haible  <bruno@clisp.org>
84932
84933         * m4/csharp.m4: New file, from GNU gettext.
84934         * m4/csharpexec.m4: New file, from GNU gettext.
84935
84936 2005-06-01  Bruno Haible  <bruno@clisp.org>
84937
84938         * lib/csharpexec.h: New file, from GNU gettext.
84939         * lib/csharpexec.c: New file, from GNU gettext.
84940         * lib/csharpexec.sh.in: New file, from GNU gettext.
84941
84942 2005-05-31  Derek Price  <derek@ximbiot.com>
84943             Paul Eggert  <eggert@cs.ucla.edu>
84944
84945         Sync from cvs.
84946         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84947
84948 2005-05-31  Derek Price  <derek@ximbiot.com>
84949             Paul Eggert  <eggert@cs.ucla.edu>
84950
84951         Sync from cvs.
84952         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84953
84954 2005-05-29  Derek Price  <derek@ximbiot.com>
84955
84956         * config/srclist.txt (glob_.h, glob.c): Add these files.
84957
84958 2005-05-29  Derek Price  <derek@ximbiot.com>
84959
84960         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
84961         * modules/glob: New file.
84962         * modules/getlogin_r: Add link to POSIX spec in description.
84963
84964 2005-05-29  Derek Price  <derek@ximbiot.com>
84965             Paul Eggert  <eggert@cs.ucla.edu>
84966
84967         * m4/glob.m4: New file.
84968
84969 2005-05-29  Derek Price  <derek@ximbiot.com>
84970             Paul Eggert  <eggert@cs.ucla.edu>
84971
84972         * lib/glob_.h, lib/glob.c: New files.
84973
84974 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84975
84976         * modules/fts (Files): Remove m4/inttypes-pri.m4.
84977         * modules/fts-lgpl (Depends-on): Remove gettext.
84978
84979 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84980
84981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
84982         and don't require gt_INTTYPES_PRI.
84983
84984 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84985
84986         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
84987
84988         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
84989         the configuration hassle isn't worth it.
84990         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
84991         (LONGEST_MODIFIER, PRIuMAX): Remove.
84992
84993 2005-05-27  Bruno Haible  <bruno@clisp.org>
84994
84995         * lib/getlogin_r.h: Remove second include of <stddef.h>.
84996
84997 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
84998
84999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85000         _POSIX_PTHREAD_SEMANTICS for Solaris.
85001
85002 2005-05-25  Derek Price  <derek@ximbiot.com>
85003
85004         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85005
85006 2005-05-25  Derek Price  <derek@ximbiot.com>
85007             Paul Eggert  <eggert@cs.ucla.edu>
85008
85009         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85010         * lib/getlogin_r.c, getlogin_r.h: New files.
85011
85012 2005-05-25  Bruno Haible  <bruno@clisp.org>
85013             Derek Price  <derek@ximbiot.com>
85014
85015         * lib/getlogin_r.h: Simplify API documentation.
85016
85017 2005-05-23  Derek Price  <derek@ximbiot.com>
85018
85019         * modules/minmax (Files): Add m4/minmax.m4.
85020         (configure.ac): Add gl_MINMAX.
85021
85022 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85023
85024         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85025         so that unistd-safer.h (GPL'ed code) need not be included.
85026
85027 2005-05-22  Bruno Haible  <bruno@clisp.org>
85028
85029         * m4/minmax.m4: New file.
85030         Based on a patch by Derek Price <derek@ximbiot.com>.
85031
85032 2005-05-22  Bruno Haible  <bruno@clisp.org>
85033
85034         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85035         (INT64_MIN): Fix definition.
85036         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85037
85038         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85039         NEED_SIGNED_INT_TYPES.
85040
85041         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85042         HAVE_SYSTEM_INTTYPES.
85043
85044 2005-05-22  Bruno Haible  <bruno@clisp.org>
85045
85046         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85047         Also include <sys/param.h> if it defines MIN, MAX.
85048         Based on a patch by Derek Price <derek@ximbiot.com>.
85049
85050 2005-05-21  Jim Meyering  <jim@meyering.net>
85051
85052         * modules/fts (Files): Add m4/inttypes-pri.m4.
85053         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85054
85055 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85056
85057         New fts module.
85058         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85059         (setup_dir, free_dir): New functions.
85060         (enter_dir, leave_dir): Define trivial
85061         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85062         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85063         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85064         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85065         Move to fts-cycle.c.
85066         (fts_open): Use setup_dir.
85067         (fts_close): Use free_dir.
85068         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85069         This adds a label and some gotos, but the alternatives were messier.
85070         Check for memory allocation failure when entering a dir.
85071         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85072         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85073         (FTS): New member fts_cycle, that is a union that contains the
85074         old active_dir_ht and cycle_state.  All uses changed to mention
85075         fts_cycle.ht and fts_cycle.state.
85076         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85077         fts.c, with the following changes:
85078         (setup_dir, free_dir): New functions.
85079         (enter_dir): Now returns bool.  Return true if successful, false
85080         if memory exhausted.  All callers changed.
85081         Do not bother partly cleaning up on
85082         memory allocation failure; that is free_dir's job.
85083         However, free ad if hash_insert fails, to avoid memory leak.
85084         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85085         fts->fts_options to see which union member to use.
85086
85087 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85088
85089         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85090         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85091
85092 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85093
85094         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85095
85096 2005-05-20  Jim Meyering  <jim@meyering.net>
85097
85098         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85099         Now a macro, to pacify GCC.
85100
85101 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85102
85103         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85104         of -1.
85105
85106 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85107
85108         * lib/chown.c (rpl_chown): Return -1 on failure.
85109
85110 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85111
85112         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85113         Don't check for stddef.h.
85114         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85115         don't use its results.
85116         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85117         since we include them unconditionally.  Don't require
85118         AM_STDBOOL_H, since stdbool is a prerequisite.
85119         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85120         since we assume C89 or better.
85121         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85122         as we don't use their results.
85123         Don't check for fchdir, memmove, memset, strrchr, as we use
85124         them unconditionally.
85125         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85126         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85127
85128 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85129
85130         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85131         Include <stddef.h> unconditionally, since we assume C89 now.
85132         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85133         * lib/fts.c: Include fts_.h first, to check interface.
85134         Do not include intprops.h; no longer needed.
85135         Include cycle-check.h and hash.h, since fts_.h no longer does.
85136         Remove unnecessary casts of closedir to void.
85137         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85138         decide whether to decrement nlinks.
85139         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85140         (FTS): Use struct hash_table * instead of Hash_table, so that
85141         we no longer need to include hash.h here.
85142
85143 2005-05-18  Jim Meyering  <jim@meyering.net>
85144
85145         * modules/dirfd (License): Change to LGPL.  Most of the code
85146         is already in the public domain.
85147
85148 2005-05-18  Jim Meyering  <jim@meyering.net>
85149
85150         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85151         Reported by Yoann Vandoorselaere.
85152
85153 2005-05-17  Jim Meyering  <jim@meyering.net>
85154
85155         * m4/fts.m4: New file, from coreutils.
85156
85157 2005-05-17  Jim Meyering  <jim@meyering.net>
85158
85159         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85160
85161 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85162
85163         Sync from coreutils.
85164         * m4/unlinkdir.m4: New file.
85165
85166 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85167
85168         Sync from coreutils.
85169         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85170         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85171         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85172         White space changes only.
85173         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85174         special.
85175         * lib/yesno.c: Include getline.h, not ctype.h.
85176         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85177         Use getline to remove arbitrary restriction on response length.
85178
85179 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85180
85181         * config/srclist-update: Spell out "Street" in FSF postal
85182         mail address; this is the style the FSF seems to prefer.
85183
85184         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85185         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85186         this updates FSF postal mail address.
85187
85188         Sync from coreutils.
85189         * modules/unlinkdir: New file.
85190         * modules/yesno (Depends-on): Add getline.
85191         * MODULES.html.sh (File system functions): Add unlinkdir.
85192
85193 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85194
85195         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85196         lib/strsep.h:
85197         Change the initial comment to refer to GPL, not LGPL.
85198         gnulib-tool will change it to LGPL as needed.
85199
85200         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85201         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85202         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85203         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85204         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85205         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85206         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85207         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85208         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85209         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85210         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85211         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85212         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85213         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85214         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85215         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85216         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85217         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85218         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85219         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85220         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85221         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85222         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85223         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85224         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85225         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85226         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85227         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85228         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85229         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85230         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85231         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85232         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85233         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85234         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85235         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85236         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85237         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85238         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85239         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85240         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85241         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85242         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85243         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85244         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85245         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85246         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85247         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85248         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85249         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85250         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85251         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85252         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85253         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85254         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85255         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85256         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85257         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85258         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85259         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85260         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85261         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85262         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85263         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85264         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85265         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85266         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85267         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85268         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85269         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85270         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85271         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85272         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85273         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85274         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85275         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85276         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85277         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85278         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85279         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85280         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85281         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85282         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85283         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85284         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85285         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85286         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85287         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85288         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85289         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85290         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85291         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85292         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85293         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85294         lib/yesno.c, lib/yesno.h:
85295         Update FSF postal mail address.
85296
85297 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85298
85299         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85300         tests/test-memmem.c, tests/test-stpncpy.c:
85301         Update FSF postal mail address.
85302
85303 2005-05-13  Bruno Haible  <bruno@clisp.org>
85304
85305         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85306         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85307         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85308         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85309         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85310         Add support for 64-bit integers in the MSVC compiler.
85311
85312 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85313
85314         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85315
85316 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85317
85318         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85319
85320 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85321
85322         * doc/getdate.texi (General date syntax): Don't say that date
85323         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85324         Problem reported by Nic Ferrier.
85325
85326 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85327
85328         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85329         specified in ai_socktype. Fix invalid ai_protocol
85330         check. ai_protocol is usually set to 0 or depending on
85331         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85332         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85333         ai_socktype / ai_protocol in the returned addrinfo structure.
85334
85335 2005-05-10  Simon Josefsson  <jas@extundo.com>
85336
85337         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85338         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85339
85340 2005-05-10  Karl Berry  <karl@gnu.org>
85341
85342         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85343         (from http://www.gnu.org/licenses).
85344         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85345         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85346         fdl.texi suffices.
85347
85348 2005-05-10  Karl Berry  <karl@gnu.org>
85349
85350         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85351         (COPYING.DOC): remove.
85352
85353         * config/srclist-update: new FSF address.
85354
85355 2005-05-10  Derek Price  <derek@ximbiot.com>
85356
85357         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85358         possible.
85359
85360 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85361             Bruno Haible  <bruno@clisp.org>
85362
85363         * modules/inet_ntop: New file.
85364         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85365         inet_ntop.
85366
85367 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85368             Bruno Haible  <bruno@clisp.org>
85369
85370         * m4/inet_ntop.m4: New file.
85371
85372 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85373             Bruno Haible  <bruno@clisp.org>
85374
85375         * lib/inet_ntop.h: New file.
85376         * lib/inet_ntop.c: New file, from glibc with modifications.
85377
85378 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85379
85380         * modules/time_r (License): Change to LGPL.
85381         * modules/extensions (License): Change to LGPL.  Actually,
85382         the license is more permissive than that, but currently gnulib-tool
85383         doesn't know how to handle more-permissive licenses.
85384
85385         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85386         Problem reported by Dave Love.
85387
85388 2005-05-08  Jim Meyering  <jim@meyering.net>
85389
85390         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85391         blank.
85392
85393 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85394
85395         * modules/argmatch (Depends-on): Add stdbool.
85396         * modules/backupfile (Depends-on): Likewise.
85397         * modules/chdir-long (Depends-on): Likewise.
85398         * modules/closeout (Depends-on): Likewise.
85399         * modules/cycle-check (Depends-on): Likewise.
85400         * modules/dirname (Depends-on): Likewise.
85401         * modules/fnmatch (Depends-on): Likewise.
85402         * modules/fsusage (Depends-on): Likewise.
85403         * modules/fwriteerror (Depends-on): Likewise.
85404         * modules/getcwd (Depends-on): Likewise.
85405         * modules/getloadavg (Depends-on): Likewise.
85406         * modules/hard-locale (Depends-on): Likewise.
85407         * modules/makepath (Depends-on): Likewise.
85408         * modules/mountlist (Depends-on): Likewise.
85409         * modules/nanosleep (Depends-on): Likewise.
85410         * modules/posixtm (Depends-on): Likewise.
85411         * modules/quotearg (Depends-on): Likewise.
85412         * modules/readtokens (Depends-on): Likewise.
85413         * modules/readtokens0 (Depends-on): Likewise.
85414         * modules/readutmp (Depends-on): Likewise.
85415         * modules/save-cwd (Depends-on): Likewise.
85416         * modules/strftime (Depends-on): Likewise.
85417         * modules/userspec (Depends-on): Likewise.
85418         * modules/utimecmp (Depends-on): Likewise.
85419         * modules/xgetcwd (Depends-on): Likewise.
85420         * modules/xnanosleep (Depends-on): Likewise.
85421         * modules/xstrtod (Depends-on): Likewise.
85422         * modules/yesno (Depends-on): Likewise.
85423
85424 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85425
85426         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85427         needless checks.
85428
85429 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85430
85431         Merge from coreutils.  Among other things,
85432         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85433         * lib/fd-safer.c: New file.
85434         * lib/fcntl-safer.h, open-safer.c: Remove.
85435         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85436         * lib/dup-safer.c: Include unistd-safer.h first.
85437         Don't include errno.h.
85438         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85439         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85440         * lib/file-type.c: Rely on file-type.h change.
85441         * lib/getloadavg.c: Include unistd-safer.h.
85442         (getloadavg): Use safer open.
85443         * lib/getusershell.c: Include "stdio-safer.h".
85444         (getusershell): Use safer fopen.
85445         * lib/long-options.c (long_options): Use NULL rather than 0.
85446         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85447         'free'.
85448         * lib/modechange.c: Likewise.
85449         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85450         (MODE_DONE): New constant.
85451         (struct mode_change): Remove 'next' member.
85452         (make_node_op_equals): New function; like the old one of the
85453         same name, except it allocates an array.
85454         (mode_compile, mode_create_from_ref): Use it.
85455         (mode_compile): Allocate result as an array, not a linked list.
85456         Parse octal string ourself, so that we catch mistakes like "+0".
85457         (mode_adjust): Arg is an array, not a linked list.
85458         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85459         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85460         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85461         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85462         Remove.  This is now stat-macros.h's job.
85463         (talloc): Remove.  All callers replaced by xalloc, so that
85464         our invokers don't have to worry about reporting memory failures.
85465         (make_node_op_equals): Remove.
85466         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85467         New constants.
85468         (struct mode_change): Moved here from modechange.h.
85469         (mode_append_entry): Remove.
85470         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85471         apps to have incorrect behavior.  Use simpler algorithm for head
85472         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85473         Detect more invalid usages rather than having somewhat-random behavior.
85474         Don't insert an "a=" action, as that leads to incorrect behavior.
85475         (mode_compile, mode_create_from_ref): Return NULL on error instead
85476         of an enum, since now there's only one way to have an error.  All
85477         callers changed.
85478         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85479         at the correct time.  Simplify calculation of "+u" and its ilk.
85480         Don't mishandle "+X".
85481         (mode_free): Remove "register" and localize decls.
85482         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85483         (struct mode_change): Move to modechange.c; callers don't
85484         need to see this stuff.
85485         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85486         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85487         (mode_change, mode_adjust): Reflect the new signatures noted above.
85488         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85489         that might redefine system include files.
85490         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85491         (my_usleep): Use NULL rather than (void *) 0.
85492         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85493         Use siginterrupt to specify that system calls should be interrupted.
85494         (rpl_nanosleep): Move initialization of suspended closer to call of
85495         my_usleep.
85496         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85497         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85498         (desirable_utmp_entry): New function.
85499         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85500         using x2nrealloc, to simplify logic.
85501         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85502         size calculation.  Do not assume utmp file is a regular file.
85503         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85504         (READ_UTMP_CHECK_PIDS): New constant.
85505         * lib/save-cwd.c: Include unistd-safer.h.
85506         (save_cwd): Use fd_safer.
85507         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85508         [!_LIBC] Include "stat-macros.h" instead.
85509         * lib/unistd-safer.h (fd_safer): New decl.
85510
85511 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85512
85513         * modules/getloadavg (Depends-on): Add unistd-safer.
85514         * modules/getusershell (Depends-on): Add stdio-safer.
85515         * modules/lstat (Depends-on): Remove xalloc.
85516         * modules/mkstemp (Depends-on): Add stat-macros.
85517         * modules/modechange (Depends-on): Remove xstrtol.
85518         Add stat-macros, xalloc.
85519         * modules/save-cwd (Depends-on): Add unistd-safer.
85520         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85521         * modules/unistd-safer (Files): Add lib/fd-safer.c
85522         (Makefile.am): Remove lib_SOURCES.
85523
85524         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85525         Remove fcntl-safer; unistd-safer supersedes it.
85526
85527 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85528
85529         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
85530         AC_HEADER_STAT.
85531         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
85532         (gl_PREREQ_CHOWN): Remove.
85533         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
85534         it.  Don't require AC_HEADER_STAT.
85535         (gl_PREREQ_LSTAT): Remove.
85536         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
85537         Don't require AC_HEADER_STAT.
85538         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
85539         (gl_PREREQ_RMDIR): Remove.
85540         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
85541         mention stat-macros.h or AC_HEADER_STAT, since we'll make
85542         the stat-macros module a prerequisite.
85543         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
85544         * m4/filemode.m4 (gl_FILEMODE): Likewise.
85545         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
85546         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
85547         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
85548         variable names.
85549         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
85550         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
85551         variable prefixes.
85552         * m4/fcntl-safer.m4: Remove.
85553         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
85554         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
85555         Invoke gl_PREREQ_FD_SAFER.
85556         (gl_PREREQ_FD_SAFER): New macro.
85557         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
85558         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
85559         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
85560         Remove duplicate call to AC_LIBOBJ(readutmp).
85561         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
85562
85563         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
85564         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
85565
85566 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85567
85568         * MODULES.html.sh (Misc): Add byteswap.
85569
85570 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85571
85572         * modules/getcwd (Depends-on): Add extensions.
85573         * modules/openat (Depends-on): Likewise.
85574
85575 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85576
85577         * modules/byteswap: New file.
85578
85579 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85580
85581         * m4/byteswap.m4: New file.
85582
85583 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85584
85585         * lib/byteswap_.h: New file.
85586
85587 2005-04-25  Karl Berry  <karl@gnu.org>
85588
85589         * m4/gettext.m4: Update from GNU gettext 0.14.4.
85590
85591 2005-04-25  Albert Chin  <china@thewrittenword.com>
85592
85593         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
85594         Toolkit C bug.
85595
85596 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
85597
85598         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
85599         (func_ln_if_changed): Remove forcibly for no error message
85600         in case file does not exist.
85601
85602 2005-04-19  Simon Josefsson  <jas@extundo.com>
85603
85604         * gnulib-tool (Options): Make --symlink mean --symbolic.
85605
85606 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
85607
85608         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
85609
85610 2005-04-16  Simon Josefsson  <jas@extundo.com>
85611
85612         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
85613
85614 2005-04-15  Simon Josefsson  <jas@extundo.com>
85615
85616         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
85617
85618 2005-04-15  Simon Josefsson  <jas@extundo.com>
85619
85620         * gnulib-tool: Rename --symlink to --symbolic.
85621
85622 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
85623
85624         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
85625         symbolic links to files instead of copying/moving.  Add --aux-dir,
85626         specifying directory relative --dir where auxiliary build tools
85627         are placed.
85628
85629 2005-04-14  Bruno Haible  <bruno@clisp.org>
85630
85631         * modules/allocsa (License): Change to LGPL.
85632         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
85633
85634 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85635
85636         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
85637         that "UTC +1 second" continues to work.  Problem reported
85638         by Dmitry V. Levin.
85639         (relunit_snumber): New rule.
85640         (relunit): Use it.
85641
85642 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
85643
85644         * lib/getdate.y (universal_time_zone_table): New constant.
85645         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
85646         universal_time_zone_table.
85647         (lookup_zone): Prefer universal_time_zone_table to
85648         local_time_zone_table, so that "GMT" time stamps are allowed in
85649         London during the summer.  Problem reported by Ian Abbott.
85650
85651 2005-04-12  Jim Meyering  <jim@meyering.net>
85652
85653         * lib/human.c (humblock): Set *options even when returning due to
85654         xstrtoumax conversion failure.  Thanks to a used-uninitialized
85655         warning from gcc-4.
85656
85657 2005-04-09  Jim Meyering  <jim@meyering.net>
85658
85659         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
85660         -Wuninitialized: initialize tm0.tm_year.
85661
85662 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
85663
85664         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
85665         count, since there's no maximum.  All uses changed.
85666         Add member dsts_seen.
85667         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
85668         not being INT_MAX.
85669         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
85670         Use pc_rels_seen to decide whether a date is absolute.
85671
85672         * lib/getdate.y (number): Don't overwrite year.
85673         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
85674         check.
85675
85676 2005-04-02  Simon Josefsson  <jas@extundo.com>
85677
85678         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
85679         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
85680
85681 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
85682
85683         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
85684         where no absolute path name can be longer than PATH_MAX.
85685
85686 2005-03-27  Jim Meyering  <jim@meyering.net>
85687
85688         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
85689
85690 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
85691
85692         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
85693         "one's complement" -> "ones' complement" in comment, as per Knuth.
85694         "value of type" -> "type or expression" in comment.
85695         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
85696
85697 2005-03-26  Jim Meyering  <jim@meyering.net>
85698
85699         Comment nits.
85700         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
85701         Correct typos: s/or/of/.
85702
85703 2005-03-26  Jim Meyering  <jim@meyering.net>
85704
85705         * modules/check-include-files: Move to ../ and rename to...
85706         * check-module: ...this.
85707
85708 2005-03-25  Jim Meyering  <jim@meyering.net>
85709
85710         * modules/xvasprintf (Files): Add xalloc.h.
85711
85712 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
85713
85714         * modules/gettext (Files): config/config.rpath ->
85715         build-aux/config.rpath
85716         * modules/iconv (Files): Likewise.
85717         Problem reported by Oskar Liljeblad.
85718
85719 2005-03-23  Jim Meyering  <jim@meyering.net>
85720
85721         * modules/check-include-files: New script to check for
85722         missing dependencies, multiple includes, etc.
85723
85724         * modules/c-strtold (Depends-on): Add xalloc.
85725         * modules/c-strtod (Depends-on): Add xalloc.
85726         * modules/hash (Depends-on): Add xalloc.
85727         (Files): Remove lib/xalloc.h.
85728
85729         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
85730         * modules/userspec (Files): Add lib/inttostr.h.
85731
85732 2005-03-23  Jim Meyering  <jim@meyering.net>
85733
85734         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
85735
85736 2005-03-22  Jim Meyering  <jim@meyering.net>
85737
85738         * modules/stat-macros: New module.
85739         * modules/canonicalize, modules/euidaccess, modules/file-type,
85740         * modules/filemode, modules/lchown, modules/makepath,
85741         * modules/rmdir, modules/stat: Depend on new stat-macros module
85742         rather than listing lib/stat-macros.h manually.
85743         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
85744
85745 2005-03-22  Jim Meyering  <jim@meyering.net>
85746
85747         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
85748
85749 2005-03-22  Bruno Haible  <bruno@clisp.org>
85750
85751         * config/srclist.txt: Replace target directory 'config' with
85752         'build-aux'.
85753         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
85754         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
85755         ../build-aux/.
85756
85757 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
85758
85759         * modules/chdir-long (Depends-on): Add mempcpy.
85760
85761         * modules/acl, modules/backupfile, modules/c-strtod,
85762         modules/c-strtold, modules/canon-host, modules/canonicalize,
85763         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
85764         modules/exclude, modules/exitfail, modules/file-type,
85765         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
85766         modules/getdate, modules/getline, modules/getpagesize,
85767         modules/getpass, modules/getugroups, modules/group-member,
85768         modules/hard-locale, modules/hash, modules/human, modules/idcache,
85769         modules/inttostr, modules/long-options, modules/makepath,
85770         modules/md5, modules/memcasecmp, modules/memcoll,
85771         modules/modechange, modules/mountlist, modules/path-concat,
85772         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
85773         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
85774         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
85775         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
85776         modules/strftime, modules/strndup, modules/strverscmp,
85777         modules/timespec, modules/unlocked-io, modules/userspec,
85778         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
85779         modules/yesno:
85780         Remove lib_SOURCES line from Makefile.am section, as this is now
85781         done automatically by the corresponding Autoconf macro.
85782
85783 2005-03-21  Jim Meyering  <jim@meyering.net>
85784
85785         Changes imported from coreutils.
85786
85787         * lib/cycle-check.c: Don't include xalloc.h.
85788
85789         * lib/path-concat.c: Don't include assert.h.
85790         (path_concat): Remove assertion that would have triggered
85791         for ABASE starting with more than one slash.
85792         Reported by Andreas Schwab.
85793
85794         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
85795         properly when ABASE is an absolute file name.
85796         Correct the description of this function.
85797         Include <assert.h>.
85798         Add an assertion and a test driver.
85799         This fixes a bug introduced on 2004-07-02.
85800         Andreas Schwab reported the resulting failure of cp --parents:
85801         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
85802
85803 2005-03-21  Jim Meyering  <jim@meyering.net>
85804
85805         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
85806         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
85807
85808 2005-03-21  Jim Meyering  <jim@meyering.net>
85809         and  Paul Eggert  <eggert@cs.ucla.edu>
85810
85811         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
85812         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
85813         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
85814         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
85815         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
85816         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
85817         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
85818         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
85819         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
85820         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
85821         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
85822         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
85823         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
85824         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
85825         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
85826         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
85827         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
85828         for these modules.
85829
85830 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
85831
85832         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
85833         (which shouldn't happen), generate nothing instead of returning 0
85834         immediately, so that nstrftime (NULL, ...) doesn't return 0.
85835
85836 2005-03-16  Bruno Haible  <bruno@clisp.org>
85837
85838         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
85839         HAVE_LONGLONG_64BIT.
85840
85841 2005-03-16  Bruno Haible  <bruno@clisp.org>
85842
85843         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
85844         HAVE_LONGLONG_64BIT.
85845
85846 2005-03-16  Bruno Haible  <bruno@clisp.org>
85847
85848         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
85849         HAVE_LONGLONG_64BIT.
85850
85851 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85852
85853         * lib/strftime.c (my_strftime): Prepend space to format so that we can
85854         reliably distinguish strftime failure from empty output on POSIX
85855         hosts.
85856
85857 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85858
85859         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
85860         (iconv_string): Don't guess a size-zero buffer, as that might cause
85861         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
85862         result would be 'too large', where 'too large' is (heuristically)
85863         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
85864         overflow concerns.  This will prevent some unwanted malloc failures
85865         when the inputs are very large.
85866
85867 2005-03-15  Karl Berry  <karl@gnu.org>
85868
85869         * config/srclist.txt (config.rpath): from gettext.
85870         * config/config.rpath: update.
85871
85872 2005-03-15  Bruno Haible  <bruno@clisp.org>
85873
85874         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
85875         to 'negate'.
85876
85877         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
85878         variable.
85879
85880         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
85881         results.
85882
85883 2005-03-14  Simon Josefsson  <jas@extundo.com>
85884
85885         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
85886         <fx@gnu.org>.
85887
85888 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
85889
85890         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
85891         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
85892         intprops.h.
85893         * lib/strtol.c: Likewise.
85894
85895 2005-03-14  Jim Meyering  <jim@meyering.net>
85896
85897         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
85898         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
85899         to be nonzero so that we (and caller) can detect the difference
85900         between a valid zero-length expansion and an error return, even
85901         when the underlying strftime fails before writing anything into
85902         that location.
85903
85904 2005-03-14  Bruno Haible  <bruno@clisp.org>
85905
85906         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
85907         Update from GNU gettext 0.14.3.
85908
85909 2005-03-10  Jim Meyering  <jim@meyering.net>
85910
85911         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
85912
85913 2005-03-10  Jim Meyering  <jim@meyering.net>
85914
85915         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
85916         so that this module works on systems without fchdir.
85917
85918 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
85919
85920         Factor int-properties macros into a single file, except for
85921         glibc-related files.
85922         * lib/intprops.h: New file.
85923         * lib/getloadavg.c: Include it instead of limits.h.
85924         (INT_STRLEN_BOUND): Remove.
85925         * lib/human.c: Include intprops.h.
85926         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
85927         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
85928         302/1000.
85929         * lib/inttostr.h: Include intprops.h instead of limits.h.
85930         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
85931         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
85932         for consistency with intprops.h.
85933         (time_t_is_integer, twos_complement_arithmetic): Use them.
85934         * lib/sig2str.h: Include <signal.h>, intprops.h.
85935         (INT_STRLEN_BOUND): Remove.
85936         * lib/strftime.c (TYPE_SIGNED): Remove.
85937         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
85938         * lib/strtol.c: Adjust comments to match intprops.h.
85939         * lib/userspec.c: Include intprops.h.
85940         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
85941         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
85942         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
85943         instead of rolling our own expressions.
85944         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
85945
85946         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
85947         instead of int.
85948         (my_strftime): Do not mishandle years close to INT_MAX, by doing
85949         the right thing even if adding 1900 would overflow.  Similarly
85950         for tm_mon + 1 and tm_yday + 1.
85951         Make %Y always equivalent to %C%y, and similarly for %G and %g.
85952         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
85953         (DO_SIGNED_NUMBER): New macro.
85954         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
85955
85956 2005-03-07  Bruno Haible  <bruno@clisp.org>
85957
85958         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
85959
85960 2005-03-07  Bruno Haible  <bruno@clisp.org>
85961
85962         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
85963
85964 2005-03-04  Derek R. Price  <derek@ximbiot.com>
85965
85966         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
85967         (func_import): Only replace files via --import when they have actually
85968         changed.
85969
85970 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85971
85972         * m4/mmap-anon.m4: New file.
85973         * m4/pagealign_alloc.m4: New file.
85974
85975 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85976             Bruno Haible  <bruno@clisp.org>
85977
85978         * modules/pagealign_alloc: New file.
85979         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
85980
85981 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85982             Bruno Haible  <bruno@clisp.org>
85983
85984         * lib/pagealign_alloc.h: New file.
85985         * lib/pagealign_alloc.c: New file.
85986
85987 2005-03-03  Bruno Haible  <bruno@clisp.org>
85988
85989         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
85990         Use an all-permissive copyright notice, recommended by RMS.
85991
85992 2005-03-02  Bruno Haible  <bruno@clisp.org>
85993
85994         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
85995         of AIX, the replacement has to be done only after <string.h> is
85996         included, therefore not in config.h. stpncpy.h does the replacement,
85997         and stpncpy.c uses it.
85998
85999 2005-03-02  Bruno Haible  <bruno@clisp.org>
86000
86001         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86002         stpncpy.c uses it.
86003
86004 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86005
86006         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86007         The workaround isn't strictly needed for POSIX conformance, and
86008         it's too much of a pain to configure and maintain.  We'll ask
86009         people to fix their kernels instead.
86010         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86011         (NANOSLEEP_BUG_WORKAROUND): Remove.
86012         (xnanosleep): Remove the workaround.
86013
86014 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86015
86016         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86017         Reported by Derek Price.
86018         (Include): Add "timespec.h".
86019
86020         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86021
86022 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86023
86024         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86025         to detect nanosleep bug.
86026
86027 2005-03-01  Bruno Haible  <bruno@clisp.org>
86028
86029         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86030
86031 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86032
86033         * modules/gethrxtime: New file.
86034         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86035         (Depends-on): Add gethrxtime.
86036         (configure.ac): Add gl_XNANOSLEEP.
86037         (Makefile.am): Remove lib_SOURCES line.
86038
86039 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86040
86041         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86042         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86043
86044 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86045
86046         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86047         * lib/timespec.h (gettime): Return void, since it always
86048         succeeds now.  All uses changed.
86049         * lib/gettime.c (gettime): Likewise.
86050         [HAVE_NANOTIME]: Prefer nanotime.
86051         Assume gettimeofday succeeds, as POSIX requires.
86052         Assime time () succeeds, since other code already does.
86053         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86054         (timespec_subtract): Remove.
86055         (NANOSLEEP_BUG_WORKAROUND): New constant.
86056         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86057         things considerably.  Use it only on GNU/Linux hosts, since the
86058         workaround shouldn't be needed elsewhere.
86059
86060 2005-02-24  Bruno Haible  <bruno@clisp.org>
86061
86062         * modules/gettext (Files): Add m4/glibc2.m4.
86063
86064 2005-02-24  Bruno Haible  <bruno@clisp.org>
86065
86066         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86067         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86068         * m4/progtest.m4:
86069         Update from GNU gettext 0.14.2.
86070         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86071
86072 2005-02-24  Bruno Haible  <bruno@clisp.org>
86073
86074         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86075         * lib/config.charset: Update from GNU gettext 0.14.2.
86076
86077 2005-02-24  Bruno Haible  <bruno@clisp.org>
86078
86079         * lib/gettext.h: Update from GNU gettext 0.14.2.
86080
86081 2005-02-23  Simon Josefsson  <jas@extundo.com>
86082
86083         * m4/iconvme.m4: New file.
86084
86085 2005-02-23  Jim Meyering  <jim@meyering.net>
86086
86087         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86088         change.
86089         Thanks to Bruno Haible for catching it.
86090
86091 2005-02-22  Simon Josefsson  <jas@extundo.com>
86092
86093         * modules/iconvme: New file.
86094
86095         * MODULES.html.sh: Add iconvme.
86096
86097 2005-02-22  Simon Josefsson  <jas@extundo.com>
86098
86099         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86100
86101 2005-02-22  Simon Josefsson  <jas@extundo.com>
86102
86103         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86104
86105 2005-02-22  Jim Meyering  <jim@meyering.net>
86106
86107         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86108         s/ifndef/ifdef/.
86109
86110 2005-02-20  Neil Conway  <neilc@samurai.com>
86111
86112         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86113         returned by OSX/Darwin if the specified buffer is not large
86114         enough for the hostname.
86115
86116 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86117
86118         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86119         pass it to _help, otherwise the latter coredumps trying to
86120         dereference state.root_argp.
86121
86122 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86123
86124         * modules/chdir-long (Depends-on): Add memrchr.
86125         * modules/memrchr (Files): Add lib/memrchr.h.
86126         (Include): "memrchr.h".
86127
86128 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86129
86130         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86131
86132 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86133
86134         * lib/memrchr.h: New file.
86135         * lib/chdir-long.c: Include it.
86136         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86137         Don't bother including stddef.h.
86138
86139 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86140
86141         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86142         inclusion.
86143         Include <sys/types.h>, for dev_t.
86144         (ME_DUMMY, ME_REMOTE): Move from here....
86145         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86146         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86147         Dmitry V. Levin.
86148         Include mountlist.h first, to test the interface.
86149
86150 2005-01-29  Bruno Haible  <bruno@clisp.org>
86151
86152         * lib/progname.c (program_name): Initialize.
86153         Needed when linking statically on MacOS X.
86154
86155 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86156
86157         Sync from coreutils.
86158         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86159         (Depends-on): Add c-strtod.
86160         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86161
86162 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86163
86164         Sync from coreutils.
86165         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86166
86167         Remove files that are specific to coreutils.
86168         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86169
86170 2005-01-28  Bruno Haible  <bruno@clisp.org>
86171
86172         * modules/javacomp: New file.
86173         * MODULES.html.sh (Java): Add javacomp.
86174
86175 2005-01-28  Bruno Haible  <bruno@clisp.org>
86176
86177         * m4/javacomp.m4: New file, from GNU gettext.
86178
86179 2005-01-28  Bruno Haible  <bruno@clisp.org>
86180
86181         * lib/javacomp.sh.in: New file, from GNU gettext.
86182         * lib/javacomp.h: New file, from GNU gettext.
86183         * lib/javacomp.c: New file, from GNU gettext.
86184
86185 2005-01-26  Simon Josefsson  <jas@extundo.com>
86186
86187         * lib/gai_strerror.c: Use GPL in header.
86188
86189 2005-01-26  Bruno Haible  <bruno@clisp.org>
86190
86191         * modules/javaexec: New file.
86192         * MODULES.html.sh (Java): Add javaexec.
86193
86194 2005-01-26  Bruno Haible  <bruno@clisp.org>
86195
86196         * m4/javaexec.m4: New file, from GNU gettext.
86197
86198 2005-01-26  Bruno Haible  <bruno@clisp.org>
86199
86200         * lib/javaexec.sh.in: New file, from GNU gettext.
86201         * lib/javaexec.h: New file, from GNU gettext.
86202         * lib/javaexec.c: New file, from GNU gettext.
86203
86204 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86205
86206         * modules/lchown (Depends-on): Remove lchown.h
86207
86208 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86209
86210         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86211         must be defined if the header file was not found, in order
86212         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86213
86214 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86215
86216         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86217         initializers for struct pentry_state.
86218         (__argp_error): Check return value of __asprintf
86219         (__argp_failure): Translate error message
86220
86221         * lib/argp-parse.c: Removed braces around the expansion of N_()
86222
86223 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86224
86225         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86226         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86227         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86228         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86229         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86230         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86231         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86232         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86233         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86234         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86235         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86236         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86237         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86238         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86239         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86240         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86241         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86242         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86243         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86244         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86245         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86246         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86247         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86248         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86249         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86250         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86251         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86252         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86253         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86254         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86255         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86256         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86257         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86258         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86259         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86260         Use an all-permissive copyright notice, recommended by RMS.
86261
86262 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86263
86264         * modules/chdir-long (Depends-on): Remove mempcpy.
86265
86266 2005-01-21  Jim Meyering  <jim@meyering.net>
86267
86268         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86269         same value as for Solaris 9.
86270
86271         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86272         component length.  This included changing the parameter to be
86273         of type `char *' rather than `char const *'.
86274         * lib/chdir-long.h (chdir_long): Update prototype.
86275
86276         * lib/openat.c (fdopendir, fstatat): New functions.
86277         * lib/openat.h: Include headers required for use of DIR and struct
86278         stat.
86279         [AT_SYMLINK_NOFOLLOW]: Define.
86280         (fdopendir, fstatat): Add prototypes.
86281
86282 2005-01-21  Bruno Haible  <bruno@clisp.org>
86283
86284         * modules/classpath: New file.
86285         * MODULES.html.sh (Java): Add classpath.
86286
86287 2005-01-21  Bruno Haible  <bruno@clisp.org>
86288
86289         * lib/classpath.h: New file, from GNU gettext.
86290         * lib/classpath.c: New file, from GNU gettext.
86291
86292 2005-01-20  Simon Josefsson  <jas@extundo.com>
86293
86294         * modules/version-etc-fsf: New file.
86295
86296 2005-01-20  Simon Josefsson  <jas@extundo.com>
86297
86298         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86299         * lib/version-etc.c: Remove version_etc_copyright.
86300         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86301         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86302
86303 2005-01-20  Simon Josefsson  <jas@extundo.com>
86304
86305         * lib/base64.h (isbase64): Add.
86306
86307         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86308         using a unsigned prototype, don't inline.
86309         (base64_decode): Use it.
86310
86311 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86312
86313         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86314         it.
86315
86316 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86317
86318         * lib/save-cwd.c (save_cwd): Remove code to support the case
86319         where fchdir is missing or flaky.
86320
86321 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86322
86323         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86324
86325 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86326
86327         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86328         AC_LIBSOURCES now does this.
86329         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86330         with new ullong_max module.
86331
86332 2005-01-19  Bruno Haible  <bruno@clisp.org>
86333
86334         * modules/sh-quote: New file.
86335         * MODULES.html.sh (Executing programs): Add sh-quote.
86336
86337 2005-01-19  Bruno Haible  <bruno@clisp.org>
86338
86339         * lib/sh-quote.h: New file, from GNU gettext.
86340         * lib/sh-quote.c: New file, from GNU gettext.
86341
86342 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86343
86344         Merge from coreutils.
86345         * m4/ullong_max.m4: New file.
86346         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86347         (gl_MACROS): Assume localeconv exists.
86348
86349 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86350
86351         Merge changes from coreutils, as described below in several
86352         changelogs dated today.
86353
86354         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86355         (O_DIRECTORY): Remove; not needed here, since "." must be
86356         a directory.  All uses removed.
86357         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86358         universal on Suns, and we also need to test for IRIX.
86359         Revamp code to use 'if' rather than '#if'.
86360         Avoid unnecessary comparison of cwd->desc to 0.
86361
86362         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86363         for known valid error numbers rather than observed invalid ones.
86364
86365 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86366
86367         * modules/ullong_max: New file.
86368
86369         * modules/chdir-long, modules/openat: New files.
86370         * modules/save-cwd (Depends-on): Depend on chdir-long.
86371         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86372
86373 2005-01-18  Jim Meyering  <jim@meyering.net>
86374
86375         Merge from coreutils.
86376         * m4/chdir-long.m4, m4/openat.m4: New files.
86377         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86378         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86379         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86380         is sane and DOES follow symlinks.  Besides, testing 20 different
86381         systems found no broken chown implementations.
86382         Prompted by a change in rsync's copy of this macro.
86383         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86384
86385         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86386
86387         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86388         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86389         NULL-means-set-to-current-time semantics.
86390         Remove temporary file immediately, rather than waiting
86391         for configure's at-exit trap code to do it.
86392
86393 2005-01-18  Jim Meyering  <jim@meyering.net>
86394
86395         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86396
86397         * lib/utimens.c (futimens): Account for the fact that futimes
86398         can also fail with errno == ENOSYS or errno == ENOENT.
86399         Patch from Dmitry V. Levin.
86400
86401         Change the name of the robust chdir function from chdir to chdir_long.
86402         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86403         (restore_cwd): Use chdir_long, not chdir.
86404         * lib/chdir-long.c: Renamed from chdir.c.
86405         * lib/chdir-long.h: Renamed from chdir.h.
86406         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86407         Hurd.
86408
86409 2005-01-18  Bruno Haible  <bruno@clisp.org>
86410
86411         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86412         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86413         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86414         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86415         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86416         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86417         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86418         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86419         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86420         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86421         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86422         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86423         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86424         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86425         Use an all-permissive copyright notice, recommended by RMS.
86426
86427 2005-01-18  Bob Proulx  <bob@proulx.com>
86428
86429         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86430         simplify offsetof() macro construct to avoid compile failure with
86431         native HP-UX 11.0 ANSI C compiler.
86432
86433 2005-01-17  Bruno Haible  <bruno@clisp.org>
86434
86435         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86436         redundant because stpncpy.m4 takes care of it.
86437
86438 2005-01-17  Bruno Haible  <bruno@clisp.org>
86439
86440         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86441
86442 2005-01-17  Bruno Haible  <bruno@clisp.org>
86443
86444         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86445         used.
86446
86447 2005-01-17  Bruno Haible  <bruno@clisp.org>
86448
86449         * lib/fwriteerror.h (fwriteerror): Change specification to include
86450         fclose.
86451         * lib/fwriteerror.c: Include <stdbool.h>.
86452         (fwriteerror): At the end, close the file stream. Record whether
86453         stdout was already closed.
86454
86455 2005-01-17  Bruno Haible  <bruno@clisp.org>
86456
86457         * lib/execute.c (environ): Declare if needed.
86458         * lib/pipe.c (environ): Likewise.
86459         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86460
86461 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86462
86463         * modules/argp: Depend on vsnprintf
86464
86465 2005-01-10  Jim Meyering  <jim@meyering.net>
86466
86467         * modules/closeout (Depends-on): Add atexit.
86468
86469 2005-01-06  Bruno Haible  <bruno@clisp.org>
86470
86471         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86472
86473 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86474
86475         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86476         definitions to be after all include files, to avoid collisions.
86477         Problem reported by Bob Proulx.
86478
86479 2005-01-04  Jim Meyering  <jim@meyering.net>
86480
86481         Changes imported from coreutils.
86482         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86483         as the mkstemp template, use a temporary directory and an
86484         8.3-friendly template to avoid trouble on systems like DJGPP.
86485         Reported by Juan M. Guerrero via Stepan Kasal.
86486         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86487         close. Remove the temporary directory right away, rather than waiting
86488         for configure's at-exit trap code to do it.
86489         Suggestion from Stepan Kasal.
86490
86491 2005-01-01  Simon Josefsson  <jas@extundo.com>
86492
86493         * gnulib-tool: Print #include directives when --import'ing.
86494
86495 2004-12-28  Simon Josefsson  <jas@extundo.com>
86496
86497         * tests/test-base64.c: Include required header files.  Remove
86498         unused variables.
86499
86500 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86501
86502         * modules/error (Depends-on): Remove gettext.
86503
86504 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86505
86506         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86507         not needed.  This removes a dependency on the gettext module.
86508         [defined _LIBC]: Do not include <libintl.h>; not needed.
86509
86510 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86511
86512         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86513         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86514
86515 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86516
86517         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86518         HAVE_DECL_STRTOLD.
86519
86520 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86521
86522         * modules/getdate (Depends-on): Remove alloca-opt.
86523
86524 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86525
86526         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
86527
86528 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86529
86530         * lib/argp-parse.c: Include <stddef.h>.
86531         (alignof, alignto): New macros.
86532         (parser_init): Don't assume that void * is aligned sufficiently
86533         for struct option.
86534
86535         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
86536         need to extend the stack.
86537         (YYINITDEPTH): New macro, so that the initial stack isn't overly
86538         large.
86539
86540 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86541
86542         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
86543
86544 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86545
86546         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
86547         (2004-10-24) change.  Apparently this was a false alarm.
86548
86549         * modules/getdate: Depend on alloca-opt, not alloca.
86550
86551 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86552
86553         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
86554         Remove now-obsolete comment about AIX.
86555         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
86556         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
86557         (YYMAXDEPTH): New macro.
86558
86559 2004-12-18  Simon Josefsson  <jas@extundo.com>
86560
86561         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
86562
86563 2004-12-18  Bruno Haible  <bruno@clisp.org>
86564
86565         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
86566
86567 2004-12-18  Bruno Haible  <bruno@clisp.org>
86568
86569         * lib/fatal-signal.c (fatal_signals): Make non-const.
86570         (init_fatal_signals): New function.
86571         (uninstall_handlers, install_handlers): Ignore signals that were set to
86572         SIG_IGN.
86573         (at_fatal_signal): Call init_fatal_signals.
86574         (init_fatal_signal_set): Likewise. Ignore signals that were set to
86575         SIG_IGN.
86576         Reported by Paul Eggert.
86577
86578 2004-12-18  Bruno Haible  <bruno@clisp.org>
86579
86580         * doc/alloca.texi: New file.
86581         * doc/alloca-opt.texi: New file.
86582
86583 2004-12-17  Jim Meyering  <jim@meyering.net>
86584
86585         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
86586         Otherwise, install-sh could exit with improper exit status when
86587         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
86588
86589 2004-12-16  Simon Josefsson  <jas@extundo.com>
86590
86591         * tests/test-base64.c: Add license.
86592
86593 2004-12-15  Stepan Kasal  <address@hidden>
86594
86595         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
86596
86597 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
86598
86599         * modules/getcwd (Files): Add m4/d-ino.m4.
86600         Suggested by Mark D. Baushke.
86601
86602 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86603
86604         * lib/getdate.y (textint): New member "negative".
86605         (time_zone_hhmm): New function.
86606         Expect 14 shift-reduce conflicts, not 13.
86607         (o_colon_minutes): New rule.
86608         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
86609         (yylex): Set the "negative" member of signed numbers.
86610
86611 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86612
86613         * doc/getdate.texi (Time of day items, Time zone items):
86614         Describe new formats +00:00, UTC+00:00.
86615
86616 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
86617
86618         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
86619         spurious "-l"s.  Problem reported by Stepan Kasal.
86620
86621 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
86622
86623         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
86624         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
86625
86626 2004-12-04  Simon Josefsson  <jas@extundo.com>
86627
86628         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
86629         Vandoorselaere <yoann@prelude-ids.org>.
86630
86631 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86632
86633         Changes imported from coreutils.
86634         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
86635         exist.
86636         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
86637
86638 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86639
86640         Changes imported from coreutils.
86641         * lib/hard-locale.c: Assume <locale.h> exists.
86642         Include "strdup.h".
86643         (GLIBC_VERSION): New macro.
86644         (hard_locale): Assume setlocale exists.
86645         Rewrite to avoid #ifdef.
86646         Use strdup rather than malloc + strcpy.
86647         * lib/human.c: Assume <locale.h> exists.
86648         (human_readable): Assume localeconv exists.
86649
86650 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86651
86652         * modules/hard-locale (Depends-on): Add strdup.
86653
86654 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
86655
86656         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
86657         convert T2, not T.  (Imported from libc.)
86658
86659 2004-11-30  Simon Josefsson  <jas@extundo.com>
86660
86661         * modules/restrict (License): Change to LGPL.
86662
86663 2004-11-30  Simon Josefsson  <jas@extundo.com>
86664
86665         * m4/restrict.m4: Add copyright and copying conditions.
86666
86667 2004-11-30  Simon Josefsson  <jas@extundo.com>
86668
86669         * m4/base64.m4: New file.
86670
86671 2004-11-30  Simon Josefsson  <jas@extundo.com>
86672
86673         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
86674         base64.
86675
86676         * tests/test-base64.c: New file.
86677
86678         * modules/base64: New file.
86679
86680 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86681
86682         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
86683         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
86684
86685         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
86686
86687 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86688
86689         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
86690         (__getcwd.c): Don't restore errno; glibc doesn't.
86691         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
86692         first, falling back to our code only if its results look suspicious.
86693         Ensure that the resulting buffer is only as large as necessary.
86694
86695         * lib/readutmp.c: Include readutmp.h first.
86696         Include <errno.h>, since readutmp.h no longer does that.
86697         * lib/readutmp.h: Don't include <errno.h>,
86698         <sys/param.h>, <time.h>; not needed to establish interface.
86699         (errno): Remove decl.
86700         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
86701         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
86702         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
86703
86704 2004-11-28  Simon Josefsson  <jas@extundo.com>
86705
86706         * lib/base64.h, base64.c: New file.
86707
86708 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
86709
86710         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
86711
86712 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
86713
86714         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
86715         (Depends-on): Remove pathmax, same.  Add mempcpy.
86716         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
86717         (Makefile.am): Append getcwd.h to lib_SOURCES.
86718         (Include): Add getcwd.h.
86719         (Maintainer): Change from Jim Meyering to "all, glibc",
86720         since getdate now uses intended-for-glibc code.
86721         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
86722         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
86723
86724 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86725
86726         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
86727         HP's ANSI C compiler.
86728         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
86729         Declaring int functions causes warnings on some modern systems and
86730         shouldn't be needed to compile on ancient ones.
86731         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
86732         defined.
86733
86734         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
86735         with the following changes.
86736         (__set_errno): Parenthesize properly.
86737         Include <stdbool.h>.
86738         (MIN, MAX, MATCHING_INO): New macros.
86739         (__getcwd): Define with prototype, not K&R form.
86740         Use heuristics to allocate default buffer on stack if possible.
86741         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
86742         behavior, and to avoid the PATH_MAX limit when computing
86743         ../../../../...
86744         Use MATCHING_INO to compare inode number to file.
86745         Check for arithmetic overflow in size calculations.
86746         Fix bug in reallocation of dot array that caused getcwd to fail
86747         on directories nested deeper than 75.
86748         Be more careful about saving errno on error.
86749         Do not use realloc; use only free+malloc, as this is a bit
86750         more flexible and avoids a needless copy operation.
86751         Do not inspect st_dev and st_ino for symbolic links; POSIX
86752         doesn't specify the latter.
86753         Check for closedir errors.
86754         Avoid needless casts.
86755         Use "#ifdef weak_alias" around weak_alias, to be like other
86756         glibc code.
86757         The following changes to getcwd.c have effect only when used in
86758         gnulib; they have no effect inside glibc proper.
86759         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
86760         as alloca isn't used.
86761         (alloca, __alloca): Likewise.
86762         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
86763         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86764         unconditionally, as gnulib assumes C89 or better.
86765         Do not include <sys/param.h>.
86766         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
86767         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
86768         better.
86769         (NULL) [!defined NULL]: Remove; we assume C89 or better.
86770         Include <dirent.h> in a way that is compatible with modern Autoconf.
86771         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
86772         New macros, if not already defined.
86773         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
86774         Use "_LIBC", not "defined _LIBC", for consistency.
86775         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
86776         a mempcpy module.
86777         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
86778         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
86779         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
86780         credit only to Jim Meyering and adjust the copyright dates.
86781         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
86782         <stdlib.h>, <unistd.h>, "pathmax.h".
86783         Instead, include "xgetcwd.h" (first) and "getcwd.h".
86784         (INITIAL_BUFFER_SIZE): Remove.
86785         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
86786
86787 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86788
86789         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
86790         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
86791         Use the _ONCE methods, for efficiency.
86792         Check for fcntl.h.  In test program, include <errno.h>
86793         and <fcntl.h> if available.  Remove old K&R cruft from
86794         test program.  Check for common errors in GNU/Linux,
86795         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
86796         don't do AC_LIBOBJ, as that's getcwd.m4's job.
86797         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
86798         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
86799         name accordingly.
86800         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
86801         accommodate new getcwd.c.
86802         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
86803         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
86804         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
86805         that's all we need now.
86806
86807 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86808
86809         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
86810         argp-parse.c depends on getopt internals, that means we should
86811         always use our getopt, to be on the safe side.
86812         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
86813         order not to spoil the result of an eventual previous invocation
86814         of gl_GETOPT_SUBSTITUTE.
86815
86816 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86817
86818         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
86819         redefinition warnings. To avoid them, include the defines
86820         in `#if !defined __need_getopt ... #endif'. The only place
86821         where __getopt_argv_const is used is in definitions
86822         of getopt_long and getopt_long_only below, which are as well
86823         protected by `#ifndef __need_getopt'.
86824         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
86825         __need_getopt after including <stdio.h> and <unistd.h> These
86826         headers might have defined it.
86827
86828 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86829
86830         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
86831
86832 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86833
86834         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
86835         (futimens): New function, which uses futimes if available.
86836         (futimens, utimens): Support timespec==NULL, with same semantics
86837         as utime and utimens.
86838         * lib/utimens.h (futimens): New decl.
86839
86840 2004-11-23  Jim Meyering  <jim@meyering.net>
86841
86842         * lib/getopt_.h: Remove trailing blanks.
86843
86844 2004-11-23  Jim Meyering  <jim@meyering.net>
86845
86846         * lib/__fpending.c: Add comment.
86847
86848 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
86849
86850         * modules/canonicalize (Depends-on): Add xreadlink.
86851         Problem reported by James Youngman.
86852
86853 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86854
86855         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
86856         New macros.
86857         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
86858         optopt): Use them instead of invoking ## directly; otherwise, the
86859         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
86860
86861 2004-11-19  Bruno Haible  <bruno@clisp.org>
86862
86863         * lib/strtok_r.c: Move comments from here...
86864         * lib/strtok_r.h: ... to here.
86865
86866 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86867
86868         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
86869         implementations that mishandle size_t overflow.
86870
86871 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86872
86873         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
86874         might fail.  Problem reported by Yoann Vandoorselaere.
86875         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
86876         implementations that mishandle size_t overflow.
86877
86878 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86879
86880         * modules/canon-host (Depends-on): Add strdup.
86881
86882 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86883
86884         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
86885
86886 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86887
86888         * lib/canon-host.c: Include "strdup.h".
86889         (canon_host): Use getaddrinfo if available, so that IPv6 works.
86890         Use strdup instead of malloc/strcpy to duplicate strings.
86891
86892         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
86893         (human_space_before_unit): New constant.
86894         * lib/human.c (human_readable): Support it.
86895
86896         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
86897         (xgetcwd): Set errno correctly when failing.
86898         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
86899         the failure is actually due to a PATH_MAX problem.
86900
86901         Further getopt changes to make it more likely that glibc will
86902         buy the changes back.
86903         * lib/getopt.c (POSIXLY_CORRECT): New constant.
86904         (getopt): Use it, so to preserve glibc semantic
86905         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
86906         when compiling for libc.
86907         * lib/getopt_.h (__getopt_argv_const): Bring it back.
86908         (getopt_long, getopt_long_only): Use it.
86909
86910         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86911         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
86912         (getopt): Argv is now char * const *, as per standard.
86913         (_getopt_internal_r, _getopt_internal): Argv is now char **,
86914         not char *__getopt_argv_const *.
86915         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86916         _getopt_long_only_r): Likewise.
86917         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
86918         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86919         _getopt_long_r, _getopt_long_only_r): Likewise.
86920         * lib/getopt_.h (__getopt_argv_const): Remove.
86921         (getopt): Argv is now char * const *, as per standard.
86922
86923         * lib/getdate.y (tORDINAL): New token.
86924         (day, relunit): Allow it for relative times.
86925         (relative_time_table): Use tORDINAL for ordinals.
86926
86927 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86928
86929         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
86930         Document that "second" isn't allowed as an ordinal number.
86931
86932 2004-11-16  Jim Meyering  <jim@meyering.net>
86933
86934         * modules/closeout (Depends-on): Add fpending.
86935
86936 2004-11-15  Jim Meyering  <jim@meyering.net>
86937
86938         * lib/closeout.c: Include "__fpending.h" once again.
86939         Include <stdbool.h>.
86940         (close_stdout): Don't fail just because stdout was closed initially,
86941         since some programs don't write to stdout in the normal course of
86942         operation (other than --version and --help), and we don't want this
86943         function to make e.g. `touch file >&-' fail.
86944         But do fail if it was closed and someone has tried to write to it.
86945         E.g., `printf foo >&-' must fail.
86946
86947 2004-11-13  Jim Meyering  <jim@meyering.net>
86948
86949         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
86950
86951 2004-11-12  Simon Josefsson  <jas@extundo.com>
86952
86953         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
86954         small doc fix is still pending.
86955
86956 2004-11-11  Simon Josefsson  <jas@extundo.com>
86957
86958         * modules/strtok_r: New file.
86959
86960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86961         strtok_r.
86962
86963 2004-11-11  Simon Josefsson  <jas@extundo.com>
86964
86965         * m4/strtok_r.m4: New file.
86966
86967         * m4/getopt.m4: Replace opterr.
86968
86969 2004-11-11  Simon Josefsson  <jas@extundo.com>
86970
86971         * lib/strtok_r.h, strtok_r.c: New file.
86972
86973 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86974
86975         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
86976         of replacing opterr, getopt, etc.  This should handle the
86977         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
86978
86979 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86980
86981         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
86982         we can stop lying to compilers about the constness of argv when we
86983         are compiled outside glibc.
86984         (getopt, getopt_long, getopt_long_only): Use it.
86985         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86986         _getopt_internal, getopt): Likewise.
86987         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86988         _getopt_long_only_r): Likewise.
86989         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86990         _getopt_long_r, _getopt_long_only_r): Likewise.
86991
86992         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
86993         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
86994         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
86995         the other external symbols.
86996         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
86997         declaration, since the above renaming now works around collisions.
86998
86999 2004-11-11  Jim Meyering  <jim@meyering.net>
87000
87001         * lib/linebreak.c: Remove trailing blanks.
87002         * lib/alloca_.h: Likewise.
87003         * lib/acosl.c: Likewise.
87004         * lib/euidaccess.c: Likewise.
87005         * lib/allocsa.h: Likewise.
87006
87007 2004-11-10  Simon Josefsson  <jas@extundo.com>
87008
87009         * m4/getaddrinfo.m4: New file.
87010
87011 2004-11-10  Simon Josefsson  <jas@extundo.com>
87012
87013         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87014
87015 2004-11-10  Simon Josefsson  <jas@extundo.com>
87016
87017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87018         getaddrinfo.
87019
87020         * modules/getaddrinfo: New file.
87021
87022 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87023
87024         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87025
87026 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87027
87028         * lib/mktime.c (SHR): New macro, which is a portable
87029         substitute for >> that should work even on Crays.
87030         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87031         Problem reported by Mark D. Baushke in
87032         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87033         * lib/getdate.y (SHR): Likewise.
87034         (tm_diff): Use it.
87035         * lib/strftime.c (SHR): Likewise.
87036         (tm_diff): Use it.
87037         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87038         quote_these_too, so that right shifts are well defined.  All uses
87039         changed.
87040
87041 2004-11-10  Jim Meyering  <jim@meyering.net>
87042
87043         Ensure that no close failure goes unreported.
87044         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87045         return early when it seems there's nothing to flush.
87046         Don't include __fpending.h.
87047
87048 2004-11-10  Jim Meyering  <jim@meyering.net>
87049
87050         * modules/closeout (Depends-on): Remove fpending.
87051
87052 2004-11-10  Jim Meyering  <jim@meyering.net>
87053
87054         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87055
87056 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87057
87058         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87059         gl_FUNC_STRFTIME.
87060         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87061         and AC_REQUIRE when possible, to avoid duplicate checks.
87062         Check for <wchar.h>.
87063
87064 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87065
87066         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87067
87068 2004-11-09  Bruno Haible  <bruno@clisp.org>
87069
87070         * m4/sockpfaf.m4: New file.
87071
87072 2004-11-05  Bruno Haible  <bruno@clisp.org>
87073
87074         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87075         Reported by Mark D. Baushke <mdb@cvshome.org>.
87076
87077 2004-11-04  Bruno Haible  <bruno@clisp.org>
87078
87079         2004-09-11  Bruno Haible  <bruno@clisp.org>
87080                 * allocsa.valgrind: New file.
87081         2004-02-06  Bruno Haible  <bruno@clisp.org>
87082                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87083                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87084                 Reported by Christopher Seip <chris.seip@hp.com>.
87085
87086 2004-11-04  Bruno Haible  <bruno@clisp.org>
87087
87088         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87089         (Makefile.am): Distribute it.
87090
87091 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87092
87093         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87094         with errno == ERANGE if the buffer is too small.
87095         Problem reported by Mark D. Baushke.
87096
87097 2004-11-03  Albert Chin  <china@thewrittenword.com>
87098             Paul Eggert  <eggert@cs.ucla.edu>
87099
87100         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87101         equivalent, substitute $ac_type for equivalent type rather than
87102         blindly using uint32_t *always* which won't work if uint32_t is not
87103         available.  Define _UINT32_T to work around typedef of uint32_t if
87104         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87105         2.5.1.
87106
87107 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87108
87109         * m4/jm-macros.m4: Sync from coreutils.
87110         (gl_MACROS): Check for mbrlen, for pathchk.
87111         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87112
87113 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87114
87115         * lib/xreadlink.c (MAXSIZE): New macro.
87116         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87117         size does not exceed MAXSIZE.  Avoid cast.
87118         As suggested by Mark D. Baushke in
87119         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87120         if readlink fails with buffer size just under MAXSIZE, try again
87121         with MAXSIZE.
87122
87123 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87124
87125         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87126
87127 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87128         and  Paul Eggert  <eggert@cs.ucla.edu>
87129
87130         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87131         (get_date): Overparenthesize to avoid GCC warning.
87132
87133 2004-11-02  Bruno Haible  <bruno@clisp.org>
87134
87135         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87136         returns void.
87137
87138 2004-11-02  Bruno Haible  <bruno@clisp.org>
87139
87140         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87141         function returns void.
87142
87143 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87144
87145         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87146         fflush_unlocked, flockfile, funlockfile, funlockfile,
87147         fputs_unlocked, putc_unlocked.
87148
87149 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87150
87151         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87152         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87153         already declared.
87154
87155 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87156
87157         * modules/getdate (Files): Add doc/getdate.texi.
87158         (Depends-on): Add setenv, xalloc.
87159
87160 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87161
87162         * lib/getdate.y: Add support for TZ="foo" within a date string.
87163         Fix some bugs near time_t boundaries.  Reject dates with
87164         out-of-range components, e.g., "Sept 31".
87165         Include <stdlib.h>, "setenv.h", "xalloc.h".
87166         (ISDIGIT_LOCALE): Remove; unused.
87167         Note that the TZ and time functions used here are not reentrant.
87168         (mktime_ok, get_tz): New functions.
87169         (TZBUFSIZE): New constant.
87170         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87171         This requires that we sometimes generate our own TZ="XXX..." setting.
87172
87173 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87174
87175         * doc/getdate.texi: New file, from coreutils with modifications for
87176         the new TZ parsing.
87177
87178 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87179
87180         * lib/mktime.c (not_equal_tm): Remove redundant check.
87181
87182 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87183
87184         * modules/regex (lib_SOURCES): Add regex.c.
87185         Reported by James Youngman in
87186         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87187
87188 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87189
87190         * lib/getdate.y: Use Bison 1.875 features, and some minor
87191         code cleanups.  This change does not affect semantics.
87192         Don't include <stdlib.h>; no longer needed.
87193         Don't include unlocked-io.h; only the "#if TEST" code uses
87194         stdio, and performance isn't crucial there.
87195         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87196         Bison 1.875 features as described below.
87197         All uses of "PC." replaced by "pc->".
87198         (YYSTYPE): Add a forward declaration.
87199         (yylex, yyerror): Use full prototypes in forward decls.
87200         Use "%pure-parser" rather than obsolescent "%pure_parser".
87201         Use %parse-param and %lex-param instead of obsolescent
87202         YYPARSE_PARAM and YYLEX_PARAM.
87203         (meridian_table, month_and_day_table, time_units_table,
87204         relative_time_table, time_zone_table, military_table,
87205         lookup_zone, lookup_word, get_date):
87206         Use NULL instead of 0 where appropriate.
87207         (to_hour): Avoid abort (), to avoid a dependency on
87208         stdlib.h.
87209         (yyerror, yylex): Now accepts parser_control * arg.
87210         (main) [TEST]: Use '\0' rather than 0 for char.
87211
87212 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87213
87214         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87215
87216 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87217
87218         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87219         It's now the caller's responsibility to handle the case where
87220         !HAVE_GETPAGESIZE && !defined getpagesize.
87221
87222         * lib/mktime.c (leapyear): Arg is long int, not int.
87223
87224 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87225
87226         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87227
87228 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87229
87230         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87231         missing.  Problem reported by James Youngman.
87232
87233 2004-10-16  Simon Josefsson  <jas@extundo.com>
87234
87235         * gnulib-tool: Fix comments.  Fix parse problem.
87236         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87237
87238 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87239
87240         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87241         implementation of getopt_long.  Problem reported by Alexander Taler in:
87242         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87243
87244 2004-10-15  Bruno Haible  <bruno@clisp.org>
87245
87246         * gnulib-tool: Untabify. Initialize supplied_libname.
87247         (func_usage): More homogenous output.
87248         (func_modules_transitive_closure, func_modules_to_filelist,
87249         func_emit_lib_Makefile_am): New functions.
87250         (func_import): New function, extracted from big case statement. Use
87251         func_get_license, func_modules_transitive_closure,
87252         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87253         opt_lgpl. Don't use test -a, as it's not portable.
87254         (func_create_testdir): Use func_modules_transitive_closure,
87255         func_modules_to_filelist, func_emit_lib_Makefile_am.
87256
87257 2004-10-15  Bruno Haible  <bruno@clisp.org>
87258
87259         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87260
87261 2004-10-15  Bruno Haible  <bruno@clisp.org>
87262
87263         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87264         the portions belonging to each module.
87265         Suggested by Derek Robert Price <derek@ximbiot.com>.
87266
87267 2004-10-12  Simon Josefsson  <jas@extundo.com>
87268
87269         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87270         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87271         to real functions.
87272
87273 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87274
87275         * modules/vsnprintf: New file.
87276
87277 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87278
87279         * m4/vsnprintf.m4: New file.
87280
87281 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87282
87283         * lib/vsnprintf.h: New file.
87284         * lib/vsnprintf.c: New file.
87285
87286 2004-10-11  Bruno Haible  <bruno@clisp.org>
87287
87288         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87289         vsnprintf.
87290
87291 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87292
87293         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87294
87295 2004-10-07  Bruno Haible  <bruno@clisp.org>
87296
87297         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87298         fits into the provided buffer.
87299
87300 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87301
87302         * lib/diacrit.c, diacrit.h: Add GPL notice.
87303
87304         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87305         notice.
87306         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87307         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87308         This avoids a potential constant-folding bug.
87309
87310 2004-10-05  Bruno Haible  <bruno@clisp.org>
87311
87312         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87313         for the declaration of strsep.
87314
87315 2004-10-05  Bruno Haible  <bruno@clisp.org>
87316
87317         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87318
87319 2004-10-04  Simon Josefsson  <jas@extundo.com>
87320
87321         * modules/memmem: New file.
87322         * tests/test-memmem.c: New file.
87323         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87324
87325 2004-10-04  Simon Josefsson  <jas@extundo.com>
87326
87327         * m4/memmem.m4: New file.
87328
87329 2004-10-04  Simon Josefsson  <jas@extundo.com>
87330
87331         * lib/memmem.h: New file.
87332         * lib/memmem.c: New file, taken from glibc.
87333
87334 2004-10-04  Simon Josefsson  <jas@extundo.com>
87335
87336         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87337         '#ifdef USE_UNLOCKED_IO'.
87338
87339 2004-10-04  Simon Josefsson  <jas@extundo.com>
87340
87341         * config/srclist.txt: Add memmem from glibc.
87342
87343 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87344
87345         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87346
87347         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87348         modules/exclude, modules/getdate, modules/getline,
87349         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87350         modules/getusershell, modules/linebuffer, modules/md5,
87351         modules/mountlist, modules/posixtm, modules/readtokens,
87352         modules/readutmp, modules/regex, modules/sha1,
87353         modules/version-etc, modules/yesno:
87354         Remove dependency on unlocked-io.
87355
87356 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87357
87358         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87359
87360         * m4/unlocked-io.m4: Add copyright notice.
87361         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87362
87363 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87364
87365         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87366         * lib/xmalloc.c (xmemdup): Likewise.
87367         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87368         XFREE): Remove these long-obsolescent macros.
87369         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87370         * lib/xstrdup.c: Remove.
87371
87372         * lib/regex.c (re_comp): Cast gettext return value to char *,
87373         Problem reported by Martin Neitzel via Mark D. Baushke.
87374
87375 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87376
87377         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87378         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87379         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87380         regex.c, sha1.c, version-etc.c, yesno.c:
87381         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87382         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87383         the includer's responsibility.
87384
87385         Sync from coreutils.
87386
87387         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87388         points to the start of a string, as the C Standard says the
87389         resulting behavior is undefined.
87390
87391         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87392         simple -> simple_backups, numbered_existing ->
87393         numbered_existing_backups, numbered -> numbered_backups
87394         to avoid shadowing problems.  All uses changed.
87395         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87396         * lib/backupfile.c (check_extension, numbered_backup):
87397         Rename locals to avoid shadowing 'basename'.
87398         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87399         once.
87400
87401         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87402         * lib/.cvsignore: Add getopt.h.
87403
87404 2004-10-04  Bruno Haible  <bruno@clisp.org>
87405
87406         * modules/README: New file.
87407         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87408         not a module.
87409
87410 2004-10-02  Jim Meyering  <jim@meyering.net>
87411
87412         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87413
87414 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87415
87416         * modules/strsep: New file.
87417
87418 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87419
87420         * m4/strsep.m4: New file.
87421
87422 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87423
87424         * lib/strsep.h: New file.
87425         * lib/strsep.c: New file.
87426
87427 2004-10-01  Simon Josefsson  <jas@extundo.com>
87428
87429         * lib/snprintf.c (snprintf): Handle size==0.
87430
87431 2004-10-01  Simon Josefsson  <jas@extundo.com>
87432             Bruno Haible  <bruno@clisp.org>
87433
87434         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87435         (snprintf): Declare 'args'.
87436
87437 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87438
87439         * lib/snprintf.c: Remove comments as to why each header is needed.
87440
87441 2004-10-01  Bruno Haible  <bruno@clisp.org>
87442
87443         * MODULES.html.sh: Add strsep.
87444
87445 2004-09-30  Simon Josefsson  <jas@extundo.com>
87446
87447         * modules/snprintf: New file.
87448
87449 2004-09-30  Simon Josefsson  <jas@extundo.com>
87450
87451         * m4/snprintf.m4: New file.
87452
87453 2004-09-30  Simon Josefsson  <jas@extundo.com>
87454
87455         * lib/snprintf.h, lib/snprintf.c: New files.
87456
87457 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87458
87459         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87460         (hol_entry_help): Never translate an empty string.
87461         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87462         * lib/argp.h (OPTION_NO_TRANS): New option.
87463
87464 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87465
87466         * modules/argp (Maintainer): Replace Simon Josefsson
87467         by Sergey Poznyakoff.
87468
87469 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87470
87471         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87472         changes merged back into glibc.
87473
87474 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87475
87476         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87477
87478 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87479
87480         * lib/xvasprintf.c: Include xalloc.h.
87481         (xvasprintf): Use xalloc_die, not xmalloc_die.
87482
87483 2004-09-29  Bruno Haible  <bruno@clisp.org>
87484
87485         * modules/alloca-opt: New file, derived from modules/alloca.
87486         * modules/allocsa: Depend on alloca-opt instead of alloca.
87487         * modules/setenv: Likewise.
87488         * modules/vasnprintf: Likewise.
87489         * MODULES.html.sh: Add alloca-opt.
87490
87491 2004-09-28  Simon Josefsson  <jas@extundo.com>
87492
87493         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87494         LGPL, and to replace license template from GPL to LGPL.
87495
87496 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87497
87498         * modules/dummy: Change license to LGPL.
87499
87500 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87501
87502         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87503
87504 2004-09-24  Simon Josefsson  <jas@extundo.com>
87505
87506         * modules/minmax (License): Change from GPL to LGPL.
87507
87508 2004-09-23  Simon Josefsson  <jas@extundo.com>
87509
87510         * gnulib-tool (--import): Typo.
87511
87512 2004-09-23  Simon Josefsson  <jas@extundo.com>
87513
87514         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87515
87516 2004-09-22  Bruno Haible  <bruno@clisp.org>
87517
87518         * modules/*: Add 'License' field.
87519         * gnulib-tool: Accept --extract-license option.
87520         (func_get_license): New function.
87521
87522 2004-09-21  Bruno Haible  <bruno@clisp.org>
87523
87524         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87525         Reported by Simon Josefsson.
87526
87527 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87528
87529         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
87530         gl_AC_TYPE_LONG_LONG.
87531
87532 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87533
87534         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
87535
87536 2004-09-18  Simon Josefsson  <jas@extundo.com>
87537         and  Paul Eggert  <eggert@cs.ucla.edu>
87538
87539         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
87540         calls with autoreconf.  Define GL_LIB.
87541
87542 2004-09-14  Karl Berry  <karl@gnu.org>
87543
87544         * config/srclist.txt: unsync setenv.c, sigh.
87545
87546 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87547
87548         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
87549         Problem reported by Bruno Haible in:
87550         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
87551
87552 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87553
87554         * config/srclist.txt: Comment out argp-pvh.c.
87555
87556 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
87557
87558         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
87559         in case some system header has #define'd it.  Problem reported by
87560         Soeren D. Schulze in
87561         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
87562
87563 2004-09-09  Karl Berry  <karl@gnu.org>
87564
87565         * regex.[ch]: delete from the root.  These were supposed to be
87566                 synced with emacs cvs, but this has not happened for about
87567                 a year, and anyway nothing else uses emacs regex.[ch].
87568                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
87569                 lib/regex[.ch] is untouched.
87570
87571 2004-09-09  Bruno Haible  <bruno@clisp.org>
87572
87573         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
87574
87575 2004-09-09  Bruno Haible  <bruno@clisp.org>
87576
87577         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
87578         modifications.
87579         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
87580
87581 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87582
87583         * modules/xvasprintf: New file.
87584         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
87585
87586 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87587
87588         * lib/xvasprintf.h: New file.
87589         * lib/xvasprintf.c: New file.
87590         * lib/xasprintf.c: New file.
87591
87592 2004-09-08  Bruno Haible  <bruno@clisp.org>
87593
87594         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
87595
87596 2004-09-08  Bruno Haible  <bruno@clisp.org>
87597
87598         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
87599         length is > INT_MAX.
87600         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
87601         more.
87602
87603 2004-09-08  Bruno Haible  <bruno@clisp.org>
87604
87605         * lib/stdint_.h: New file, taken from GNU clisp.
87606
87607 2004-09-08  Bruno Haible  <bruno@clisp.org>
87608             Oskar Liljeblad  <oskar@osk.mine.nu>
87609
87610         * modules/stdint: New file.
87611         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
87612
87613 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87614
87615         Import from coreutils.
87616         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
87617         strings on unbounded length.  alloca's performance benefits aren't
87618         that important here.
87619         (V_STRDUP): Remove.
87620         (parse_with_separator): New function, with most of the internals
87621         of the old parse_user_spec.  Allow user to omit both user and group,
87622         for compatibility with FreeBSD.
87623         Clone only the user name, not the entire spec.
87624         Do not set *uid, *gid unless entirely successful.
87625         Avoid memory leak in some failing cases.
87626         Fix regression for USER.GROUP reported by Dmitry V. Levin in
87627         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
87628         (parse_user_spec): Rewrite to use parse_with_separator.
87629
87630 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87631
87632         * modules/userspec: Don't depend on alloca.
87633
87634 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87635
87636         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
87637
87638 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87639
87640         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
87641         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
87642         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
87643
87644 2004-08-16  Simon Josefsson  <jas@extundo.com>
87645
87646         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
87647         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
87648         Add --dry-run for --import.
87649         Let user provided command line parameters override configure.ac
87650         settings.
87651
87652 2004-08-12  Simon Josefsson  <jas@extundo.com>
87653
87654         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
87655         as discussed with Paul Eggert in threads rooted at
87656         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
87657         and
87658         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
87659         Before, the test was empty, and relied on ELIDE_CODE in source
87660         code.)
87661         (gl_PREREQ_GETOPT): New macro.
87662         (gl_GETOPT): Use them.
87663
87664 2004-08-12  Simon Josefsson  <jas@extundo.com>
87665
87666         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
87667         * lib/getopt_.h: Renamed from getopt.h.
87668
87669 2004-08-12  Simon Josefsson  <jas@extundo.com>
87670
87671         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
87672         Change default library name from libfoo to libgnu.
87673         Now, if you have a configure.ac that says:
87674                 gl_SOURCE_BASE(gl)
87675                 gl_M4_BASE(gl/m4)
87676                 gl_MODULES(error getopt etcetera)
87677                 gl_INIT
87678         you can import all you need by running:
87679                 ../gnulib/gnulib-tool --import
87680
87681         * modules/getopt (Files): Rename getopt.h to getopt_.h.
87682         (Makefile.am): Rewrite, use logic from argz.
87683         (Include): Use <getopt.h> instead of "getopt.h".
87684
87685 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87686
87687         * modules/argp (Files): Add m4/unlocked-io.m4.
87688         (Depends-on): Add extensions.
87689
87690 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87691
87692         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
87693         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
87694         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
87695         Check for program_invocation_name, program_invocation_short_name,
87696         flockfile, funlockfile, features.h, _getopt_long_only_r.
87697
87698 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87699
87700         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
87701         its complicated substitute.
87702         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
87703         and program_invocation_name.
87704         (__argp_basename) [!_LIBC]: Remove; the only use was
87705         replaced by its body.
87706         (__argp_short_program_name): Change condition from
87707         !defined __argp_short_program_name to
87708         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
87709         to match argp-namefrob.h.
87710         (__argp_failure): Don't assume strerror_r returns char *.
87711         * lib/argp-parse.c (N_): Define unconditionally.
87712         (argp_default_options): Fill out initializers with 0 to avoid
87713         gcc warnings.
87714
87715 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87716
87717         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
87718         getopt1.c.
87719
87720 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87721
87722         Merge from coreutils.
87723
87724         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
87725
87726         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
87727         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
87728
87729 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87730
87731         Merge from coreutils.
87732
87733         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
87734         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
87735         for Reliant Unix 5.43.
87736
87737         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
87738         (union fooround): Use uintmax_t, not long int.
87739         The rest is a merge from libc:
87740         [defined _LIBC]: Include <shlib-compat.h>.
87741         (_obstack) [defined _LIBC]: Remove after 2.3.4.
87742
87743         * lib/settime.c (settime): Recode to avoid warning with
87744         Sun Forte C 6U2.
87745
87746         * lib/strverscmp.c: Convert to UTF-8.
87747
87748 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87749
87750         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
87751         m4/uintmax_t.m4.
87752
87753 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87754
87755         * modules/xalloc-die: New file.
87756         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
87757
87758         * modules/md5 (Files): Add m4/uint32_t.m4.
87759         * modules/sha1: Renamed from modules/sha.
87760         (Files):
87761         Rename lib/sha.h to lib/sha1.h.
87762         Rename lib/sha.c to lib/sha1.c.
87763         Rename m4/sha.m4 to m4/sha1.m4.
87764         (lib_SOURCES): Likewise.
87765         (configure.ac): Rename gl_SHA to gl_SHA1.
87766         (Include): sha.h -> sha1.h.
87767
87768 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87769
87770         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
87771         * m4/sha1.m4: Renamed from sha.m4.
87772         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
87773
87774 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87775
87776         * lib/obstack.h (obstack_empty_p):
87777         Don't assume that chunk->contents is suitably aligned.
87778         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
87779         Likewise. Problem reported by Benno in
87780         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
87781
87782         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
87783         readable.  This could be improved further but it'd take some work.
87784
87785 2004-08-08  Simon Josefsson  <jas@extundo.com>
87786
87787         * modules/xgethostname (Depends-on): Remove exit and error (not
87788         used).
87789
87790         * modules/getpass-gnu: Add getpass.h.
87791         (Depends-on): Add stdbool.
87792         * modules/getpass: Add getpass.h.
87793
87794 2004-08-08  Simon Josefsson  <jas@extundo.com>
87795
87796         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
87797         Check getpass declaration.
87798
87799 2004-08-08  Simon Josefsson  <jas@extundo.com>
87800
87801         * lib/xgethostname.c: Don't include error.h (not used).
87802
87803         * lib/getpass.h: Add.
87804         * lib/getpass.c: Include getpass.h first.
87805
87806 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
87807
87808         * lib/xalloc-die.c: New file.
87809         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
87810         All uses removed.
87811         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
87812         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
87813         xalloc-die.c.
87814         (_, N_, xalloc_die): Move to xalloc-die.c.
87815         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
87816         so that we needn't mess with xalloc_msg_memory_exhausted.
87817
87818         * lib/sha1.h: Renamed from sha.h.
87819         (SHA1_H): Renamed from _SHA_H.
87820         (sha1_ctx): Renamed from sha_ctx.
87821         (sha1_init_ctx): Renamed from sha_init_ctx.
87822         (sha1_process_block): Renamed from sha_process_block.
87823         (sha1_process_bytes): Renamed from sha_process_bytes.
87824         (sha1_finish_ctx): Renamed from sha_finish_ctx.
87825         (sha1_read_ctx): Renamed from sha_read_ctx.
87826         (sha1_stream): Renamed from sha_stream.
87827         (sha1_buffer): Renamed from sha_buffer.
87828         * lib/sha1.c: Likewise; renamed from sha.c.
87829         Do not include <sys/types.h>.
87830         Include <stddef.h> rather than <stdlib.h>.
87831
87832 2004-08-08  Bruno Haible  <bruno@clisp.org>
87833
87834         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
87835         FILESYSTEM_PREFIX_LEN.
87836         * lib/progreloc.c: Likewise.
87837         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
87838
87839 2004-08-06  Simon Josefsson  <jas@extundo.com>
87840
87841         * modules/progname (Depends-on): Don't depend on stdbool.
87842
87843 2004-08-06  Simon Josefsson  <jas@extundo.com>
87844
87845         * modules/getsubopt: New file.
87846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87847         getsubopt.
87848
87849 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87850
87851         More merge from coreutils.
87852
87853         * m4/utimens.m4, m4/utimecmp.m4: New files.
87854         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
87855         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
87856         prereq.m4, sha.m4: Import changes from coreutils.
87857
87858 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87859
87860         More merge from coreutils.
87861         * modules/raise, modules/readtokens0, modules/utimens:
87862         * modules/utimecmp, module/xnanosleep: New files.
87863         * modules/strftime: Add lib/strftime.h.
87864         Change include from <time.h> to "strftime.h".
87865         * modules/yesno: Add lib/yesno.h.
87866         * modules/backupfile: Remove lib/addext.c.
87867         * modules/euidaccess: Add stat-macros.h.
87868         * modules/canonicalize, modules/euidaccess,
87869         modules/filemode, modules/lchown, modules/makepath,
87870         modules/rmdir, modules/stat: Likewise.
87871
87872 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87873
87874         Merge from tar.
87875         * lib/argp-help.c (make_hol, hol_append): Don't assume that
87876         SIZE_MAX is a valid preprocessor constant.
87877         (__argp_basename): Change from "#ifndef _LIBC"
87878         to "#ifndef __argp_short_program_name", so that
87879         we don't compile these functions for tar.
87880
87881         More merges from coreutils.
87882         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
87883         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
87884         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
87885         * lib/addext.c: Remove; no longer needed.
87886         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
87887         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
87888         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
87889         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
87890         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
87891         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
87892         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
87893         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
87894         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
87895         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87896         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
87897         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
87898         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
87899         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
87900         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
87901         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
87902         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
87903         Import changes from coreutils.
87904
87905 2004-08-05  Simon Josefsson  <jas@extundo.com>
87906
87907         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
87908
87909 2004-08-05  Simon Josefsson  <jas@extundo.com>
87910
87911         * m4/getsubopt.m4: New file.
87912
87913 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87914
87915         Merge from coreutils.
87916
87917         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
87918         * m4/getcwd-path-max.m4: New files.
87919
87920         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
87921         FILESYSTEM_PREFIX_LEN ->
87922         FILE_SYSTEM_PREFIX_LEN.
87923         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
87924         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
87925         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
87926         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
87927
87928         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
87929         prerequisite modules now handle the DOS stuff.
87930         Don't check for unistd.h.
87931
87932 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87933
87934         Merge from coreutils.
87935
87936         * lib/.gdb-history: Remove; this doesn't belong here.
87937
87938         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
87939         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
87940         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
87941         * lib/getcwd.c: New files.
87942
87943         * lib/dirname.h: Include <stdbool.h>.
87944         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
87945         for consistency with POSIX terminology.  All uses changed.
87946         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
87947         (strip_trailing_slashes): Use bool for booleans.
87948         * lib/stripslash.c (strip_trailing_slashes): Likewise.
87949
87950         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
87951         sometimes returns a positive errno value even when it succeeds.
87952         (print_errno_message) [!LIBC]: Fall back on strerror if
87953         __strerror_r fails.
87954
87955         * lib/path-concat.c (mempcpy): Don't define if a system header defines
87956         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
87957         (longest_relative_suffix): New function.
87958         (path_concat): Use it.  Assume first argument is not NULL.
87959         Port to DOS.  Omit redundant separators.
87960         Report an error instead of returning NULL.
87961         Use mempcpy instead of memcpy.
87962         (xpath_concat): Remove: not declared or used.
87963
87964         * lib/same.h: Include <stdbool.h>
87965         (same_name): Return bool, not int.
87966         * lib/same.c (same_name): Likewise.
87967         (errno): Don't declare; we assume C89 or better now.
87968
87969         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
87970         if not already defined.
87971
87972         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
87973         * lib/dup-safer.c (errno): Likewise.
87974
87975 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87976
87977         Merge from coreutils.
87978         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
87979         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
87980         * modules/path-concat: Don't depend on strdup.
87981
87982 2004-08-03  Simon Josefsson  <jas@extundo.com>
87983
87984         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
87985         * lib/progname.h: Don't include stdbool.h.
87986
87987 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87988
87989         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
87990         * MODULES.html.sh (func_all_modules): Remove fatal.
87991
87992 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87993
87994         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
87995
87996 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87997
87998         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
87999         working.
88000
88001 2004-08-02  Simon Josefsson  <jas@extundo.com>
88002
88003         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88004         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88005         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88006
88007 2004-08-01  Simon Josefsson  <jas@extundo.com>
88008
88009         * lib/xgetdomainname.c: Include stdlib.h, for free().
88010
88011 2004-07-19  Bruno Haible  <bruno@clisp.org>
88012
88013         * MODULES.html.sh (func_all_modules): Add dummy.
88014
88015 2004-07-16  Simon Josefsson  <jas@extundo.com>
88016
88017         * modules/dummy: New file.
88018
88019 2004-07-16  Simon Josefsson  <jas@extundo.com>
88020
88021         * lib/dummy.c: New file.
88022
88023 2004-07-16  Bruno Haible  <bruno@clisp.org>
88024
88025         * lib/backupfile.h: Add extern "C" for C++.
88026         * lib/closeout.h: Likewise.
88027         * lib/copy-file.h: Likewise.
88028         * lib/findprog.h: Likewise.
88029         * lib/full-write.h: Likewise.
88030         * lib/pathname.h: Likewise.
88031         * lib/progname.h: Likewise.
88032         * lib/stpcpy.h: Likewise.
88033         * lib/stpncpy.h: Likewise.
88034         * lib/strcase.h: Likewise.
88035         * lib/strstr.h: Likewise.
88036         * lib/xalloc.h: Likewise.
88037
88038         * lib/mbswidth.h: Add extern "C" for C++.
88039         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88040
88041 2004-07-13  Robert Millan  <robertmh@gnu.org>
88042
88043         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88044
88045 2004-07-09  Simon Josefsson  <jas@extundo.com>
88046
88047         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88048         failed without this.)
88049
88050 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88051
88052         * modules/chown (Files): Add lib/fchown-stub.c, since
88053         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88054
88055 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88056
88057         * lib/fchown-stub.c: New file.
88058
88059 2004-06-24  Jim Meyering  <jim@meyering.net>
88060
88061         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88062
88063 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88064
88065         * modules/argz: Omit "#include".
88066
88067         * MODULES.html.sh (func_all_modules): Add calloc, to match
88068         2004-06-01 addition of calloc module.
88069
88070 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88071
88072         * m4/argz.m4: New file, which is autoupdated from libtool.
88073
88074 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88075
88076         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88077         libtool.
88078
88079 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88080
88081         * config/srclist-update: Don't insist on "USA." before the
88082         close-comment, as libtool omits the period and puts the */ on a
88083         separate line.
88084         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88085         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88086
88087 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88088
88089         * modules/argz: New file.
88090         * MODULES.html.sh (func_all_modules): Add argz.
88091
88092 2004-06-12  Jim Meyering  <jim@meyering.net>
88093         and  Paul Eggert  <eggert@cs.ucla.edu>
88094
88095         * modules/hash (Files): Add lib/xalloc.h.
88096         * modules/pipe (Depends-on): Add wait-process.
88097         * modules/stat (Depends-on): Add xalloc.
88098         * modules/userspec (Files): Add lib/userspec.h.
88099         * modules/xstrto
88100
88101         Upgrade from gettext-0.13.
88102         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88103         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88104         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88105
88106 2004-06-10  Jim Meyering  <jim@meyering.net>
88107
88108         * lib/calloc.c: New file.
88109
88110 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88111
88112         * lib/getdate.y (yylex): Allow space between sign and number.
88113         Problem reported by Dan Jacobson.
88114
88115 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88116
88117         Merge from coreutils CVS.
88118
88119         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88120         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88121         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88122         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88123         xstrtol.m4: Fix copyright date and/or serial number.
88124
88125         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88126         See if we need an fchown replacement.
88127         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88128         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88129         and use the replacement function if we detect either defect.
88130
88131         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88132         gl_UTIMECMP.
88133
88134 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88135         and  Jim Meyering  <jim@meyering.net>
88136
88137         Merge from coreutils CVS.
88138
88139         * lib/stat-macros.h: New file, with contents from file-type.h
88140         and coreutils' system.h.
88141         * lib/file-type.c: Include "stat-macros.h".
88142         * lib/file-type.h (file_type): Move all macro definitions to new file,
88143         stat-macros.h.
88144
88145         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88146         Wrap old code with this conditional.
88147         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88148         function that does not dereference symlinks.
88149         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88150
88151         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88152         dependency problems.
88153         (xreadlink): Accept new arg SIZE, for efficiency.
88154         All decls and uses changed.
88155         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88156
88157         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88158         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88159
88160         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88161         sysexits.h.
88162
88163 2004-06-01  Jim Meyering  <jim@meyering.net>
88164
88165         * m4/calloc.m4: New file.
88166
88167 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88168
88169         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88170         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88171         Also, fix a typo in a diagnostic.
88172
88173 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88174
88175         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88176         or AC_FUNC_REALLOC.
88177
88178 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88179
88180         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88181         macros to be defined.
88182         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88183         the allocator returns NULL because the requested size is zero.
88184
88185 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88186
88187         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88188         var.  Add comment explaining why libc still defines it.  This
88189         merges the following patch from glibc:
88190         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88191
88192 2004-05-20  Andreas Schwab  <schwab@suse.de>
88193
88194         * m4/free.m4: Replace free if it not known to work, not the other
88195         way round.
88196
88197 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88198
88199         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88200         present in glibc since revision 1.1 of this file.
88201         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88202         obstack_alignment_mask, obstack_alloc, obstack_base,
88203         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88204         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88205         obstack_grow0, obstack_init, obstack_int_grow,
88206         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88207         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88208         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88209         nonexistent functions.
88210
88211 2004-05-18  Karl Berry  <karl@gnu.org>
88212
88213         * config/srclist.txt: break link for vasnprintf.c.
88214
88215 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88216
88217         Port obstack to the AS/400, where pointers are 16 bytes wide and
88218         you cannot cast an integer to a valid pointer.  This patch is
88219         currently waiting to be integrated into glibc; see
88220         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88221
88222         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88223         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88224         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88225         (struct obstack): temp member is now a union of a pointer and
88226         an integer, instead of an integer.  All integer uses changed.
88227         This does not affect the physical layout of struct obstack,
88228         except on hosts (like the AS/400) where the size or alignment of
88229         void * is greater than that of ptrdiff_t.
88230         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88231         __STDC__)]: Store temporary in pointer member of union, not
88232         integer member.
88233         * lib/obstack.c: Include <stddef.h>, for offsetof.
88234         (struct fooalign): Remove; it doesn't need a name.
88235         (union fooround): Change double to long double, and add void *.
88236         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88237         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88238         not a macro.  Hence the values are always int; so remove all
88239         casts-to-int in uses.
88240
88241 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88242
88243         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88244         we can get this patch merged into glibc.
88245
88246 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88247             Paul Eggert  <eggert@cs.ucla.edu>
88248
88249         * m4/argp: Depend on alloca.
88250
88251 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88252             Paul Eggert  <eggert@cs.ucla.edu>
88253
88254         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88255         freecoding.
88256
88257 2004-05-17  Bruno Haible  <bruno@clisp.org>
88258
88259         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88260         precision that consists of a '.' followed by an empty digit string.
88261         Patch by Tor Lillqvist <tml@iki.fi>.
88262
88263 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88264
88265         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88266         for backward compatibility with older code.  We need our own
88267         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88268         it under some other name, and our alloca.h will define it.
88269
88270 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88271             Derek Price  <derek@ximbiot.com>
88272
88273         * lib/alloca.c: Include <alloca.h>, to get our interface.
88274         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88275         include <alloca.h> first.  Use C89 prototype for alloca; this
88276         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88277         Use #elif for simplicity, since we can assume C89 now.
88278         Don't try to source the system alloca.h since it will not be found
88279         and to prevent recursively including its replacement.
88280         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88281         * lib/regex.c: Likewise.
88282
88283 2004-05-16  Derek Price  <derek@ximbiot.com>
88284             Paul Eggert  <eggert@cs.ucla.edu>
88285
88286         getline cleanup.  This changes the getndelim2 API: both order of
88287         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88288         no delimiter).
88289
88290         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88291         interface does that.
88292         (getline): Always use getdelim, so that we don't have two
88293         copies of this code.
88294         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88295         if available.
88296         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88297         (GETNDELIM2_MAXIMUM): New macro.
88298         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88299         instead of the old practice of delim2==0.  All callers changed.
88300         Return -1 on overflow, instead of returning junk.
88301         Do not set *linesize unless allocation succeeds.
88302         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88303         that we include sys/types.h.
88304         * lib/getnline.h: Likewise.
88305         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88306         (getndelim2): Reorder arguments.
88307         * lib/getnline.c (getnline, getndelim):
88308         Don't discard the NMAX argument.
88309         (getnline): Invoke getndelim, to avoid code duplication.
88310         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88311         of (size_t) -1 by callers of the getnline family.
88312
88313 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88314
88315         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88316         Check for gettimeofday.
88317         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88318         Check for settimeofday, stime.
88319
88320 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88321
88322         * lib/nanosleep.c (suspended): Change its type from int to
88323         sig_atomic_t volatile.
88324         (first_call): Make it private to rpl_nanosleep, and have it
88325         be zero initially as that's a bit faster.
88326         (my_usleep): Round up fractional times instead of truncating them,
88327         as this is the usual meaning for 'sleep'.
88328
88329         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88330         doesn't work.
88331         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88332         (ENOSYS): Define if not defined.
88333         (settime): Fall back on stime if it exists and settimeofday fails.
88334         But don't bother with fallbacks if a method fails with errno == EPERM.
88335
88336 2004-05-11  Jim Meyering  <jim@meyering.net>
88337
88338         Prior to this change, the save_cwd caller required read access to the
88339         current directory on most systems (ones with the fchdir function).
88340
88341         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88342         fails, try write-only, and finally, resort to using xgetcwd.
88343
88344 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88345
88346         * lib/obstack.c, obstack.h: Import changes from libc.
88347
88348 2004-04-28  Bruno Haible  <bruno@clisp.org>
88349
88350         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88351         also implicitly appends .exe to executables.
88352         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88353         accepts Windows pathnames.
88354         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88355         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88356         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88357         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88358         Reported by Derek Robert Price <derek@ximbiot.com>.
88359
88360 2004-04-21  Karl Berry  <karl@gnu.org>
88361
88362         * config/srclist.txt (localcharset.c): break sync.
88363
88364 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88365
88366         * m4/host-os.m4: Add a copyright notice.
88367
88368 2004-04-20  Jim Meyering  <jim@meyering.net>
88369
88370         Change UTILS_ to gl_ in AC_DEFINE'd names.
88371         Change utils_- and jm_-prefixed variables, too.
88372         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88373         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88375
88376         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88377         Don't emit trailing blanks.
88378         Also rename jm_-prefixed variables to have gl_ prefix.
88379
88380         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88381         Also rename jm_-prefixed variables to have gl_ prefix.
88382
88383         * m4/jm-macros.m4: Reflect the renamings.
88384         * m4/prereq.m4: Likewise.
88385
88386 2004-04-20  Jim Meyering  <jim@meyering.net>
88387
88388         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88389         memory.
88390
88391 2004-04-20  Jim Meyering  <jim@meyering.net>
88392             Bruno Haible  <bruno@clisp.org>
88393
88394         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88395         memory when realloc fails.
88396
88397 2004-04-19  Jim Meyering  <jim@meyering.net>
88398
88399         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88400         now that readutmp.c may call `free (0)'.
88401
88402 2004-04-19  Bruno Haible  <bruno@clisp.org>
88403
88404         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88405         * m4/inttypes_h.m4: Likewise.
88406         * m4/stdint_h.m4: Likewise.
88407         * m4/intmax_t.m4: Likewise.
88408         * m4/uintmax_t.m4: Likewise.
88409
88410 2004-04-18  Jim Meyering  <jim@meyering.net>
88411
88412         * m4/prereq.m4: Don't forbid jm_ prefix.
88413
88414         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88415         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88416         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88417         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88418         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88419         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88420         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88421         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88422         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88423         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88424         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88425         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88426         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88427         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88428         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88429         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88430         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88431         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88432         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88433
88434 2004-04-18  Jim Meyering  <jim@meyering.net>
88435
88436         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88437         failure, don't leak memory and do call END_UTMP_ENT.
88438
88439 2004-04-16  Jim Meyering  <jim@meyering.net>
88440
88441         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88442         coreutils' stat program.
88443         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88444
88445 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88446
88447         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88448         C89.
88449         (CHAR_BIT): Remove, since we assume C89.
88450         Include <stdint.h> if available, as per current Autoconf CVS advice.
88451
88452 2004-03-31  Jim Meyering  <jim@meyering.net>
88453
88454         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88455         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88456         * m4/xalloc.m4: Likewise.
88457
88458 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88459
88460         Merge from coreutils.
88461
88462         * m4/inttostr.m4: New file.
88463         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88464         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88465         Require gl_CLOCK_TIME.
88466         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88467
88468 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88469
88470         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88471         not bool, to be more consistent with Unix conventions.
88472         Suggested by Bruno Haible.
88473
88474         Merge from coreutils.
88475
88476         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88477         * lib/umaxtostr.c: New files.
88478
88479         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88480         the usual <time.h> dance.
88481         (get_date): Change signature to support fractional time stamps.
88482         All callers changed.
88483         * lib/getdate.y: Include "getdate.h" first, as we can now
88484         assume C89 and don't need to worry about 'const'.
88485         Similarly, include "unlocked-io.h" near start, not in middle.
88486         Include <limits.h>.
88487         (textint.value): Use long int rather than int.
88488         (textint.digits): Use size_t rather than int.
88489         (BILLION, LOG10_BILLION): New constants.
88490         (parser_control): New member rel_ns.  Members day_ordinal,
88491         time_zone, month, day, hour, minutes, rel_year, rel_month,
88492         rel_day, rel_hour, rel_minutes, rel_seconds
88493         are now long int, not int.  Member seconds is now struct timespec,
88494         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88495         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88496         not int.
88497         (%union.intval): Now long int, not int.
88498         New member timespec.
88499         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88500         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88501         (spec): Now is a timespec or an item list.
88502         (timespec, items): New nonterminals.
88503         (time, rel, relunit, number, get_date):
88504         Add support for fractional seconds.
88505         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88506         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88507         (to_hour): First arg is now long int, not int.
88508         (to_year): Returns long int, not int.
88509         Don't treat year -70 like 70.
88510         (tm_diff): Returns long int, not int.
88511         (lookup_word): Use bool instead of int when appropriate.
88512         (yylex): Use size_t for count, not int.
88513         Detect overflow when parsing large integer constants.
88514         Add support for fractions.
88515         (get_date): Make pointers 'const' if possible.
88516         Use more-portable code to detect integer overflow.
88517         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88518         Don't use ctime; it's not reliable if the year has >4 digits.
88519
88520         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88521         This is for compatibility with BSD.
88522
88523         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88524         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88525         From coreutils' system.h.
88526
88527         * lib/userspec.c: Don't include "posixver.h".
88528         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
88529         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
88530         compatible extension.  Simplify code by removing a boolean int
88531         that was always nonzero if a string was nonnull.
88532
88533 2004-03-30  Jim Meyering  <jim@meyering.net>
88534
88535         Merge from coreutils.
88536
88537         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
88538         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
88539         on some systems one must include <grp.h> before it.
88540         Reported by Christian Krackowizer.
88541
88542 2004-03-30  Jim Meyering  <jim@meyering.net>
88543
88544         Merge from coreutils.
88545
88546         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
88547
88548         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
88549         an empty input stream.
88550
88551         * lib/readtokens.c: Include <stdbool.h>.
88552         (readtoken): Use `size_t' rather than int/long.
88553         All callers adjusted.
88554         Use `bool' rather than `int' where appropriate.
88555         Use memset rather than an explicit loop.
88556         Use x2nrealloc rather than xrealloc.
88557         Allow the use of `\0' as a delimiter.
88558         (readtokens): Likewise.
88559         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
88560
88561 2004-03-30  Jim Meyering  <jim@meyering.net>
88562
88563         * m4/realloc.m4: Remove file, since now it does no more than
88564         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
88565         the `configure.ac' section of module/realloc.
88566         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
88567
88568 2004-03-30  Bruno Haible  <bruno@clisp.org>
88569
88570         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
88571         nonnull.
88572
88573 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88574
88575         Merge changes to getloadavg.c from coreutils and Emacs.
88576
88577         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
88578         Define to an expression, not to the empty string.
88579         Include cloexec.h and xalloc.h.
88580         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
88581         Use set_cloexec_flag rather than rolling our own.
88582         * lib/cloexec.c, lib/cloexec.h: New files.
88583
88584 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88585
88586         * m4/cloexec.m4: New file.
88587
88588 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88589
88590         * lib/getopt.h: Sync with libc CVS.
88591
88592 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88593             Bruno Haible  <bruno@clisp.org>
88594
88595         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
88596         mbswidth.
88597
88598 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88599             Bruno Haible  <bruno@clisp.org>
88600
88601         * lib/mbswidth.h: Include <wchar.h> only if
88602         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
88603         <wchar.h>.
88604         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
88605
88606 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88607
88608         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
88609         Sync with libc CVS.
88610         * lib/getopt_int.h: New file, also synced from libc.
88611
88612 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88613
88614         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
88615         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
88616         Bring back getopt.c, getopt.h, getopt1.c.
88617
88618 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88619
88620         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
88621         All uses changed.  Check for sa_sigaction member; this fixes
88622         a bug first reported by Jason Andrade in
88623         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88624
88625 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88626
88627         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
88628         '#if' expressions.  Unlike the code it replaces, it does not
88629         depend on (defined _SC_PAGESIZE).  However, it does depend on
88630         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
88631         first reported by Jason Andrade in
88632         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88633
88634 2004-02-25  Simon Josefsson  <jas@extundo.com>
88635
88636         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
88637
88638 2004-02-25  Simon Josefsson  <jas@extundo.com>
88639
88640         * lib/strdup.h: New file.
88641         * lib/strdup.c: Include it.
88642         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
88643         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
88644
88645 2004-02-23  Karl Berry  <karl@gnu.org>
88646
88647         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
88648         (from fencepost.gnu.org:/gd/gnuorg).
88649
88650 2004-02-23  Karl Berry  <karl@gnu.org>
88651
88652         * config/srclistvars.sh (GNUORG) [karl]: redefine.
88653         * config/srclist.txt: add maintain/standards documents.
88654
88655 2004-02-18  Bruno Haible  <bruno@clisp.org>
88656
88657         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
88658         Reported by Derek Robert Price <derek@ximbiot.com>.
88659
88660 2004-02-16  Karl Berry  <karl@gnu.org>
88661
88662         * config/mkinstalldirs, install-sh: update from automake.
88663
88664 2004-02-06  Karl Berry  <karl@gnu.org>
88665
88666         * m4/po.m4: update from gettext 0.14.1.
88667
88668 2004-02-06  Karl Berry  <karl@gnu.org>
88669
88670         * lib/config.charset: update from gettext 0.14.1.
88671
88672 2004-02-05  Paul Eggert  <eggert@twinsun.com>
88673
88674         Add comments and code, prompted by suggestions from Bruno Haible
88675         for sh-quote.
88676         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
88677         describing the enum quoting_style values.
88678         * lib/quotearg.c (quotearg_alloc): New function.
88679         (quotearg_buffer_restyled): Treat lone { and } as special.
88680         Treat = as special.  Work around bug with older shells
88681         that "see" a '\' that is really the 2nd byte of a multibyte char.
88682         Quote empty string with shell_quoting_style.
88683
88684 2004-02-03  Bruno Haible  <bruno@clisp.org>
88685
88686         * m4/pipe.m4: New file, from GNU gettext.
88687
88688 2004-02-03  Bruno Haible  <bruno@clisp.org>
88689
88690         * lib/pipe.h: New file, from GNU gettext.
88691         * lib/pipe.c: New file, from GNU gettext.
88692
88693 2004-01-27  Bruno Haible  <bruno@clisp.org>
88694
88695         * m4/execute.m4: New file, from GNU gettext.
88696
88697 2004-01-27  Bruno Haible  <bruno@clisp.org>
88698
88699         * lib/execute.h: New file, from GNU gettext.
88700         * lib/execute.c: New file, from GNU gettext.
88701         * lib/w32spawn.h: New file, from GNU gettext.
88702
88703 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88704
88705         Merge from diffutils.
88706
88707         * lib/file-type.c (file_type): Add typed memory objects.
88708         * lib/file-type.h (S_TYPEISTMO): New macro.
88709
88710         * lib/c-stack.h (c_stack_action): Remove argv argument.
88711         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
88712         (die): Don't calculate message unless segv_action returns.
88713         (get_stack_location, min_address_from_argv, max_address_from_argv,
88714         volatile stack_base, volatile_stack_size): Remove.
88715         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
88716         that every segmentation violation is a stack overflow.  (Ouch!)
88717         See Debian bug 136249 (still outstanding) for more info about why
88718         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
88719
88720 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88721
88722         Exit-status fix from coreutils.
88723
88724         Use exit_failure consistently in place of EXIT_FAILURE,
88725         so that program exit statuses are consistent on failure.
88726
88727         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
88728         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
88729         * lib/argmatch.h: Comment fix to match the above.
88730         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
88731         Now a macro referring to exit_failure, instead of a separate
88732         variable.  Include "exitfail.h" to get it.
88733         * lib/xstrtol.h: Include "exitfail.h".
88734         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
88735
88736         * lib/long-options.c (parse_long_options): Use prototype
88737         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
88738         for clarity.
88739
88740 2004-01-21  Jim Meyering  <jim@meyering.net>
88741
88742         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
88743         so as not to conflict with a different-sized __mktime_internal
88744         function in GNU libc.
88745         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
88746         Problem building statically-linked `ls' reported by Michael Brunnbauer.
88747
88748 2004-01-20  Karl Berry  <karl@gnu.org>
88749
88750         * config/config.guess: update from config.
88751
88752         * config/srclistvars.sh: GNUWWWLICENSES for karl.
88753
88754 2004-01-20  Bruno Haible  <bruno@clisp.org>
88755
88756         Safer stack allocation.
88757         * lib/setenv.c: Include allocsa.h.
88758         (alloca): Remove fallback definition.
88759         (freea): Remove macro.
88760         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
88761         instead of freea.
88762
88763 2004-01-20  Bruno Haible  <bruno@clisp.org>
88764
88765         * m4/eealloc.m4: New file, from GNU gettext.
88766
88767 2004-01-20  Bruno Haible  <bruno@clisp.org>
88768
88769         * m4/allocsa.m4: New file, from GNU gettext.
88770
88771 2004-01-20  Bruno Haible  <bruno@clisp.org>
88772
88773         * lib/xallocsa.h: New file, from GNU gettext.
88774         * lib/xallocsa.c: New file, from GNU gettext.
88775
88776 2004-01-20  Bruno Haible  <bruno@clisp.org>
88777
88778         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
88779
88780 2004-01-20  Bruno Haible  <bruno@clisp.org>
88781
88782         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
88783         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
88784         specially.
88785
88786 2004-01-20  Bruno Haible  <bruno@clisp.org>
88787
88788         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
88789         patch.
88790
88791 2004-01-20  Bruno Haible  <bruno@clisp.org>
88792
88793         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
88794
88795 2004-01-20  Bruno Haible  <bruno@clisp.org>
88796
88797         * lib/eealloc.h: New file.
88798
88799 2004-01-20  Bruno Haible  <bruno@clisp.org>
88800
88801         * lib/binary-io.h: Avoid warnings on Cygwin.
88802
88803 2004-01-20  Bruno Haible  <bruno@clisp.org>
88804
88805         * lib/allocsa.h: New file, from GNU gettext.
88806         * lib/allocsa.c: New file, from GNU gettext.
88807
88808 2004-01-18  Karl Berry  <karl@gnu.org>
88809
88810         * doc/gpl.texi, doc/lgpl.texi: new files.
88811
88812 2004-01-18  Karl Berry  <karl@gnu.org>
88813
88814         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
88815         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
88816
88817 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88818
88819         Merge from coreutils.
88820
88821         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
88822         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
88823         (gl_DEFAULT_POSIX2_VERSION): Move
88824         the documentation from 'configure' into 'config.hin',
88825         so that 'configure --help' isn't burdened by it and
88826         we don't have to worry about its formatting there.
88827         Reword the documentation so that it's more succinct
88828         and can be run together into a single paragraph.
88829         * m4/same.m4 (gl_SAME): Check for pathconf.
88830
88831 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88832
88833         Merge from coreutils.
88834
88835         * lib/posixver.c: Include posixver.h.
88836
88837         * lib/same.c: Include <stdbool.h>, <limits.h>.
88838         (_POSIX_NAME_MAX): Define if not defined.
88839         (MIN): New macro.
88840         (same_name): If file names are silently truncated, report
88841         that the file names are the same if they are the same after
88842         the silent truncation.
88843
88844         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
88845         conversion function.
88846         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
88847         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
88848         longer needed.
88849
88850 2004-01-15  Jim Meyering  <jim@meyering.net>
88851
88852         Merge from coreutils.
88853
88854         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
88855         if no library is required.
88856         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
88857         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
88858         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
88859         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
88860         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
88861         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
88862         value, $ac_cv_search_crypt, if it's "none required".
88863         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
88864         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
88865         not gl_FUNC_GETLOADAVG.
88866         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
88867         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
88868
88869 2004-01-15  Jim Meyering  <jim@meyering.net>
88870
88871         Merge from coreutils.
88872
88873         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
88874         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
88875         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
88876
88877         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
88878         optional configure-time default.
88879
88880         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88881
88882         * lib/xreadlink.c (xreadlink): Correct outdated comment.
88883
88884 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
88885
88886         Merge from coreutils.
88887
88888         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
88889         value, $ac_cv_search_nanosleep, if it's "none required".
88890
88891 2004-01-14  Paul Eggert  <eggert@twinsun.com>
88892
88893         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
88894         with like-named macro in fnmatch.c.
88895         (EXT): Use an internal constant instead.
88896
88897         Merge fnmatch patches from glibc.
88898         * lib/fnmatch.c (mbsinit): Remove define.
88899         Add libc_hidden_ver (__fnmatch, fnmatch).
88900         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
88901         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
88902
88903 2004-01-14  Karl Berry  <karl@gnu.org>
88904
88905         * config/install-sh: update from automake.
88906
88907 2004-01-13  Karl Berry  <karl@gnu.org>
88908
88909         * config/install-sh: update from automake.
88910
88911 2004-01-09  Karl Berry  <karl@gnu.org>
88912
88913         * config/install-sh: update from automake.
88914
88915 2004-01-05  Karl Berry  <karl@gnu.org>
88916
88917         * config/config.{sub,guess}: update from config.
88918
88919 2003-12-31  Karl Berry  <karl@gnu.org>
88920
88921         * config/depcomp: update from automake.
88922
88923 2003-12-14  Karl Berry  <karl@gnu.org>
88924
88925         * lib/config.charset: update from gettext-runtime.
88926
88927 2003-12-03  Paul Eggert  <eggert@twinsun.com>
88928
88929         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
88930         Bug reported by Alfred M. Szmidt.
88931
88932 2003-12-03  Bruno Haible  <bruno@clisp.org>
88933
88934         * m4/gettext.m4: Upgrade from gettext-0.13.
88935         * m4/po.m4: Upgrade from gettext-0.13.
88936         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
88937         * m4/intmax.m4: New file, from gettext-0.13.
88938         * m4/printf-posix.m4: New file, from gettext-0.13.
88939
88940 2003-11-29  Karl Berry  <karl@gnu.org>
88941
88942         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
88943
88944 2003-11-25  Paul Eggert  <eggert@twinsun.com>
88945             Bruno Haible  <bruno@clisp.org>
88946
88947         * lib/printf-parse.h: Don't include sys/types.h.
88948         (ARG_NONE): New macro.
88949         (char_directive): Change type of *arg_index fields to size_t.
88950         * lib/printf-parse.c: Don't include sys/types.h.
88951         (SSIZE_MAX): Remove macro.
88952         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
88953         Remove unnecessary overflow check.
88954         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
88955         fields.
88956
88957 2003-11-25  Bruno Haible  <bruno@clisp.org>
88958
88959         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
88960
88961 2003-11-25  Bruno Haible  <bruno@clisp.org>
88962
88963         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
88964         gt_TYPE_SSIZE_T.
88965
88966 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88967
88968         * modules/alloca: Remove dependency on xalloc.
88969
88970 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88971
88972         * lib/alloca.c: Remove dependency on xalloc module.
88973         (xalloc_die): Remove.
88974         (memory_full) [!defined emacs]: New macro.
88975         [!defined emacs]: Don't include xalloc.h.
88976         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
88977         address arithmetic overflows.  Change datatypes a bit to avoid
88978         unnecessary casts.
88979
88980 2003-11-22  Jim Meyering  <jim@meyering.net>
88981
88982         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
88983         s/size/size_t/.
88984
88985 2003-11-21  Karl Berry  <karl@gnu.org>
88986
88987         * config/config.{sub,guess}: update from config.
88988
88989 2003-11-18  Karl Berry  <karl@gnu.org>
88990
88991         * config/config.{sub,guess}: update from config.
88992
88993         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
88994
88995 2003-11-17  Paul Eggert  <eggert@twinsun.com>
88996
88997         * README: Mention that S+T cannot overflow if S is the size of
88998         an existing object and T is sufficiently small.
88999
89000 2003-11-17  Jim Meyering  <jim@meyering.net>
89001
89002         On systems without utime and without a utimes function capable of
89003         dealing with a NULL struct utimbuf* argument, this utime replacement
89004         could -- in unusual circumstances -- leak a file descriptor.
89005         * lib/utime.c: Include <unistd.h> and <errno.h>.
89006         (utime_null): Be sure to close `fd' and to preserve errno.
89007         Reported by Geoff Collyer via Arnold Robbins.
89008
89009 2003-11-17  Bruno Haible  <bruno@clisp.org>
89010
89011         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89012         (Depends-on): Add xsize.
89013
89014 2003-11-17  Bruno Haible  <bruno@clisp.org>
89015
89016         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89017
89018 2003-11-17  Bruno Haible  <bruno@clisp.org>
89019
89020         * lib/vasnprintf.c (alloca): Remove fallback definition.
89021         (freea): Remove definition.
89022         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89023         Reported by Paul Eggert.
89024
89025 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89026             Bruno Haible  <bruno@clisp.org>
89027
89028         Protect against address arithmetic overflow.
89029         * lib/printf-args.h: Include stddef.h.
89030         (arguments): Change type of field 'count' to size_t.
89031         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89032         'unsigned int' where appropriate.
89033         * lib/printf-parse.h: Include sys/types.h.
89034         (char_directive): Change type of *arg_index fields to ssize_t.
89035         (char_directives): Change type of fields 'count', max_*_length to
89036         size_t.
89037         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89038         (SSIZE_MAX): Define fallback value.
89039         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89040         instead of 'int' where appropriate. Check a_allocated, d_allocated
89041         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89042         * lib/vasnprintf.c: Include xsize.h.
89043         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89044         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89045         overflow. Avoid wraparound when converting a width or precision from
89046         decimal to binary.
89047
89048 2003-11-16  Bruno Haible  <bruno@clisp.org>
89049
89050         Update from GNU gettext.
89051         * lib/printf-parse.c: Generalize to it can be compiled for wide
89052         strings.
89053         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89054         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89055         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89056         SNPRINTF): New macros.
89057         Don't include <alloca.h> if the file is used inside libintl.
89058         (local_wcslen): New function, for Solaris 2.5.1.
89059         (VASNPRINTF): Use it instead of wcslen.
89060
89061 2003-11-16  Bruno Haible  <bruno@clisp.org>
89062
89063         * lib/xsize.h (xmax): New function.
89064         (xsum, xsum3, xsum4): Declare as "pure" functions.
89065
89066 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89067
89068         * modules/xalloc (Files): Undo latest change, since xalloc.h
89069         no longer needs SIZE_MAX or PTRDIFF_MAX.
89070
89071 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89072
89073         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89074         gl_PTRDIFF_MAX.
89075
89076 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89077
89078         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89079         "return", to pacify some unknown compiler.  Problem reported
89080         by Joerg Schilling.
89081
89082 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89083
89084         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89085         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89086         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89087         heuristic is just as accurate as far as we know, and it removes a
89088         dependency on size_max.m4 and ptrdiff_max.m4.
89089
89090 2003-11-11  Bruno Haible  <bruno@clisp.org>
89091
89092         * modules/xsize (Files): Add m4/size_max.m4.
89093         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89094
89095 2003-11-11  Bruno Haible  <bruno@clisp.org>
89096
89097         * m4/size_max.m4: New file.
89098         * m4/ptrdiff_max.m4: New file.
89099         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89100         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89101         (gl_XALLOC): Invoke it.
89102
89103 2003-11-11  Bruno Haible  <bruno@clisp.org>
89104
89105         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89106         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89107         defined.
89108
89109 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89110
89111         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89112         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89113         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89114         From Bruno Haible.
89115         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89116         not (size_t) -1, since it's defined here.
89117
89118 2003-11-09  Karl Berry  <karl@gnu.org>
89119
89120         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89121
89122 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89123
89124         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89125         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89126         Reject sizes of exactly SIZE_MAX bytes.
89127         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89128         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89129
89130 2003-11-05  Bruno Haible  <bruno@clisp.org>
89131
89132         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89133         SIZE_MAX defined in <limits.h> on Solaris.
89134
89135 2003-11-04  Jim Meyering  <jim@meyering.net>
89136
89137         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89138         variable names, rather than @VAR@.
89139         * modules/poll: Likewise.
89140
89141 2003-11-04  Bruno Haible  <bruno@clisp.org>
89142
89143         * modules/xsize: New file.
89144         * modules/linebreak: Depend on xsize.
89145         * MODULES.html.sh (func_all_modules): Add xsize.
89146
89147 2003-11-04  Bruno Haible  <bruno@clisp.org>
89148
89149         * m4/xsize.m4: New file.
89150
89151 2003-11-04  Bruno Haible  <bruno@clisp.org>
89152
89153         * lib/xsize.h: New file.
89154         * lib/linebreak.c: Include xsize.h.
89155         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89156         argument for overflow.
89157         Suggested by Paul Eggert.
89158
89159 2003-11-03  Karl Berry  <karl@gnu.org>
89160
89161         * config/config.{guess,sub}: update from config.
89162
89163 2003-11-03  Jim Meyering  <jim@meyering.net>
89164
89165         * modules/userspec (lib_SOURCES): Add userspec.h.
89166         (Include): Add "userspec.h".
89167         Improve description.
89168
89169 2003-11-03  Jim Meyering  <jim@meyering.net>
89170
89171         * lib/userspec.c: Include "userspec.h".
89172         * lib/userspec.h: New file.
89173
89174 2003-11-03  Bruno Haible  <bruno@clisp.org>
89175
89176         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89177
89178 2003-11-03  Bruno Haible  <bruno@clisp.org>
89179
89180         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89181         available, to avoid (extremely rare) race condition.
89182         Suggested by Paul Eggert.
89183
89184 2003-11-02  Karl Berry  <karl@gnu.org>
89185
89186         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89187
89188 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89189
89190         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89191         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89192         (read_filesystem_list): Set and use me_type_malloced.
89193         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89194         whatever the type happens to be), for brevity and consistency.
89195         Check for size calculation overflow on Alphas running OSF/1.
89196
89197 2003-10-31  Jim Meyering  <jim@meyering.net>
89198
89199         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89200
89201         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89202
89203 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89204             Bruno Haible  <bruno@clisp.org>
89205
89206         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89207         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89208
89209 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89210
89211         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89212         netbsd*-gnu*.  Suggested by Robert Millan.
89213
89214 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89215
89216         * modules/group-member: Depend on stdbool.
89217
89218 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89219
89220         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89221
89222 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89223
89224         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89225         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89226         after the 'gnu' in these cases.  This fixes some bugs in the
89227         previous change, and is based on suggestions by Robert Millan.
89228
89229 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89230
89231         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89232         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89233         no longer needed.
89234         * lib/quotearg.c (quotearg_n_options): Use it.
89235         * lib/group-member.c: Include <stdbool.h>.
89236         (free_group_info): Arg is now const *; don't free arg.
89237         (get_group_info): Now returns bool and accepts struct group_info *,
89238         rather than returning a malloc'ed struct group_info *.
89239         All uses changed.  Check for overflow in internal size calculation.
89240
89241         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89242         rather than xmalloc/xrealloc.
89243         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89244         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89245         conformance bug: the old code used a pointer after freeing the
89246         storage that it addressed.
89247         * lib/hash.c (hash_initialize): Simplify the code by using
89248         xalloc_oversized rather than doing it by hand.
89249         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89250         the buffer preserved.  Use free and xmalloc instead.
89251         * lib/quotearg.c (quotearg_n_options): Likewise.
89252         Use a simpler test for size overflow.  Don't use xalloc_oversized
89253         because unsigned int might be wider than size_t (!); this suggests
89254         that we should switch from unsigned int to size_t for slot numbers.
89255
89256 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89257
89258         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89259         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89260         NetBSD kernels.  Requested by Richard Stallman.
89261
89262 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89263
89264         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89265         to allocate the returned structure.  Do not allocate a subarray,
89266         as x2nrealloc will do that.
89267         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89268         instead of xnrealloc.
89269         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89270
89271 2003-10-27  Bruno Haible  <bruno@clisp.org>
89272
89273         * lib/stdbool_.h: Better support for BeOS.
89274
89275 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89276
89277         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89278         now uses inline.
89279
89280 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89281
89282         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89283         callers that want to do their own size-overflow checking.  Include
89284         <stdbool.h>, since xalloc_oversized returns bool.
89285         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89286         to use xalloc_oversized.
89287
89288         Add two functions x2realloc, x2nrealloc, for programs that grow
89289         arrays dynamically by doubling their sizes.
89290         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89291         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89292         New functions.
89293
89294         Port to C99 semantics for 'inline' of external functions.
89295         Bug reported by Bruno Haible.
89296         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89297         with the old contents of xnmalloc.
89298         (xnmalloc, xmalloc): Use it.
89299         (xnrealloc_inline): New static inline function,
89300         with the old contents of xnrealloc.
89301         (xnrealloc, xrealloc): Use it.
89302
89303         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89304         that.
89305
89306 2003-10-26  Karl Berry  <karl@gnu.org>
89307
89308         * config/srclist.txt (COPYING.DOC): no longer available from
89309         /gd/gnuorg; don't know where the ultimate source is.
89310
89311 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89312
89313         Fix several address-calculation bugs in the hash modules,
89314         plus some minor code cleanup.
89315
89316         * lib/hash.h: Include <stdbool.h>, for bool.
89317         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89318         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89319         hash_get_n_entries, hash_get_max_bucket_length,
89320         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89321         hash_rehash): Use size_t rather than unsigned.
89322         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89323         hash_get_n_buckets_used, hash_get_n_entries,
89324         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89325         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89326         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89327         Likewise.
89328         (SIZE_MAX): Define if not defined.
89329         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89330         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89331         hash_print):
89332         Use const * when possible.
89333         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89334         (check_tuning): Fix bug: if tuning parameters were very close to
89335         0 or 1, rounding errors could have caused subscript violations.
89336         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89337         (hash_initialize): Add 'fail:' label
89338         to free table and return NULL, and use it to simplify code.
89339         Use calloc rather than clearing the storage ourself.
89340         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89341         buffer size calculations.
89342         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89343         Include <stddef.h>, for size_t.
89344         * lib/hash-pjw.c (hash_pjw): Likewise.
89345         Switch to method described by Bruno Haible.
89346         Include <limits.h>, for CHAR_BIT.
89347         (SIZE_BITS): New macro.
89348
89349 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89350
89351         * m4/getline.m4 (AM_FUNC_GETLINE):
89352         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89353         hosts.  Problem reported by Derek Robert Price in
89354         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89355         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89356         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89357
89358 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89359
89360         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89361         ceiling the allocation at NMAX bytes rather than silently
89362         discarding input bytes before NMAX is reached.  This makes
89363         a difference only if NMAX exceeds SIZE_MAX / 2.
89364
89365         * lib/obstack.c: Merge from glibc.
89366         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89367         Add libc_hidden_def (_obstack_newchunk).
89368         (_obstack_free) [! defined _LIBC]: Remove.
89369         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89370         a clone of the function body.
89371         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89372         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89373
89374         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89375         glibc.
89376         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89377         arg to memcpy.
89378
89379         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89380         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89381         Don't use lvalue casts, as GCC plans to remove support for them
89382         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89383         was also present in the non-GCC version, indicating that this
89384         code had always been buggy and had never been widely used.
89385         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89386         Use the fast variant of each macro, rather than copying the
89387         definiens of the fast variant; that way, we'll be more likely to
89388         catch future bugs in the fast variants.
89389
89390 2003-10-20  Bruno Haible  <bruno@clisp.org>
89391
89392         * modules/wait-process: New file.
89393         * MODULES.html.sh (func_all_modules): Add wait-process.
89394
89395 2003-10-20  Bruno Haible  <bruno@clisp.org>
89396
89397         * m4/wait-process.m4: New file.
89398
89399 2003-10-20  Bruno Haible  <bruno@clisp.org>
89400
89401         * lib/wait-process.h: New file, from GNU gettext.
89402         * lib/wait-process.c: New file, from GNU gettext.
89403
89404 2003-10-19  Jim Meyering  <jim@meyering.net>
89405
89406         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89407         HPUX 10.20.
89408
89409 2003-10-18  Karl Berry  <karl@gnu.org>
89410
89411         * config/config.guess: update from config.
89412
89413 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89414
89415         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89416         (getgroups): First arg is int, not size_t.
89417         Don't let 'free' mangle errno.
89418
89419 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89420
89421         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89422
89423 2003-10-16  Karl Berry  <karl@gnu.org>
89424
89425         * config/config.{guess,sub}: update from config.
89426
89427 2003-10-16  Jim Meyering  <jim@meyering.net>
89428
89429         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89430         memcpy.
89431
89432 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89433
89434         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89435         (SIZE_MAX): Remove.
89436         (new_exclude, add_exclude_file): Initial size no longer needs to
89437         be a power of 2.
89438         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89439         our own address arithmetic overflow checking.
89440
89441         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89442         (fnmatch): Do not alloca more than 2000 wide characters;
89443         instead, use malloc for large buffers.
89444         Check for address arithmetic overflow, and return -1
89445         with errno set to ENOMEM in that case.
89446         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89447         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89448         instead, return -1.  Check for address arithmetic overflow.
89449
89450 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89451
89452         Handle invalid suffixes and overflow independently, so that
89453         callers can treat them independently as needed.  Fix some bugs in
89454         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89455         suffix for a human-readable blocksize.  The major caller-visible
89456         change is the addition of a new
89457         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89458         that both overflow and suffix chars were found.
89459
89460         * lib/human.c (humblock): Don't check separately for invalid suffix
89461         char; that is xstrtoumax's job (now that its bug is fixed).
89462         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89463         INTMAX_MAX]: New macros.
89464         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89465         TYPE_MAXIMUM): New macros.
89466         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89467         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89468         if overflow occurs, as it's what __strtol does and it's more useful
89469         in practice.
89470         (__xstrtol): If __strtol reports some error other than ERANGE,
89471         reflect it to the caller as LONGINT_INVALID.  If it reports
89472         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89473         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89474         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89475         value.
89476         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89477         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89478         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89479         [defined UINTMAX_MAX]: New macros.
89480
89481 2003-10-14  Bruno Haible  <bruno@clisp.org>
89482
89483         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89484
89485 2003-10-14  Bruno Haible  <bruno@clisp.org>
89486
89487         * m4/sig_atomic_t: New file, from GNU gettext.
89488         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89489
89490 2003-10-14  Bruno Haible  <bruno@clisp.org>
89491
89492         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89493         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89494         Also use volatile where needed.
89495
89496 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89497
89498         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89499         Change maintainer from Bruno Haible to 'all'.
89500
89501 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89502
89503         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89504
89505 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89506
89507         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89508         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89509         and define in terms of the other primitives.
89510         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89511         (SIZE_MAX): Define if not already defined.
89512         (array_size_overflow): New function.
89513         (xalloc_die): Abort instead of exiting if 'error' returns.
89514         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89515         (xmalloc, xrealloc): Use them.
89516         (xcalloc): Check for address arithmetic overflow.
89517         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89518         a bit faster than strcpy.
89519
89520 2003-10-10  Simon Josefsson  <jas@extundo.com>
89521
89522         * modules/argp (Depends-on): Add restrict and strcase.
89523
89524 2003-10-10  Simon Josefsson  <jas@extundo.com>
89525
89526         * m4/argp.m4: Add AC_C_INLINE.
89527
89528 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89529
89530         Merge getpass from libc, plus a few fixes.
89531
89532         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
89533         Include <stdbool.h>.
89534         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
89535         __fsetlocking to empty.
89536         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
89537         do include <bits/libc-lock.h>.
89538         Do not include <fcntl.h>; not needed.
89539         [_LIBC]: Include <wchar.h>.
89540         (NOTCANCEL_MODE): New macro.
89541         (flockfile, funlockfile) [_LIBC]: New macros.
89542         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
89543         [!_LIBC]: New macros.
89544         (call_fclose): New function.
89545         (getpass): Use it.  Save tty stream separately; this simplifies the
89546         code and makes it more reliable if stdin happens to equal stdout.
89547         Invoke __fsetlocking on tty.
89548         Handle thread cancellation if needed.
89549         Namespace cleanup (use __tcgetattr, __getline).
89550         Use bool for Booleans.
89551         [USE_IN_LIBIO]: Handle wide streams.
89552         [!_LIBC]: Unconditionally do the fseek, since we don't know what
89553         stream might go where.
89554
89555         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
89556         doesn't have to include <stdio.h> before us.
89557         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
89558         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
89559         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
89560         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
89561         if not declared, so that we can use getpass.c code from libc without
89562         rewriting it.
89563         (flockfile, ftrylockfile, funlockfile): New macros.
89564
89565 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89566
89567         * modules/getpass: Depend on stdbool.
89568
89569 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89570
89571         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
89572
89573 2003-10-07  Karl Berry  <karl@gnu.org>
89574
89575         * config/config.{guess,sub}: update from config.
89576
89577 2003-10-06  Jim Meyering  <jim@meyering.net>
89578             Bruno Haible  <bruno@clisp.org>
89579
89580         This lets translators provide better translations for the
89581         "Written by ..." part of --version output.
89582         * lib/version-etc.h: Include stdarg.h.
89583         (version_etc_copyright): Declare as readonly.
89584         (version_etc): Make this function variadic with a NULL-terminated list
89585         of author name strings.
89586         (version_etc_va): New declaration.
89587         * lib/version-etc.c: Include stdarg.h, stdlib.h.
89588         (version_etc_copyright): Declare as readonly.
89589         (version_etc_va): New function. Provide a different translatable string
89590         for each possible number of authors < 10. Abbreviate when there are 10
89591         authors or more.
89592         (version_etc): Make this function variadic. Call version_etc_va.
89593         Suggestion from Gary V. Vaughan.
89594
89595         * lib/long-options.h (parse_long_options): Change prototype: the
89596         authors string is moved to the end and becomes variadic.
89597         * lib/long-options.c: Include stdarg.h.
89598         (parse_long_options): Make this function variadic, too.
89599         Call version_etc_va, not version_etc.
89600
89601 2003-10-06  Bruno Haible  <bruno@clisp.org>
89602
89603         * modules/version-etc-2: Remove file.
89604         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
89605
89606 2003-10-06  Bruno Haible  <bruno@clisp.org>
89607
89608         * modules/fatal-signal: New file.
89609         * MODULES.html.sh (func_all_modules): Add fatal-signal.
89610
89611 2003-10-06  Bruno Haible  <bruno@clisp.org>
89612
89613         * m4/fatal-signal.m4: New file.
89614         * m4/signalblocking.m4: New file, from GNU gettext.
89615
89616 2003-10-06  Bruno Haible  <bruno@clisp.org>
89617
89618         * lib/version-etc-2.h: Remove file.
89619         * lib/version-etc-2.c: Remove file.
89620
89621 2003-10-06  Bruno Haible  <bruno@clisp.org>
89622
89623         * lib/fatal-signal.h: New file, from GNU gettext.
89624         * lib/fatal-signal.c: New file, from GNU gettext.
89625
89626 2003-10-05  Paul Eggert  <eggert@twinsun.com>
89627
89628         * README: Rework advice for preventing empty .o files.
89629         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
89630         not <sys/types.h>.
89631
89632 2003-10-04  Karl Berry  <karl@gnu.org>
89633
89634         * lib/argp*: update from libc.
89635
89636 2003-10-04  Karl Berry  <karl@gnu.org>
89637
89638         * config/config.{guess,sub}: update from config.
89639
89640 2003-10-02  Bruno Haible  <bruno@clisp.org>
89641
89642         * modules/lchown (Include): Add lchown.h.
89643         * modules/time_r (Include): Use "..." syntax.
89644         * modules/xgetdomainname (Include): Add xgetdomainname.h.
89645
89646 2003-10-01  Simon Josefsson  <jas@extundo.com>
89647
89648         * MODULES.html.sh (func_all_modules): Move gethostname from section
89649         'based on' to section 'lacking' POSIX:2001.
89650
89651 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
89652
89653         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
89654         to output mode on the same stream.
89655
89656 2003-09-29  Paul Eggert  <eggert@twinsun.com>
89657
89658         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
89659         Fix arg typo in previous patch.
89660
89661 2003-09-28  Jim Meyering  <jim@meyering.net>
89662
89663         * lib/error.c: Correct cpp indentation.
89664
89665 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89666
89667         * modules/free: New file.
89668
89669 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89670
89671         * m4/free.m4: New file.
89672
89673 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89674
89675         * lib/minmax.h (MIN, MAX)
89676         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
89677         Omit the special code that used __typeof__, since we worry that
89678         it could be more trouble than it's worth.  See:
89679         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
89680         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
89681
89682         * lib/free.c: New file.
89683
89684 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
89685
89686         Trivial fixes to Makefile.am parts of module listings.
89687         * modules/strstr: Append strstr.h to lib_SOURCES.
89688         * modules/strcase: Likewise, for strcase.h.
89689
89690 2003-09-27  Karl Berry  <karl@gnu.org>
89691
89692         * config/mkinstalldirs: update from automake.
89693
89694 2003-09-26  Paul Eggert  <eggert@twinsun.com>
89695
89696         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
89697         (error_tail): Do not loop, reallocating temporary buffer, since
89698         the output cannot contain more wide characters than the input
89699         contains bytes, the size must be big enough already.  This avoids
89700         one potential size overflow calculation.  Check for size overflow
89701         when calculating temporary buffer size.  Free temporary buffer
89702         when done, if it was allocated with malloc; this plugs a memory
89703         leak.  Remove casts from void * to pointers, that are no longer
89704         needed now that we're assuming C89 or better.
89705
89706         Merge error changes from glibc.
89707
89708         * lib/error.c, error.h: Update copyright notice header to match glibc.
89709         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
89710         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
89711         Disable cancellation while printing error.
89712         * lib/error.h: Prepend __ to parameter names.
89713
89714 2003-09-26  Jim Meyering  <jim@meyering.net>
89715
89716         * lib/error.c (error_tail): Move some declarations
89717         into inner scope where the local variables are used.
89718
89719 2003-09-26  Bruno Haible  <bruno@clisp.org>
89720
89721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
89722         stpncpy().
89723         Don't define stpncpy through config.h; it's now done through stpncpy.h.
89724
89725 2003-09-26  Bruno Haible  <bruno@clisp.org>
89726
89727         * lib/stpncpy.h (gnu_stpncpy): New declaration.
89728         (stpncpy): Define as alias for gnu_stpncpy.
89729         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
89730
89731 2003-09-25  Simon Josefsson  <jas@extundo.com>
89732
89733         * lib/xgetdomainname.h: New file.
89734         * lib/xgetdomainname.c: New file.
89735
89736 2003-09-25  Simon Josefsson  <jas@extundo.com>
89737             Bruno Haible  <bruno@clisp.org>
89738
89739         * modules/getdomainname: New file.
89740         * modules/xgetdomainname: New file.
89741         * MODULES.html.sh (func_all_modules): Add getdomainname,
89742         xgetdomainname.
89743
89744 2003-09-25  Simon Josefsson  <jas@extundo.com>
89745             Bruno Haible  <bruno@clisp.org>
89746
89747         * m4/getdomainname.m4: New file.
89748
89749 2003-09-25  Simon Josefsson  <jas@extundo.com>
89750             Bruno Haible  <bruno@clisp.org>
89751
89752         * lib/getdomainname.h: New file.
89753         * lib/getdomainname.c: New file.
89754
89755 2003-09-25  Karl Berry  <karl@gnu.org>
89756
89757         * lib/argp-fmtstream.c, argp-help.c: update from libc.
89758
89759 2003-09-25  Karl Berry  <karl@gnu.org>
89760
89761         * config/install-sh: update from automake.
89762
89763 2003-09-25  Bruno Haible  <bruno@clisp.org>
89764
89765         * modules/version-etc-2: New file, from modules/version-etc with
89766         modifications.
89767         * MODULES.html.sh (func_all_modules): Add version-etc-2.
89768
89769 2003-09-25  Bruno Haible  <bruno@clisp.org>
89770
89771         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
89772         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
89773
89774 2003-09-24  Simon Josefsson  <jas@extundo.com>
89775
89776         * modules/xgethostname: Add xgethostname.h.
89777
89778 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89779
89780         * lib/linebuffer.c (freebuffer): Don't free the argument, just
89781         the buffer associated with the argument.  Bug reported by
89782         Simon Josefsson.
89783
89784 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89785
89786         * README: Document assumptions that 'int' is at least 32 bits
89787         wide, that integer arithmetic is 2's complement without overflow,
89788         that there are no holes in integer values, that adding sizes of
89789         two nonoverlapping objects can't overflow, and that all-bits-zero
89790         yields scalar zero.  Fix spelling and capitalization typos.
89791
89792 2003-09-19  Karl Berry  <karl@gnu.org>
89793
89794         * lib/argp.h: update from libc.
89795
89796 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89797
89798         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
89799         to avoid spurious warnings like "AC_RUN_IFELSE was called before
89800         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
89801
89802 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89803
89804         * gnulib-tool: Use "test -h", not "test -L", for portability
89805         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
89806         (tags_regexp): Remove, since \| doesn't conform to POSIX.
89807         (sed_extract_prog): Issue s commands one-by-one, rather than
89808         using \| in one s command.
89809
89810 2003-09-16  Paul Eggert  <eggert@twinsun.com>
89811
89812         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
89813         input error, instead of returning NULL the next time we are called
89814         (and therefore losing track of errno).
89815
89816 2003-09-16  Bruno Haible  <bruno@clisp.org>
89817
89818         * gnulib-tool (func_create_testdir): Warn about duplicated
89819         dependencies.
89820
89821 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89822
89823         * modules/argmatch, modules/fatal, modules/obstack,
89824         modules/xalloc, modules/xgethostname: Sort dependencies by
89825         importance, not alphabetically.
89826
89827 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89828
89829         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
89830         fails, so that the caller gets the proper errno.
89831
89832         * lib/readutmp.c (read_utmp): Likewise.
89833         Check for fstat error.  Close stream and free storage
89834         when failing.
89835
89836 2003-09-14  Karl Berry  <karl@gnu.org>
89837
89838         * config/srclist.txt (strdup.c): disable for c89 changes.
89839
89840 2003-09-14  Jim Meyering  <jim@meyering.net>
89841
89842         * lib/getloadavg.c: Correct cpp indentation.
89843         * lib/strdup.c: Likewise.
89844         * lib/vasnprintf.c: Likewise.
89845
89846 2003-09-14  Bruno Haible  <bruno@clisp.org>
89847
89848         * modules/fwriteerror: New file.
89849         * MODULES.html.sh (func_all_modules): Add fwriteerror.
89850
89851 2003-09-14  Bruno Haible  <bruno@clisp.org>
89852
89853         * lib/fwriteerror.h: New file.
89854         * lib/fwriteerror.c: New file.
89855
89856 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89857
89858         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
89859         modules/xgethostname, modules/xalloc: Depend on exit.
89860
89861 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89862
89863         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
89864
89865         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
89866         and AC_MINIX, too, so that their extensions are available.
89867
89868         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
89869         This macro has been superseded by gl_BACKUPFILE.
89870
89871         More patches to assume C89 or better.
89872
89873         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
89874
89875         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
89876         unconditionally.
89877         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
89878         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
89879         Include <string.h>, <stdlib.h> unconditionally.
89880         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
89881         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
89882         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
89883         headers or for string.h.
89884         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
89885         or strtoul.
89886
89887         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
89888         headers.
89889         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
89890         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89891         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
89892         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
89893         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89894         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
89895         memcpy, memset.
89896         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
89897         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
89898         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
89899         strtol.
89900         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
89901         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
89902         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
89903         strtoul.
89904
89905 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89906
89907         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
89908         * lib/obstack.c [!defined _LIBC]: Likewise.
89909         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
89910         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
89911         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
89912
89913         More changes to assume C89 or better.
89914
89915         * lib/error.c (error_tail): Assume vprintf.
89916
89917         * lib/argmatch.c (getenv): Remove decl.
89918         * lib/progreloc.c (get_full_program_name): Define via prototype.
89919         * lib/setenv.c (clearenv): Likewise.
89920         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
89921         needed.
89922         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
89923         (malloc, memcpy): Remove decls.
89924         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
89925         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
89926         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89927         (memcpy): Remove macro.
89928         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
89929         (__P): Remove.  All uses removed.
89930         (PTR): Remove.  All uses changed to void *.
89931         (CHAR_BIT, NULL): Remove.
89932         (spaces, zeros, memset_space, memset_zero)
89933         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
89934         Remove.
89935         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
89936         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
89937         Define with prototype.
89938         Remove now-unnecessary prototype decl.
89939         (extra_args_spec): Assume ANSI C.  All uses changed.
89940         (extra_args_spec_iso): Remove.
89941         (my_strftime, emacs_strftimeu): Define via prototype.
89942         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
89943         unconditionally.
89944         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
89945         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
89946         (strtoul, strtol): Remove decls.
89947         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
89948         LONG_MAX): Remove.
89949         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89950         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
89951         (LOCALE_PARAM_PROTO): New macro.
89952         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
89953         (INTERNAL (strtol), strtol): Define with a prototype.
89954         (PARAMS): Remove.  All uses removed.
89955         * lib/tempname.c: Include <string.h> unconditionally.
89956         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
89957         * lib/xgethostname.c (main): Define with a prototype.
89958         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
89959         Include <stdlib.h> unconditionally.
89960         (calloc, malloc, realloc, free): Remove decls.
89961         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
89962         Include <stdlib.h> unconditionally.  Sort include file names.
89963         (strtod): Remove.
89964         (xstrtod): Define with a prototype.
89965         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
89966         (strtol, strtoul): Remove decls.
89967
89968 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89969
89970         More patches to assume C89 or better.
89971         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
89972         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
89973         string.h, memchr, STDC_HEADERS.
89974
89975 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89976
89977         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
89978         Include <stdlib.h>, <string.h> unconditionally.
89979         Remove now-unnecessary cast to char *.
89980         * lib/strnlen.c: Include <string.h> unconditionally.
89981         * lib/yesno.c (yesno): Define with a prototype.
89982
89983 2003-09-11  Bruno Haible  <bruno@clisp.org>
89984
89985         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
89986
89987 2003-09-10  Jim Meyering  <jim@meyering.net>
89988
89989         * lib/error.c: Correct indentation of cpp directives.
89990
89991 2003-09-10  Bruno Haible  <bruno@clisp.org>
89992
89993         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
89994         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
89995         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
89996         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
89997         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
89998         <stdlib.h> and <string.h> checks.
89999         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90000         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90001
90002 2003-09-10  Bruno Haible  <bruno@clisp.org>
90003
90004         * lib/strcspn.c: Include <string.h> unconditionally.
90005         * lib/strpbrk.c: Include <string.h> unconditionally.
90006         * lib/strstr.c: Include <string.h> unconditionally.
90007         * lib/unicodeio.c: Include <string.h> unconditionally.
90008         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90009         * lib/unsetenv.c: Likewise.
90010         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90011         * lib/yesno.c: Include <stdlib.h> unconditionally.
90012         (rpmatch): Add prototype.
90013
90014 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90015
90016         More patches to assume C89 or better.
90017         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90018         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90019         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90020         or for string.h.
90021         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90022         stdlib.h.
90023         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90024         C headers.
90025         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90026         string.h.
90027         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90028         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90029         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90030         or for string.h.
90031         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90032         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90033         C headers.
90034         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90035         memcpy.
90036         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90037         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90038         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90039         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90040         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90041         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90042         string.h, free.
90043         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90044         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90045         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90046         C headers, or for string.h.
90047         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90048         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90049         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90050         headers, memory.h, stdlib.h, string.h, strings.h.
90051         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90052         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90053         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90054         strchr.
90055         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90056         headers, memory.h, string.h.
90057         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90058         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90059         free.
90060         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90061         headers.
90062         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90063         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90064         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90065         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90066         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90067
90068 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90069
90070         More K&R removal.
90071
90072         * lib/acosl.c (main): Use a prototype.
90073         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90074         tanl.c: Likewise.
90075
90076         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90077
90078         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90079         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90080         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90081         with a prototype.
90082         * lib/getopt.c (const): Remove macro.
90083         Include <string.h> unconditionally.
90084         (my_index): Remove; all uses changed to strchr.
90085         (strlen): Remove decl.
90086         (exchange): Remove forward decl; no longer needed.
90087         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90088         Define with prototype.
90089         * lib/getopt1.c (const): Remove macro.
90090         (getopt_long, getopt_long_only, main): Define with prototype.
90091
90092         * lib/getugroups.c: Include <string.h> unconditionally.
90093
90094         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90095         (getusershell, setusershell, endusershell, readname, main):
90096         Define with prototypes.
90097
90098         * lib/group-member.c: Include group-member.h first.
90099         Include <stdlib.h> unconditionally.
90100
90101         * lib/hard-locale.c: Include hard-locale.h first.
90102         Include <stdlib.h>, <string.h> unconditionally.
90103
90104         * lib/hash.c (free, malloc): Remove decls.
90105         Include <stdlib.h> unconditionally.
90106
90107         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90108         (getenv): Do not declare.
90109
90110         * lib/idcache.c: Include <string.h> unconditionally.
90111
90112         * lib/long-options.c: Include long-options.h first, to test interface.
90113         Include <stdlib.h> unconditionally.
90114
90115         * lib/makepath.c: Include makepath.h first, to test interface.
90116         Include <stdlib.h> and <string.h> unconditionally.
90117
90118         * lib/linebuffer.c: Include <stdlib.h>.
90119         (free): Remove decl.
90120
90121         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90122         stddef.h. rpl_malloc returns void *, not char *.
90123         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90124         prototype.
90125
90126         * lib/md5.h: Include <limits.h> unconditionally.
90127         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90128         (__P): Remove; all uses removed.
90129         * lib/md5.c: Include "md5.h" first.
90130         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90131         md5_buffer, md5_process_bytes, md5_process_block):
90132         Define with prototypes.
90133         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90134         * lib/sha.c: Include "sha.h" first.
90135         Include <stdlib.h>, <string.h> unconditionally.
90136
90137         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90138         * lib/memcmp.c (__ptr_t): Likewise.
90139         * lib/memrchr.c (__ptr_t): Likewise.
90140         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90141         Include <string.h> unconditionally.
90142         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90143         * lib/memchr.c: Include <stdlib.h> unconditionally.
90144         * lib/memchr.c (LONG_MAX): Remove.
90145         * lib/memrchr.c (LONG_MAX): Likewise.
90146         * lib/memchr.c (__memchr): Define via a prototype.
90147         * lib/memrchr.c (__memrchr): Likewise.
90148         * lib/memcmp.c (__P): Remove, and remove all uses.
90149         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90150         Remove forward decls; no longer needed.
90151         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90152         Use types required by C89 in prototype.
90153
90154         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90155         * lib/savedir.c: Likewise.
90156         * lib/mkdir.c (free): Remove decl.
90157         * lib/rmdir.c (rmdir): Define with a prototype.
90158         * lib/savedir.c: Include savedir.h first, to test interface.
90159
90160         * lib/mktime.c (STDC_HEADERS): Remove.
90161         Include <stdlib.h>, <string.h> unconditionally.
90162
90163         * lib/modechange.c: Include <stdlib.h> unconditionally.
90164         (malloc): Remove decl.
90165
90166         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90167         (free): Remove decl.
90168
90169         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90170         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90171         (This type really should be intptr_t, but that's a C99ism.)
90172         (_obstack_memcpy): Remove: all uses changed to memcpy.
90173         Include <string.h> unconditionally.
90174         (struct obstack): Assume __STDC__ for types of members
90175         chunkfun, freefun, extra_arg.
90176         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90177         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90178         obstack_begin, obstack_specify_allocation,
90179         obstack_specify_allocation_with_arg, obstack_chunkfun,
90180         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90181         Remove unprototyped decls and the macros that use them.
90182         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90183         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90184         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90185         (defined __STDC__ && __STDC__)]:
90186         Remove nonprototyped code.
90187         Include <stdlib.h> unconditionally.
90188         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90189         _obstack_allocated_p, _obstack_free, obstack_free,
90190         _obstack_memory_used, print_and_abort):
90191         Define using prototypes.
90192         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90193         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90194         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90195         obstack_next_free, obstack_object_size, obstack_room) [0]:
90196         Remove unused, unprototyped code.
90197
90198         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90199
90200         * lib/physmem.c (physmem_total, physmem_available, main): Define
90201         with prototypes.
90202
90203         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90204         (main): Define with a prototype.
90205
90206         * lib/posixver.c (getenv): Remove decl.
90207
90208         * lib/putenv.c (malloc): Returns void *, not char *.
90209         Include <string.h> unconditionally.
90210         (strchr, memcpy, NULL): Do not define.
90211
90212         * lib/readtokens.c: Include readtokens.h first, to test interface.
90213         Include <stdlib.h>, <string.h> unconditionally.
90214         (init_tokenbuffer): Define with a prototype.
90215
90216         * lib/regex.c (PARAMS): Remove.  All uses removed.
90217         All uses of _RE_ARGS removed, too.
90218         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90219         unconditionally.
90220         (bzero): Assume memset exists.
90221         (memcmp, memcpy, NULL): Remove.
90222         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90223         char, or assignments to local vars of type signed char.
90224         (init_syntax_once, PREFIX(extract_number_and_incr),
90225         PREFIX(print_partial_compiled_pattern),
90226         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90227         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90228         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90229         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90230         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90231         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90232         wcs_compile_range, byte_compile_range, truncate_wchar,
90233         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90234         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90235         count_mbs_length, wcs_re_match_2_internal,
90236         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90237         PREFIX(alt_match_null_string_p),
90238         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90239         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90240         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90241         now-unnecessary declaration, if any.
90242         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90243         regcomp, regexec):
90244         Remove now-unnecessary casts among pointer types.
90245         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90246
90247         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90248         (free): Remove decl.
90249
90250         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90251
90252         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90253         (free): Remove decl.
90254
90255         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90256         * lib/xgetcwd.c: Likewise.
90257
90258         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90259         (free): Remove decl.
90260
90261         * lib/strchrnul.c (strchrnul): Define with a prototype.
90262         Fix bug: c_in was not converted to char before searching.
90263
90264         The following changes are not K&R related:
90265
90266         * lib/group-member.h: Include <sys/types.h>, so that this file is
90267         self-contained.
90268         * lib/makepath.h: Likewise.
90269
90270         * lib/getusershell.c (readname, default_index, line_size, readname):
90271         Use size_t, not int, for sizes.
90272         (readname): If the size overflows, report an error instead of
90273         looping forever.
90274
90275 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90276
90277         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90278         libc.
90279
90280 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90281
90282         * README: New section: portability guidelines.
90283
90284 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90285
90286         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90287         C89 spec.
90288
90289 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90290
90291         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90292
90293 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90294
90295         Assume C89 or better; remove K&R cruft.
90296         A few of these changes were first proposed by Derek Robert Price
90297         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90298
90299         * lib/addext.c: Include <string.h> unconditionally.
90300         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90301         Don't declare getenv or malloc.
90302
90303         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90304         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90305         (NULL): Remove.
90306         (find_stack_direction, alloca): Use prototypes.
90307
90308         * lib/atexit.c (atexit): Define using a prototype.
90309
90310         * lib/basename.c, dirname.c, stripslash.c:
90311         Include <string.h> unconditionally.
90312
90313         * lib/bcopy.c: Include <stddef.h>.
90314         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90315
90316         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90317
90318         * lib/error.h (error, error_at_line, error_print_progname)
90319         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90320         * lib/error.c: Include error.h first, to check interface.
90321         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90322         (VA_START): Remove; all uses changeed to va_start.
90323         (exit, strerror): Remove decls.
90324         (error_print_progname): Prototype uncondionally.
90325         Don't include <errno.h>; no longer needed.
90326         (private_strerror): Remove.
90327         (error_tail): Always define.
90328         (error, error_at_line): Assume C89 or better; always use prototypes.
90329         * lib/fatal.c: Include "fatal.h" first, to test interface.
90330         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90331         (VA_START): Remove; all uses changed to va_start.
90332         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90333         this case.
90334         (exit): Remove decl.
90335         (fatal): Prototype unconditionally.  Assume va_start works.
90336         Abort at end, to pacify gcc.
90337
90338         * lib/euidaccess.c (main): Define with a prototype.
90339
90340         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90341
90342         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90343
90344         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90345         prototypes.
90346         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90347         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90348         (getenv): Remove decl.
90349         (fnmatch): Define using a prototype.
90350         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90351         (FCT): Define using a prototype.
90352
90353         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90354
90355         * lib/gethostname.c: Include <stddef.h>.
90356         (gethostname): Define with prototype.  Length is size_t, not int.
90357
90358 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90359
90360         Assume C89 or better; remove K&R cruft.
90361         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90362         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90363         string.h, getenv, malloc.
90364         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90365         headers.
90366         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90367         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90368         do not check for strerror.
90369         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90370         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90371         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90372         do not check for doprnt or vprintf.
90373         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90374         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90375
90376 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90377
90378         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90379         getversion.c should have been removed then, but was accidentally
90380         preserved.
90381
90382         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90383         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90384
90385 2003-09-08  Karl Berry  <karl@gnu.org>
90386
90387         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90388                 config, forget about prep.
90389
90390         * config/depcomp, missing: update from automake.
90391
90392 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90393
90394         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90395         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90396
90397 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90398
90399         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90400         copy_tm_result.  Bug reported by Simon Josefsson in
90401         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90402
90403 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90404
90405         * m4/time_r.m4: New file.
90406         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90407         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90408         is. Check for timegm declaration.
90409         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90410         Do not check for gmtime_r.
90411         Replace mktime if __mktime_internal does not exist and if mktime
90412         hasn't been replaced already.
90413
90414 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90415
90416         * lib/time_r.c, lib/time_r.h: New files.
90417
90418         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90419         __localtime_r.
90420         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90421         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90422
90423         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90424         __gmtime_r.
90425         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90426         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90427         Include <time_r.h>.
90428
90429         * lib/timegm.c: Switch to glibc implementation, with the following
90430         changes:
90431         [defined HAVE_CONFIG_H]: Include <config.h>.
90432         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90433         (__mktime_internal) [!defined _LIBC]: New decl.
90434         (__gmtime_r) [!defined _LIBC]: New macro and function.
90435         (timegm): Use a prototype, since gnulib assumes C89.
90436         Do not bother declaring tmp to be const, as it's not really usefu.
90437         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90438         (timegm): Declare only if HAVE_DECL_TIMEGM.
90439
90440 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90441
90442         * MODULES.html.sh (func_all_modules): Add time_r.
90443         * modules/time_r: New file.
90444         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90445         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90446
90447 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90448
90449         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90450         Bug reported by Lute Kamstra in
90451         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90452
90453         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90454         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90455         course with correspondingly smaller numbers for tomorrow and
90456         yesterday.  From Tadayoshi Funaba.  Originally installed into
90457         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90458         coreutils merge?).
90459
90460 2003-08-31  Simon Josefsson  <jas@extundo.com>
90461
90462         * modules/timegm: New file.
90463         * MODULES.html.sh (func_all_modules): Add timegm.
90464
90465 2003-08-31  Simon Josefsson  <jas@extundo.com>
90466
90467         * m4/timegm.m4: New file.
90468
90469 2003-08-31  Simon Josefsson  <jas@extundo.com>
90470
90471         * lib/timegm.h: New file.
90472         * lib/timegm.c: New file.  Based on
90473         wget-1.8.2/src/http.c:mktime_from_utc.
90474
90475 2003-08-31  Karl Berry  <karl@gnu.org>
90476
90477         * lib/argp.h: update from libc.
90478
90479 2003-08-28  Bruno Haible  <bruno@clisp.org>
90480
90481         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90482         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90483         followed by '#define fnmatch fnmatch_posix' gives an error.
90484
90485 2003-08-28  Bruno Haible  <bruno@clisp.org>
90486
90487         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90488         warning on QNX, which defines O_BINARY to 000000.
90489
90490 2003-08-27  Jim Meyering  <jim@meyering.net>
90491
90492         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90493         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90494         would fail after 32.  Reported by Danny Levinson.  Details here:
90495         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90496
90497 2003-08-24  Bruno Haible  <bruno@clisp.org>
90498
90499         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90500         MSVC7 <stdio.h> is included later.
90501
90502 2003-08-22  Simon Josefsson  <jas@extundo.com>
90503
90504         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90505
90506 2003-08-20  Karl Berry  <karl@gnu.org>
90507
90508         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90509
90510 2003-08-20  Bruno Haible  <bruno@clisp.org>
90511
90512         * modules/progname: New file.
90513         * MODULES.html.sh (func_all_modules): Add progname.
90514
90515 2003-08-20  Bruno Haible  <bruno@clisp.org>
90516
90517         * lib/progname.h: New file, from GNU gettext.
90518         * lib/progname.c: New file, from GNU gettext.
90519         * lib/progreloc.c: New file, from GNU gettext.
90520
90521 2003-08-19  Jim Meyering  <jim@meyering.net>
90522
90523         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90524         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90525
90526 2003-08-19  Bruno Haible  <bruno@clisp.org>
90527
90528         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
90529         more.
90530
90531 2003-08-19  Bruno Haible  <bruno@clisp.org>
90532
90533         * lib/xstrdup.c: Assume <string.h> exists.
90534
90535 2003-08-18  Paul Eggert  <eggert@twinsun.com>
90536
90537         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
90538         in makefile rules.
90539
90540 2003-08-18  Jim Meyering  <jim@meyering.net>
90541
90542         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
90543         * m4/lib-ld.m4: Likewise.
90544
90545 2003-08-18  Jim Meyering  <jim@meyering.net>
90546
90547         * lib/setenv.h: Indent nested cpp directive.
90548         * lib/vasnprintf.c: Remove trailing blanks.
90549
90550 2003-08-17  Simon Josefsson  <jas@extundo.com>
90551
90552         * modules/xstrndup: New file.
90553         * MODULES.html.sh (func_all_modules): Add xstrndup.
90554
90555 2003-08-17  Simon Josefsson  <jas@extundo.com>
90556
90557         * modules/argp: Fix autoconf macro name. Add more dependencies.
90558
90559 2003-08-17  Simon Josefsson  <jas@extundo.com>
90560
90561         * m4/xstrndup.m4: New file.
90562
90563 2003-08-17  Simon Josefsson  <jas@extundo.com>
90564
90565         * m4/argp.m4: New file.
90566
90567 2003-08-17  Simon Josefsson  <jas@extundo.com>
90568             Bruno Haible  <bruno@clisp.org>
90569
90570         * lib/xstrndup.h: New file.
90571         * lib/xstrndup.c: New file.
90572
90573 2003-08-17  Bruno Haible  <bruno@clisp.org>
90574
90575         * modules/strndup (Files, Include): Add lib/strndup.h.
90576
90577 2003-08-17  Bruno Haible  <bruno@clisp.org>
90578
90579         * modules/euidaccess (Files): Add lib/euidaccess.h.
90580
90581 2003-08-17  Bruno Haible  <bruno@clisp.org>
90582
90583         * lib/strndup.h: New file.
90584
90585 2003-08-17  Bruno Haible  <bruno@clisp.org>
90586
90587         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
90588         like AC_GNU_SOURCE.
90589         * modules/extensions (configure.ac): Comment out the invocation of
90590         gl_USE_SYSTEM_EXTENSIONS.
90591
90592 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90593
90594         Merges from coreutils, etc.
90595         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
90596         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
90597         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
90598         fixing a typo.
90599         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
90600         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
90601
90602 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90603
90604         Document merge from coreutils.
90605         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
90606         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
90607         * modules/utime: Add m4/utimes-null.m4.
90608
90609 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90610
90611         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
90612         space, undoing this 2003-08-12 change:
90613         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90614
90615 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90616
90617         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
90618         strtoul.c from libc, undoing this 2003-08-12 change:
90619         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90620
90621 2003-08-16  Jim Meyering  <jim@meyering.net>
90622
90623         Merges from coreutils.
90624         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
90625         prefix.  Adjust cache variables similarly.  Create 500 rather than
90626         just 300 files, to exercise bug on Darwin6.5, too.
90627         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
90628         $missing_dir.
90629         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
90630         AM_SYS_POSIX_TERMIOS.
90631         Reported by mkc@mathdogs.com.
90632         Also change use of $am_cv_sys_posix_termios
90633         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
90634         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
90635         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
90636         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
90637         in /proc/mounts until it finds one with matching device number.  This
90638         is unnecessary when the FILE argument *is* a mount point.  No stat call
90639         is necessary in that case.  So, disable the statvfs-testing code on
90640         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
90641         as RedHat bug# 84846.
90642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90643         to 1MB, so as not to render systems with no stack size limit (e.g.,
90644         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90645         Include <unistd.h>.  On some systems,
90646         it is required for the definition of _SC_PAGESIZE.
90647
90648 2003-08-16  Jim Meyering  <jim@meyering.net>
90649
90650         Merge from coreutils.
90651         * lib/xstrtoimax.c: #else #if -> #elif.
90652         * lib/xstrtoumax.c: Likewise.
90653
90654 2003-08-16  Jim Meyering  <jim@meyering.net>
90655
90656         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
90657         * m4/utimes.m4: Removed.
90658         * m4/utimes-null.m4: Renamed from utimes.m4.
90659
90660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90661         to 1MB, so as not to render systems with no stack size limit (e.g.,
90662         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90663         Include <unistd.h>.  On some systems,
90664         it is required for the definition of _SC_PAGESIZE.
90665
90666 2003-08-16  Jim Meyering  <jim@meyering.net>
90667         and Paul Eggert  <eggert@cs.ucla.edu>
90668
90669         Merges from coreutils, etc.
90670
90671         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
90672         using the latest version from cvs.  This avoids problems with #line
90673         directives using a vendor (Sun) compiler.
90674         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
90675         Don't set GETGROUPS_LIB here; now it's
90676         done via getgroups.m4's wrapper function.
90677         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
90678         rather than just in sh-util/configure.in, so that the
90679         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
90680         same.
90681         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
90682         AC_FUNC_GETLOADAVG where to find getloadavg.c.
90683         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
90684         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
90685         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
90686         Remove code that is now done by the newly-required macros.
90687         Append $(EXEEXT) to DF_PROG.
90688         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
90689         Do not invoke or require the following here,
90690         since prereq.m4 or some gnulib .m4 now does this for us:
90691         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
90692         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
90693         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
90694         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
90695         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
90696         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
90697         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
90698         AC_FUNC_OBSTACK.
90699         Do not replace the following functions, as this is now the job
90700         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
90701         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
90702         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
90703         atexit getpass, strdup, getpagesize.
90704         Replace 'raise'.
90705         Do not check for the following functions, as this is now the job
90706         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
90707         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
90708         setregid.
90709         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
90710         Check for sys/sysctl.h.
90711         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
90712         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
90713         of checking for ssize_t ourselves.
90714
90715         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
90716         Require every macro that gnulib/modules/* suggests for us.
90717         (jm_PREREQ_ADDEXT): New macro.
90718         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
90719         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
90720
90721         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
90722         (gl_PHYSMEM): Use it.
90723         Also check for `table' function.
90724         Check for new headers and functions.
90725         Add check for sys/sysmp.h.
90726         With suggestions from Kaveh Ghazi.
90727         Ignore headers that are present but cannot be compiled.  This
90728         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
90729         C 5.4.
90730
90731 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90732
90733         Document merge from coreutils.
90734         * modules/userspec: Depend on posixver.
90735         * modules/strftime: Depend on tzset.
90736
90737 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90738
90739         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
90740         rather than tab, after '#' in shell-script copyright notices.
90741         Suggested by Bruno Haible.
90742
90743 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90744
90745         * config/srclist-update: Use three spaces, rather than tab, after '#'
90746         in shell-script copyright notices.  Suggested by Bruno Haible.
90747         Remove unnecessary parenthesization in regular expression.
90748
90749 2003-08-15  Jim Meyering  <jim@meyering.net>
90750
90751         Merge from coreutils.
90752         * lib/xgethostname.c: Include <stdlib.h>.
90753         (xghostname): Don't exit for anything other than memory-related
90754         failure; just return NULL.
90755         * lib/userspec.c: Include "posixver.h".
90756         (parse_user_spec): Accept `.' as a separator only
90757         in pre-POSIX-200112 mode.
90758         * lib/strtoimax.c: Use #elif rather than #else #if.
90759         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
90760         Remove function, now that we can rely on a working tzset function.
90761         [!_LIBC]: Ensure that the required autoconf test has been run.
90762         [!defined _NL_CURRENT && HAVE_STRFTIME]:
90763         Use underlying_strftime for %r.
90764         * lib/sha.c: Merge in some clean-up and optimization changes from
90765         glibc.
90766         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
90767         Ensure that it is a multiple of 64.
90768         Rearrange loop exit tests so as to avoid performing an
90769         additional fread after encountering an error or EOF.
90770         * lib/realloc.c: Update copyright date.
90771
90772 2003-08-15  Jim Meyering  <jim@meyering.net>
90773         and Paul Eggert  <eggert@twinsun.com>
90774
90775         Merge from coreutils.
90776         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
90777         member but strut utmpx does not.  Needed for AIX 4.3.3.
90778         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
90779
90780 2003-08-15  Jim Meyering  <jim@meyering.net>
90781         and Paul Eggert  <eggert@cs.ucla.edu>
90782
90783         Merges from coreutils, etc.
90784         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
90785         Require gl_FUNC_TZSET_CLOBBER.
90786         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
90787         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
90788         members.
90789
90790 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90791
90792         Help the merge from coreutils.
90793         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
90794         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
90795         * m4/tzset.m4: Use it too.
90796
90797 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90798
90799         * modules/tzset: New file.
90800
90801 2003-08-14  Jim Meyering  <jim@meyering.net>
90802
90803         Merges from coreutils.
90804         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
90805         variable names, rather than @FNMATCH_H@.
90806         * modules/alloca: Likewise for $(ALLOCA_H).
90807
90808         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
90809         the three copies of the literal target, `fnmatch.h'.
90810         * modules/alloca (alloca.h): Likewise.
90811
90812 2003-08-14  Jim Meyering  <jim@meyering.net>
90813
90814         Merge from coreutils.
90815         * m4/tzset.m4: New file.
90816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
90817         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
90818         otherwise, AIX 5.1 systems would end up using the latter.
90819         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
90820         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
90821         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
90822         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
90823
90824 2003-08-14  Jim Meyering  <jim@meyering.net>
90825
90826         Merge from coreutils.
90827         * lib/obstack.h: Whitespace changes.
90828         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
90829         and xcalloc return values.
90830         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
90831         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
90832         hang on OSF/1 5.1 for DIR on both local and remote file systems.
90833         Reported by (and fix confirmed by) Nelson H. F. Beebe.
90834         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90835         error from mntctl.
90836         Use mntctl's return value to drive the entry-processing loop, since
90837         we can't rely on the value of the vmt_length member in the last
90838         entry.  On some systems doing so could result in exhausting
90839         virtual memory.  Based in part on a patch from Mike Jetzer.
90840
90841 2003-08-14  Jim Meyering  <jim@meyering.net>
90842         and Paul Eggert  <eggert@twinsun.com>
90843
90844         Merges from coreutils, plus other fixes.
90845         * lib/physmem.c: Merge in portability changes from gcc/libiberty
90846         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
90847         for credits and details.  Thanks to Kaveh Ghazi for helping
90848         to keep these files in sync.
90849         (ARRAY_SIZE): Define it.
90850         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
90851         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
90852         (memcasecmp): Don't assume size_t fits in unsigned int.
90853         Remove casts and duplicate code.
90854         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
90855         (memcpy): Remove definition.
90856         Merge in some clean-up and optimization changes from glibc.
90857         [BLOCKSIZE]: Move definition to top of file.
90858         Ensure that it is a multiple of 64.
90859         Rearrange loop exit tests so as to avoid performing an
90860         additional fread after encountering an error or EOF.
90861         * lib/md5.h (md5_uintptr): Define.
90862         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
90863         return to the initial working directory.  Preserve errno
90864         for caller.
90865         * lib/idcache.c: Include "xalloc.h".
90866         (xmalloc, xrealloc): Remove decls.
90867         (getuser): Remove casts no longer required in C89.
90868         * lib/human.c: Include stdio.h, for sprintf.
90869         * lib/group-member.c: Include "xalloc.h".
90870         (xmalloc, xrealloc): Remove decls.
90871         (get_group_info): Remove casts no longer required in C89.
90872         * lib/getusershell.c (readname): Remove casts no longer required in
90873         C89.
90874         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
90875         * lib/getline.c: Whitespace fix, from coreutils.
90876
90877 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90878
90879         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
90880         Check for isascii.
90881
90882         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90883         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90884         Undo previous (whitespace-only) change.
90885
90886 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90887
90888         * lib/exclude.c: Include <ctype.h>
90889         (IN_CTYPE_DOMAIN): New macro.
90890         (is_space): New fn.
90891         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
90892         and empty lines.
90893
90894         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90895         Undo previous (whitespace-only) change.
90896
90897 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90898
90899         * config/srclist-update: Change update back to the old behavior,
90900         leaving whitespace alone.  Use one 'sed' command rather than a
90901         pipeline.
90902         (fixlicense): Now a variable, not a function.
90903         (remove_trailing_blanks): Remove.
90904         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
90905         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90906         Undo previous (whitespace-only) change.
90907
90908 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90909
90910         Merge from coreutils.
90911         * modules/euidaccess: Add lib_SOURCES, include for new
90912         file euidaccess.h
90913
90914 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90915
90916         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90917         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90918         Normalize leading white space and remove trailing white space.
90919
90920         Merge from coreutils
90921         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
90922
90923         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
90924         0.12.1.  These files are now being upgraded automatically by
90925         ../config/srclist-update.
90926
90927 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90928
90929         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90930         Normalize leading white space and remove trailing white space.
90931         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
90932         notice, as per ../config/srclist-update.
90933
90934         Merge from coreutils.
90935         * lib/euidaccess.h: New file.
90936         * lib/euidaccess.c: Include it.
90937         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
90938         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
90939         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
90940
90941 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90942
90943         * config/srclist-update: Add copyright notice.
90944         (remove_id_lines, remove_trailing_blanks): New constants.
90945         (fixfile): Use them to normalize spacing a bit in copied files.
90946         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90947         Normalize leading white space and remove trailing white space.
90948
90949         * config/texinfo.tex: Sync with texinfo.
90950
90951         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
90952         strtoul.c from libc, to merge coreutils whitespace changes.
90953
90954         * config/srclist.txt: Get the following m4 files from gettext:
90955         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
90956         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
90957         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
90958         wint_t.m4.
90959
90960 2003-08-12  Karl Berry  <karl@gnu.org>
90961
90962         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
90963         been made.
90964
90965 2003-08-11  Paul Eggert  <eggert@twinsun.com>
90966
90967         * modules/gnu-source, m4/gnu-source.m4:
90968         Remove; we're assuming Autoconf 2.54 or later now.
90969         Suggested by Bruno Haible.
90970         * MODULES.html.sh (func_all_modules): Remove gnu-source.
90971
90972 2003-08-11  Bruno Haible  <bruno@clisp.org>
90973
90974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
90975
90976 2003-08-11  Bruno Haible  <bruno@clisp.org>
90977
90978         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
90979         (vasnprintf): Use it instead of wcslen.
90980
90981 2003-08-11  Bruno Haible  <bruno@clisp.org>
90982
90983         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
90984         value to ensure that _Bool promotes to int. Use #define for _Bool when
90985         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
90986
90987 2003-08-10  Karl Berry  <karl@gnu.org>
90988
90989         * lib/regex.h: update from libc (whitespace fix).
90990
90991 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90992
90993         Merge some files from coreutils.  These changes were
90994         originally made by Jim Meyering.
90995         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
90996         many older Unixes require this.
90997         * lib/alloca.c (alloca): Remove cast to argument of free;
90998         no longer needed in C89.
90999         * lib/alloca_.h, regex.h: Fix white space to match
91000         what GNU indent does.
91001
91002 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91003
91004         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91005         apparently Emacs's Unicode mode got confused before my 2003-08-05
91006         checkin.
91007
91008 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91009
91010         * m4/extensions.m4: New file.
91011         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91012         Require gl_USE_SYSTEM_EXTENSIONS.
91013         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91014         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91015
91016 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91017
91018         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91019         * modules/extensions, modules/gnu-source: New files.
91020         * modules/timespec, modules/unlocked-io: Depend on extensions.
91021
91022 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91023
91024         * modules/restrict: New file.
91025         * MODULES.html.sh (func_all_modules): Add restrict.
91026         * modules/regex: Depend on restrict.
91027
91028 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91029
91030         * m4/restrict.m4: New file.
91031         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91032
91033 2003-08-07  Bruno Haible  <bruno@clisp.org>
91034
91035         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91036         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91037
91038 2003-08-07  Bruno Haible  <bruno@clisp.org>
91039
91040         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91041         makes the module 'getndelim2' compatible with the module 'getline'.
91042
91043 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91044
91045         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91046         byte with "\201" to avoid glitches when editing that source file
91047         with multi-gnome-terminal.
91048
91049 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91050
91051         * lib/bumpalloc.h: Remove.
91052
91053 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91054
91055         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91056         * modules/bumpalloc: Remove.
91057
91058 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91059
91060         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91061         GNU coding style.
91062
91063         Merge from coreutils.
91064         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91065         1. From glibc.
91066         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91067         from Karl Berry, implemented by Jim Meyering.
91068         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91069         from Dmitry V. Levin.
91070         Remove anachronistic cast of xrealloc.
91071         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91072         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91073         type. Otherwise, it wouldn't compile with at least /bin/cc on
91074         ymp-cray-unicos9.0.2.X.
91075         Combine two mostly-identical uses of alloca into one.
91076         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91077
91078 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91079
91080         [From Emacs.]
91081
91082         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91083         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91084         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91085         obsolete NLIST_NAME_UNION.
91086         [__GNU__]: Undef BSD and FSCALE.
91087         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91088
91089 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91090
91091         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91092         an enum type, so that it's guaranteed to promote to int.  See:
91093         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91094
91095 2003-08-03  Karl Berry  <karl@gnu.org>
91096
91097         * config/depcomp: update from automake.
91098
91099 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91100
91101         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91102         (strerror): Don't assume that a printable int fits in 14 bytes.
91103
91104 2003-07-31  Bruno Haible  <bruno@clisp.org>
91105
91106         * modules/getpass-gnu: New file.
91107         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91108
91109 2003-07-31  Bruno Haible  <bruno@clisp.org>
91110
91111         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91112
91113 2003-07-24  Karl Berry  <karl@gnu.org>
91114
91115         * config/missing: update from automake.
91116
91117 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91118             Bruno Haible  <bruno@clisp.org>
91119
91120         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91121         * lib/getline.c (getline, getdelim): Likewise.
91122         Remove _GNU_SOURCE define; now it's defined in config.h through
91123         m4/getline.m4.
91124
91125 2003-07-23  Karl Berry  <karl@gnu.org>
91126
91127         * config/config.sub: update from prep.
91128
91129 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91130
91131         * modules/xalloc (Depends-on): Add exitfail.
91132         * modules/xmemcoll: Likewise.
91133
91134 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91135
91136         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91137         over-parenthesization in macros.
91138
91139         Sync with coreutils.
91140
91141         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91142         required by C99.
91143
91144         Use `exit_failure' for xalloc and xmemcoll instead of their own
91145         private exit-failure variables.
91146         * lib/xalloc.h (xalloc_exit_failure): Remove.
91147         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91148         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91149         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91150         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91151         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91152
91153 2003-07-20  Jim Meyering  <jim@meyering.net>
91154
91155         * modules/closeout (Depends-on): Add exitfail.
91156         Suggestion from Bruno Haible.
91157
91158 2003-07-19  Karl Berry  <karl@gnu.org>
91159
91160         * config/config.sub: update from prep.
91161
91162 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91163
91164         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91165         Remove.
91166         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91167         to test that it can stand by itself.  Include "exitfail.h".
91168         Clients should set exit_failure instead.
91169         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91170
91171 2003-07-18  Bruno Haible  <bruno@clisp.org>
91172
91173         * modules/getndelim2: New file.
91174         * modules/getline: Share files with module getndelim2.
91175         * modules/getnline: Depend on getndelim2 instead of sharing files with
91176         it. Add getnline.c to lib_SOURCES.
91177         * MODULES.html.sh (func_all_modules): Add getndelim2.
91178
91179 2003-07-18  Bruno Haible  <bruno@clisp.org>
91180
91181         * m4/getndelim2.m4: New file.
91182         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91183         invoke gl_PREREQ_GETNDELIM2.
91184         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91185         gl_PREREQ_GETNDELIM2.
91186         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91187         gl_GETNDELIM2.
91188
91189 2003-07-18  Bruno Haible  <bruno@clisp.org>
91190
91191         * lib/getndelim2.h: New file.
91192         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91193         getndelim2.h.
91194         (getndelim2): Make non-static. Change return type to ssize_t.
91195         * lib/getline.h: Change argument names.
91196         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91197         * lib/getnline.c: Include getndelim2.h.
91198
91199 2003-07-18  Andreas Schwab  <schwab@suse.de>
91200
91201         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91202
91203 2003-07-17  Karl Berry  <karl@gnu.org>
91204
91205         * config/config.sub: update from prep.
91206
91207 2003-07-17  Bruno Haible  <bruno@clisp.org>
91208
91209         * modules/getnline: New file.
91210         * modules/getline: Add lib/getndelim2.c to source file list.
91211         * MODULES.html.sh (func_all_modules): Add getnline.
91212
91213 2003-07-17  Bruno Haible  <bruno@clisp.org>
91214
91215         * m4/getnline.m4: New file.
91216
91217 2003-07-17  Bruno Haible  <bruno@clisp.org>
91218
91219         * m4/Makefile.am.in: Remove file.
91220         * m4/Makefile.am: Remove file.
91221         * m4/Makefile.in: Remove file.
91222
91223 2003-07-17  Bruno Haible  <bruno@clisp.org>
91224
91225         * lib/getnline.h: New file.
91226         * lib/getnline.c: New file.
91227         * lib/getndelim2.c: New file, extracted from getline.c.
91228         (getndelim2): Renamed from getdelim2, with added nmax argument.
91229         * lib/getline.c: Include getndelim2.c.
91230         (getdelim2): Moved out to getndelim2.c.
91231         (getline, getdelim): Update.
91232
91233 2003-07-17  Bruno Haible  <bruno@clisp.org>
91234
91235         * lib/Makefile.am: Remove file.
91236         * lib/Makefile.in: Remove file.
91237
91238 2003-07-17  Bruno Haible  <bruno@clisp.org>
91239
91240         * configure.in: Remove file.
91241         * Makefile.in: Remove file.
91242
91243 2003-07-17  Bruno Haible  <bruno@clisp.org>
91244
91245         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91246
91247 2003-07-16  Karl Berry  <karl@gnu.org>
91248
91249         * config/srclist-update: was running fixlicense twice, which caused
91250                 texinfo.tex to be nullified for some reason.  Simplify,
91251                 $gplsrc is no longer needed as far as I can see?
91252
91253 2003-07-16  Jim Meyering  <jim@meyering.net>
91254
91255         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91256
91257 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91258
91259         * config/srclist.txt: Get the following files from gettext-runtime/intl
91260         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91261         ref-del.sin.  From Bruno Haible.
91262         * config/srclist-update (fixfile): Change grep pattern again, since the
91263         previous fix didn't work (there was another trailing $).  Use
91264         '[$]' to escape the $s.
91265
91266 2003-07-15  Karl Berry  <karl@gnu.org>
91267
91268         * lib/vasnprintf.c: update from gettext.
91269
91270 2003-07-15  Karl Berry  <karl@gnu.org>
91271
91272         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91273         gets expanded when surrounded by '$'.
91274
91275 2003-07-15  Jim Meyering  <jim@meyering.net>
91276
91277         * modules/save-cwd: Don't depend on error.  From Derek Price.
91278
91279 2003-07-15  Jim Meyering  <jim@meyering.net>
91280
91281         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91282
91283 2003-07-14  Simon Josefsson  <jas@extundo.com>
91284
91285         * modules/mempcpy: New file.
91286         * MODULES.html.sh (func_all_modules): Add mempcpy.
91287
91288 2003-07-14  Simon Josefsson  <jas@extundo.com>
91289
91290         * m4/mempcpy.m4: New file.
91291
91292 2003-07-14  Simon Josefsson  <jas@extundo.com>
91293
91294         * lib/mempcpy.h: New file.
91295         * lib/mempcpy.c: New file.
91296
91297 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91298
91299         * modules/getdate, modules/posixtm: Depend on mktime.
91300
91301 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91302
91303         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91304         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91305         unicodeio.c, unicodeio.h, unlocked-io.h:
91306         Switch from LGPL to GPL.
91307
91308 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91309
91310         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91311         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91312         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91313         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91314         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91315         updated automatically by ../config/srclist-update.  This changes
91316         their license from LPGL to GPL.
91317
91318 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91319
91320         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91321         assumed to refer to the root of the most recent stable gettext version.
91322         * config/srclistvars.sh: Add defaults for eggert.
91323         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91324         Match "This program" as well as "The program".  This is needed
91325         for gettext.
91326
91327 2003-07-14  Jim Meyering  <jim@meyering.net>
91328
91329         Don't emit diagnostics.  Let callers do that.
91330         * lib/save-cwd.c: Don't include "error.h".
91331         (save_cwd): Don't call error.  Ensure that errno is valid
91332         when returning nonzero.
91333
91334         * lib/save-cwd.h (restore_cwd): Update prototype.
91335         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91336         Simplify.  Don't call error upon failure.  Let callers do that.
91337         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91338         when auditing is enabled.  But don't bother updating the #if.
91339
91340 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91341
91342         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91343         it breaks C++ compilation.
91344         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91345
91346 2003-07-10  Simon Josefsson  <jas@extundo.com>
91347
91348         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91349
91350 2003-07-10  Jim Meyering  <jim@meyering.net>
91351
91352         * m4/clock_time.m4: Remove trailing blank.
91353         * m4/intmax_t.m4: Likewise.
91354
91355 2003-07-10  Jim Meyering  <jim@meyering.net>
91356
91357         * lib/vasnprintf.c: Remove trailing blanks.
91358         Make cpp indentation consistent.
91359
91360 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91361
91362         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91363         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91364         Switch from LGPL to GPL.
91365
91366 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91367
91368         * config/srclist.txt: Sort sublists.  Add
91369         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91370         that differ from gnulib for one reason or another; we'd like this list
91371         to be smaller but for now let's document what we have.
91372
91373 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91374
91375         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91376         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91377         and sweeter "eval x=$x".
91378         * config/srclist.txt: Get lib/argp* from glibc.
91379
91380 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91381
91382         * lib/mktime.c: Fix some boundary cases and remove need for floating
91383         point.
91384
91385         Issue a compile-time diagnostic if time_t is floating point, or if
91386         two's complement arithmetic is not in effect, or if arithmetic
91387         right shift does not propagate the sign.  These assumptions were
91388         all in the original code but they weren't checked.
91389
91390         (TIME_T_MIDPOINT, verify): New macros.
91391         (__isleap): Remove; it has integer overflow problems.
91392         (leapyear): New function, without those problems.
91393         (ydhms_tm_diff): Remove; splitting into two parts.
91394         (ydhms_diff): New function, containing the arithmetic part of
91395         the old ydhms_tm_diff function.  Issue a compile-time
91396         diagnostic if we are not using C99 integer division.
91397         Avoid casts when possible.
91398         (guess_time_tm): New function, containing the checking part of
91399         the old ydhms_tm_diff function.  Return the new value, rather than
91400         the difference between it and the old.  Accept a new argument T
91401         so that *T specifies the old value.  Check for overflow in the result.
91402
91403         (__mktime_internal): Use a time_t offset, not a long int offset.
91404         This undoes the 2003-06-04 change, which is no longer needed now
91405         that we have better overflow checking.
91406         (localtime_offset): Likewise.
91407
91408         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91409         and long are 64-bit but int is only 32-bit.
91410         (ydhms_diff): Use long int to store year1 and yday1.
91411         Issue a compile-time diagnostic if long int is not wide enough.
91412
91413         (__mktime_internal): Use long int to store adjusted year and yday.
91414         Use plain C rather than preprocessor commands, if that doesn't
91415         affect efficiency.
91416         Check for overflow (and try to repair) after each probe
91417         rather than checking only at the very end.  This avoids some bugs
91418         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91419         does not equal GMT offset at maximum time).
91420         Use integer to check for overflow rather than floating point; this
91421         is more portable to non-IEEE hosts, and is a tad faster.
91422         When we detect that we are oscillating between two values,
91423         don't check whether tm_isdst has the requested value, since
91424         we already know the answer.  When tm_isdst has the wrong value,
91425         use a different heuristic to find the right one, based on the
91426         extreme values actually observed in practice in tz2003a,
91427         rather than the (overly optimistic) "previous 3 calendar quarters".
91428
91429         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91430         "T const" to accommodate glibc style.
91431         (check_result): Use less-confusing report format.  "long" -> "long int.
91432         (main): Likewise.
91433         Don't loop if the iteration overflows time_t.
91434         Allow a negative step in the iteration.
91435
91436 2003-07-06  Karl Berry  <karl@gnu.org>
91437
91438         * config/depcomp: update from automake.
91439         * config/config.sub: update from prep.
91440
91441 2003-07-03  Karl Berry  <karl@gnu.org>
91442
91443         * config/config.guess: update from prep.
91444
91445 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91446
91447         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91448         xreadlink.c now includes it unconditionally.
91449
91450 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91451
91452         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91453         having it depend on HAVE_SYS_TYPES_H.
91454
91455 2003-07-01  Bruno Haible  <bruno@clisp.org>
91456
91457         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91458         <sys/types.h> should be sufficient.
91459         Reported by Paul Eggert.
91460
91461 2003-06-26  Karl Berry  <karl@gnu.org>
91462
91463         * config/depcomp: update from automake.
91464
91465 2003-06-26  Bruno Haible  <bruno@clisp.org>
91466
91467         * modules/human: Depend on module stdbool.
91468
91469 2003-06-25  Bruno Haible  <bruno@clisp.org>
91470
91471         * modules/readlink: New file.
91472         * modules/xreadlink: Depend on it.
91473         * MODULES.html.sh (func_all_modules): Add readlink.
91474
91475 2003-06-25  Bruno Haible  <bruno@clisp.org>
91476
91477         * m4/readlink.m4: New file.
91478
91479 2003-06-25  Bruno Haible  <bruno@clisp.org>
91480
91481         * lib/readlink.c: New file.
91482
91483 2003-06-22  Karl Berry  <karl@gnu.org>
91484
91485         * config/srclist.txt: update mkinstalldirs from automake.
91486         * config/mkinstalldirs: update.
91487
91488 2003-06-22  Bruno Haible  <bruno@clisp.org>
91489
91490         Portability to mingw32.
91491         * m4/ssize_t.m4: New file, from GNU gettext.
91492         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91493         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91494
91495 2003-06-22  Bruno Haible  <bruno@clisp.org>
91496
91497         * modules/safe-read: Add m4/ssize_t.m4.
91498         * modules/xreadlink: Add m4/ssize_t.m4.
91499
91500 2003-06-20  Bruno Haible  <bruno@clisp.org>
91501
91502         Assume C89, so PARAMS isn't needed.
91503         * lib/unicodeio.h (PARAMS): Remove.
91504         * lib/unicodeio.c: Don't use PARAMS.
91505
91506 2003-06-18  Karl Berry  <karl@gnu.org>
91507
91508         * config/config.{guess,sub}: update from prep.
91509
91510 2003-06-18  Jim Meyering  <jim@meyering.net>
91511
91512         Merge changes from coreutils.
91513         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91514         Remove explicit declarations of xmalloc and realloc.
91515         Include xalloc.h.
91516         (read_utmp): Remove anachronistic cast of xmalloc.
91517
91518 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91519
91520         Assume C89, so PARAMS isn't needed.
91521         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91522         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91523         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91524         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91525         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
91526         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
91527         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
91528         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
91529         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
91530         lib/xstrtod.h, lib/xstrtol.h: Likewise.
91531         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
91532         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
91533         no longer needed. Anyway, config.h should always be included before any
91534         other file.
91535
91536 2003-06-11  Simon Josefsson  <jas@extundo.com>
91537
91538         * modules/sysexits: New file.
91539         * MODULES.html.sh (func_all_modules): Add sysexits.
91540
91541 2003-06-11  Simon Josefsson  <jas@extundo.com>
91542
91543         * lib/sysexit_.h: New file.
91544
91545 2003-06-11  Derek Price  <derek@ximbiot.com>
91546
91547         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
91548         necessary.
91549
91550 2003-06-11  Bruno Haible  <bruno@clisp.org>
91551
91552         * m4/sysexits.m4: New file.
91553
91554 2003-06-10  Simon Josefsson  <jas@extundo.com>
91555
91556         * lib/argp.h: New file, from glibc.
91557         * lib/argp-ba.c: New file, from glibc.
91558         * lib/argp-eexst.c: New file, from glibc.
91559         * lib/argp-fmtstream.c: New file, from glibc.
91560         * lib/argp-fmtstream.h: New file, from glibc.
91561         * lib/argp-fs-xinl.c: New file, from glibc.
91562         * lib/argp-help.c: New file, from glibc.
91563         * lib/argp-namefrob.h: New file, from glibc.
91564         * lib/argp-parse.c: New file, from glibc.
91565         * lib/argp-pv.c: New file, from glibc.
91566         * lib/argp-pvh.c: New file, from glibc.
91567         * lib/argp-xinl.c: New file, from glibc.
91568
91569 2003-06-10  Simon Josefsson  <jas@extundo.com>
91570
91571         * modules/strchrnul: New file.
91572
91573 2003-06-10  Simon Josefsson  <jas@extundo.com>
91574
91575         * modules/argp: New file.
91576
91577 2003-06-10  Simon Josefsson  <jas@extundo.com>
91578
91579         * m4/strchrnul.m4: New file.
91580
91581 2003-06-10  Simon Josefsson  <jas@extundo.com>
91582
91583         * lib/strchrnul.h: New file.
91584         * lib/strchrnul.c: New file.
91585
91586 2003-06-10  Bruno Haible  <bruno@clisp.org>
91587
91588         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
91589
91590 2003-06-07  Karl Berry  <karl@gnu.org>
91591
91592         * config/config.{guess,sub}: update from prep.
91593
91594 2003-06-07  Jim Meyering  <jim@meyering.net>
91595
91596         * modules/strtod: Use $(...) notation, not @...@ for
91597         AC_REPLACE'd variables.
91598         * modules/localcharset: Likewise.
91599
91600 2003-06-07  Jim Meyering  <jim@meyering.net>
91601
91602         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
91603         in place of my name in the copyright comment.
91604         Remove definition and uses of __P.
91605
91606         From coreutils.
91607         * lib/stat.c: Don't declare xmalloc explicitly.
91608         Instead, include "xalloc.h".
91609         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
91610         xrealloc, and xcalloc return values.
91611         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
91612         Improve comment.
91613         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
91614
91615 2003-06-07  Bruno Haible  <bruno@clisp.org>
91616
91617         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
91618         avoid AC_CONFIG_LINKS.
91619         * modules/fnmatch (Makefile.am): Use explicit creation rule for
91620         fnmatch.h, to avoid AC_CONFIG_LINKS.
91621         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
91622
91623 2003-06-07  Bruno Haible  <bruno@clisp.org>
91624
91625         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
91626         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
91627         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91628         directory.
91629         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
91630         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91631         directory.
91632
91633 2003-06-06  Jim Meyering  <jim@meyering.net>
91634
91635         Merge from coreutils.
91636         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
91637         Consolidate declarations and initializations of *_base* locals.
91638
91639         Merge from coreutils.
91640         This avoids a core dump on systems without GNU putenv,
91641         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
91642         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
91643         (unsetenv): New static function, from GNU libc.
91644         (rpl_putenv): Use it.
91645
91646         * lib/modechange.c: Remove trailing blanks.
91647
91648         Merge from coreutils.
91649         * lib/fsusage.c: Remove declaration of statfs.
91650         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
91651
91652         * lib/posixtm.c: Include <stdbool.h> unconditionally.
91653
91654 2003-06-06  Jim Meyering  <jim@meyering.net>
91655
91656         * lib/stdbool_.h: Renamed from stdbool.h.in.
91657
91658 2003-06-06  Jim Meyering  <jim@meyering.net>
91659             Bruno Haible  <bruno@clisp.org>
91660
91661         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
91662         Adjust Makefile.am snippet not to redirect directly to target.
91663         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
91664
91665 2003-06-05  Paul Eggert  <eggert@twinsun.com>
91666
91667         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
91668         mismatch, look in future quarters as well as past.  This fixes a
91669         bug when processing fall-backwards gaps immediately after a long
91670         period of daylight-saving time.
91671
91672         * lib/mktime.c: Assume freestanding C89 or better.
91673         (HAVE_LIMITS_H): Remove.  Assume it's 1.
91674         (__P): Remove; not used.
91675         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
91676         (mktime, not_equal_tm, print_tm, check_result,
91677         main): Use prototypes.  Use const * where appropriate.
91678         (main): Fix typo in testing code that uncovered by above changes.
91679         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
91680
91681 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91682
91683         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
91684         locale.h, localeconv.  This merges changes from coreutils.
91685
91686         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
91687         It can be removed after the next Autoconf is released.
91688         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
91689         needed.
91690
91691 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91692
91693         * lib/mktime.c: Fix Debian bug 177940
91694         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
91695         (localtime_offset): Now long int, not time_t, because we want it
91696         to be guaranteed to be signed.  All uses changed.
91697         (__mktime_internal): If overflow would occur when adding offset,
91698         don't add it.
91699
91700         Merge 'human' changes from coreutils.  Rewrite to support
91701         locale-specific notations like thousands separators.
91702         * lib/human.c: Simplify authorship notice.
91703         Include human.h immediately after config.h.
91704         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
91705         <limits.h>: Do not include, since human.h does.
91706         (SIZE_MAX, UINTMAX_MAX): New macros.
91707         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
91708         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
91709         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
91710         (power_letter): Renamed from suffixes.
91711         (generate_suffix_backwards): Remove.
91712         (adjust_value): Now takes int style (because of human.h changes)
91713         and long double value (for greater precision on some platforms).
91714         (group_number): New function.
91715         (human_readable): Use it.  Use integer options, not enum.
91716         Put the options before the sizes in the arg list.
91717         Support all the new options.
91718         The old human_readable function has been removed;
91719         use inttostr.h instead.
91720         (human_readable, default_block_size, humblock):
91721         Use uintmax_t, not int, for block sizes.
91722         (human_readable_inexact, block_size_types): Remove.
91723         (block_size_opts): New constant.
91724         (human_options): Renamed from human_block_size, with new signature
91725         that allows block sizes up to UINTMAX_MAX.  All callers changed.
91726         * lib/human.h: Add copyright and authorship notice.
91727         Include <limits.h> and <stdbool.h> unconditionally.
91728         (PARAMS): Remove.  All uses removed.
91729         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
91730         (enum human_inexact_style): Remove tag; now a nameless enum.
91731         (human_floor, human_ceiling, human_round_to_even): Now have
91732         values 2, 0, 1 rather than -1, 1, 0.
91733         (human_group_digits, human_suppress_point_zero, human_autoscale,
91734         human_base_1024, human_SI, human_B): New constants.
91735         (human_readable_inexact, human_block_size): Remove.
91736         (human_readable): Size args are now uintmax_t, not int.
91737         (human_options): New decl.
91738
91739         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
91740         unnecessary now that we assume C89 or better.  This change
91741         imported from coreutils.
91742
91743         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91744         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
91745         in the 2003-05-30 sync from glibc.
91746
91747         .h files should stand alone, but we shouldn't include <sys/types.h>
91748         if we can get away with just <stddef.h>.
91749
91750         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
91751         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
91752         rather than <sys/types.h>, as we merely need size_t.
91753         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
91754         to get size_t.
91755         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
91756         Include <stdio.h>, to get FILE.
91757         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
91758         memcasecmp.h has included <stddef.h> and all we need is size_t.
91759         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
91760         our interface, instead of including <sys/types.h>
91761
91762 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91763
91764         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
91765         now, as glibc mktime is buggy on non-glibc systems.
91766
91767 2003-06-03  Karl Berry  <karl@gnu.org>
91768
91769         * config/config.sub: update from prep.
91770
91771 2003-06-02  Paul Eggert  <eggert@twinsun.com>
91772
91773         [from coreutils]
91774         Fix some minor time-related bugs with POSIX time arguments.
91775         Some valid time stamps were being rejected (notably -1, and
91776         time stamps before 1900 on 64-bit hosts).  And some invalid
91777         time stamps were being accepted, e.g. September 31.
91778
91779         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
91780         that we can return (time_t) -1 successfully.
91781         * lib/posixtm.c: Likewise.
91782         [HAVE_STDBOOL_H]: Include <stdbool.h>.
91783         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
91784         (t): Remove static var.
91785         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
91786         of static var.  All uses changed.
91787         (year): Do not reject years before 1900; they can occur with
91788         64-bit time_t.
91789         (posix_time_parse): Do not check for out-of-range components;
91790         that is now the caller's responsibility, since our checks were
91791         only approximations.
91792         (posixtime): Use mktime to check for out-of-range components,
91793         since it knows them exactly.
91794         If mktime returns (time_t) -1, check whether an error actually occurred
91795         by invoking localtime on -1.
91796         (main) [TEST_POSIXTIME]: Check for input data errors, and report
91797         posixtime failures better.
91798         Improve the test data (in comments only).
91799
91800 2003-06-02  Karl Berry  <karl@gnu.org>
91801
91802         * config/mkinstalldirs (version): new variable.
91803         (--version): new option.
91804         (usage): improve message.
91805
91806 2003-05-30  Karl Berry  <karl@gnu.org>
91807
91808         * lib/mktime.c: update from libc.
91809
91810 2003-05-30  Bruno Haible  <bruno@clisp.org>
91811
91812         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
91813         * config/config.rpath: Upgrade to gettext-0.12.1.
91814
91815 2003-05-30  Bruno Haible  <bruno@clisp.org>
91816
91817         * m4/gettext.m4: Upgrade to gettext-0.12.1.
91818         * m4/nls.m4: New file, from gettext-0.12.1.
91819         * m4/po.m4: New file, from gettext-0.12.1.
91820         * m4/progtest.m4: Upgrade to gettext-0.12.1.
91821
91822 2003-05-30  Bruno Haible  <bruno@clisp.org>
91823
91824         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
91825         * lib/localcharset.h: Likewise.
91826         * lib/localcharset.c: Likewise.
91827
91828 2003-05-29  Karl Berry  <karl@gnu.org>
91829
91830         * config/config.rpath: update from gettext.
91831
91832 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91833
91834         Assume the headers required for C89 freestanding compilers.
91835         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
91836         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
91837         * m4/human.m4 (gl_HUMAN): Likewise.
91838         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
91839         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
91840         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91841         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
91842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91843         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
91844
91845 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91846
91847         Assume the headers required for C89 freestanding compilers.
91848         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
91849         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
91850         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
91851         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
91852         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
91853         define, since <limits.h> is guaranteed to do that.
91854         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
91855         * lib/exclude.c: Include <stdbool.h> unconditionally.
91856         * lib/tempname.c: Include <stddef.h> unconditionally.
91857         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
91858         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
91859         <stddef.h> does that.
91860         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
91861         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
91862         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
91863         needed.
91864         * lib/xstrtol.c: Likewise.
91865         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
91866         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
91867
91868         * lib/addext.c (addext): Use assignment rather than cast, to avoid
91869         warnings on some platforms.
91870
91871         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91872         arbitrarily.
91873
91874 2003-05-26  Jim Meyering  <jim@meyering.net>
91875
91876         Merge in a change from coreutils:
91877         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
91878         that is guaranteed to be `no'.  Use `no_such_member' to indicate
91879         that condition, rather than `-1' which is slightly misleading.
91880         Change the name of the cache variable to have the gl_ prefix.
91881         Prompted by a patch from Richard Dawe for DJGPP.
91882
91883 2003-05-24  Karl Berry  <karl@gnu.org>
91884
91885         * config/config.guess: update from prep.
91886
91887 2003-05-22  Karl Berry  <karl@gnu.org>
91888
91889         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
91890
91891 2003-05-20  Karl Berry  <karl@gnu.org>
91892
91893         * config/config.guess: update from prep.
91894
91895 2003-05-18  Karl Berry  <karl@gnu.org>
91896
91897         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
91898         might actually be set by the user.
91899
91900         * config/depcomp, install-sh, mdate-sh: update from automake.
91901
91902 2003-05-17  Bruno Haible  <bruno@clisp.org>
91903
91904         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
91905         invalid expansion for AC_EGREP_CPP.
91906         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
91907         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
91908         Suggested by Akim Demaille <akim@epita.fr> in
91909         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
91910
91911 2003-05-12  Jim Meyering  <jim@meyering.net>
91912
91913         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
91914         the space-padded-by-default conversion specifiers, %e, %k, %l.
91915
91916 2003-05-12  Bruno Haible  <bruno@clisp.org>
91917
91918         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
91919         the string is longer than 4 KB.
91920
91921 2003-05-11  Karl Berry  <karl@gnu.org>
91922
91923         * config/config.{guess,sub}: update from prep.
91924
91925 2003-05-09  Bruno Haible  <bruno@clisp.org>
91926
91927         * modules/error: Add m4/strerror_r.m4 to file list.
91928
91929 2003-05-03  Bruno Haible  <bruno@clisp.org>
91930
91931         Upgrade to Unicode-4.0.
91932         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
91933         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
91934         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
91935         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
91936         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
91937         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
91938         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
91939         Change width of U+E0100..U+E01EF from 1 to 0.
91940
91941 2003-04-25  Jim Meyering  <jim@meyering.net>
91942
91943         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
91944         of type size_t, not int.
91945
91946 2003-04-25  Bruno Haible  <bruno@clisp.org>
91947
91948         * lib/copy-file.c: Include <stddef.h>, for size_t.
91949
91950 2003-04-21  Paul Eggert  <eggert@twinsun.com>
91951
91952         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
91953         code which expansion is under static control.  Patch imported from
91954         Akim Demaille's patch to Bison; see
91955         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
91956
91957 2003-04-14  Bruno Haible  <bruno@clisp.org>
91958
91959         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
91960
91961 2003-04-11  Jim Meyering  <jim@meyering.net>
91962
91963         Merge changes from Coreutils.
91964
91965         2003-03-22  Jim Meyering  <jim@meyering.net>
91966
91967         * lib/strftime.c (widen): Cast alloca return value to proper type.
91968
91969         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
91970
91971         From GNU libc.
91972         * lib/strftime.c (my_strftime): Handle very large width
91973         specifications for numeric values correctly.  Improve checks for
91974         overflow.
91975
91976         2003-01-19  Jim Meyering  <jim@meyering.net>
91977
91978         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
91979         definitions.
91980         (nl_get_alt_digit) [! defined my_strftime]: Define.
91981         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
91982         _nl_get_alt_digit and _nl_get_walt_digit.
91983
91984         * lib/strftime.c (my_strftime): Merge in locale-related changes from
91985         libc. These changes have no effect outside of _LIBC.
91986
91987 2003-04-10  Bruno Haible  <bruno@clisp.org>
91988
91989         * modules/findprog: New file.
91990         * MODULES.html.sh (func_all_modules): Add it.
91991
91992 2003-04-10  Bruno Haible  <bruno@clisp.org>
91993
91994         * m4/findprog.m4: New file.
91995         * m4/eaccess.m4: New file.
91996
91997 2003-04-10  Bruno Haible  <bruno@clisp.org>
91998
91999         * lib/findprog.h: New file, from GNU gettext.
92000         * lib/findprog.c: New file, from GNU gettext.
92001
92002 2003-04-05  Jim Meyering  <jim@meyering.net>
92003
92004         Merge changes from Coreutils.
92005
92006         * lib/exclude.h (PARAMS): Remove definition and uses.
92007         * lib/exclude.c: Remove uses of `PARAMS'.
92008
92009         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92010         Add test-cases for DOS filenames. Declare program_name.
92011         (main): Set up program_name.  Patch by Rich Dawe.
92012
92013         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92014         error from mntctl.
92015         Use mntctl's return value to drive the entry-processing loop, since
92016         we can't rely on the value of the vmt_length member in the last
92017         entry.  On some systems doing so could result in exhausting
92018         virtual memory.  Based in part on a patch from Mike Jetzer.
92019
92020 2003-04-04  Bruno Haible  <bruno@clisp.org>
92021
92022         * modules/linebreak: New file.
92023         * MODULES.html.sh (func_all_modules): Add it.
92024
92025 2003-04-04  Bruno Haible  <bruno@clisp.org>
92026
92027         * m4/linebreak.m4: New file.
92028
92029 2003-04-04  Bruno Haible  <bruno@clisp.org>
92030
92031         * lib/linebreak.h: New file, from GNU gettext.
92032         * lib/linebreak.c: New file, from GNU gettext with slight
92033         modifications.
92034         * lib/lbrkprop.h: New file, from GNU gettext.
92035
92036 2003-04-03  Bruno Haible  <bruno@clisp.org>
92037
92038         * modules/utf8-ucs4: New file.
92039         * modules/utf16-ucs4: New file.
92040         * modules/ucs4-utf8: New file.
92041         * modules/ucs4-utf16: New file.
92042         * MODULES.html.sh (func_all_modules): Add them.
92043
92044 2003-04-03  Bruno Haible  <bruno@clisp.org>
92045
92046         * m4/utf-ucs4.m4: New file.
92047         * m4/ucs4-utf.m4: New file.
92048
92049 2003-04-03  Bruno Haible  <bruno@clisp.org>
92050
92051         * lib/utf8-ucs4.h: New file, from GNU gettext.
92052         * lib/utf16-ucs4.h: New file, from GNU gettext.
92053         * lib/ucs4-utf8.h: New file, from GNU gettext.
92054         * lib/ucs4-utf16.h: New file, from GNU gettext.
92055
92056 2003-04-02  Bruno Haible  <bruno@clisp.org>
92057
92058         * modules/binary-io: New file.
92059         * MODULES.html.sh (func_all_modules): Add it.
92060
92061 2003-04-02  Bruno Haible  <bruno@clisp.org>
92062
92063         * lib/binary-io.h: New file, from GNU gettext.
92064
92065 2003-04-01  Bruno Haible  <bruno@clisp.org>
92066
92067         * modules/pathname: New file.
92068         * MODULES.html.sh (func_all_modules): Add it.
92069
92070 2003-04-01  Bruno Haible  <bruno@clisp.org>
92071
92072         * lib/pathname.h: New file, from GNU gettext.
92073         * lib/concatpath.c: New file, from GNU gettext.
92074
92075 2003-03-30  Bruno Haible  <bruno@clisp.org>
92076
92077         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92078
92079 2003-03-30  Bruno Haible  <bruno@clisp.org>
92080
92081         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92082         function chown() doesn't exist.
92083
92084 2003-03-28  Bruno Haible  <bruno@clisp.org>
92085
92086         * modules/copy-file: New file.
92087         * MODULES.html.sh (func_all_modules): Add it.
92088
92089 2003-03-28  Bruno Haible  <bruno@clisp.org>
92090
92091         * m4/copy-file.m4: New file.
92092
92093 2003-03-28  Bruno Haible  <bruno@clisp.org>
92094
92095         * lib/copy-file.h: New file, from GNU gettext.
92096         * lib/copy-file.c: New file, from GNU gettext.
92097
92098 2003-03-18  Jim Meyering  <jim@meyering.net>
92099
92100         * lib/quote.c (quote_n): Fix typo in comment.
92101
92102 2003-03-18  Bruno Haible  <bruno@clisp.org>
92103
92104         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92105         checking.
92106         * m4/onceonly_2_57.m4: Likewise.
92107
92108 2003-03-17  Bruno Haible  <bruno@clisp.org>
92109
92110         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92111         (m4_quote): Remove macro.
92112         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92113
92114 2003-03-14  Jim Meyering  <jim@meyering.net>
92115
92116         Merge changes from Coreutils.
92117         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92118         to be const, in order to avoid warnings.
92119         (obstack_room): Likewise.
92120         (obstack_empty_p): Likewise.
92121
92122 2003-03-14  Bruno Haible  <bruno@clisp.org>
92123
92124         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92125         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92126
92127 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92128
92129         Merge changes from Bison.
92130         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92131         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92132         when compiling Bison 1.875's `bitset bset = obstack_alloc
92133         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92134         * lib/hash.c: Include <stdbool.h> unconditionally.
92135
92136 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92137
92138         * m4/onceonly.m4 (m4_quote): New macro.
92139         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92140         Quote AC_FOREACH variable-expansions properly.
92141
92142 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92143
92144         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92145
92146 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92147
92148         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92149         Reported by Bruce Becker; see:
92150         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92151
92152 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92153             Bruno Haible  <bruno@clisp.org>
92154
92155         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92156         Reported by John Hughes, see
92157         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92158
92159 2003-02-20  Bruno Haible  <bruno@clisp.org>
92160
92161         * MODULES.html.sh (func_all_modules): Add poll.
92162
92163 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92164
92165         * modules/poll: New file.
92166
92167 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92168
92169         * lib/poll_.h: New file.
92170         * lib/poll.c: New file.
92171
92172 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92173
92174         * m4/poll.m4: New file.
92175
92176 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92177
92178         * modules/mathl: New file.
92179
92180 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92181
92182         * lib/mathl.h: New file.
92183         * lib/acosl.c: New file.
92184         * lib/asinl.c: New file.
92185         * lib/atanl.c: New file.
92186         * lib/ceill.c: New file.
92187         * lib/cosl.c: New file.
92188         * lib/expl.c: New file.
92189         * lib/floorl.c: New file.
92190         * lib/frexpl.c: New file.
92191         * lib/ldexpl.c: New file.
92192         * lib/logl.c: New file.
92193         * lib/sincosl.c: New file.
92194         * lib/sinl.c: New file.
92195         * lib/sqrtl.c: New file.
92196         * lib/tanl.c: New file.
92197         * lib/trigl.c: New file.
92198         * lib/trigl.h: New file.
92199
92200 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92201
92202         * m4/mathl.m4: New file.
92203
92204 2003-02-18  Bruno Haible  <bruno@clisp.org>
92205
92206         * MODULES.html.sh (func_all_modules): Add mathl.
92207
92208 2003-02-17  Bruno Haible  <bruno@clisp.org>
92209
92210         * modules/mkdtemp: New module.
92211         * MODULES.html.sh (func_all_modules): Add it.
92212
92213 2003-02-17  Bruno Haible  <bruno@clisp.org>
92214
92215         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92216
92217 2003-02-17  Bruno Haible  <bruno@clisp.org>
92218
92219         * lib/mkdtemp.h: New file, from GNU gettext.
92220         * lib/mkdtemp.c: New file, from GNU gettext.
92221
92222 2003-02-02  Jim Meyering  <jim@meyering.net>
92223
92224         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92225         e.g. glibc-2.2.93.
92226
92227 2003-01-31  Bruno Haible  <bruno@clisp.org>
92228
92229         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92230         'rpl_rename'.
92231         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92232         'rpl_strnlen'.
92233         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92234         'rpl_strtod'.
92235         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92236         'rpl_utime'.
92237
92238 2003-01-31  Bruno Haible  <bruno@clisp.org>
92239
92240         * lib/rename.c: #undef rename before defining rpl_rename.
92241         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92242
92243 2003-01-30  Bruno Haible  <bruno@clisp.org>
92244
92245         * modules/vasnprintf, modules/vasprintf: New modules.
92246         * MODULES.html.sh (func_all_modules): Add them.
92247
92248 2003-01-30  Bruno Haible  <bruno@clisp.org>
92249
92250         * m4/signed.m4: New file, from GNU gettext.
92251         * m4/longdouble.m4: New file, from GNU gettext.
92252         * m4/wchar_t.m4: New file, from GNU gettext.
92253         * m4/wint_t.m4: New file, from GNU gettext.
92254         * m4/vasnprintf.m4: New file.
92255         * m4/vasprintf.m4: New file.
92256
92257 2003-01-30  Bruno Haible  <bruno@clisp.org>
92258
92259         * lib/printf-args.h: New file, from GNU gettext.
92260         * lib/printf-args.c: New file, from GNU gettext.
92261         * lib/printf-parse.h: New file, from GNU gettext.
92262         * lib/printf-parse.c: New file, from GNU gettext.
92263         * lib/vasnprintf.h: New file, from GNU gettext.
92264         * lib/vasnprintf.c: New file, from GNU gettext.
92265         * lib/asnprintf.c: New file, from GNU gettext.
92266         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92267         * lib/vasprintf.c: New file, from GNU gettext.
92268         * lib/asprintf.c: New file, from GNU gettext.
92269
92270 2003-01-29  Bruno Haible  <bruno@clisp.org>
92271
92272         * modules/stpncpy: New module.
92273         * MODULES.html.sh (func_all_modules): Add it.
92274
92275 2003-01-29  Bruno Haible  <bruno@clisp.org>
92276
92277         * m4/stpncpy.m4: New file.
92278
92279 2003-01-29  Bruno Haible  <bruno@clisp.org>
92280
92281         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92282         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92283
92284 2003-01-28  Bruno Haible  <bruno@clisp.org>
92285
92286         * modules/c-ctype: New module.
92287         * MODULES.html.sh (func_all_modules): Add it.
92288
92289 2003-01-28  Bruno Haible  <bruno@clisp.org>
92290
92291         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92292         Paul Eggert.
92293         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92294         Paul Eggert.
92295
92296 2003-01-27  Bruno Haible  <bruno@clisp.org>
92297
92298         * modules/xsetenv: New module.
92299         * MODULES.html.sh (func_all_modules): Add it.
92300
92301 2003-01-27  Bruno Haible  <bruno@clisp.org>
92302
92303         * lib/xsetenv.h: New file, from GNU gettext.
92304         * lib/xsetenv.c: New file, from GNU gettext.
92305
92306 2003-01-23  Jim Meyering  <jim@meyering.net>
92307
92308         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92309         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92310
92311 2003-01-23  Bruno Haible  <bruno@clisp.org>
92312
92313         * modules/minmax: New module.
92314         * MODULES.html.sh (func_all_modules): Add it.
92315
92316 2003-01-23  Bruno Haible  <bruno@clisp.org>
92317
92318         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92319         Eggert.
92320
92321 2003-01-22  Bruno Haible  <bruno@clisp.org>
92322
92323         * modules/exit: New module.
92324         * MODULES.html.sh (func_all_modules): Add it.
92325
92326 2003-01-22  Bruno Haible  <bruno@clisp.org>
92327
92328         * lib/exit.h: New file, from GNU gettext.
92329
92330 2003-01-19  Bruno Haible  <bruno@clisp.org>
92331
92332         * gnulib-tool: Recognize option --extract-maintainer.
92333         (func_get_maintainer): New function.
92334         * modules/*: Add Maintainer entry.
92335
92336 2003-01-16  Jim Meyering  <jim@meyering.net>
92337
92338         * m4/regex.m4: The `regex' struct is both input and output.
92339         Initialize it before each use.  Patch by Tim Waugh.
92340
92341 2003-01-16  Bruno Haible  <bruno@clisp.org>
92342
92343         * MODULES.html.sh: Add a table of contents. Add the module name as
92344         leftmost column. Add hyperlinks.
92345
92346 2003-01-15  Bruno Haible  <bruno@clisp.org>
92347
92348         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92349
92350 2003-01-15  Bruno Haible  <bruno@clisp.org>
92351
92352         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92353         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92354         suffix.
92355
92356 2003-01-15  Bruno Haible  <bruno@clisp.org>
92357
92358         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92359
92360 2003-01-15  Bruno Haible  <bruno@clisp.org>
92361
92362         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92363         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92364
92365 2003-01-14  Jim Meyering  <jim@meyering.net>
92366
92367         * lib/same.c (same_name): Tweak a comment.
92368
92369 2003-01-14  Bruno Haible  <bruno@clisp.org>
92370
92371         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92372         when a string comparison is sufficient.
92373
92374 2003-01-14  Bruno Haible  <bruno@clisp.org>
92375
92376         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92377         'unsigned int'.
92378
92379 2003-01-14  Bruno Haible  <bruno@clisp.org>
92380
92381         * lib/hash-pjw.c: Add comment about low quality of this function.
92382
92383 2003-01-13  Bruno Haible  <bruno@clisp.org>
92384
92385         * modules/stpcpy: Distribute lib/stpcpy.h.
92386         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92387
92388 2003-01-13  Bruno Haible  <bruno@clisp.org>
92389
92390         * modules/*: Add a description.
92391         * modules/strpbrk: Fix Makefile.am snippet.
92392         * modules/strtoimax: Fix dependencies.
92393         * modules/strtoumax: Likewise.
92394
92395 2003-01-13  Bruno Haible  <bruno@clisp.org>
92396
92397         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92398         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92399         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92400
92401 2003-01-13  Bruno Haible  <bruno@clisp.org>
92402
92403         * gnulib-tool (func_create_testdir): Store config/* files in the main
92404         directory.
92405         * config.rpath: Move to ...
92406         * config/config.rpath: ... here.
92407         * modules/gettext: Contains config/config.rpath, not config.rpath.
92408         * modules/iconv: Likewise.
92409
92410 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92411
92412         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92413         to avoid collisions with libcurses and libreadline.
92414
92415         * m4/getstr.m4: Remove.
92416         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92417
92418 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92419
92420         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92421         to avoid collisions with libcurses and libreadline.
92422
92423         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92424         * lib/getstr.h, getstr.c: Remove.
92425         * lib/getline.c: Include "getline.h", to check interface.
92426         Move body of old getstr.c here: this defines MIN_CHUNK and
92427         declares getdelim2, which is renamed from getstr.
92428         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92429
92430         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92431         All uses changed.
92432         * lib/linebuffer.h: Likewise.
92433         (readline): Remove backward-compatibility macro.
92434
92435 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92436
92437         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92438         to avoid collisions with libcurses and libreadline.
92439         * getstr: Remove.
92440         * MODULES.html.sh: Remove getstr.
92441         * modules/getline: Depend on unlocked-io, not getstr.
92442
92443 2003-01-12  Jim Meyering  <jim@meyering.net>
92444
92445         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92446
92447 2003-01-10  Bruno Haible  <bruno@clisp.org>
92448
92449         * modules/alloca: Change Makefile.am requirements. Simplify Include
92450         requirements. Add lib/alloca_.h to file list.
92451
92452 2003-01-10  Bruno Haible  <bruno@clisp.org>
92453
92454         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92455
92456 2003-01-10  Bruno Haible  <bruno@clisp.org>
92457
92458         * lib/alloca_.h: New file.
92459         * lib/getdate.y: Unconditionally include alloca.h.
92460         * lib/makepath.c: Likewise.
92461         * lib/setenv.c: Likewise.
92462         * lib/userspec.c: Likewise.
92463
92464 2003-01-09  Karl Berry  <karl@gnu.org>
92465
92466         * MODULES.html.sh: include `dirname $0` in PATH, to find
92467         gnulib-tool.
92468
92469 2003-01-09  Bruno Haible  <bruno@clisp.org>
92470
92471         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92472         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92473
92474 2003-01-09  Bruno Haible  <bruno@clisp.org>
92475
92476         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92477
92478 2003-01-09  Bruno Haible  <bruno@clisp.org>
92479
92480         * lib/stdbool.h.in: New file.
92481
92482 2003-01-09  Bruno Haible  <bruno@clisp.org>
92483
92484         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92485         * MODULES.html.sh: Likewise.
92486
92487 2003-01-08  Jim Meyering  <jim@meyering.net>
92488
92489         * lib/full-write.c: Undefine and define-away `const' after inclusion
92490         of errno.h, not before.  Suggestion from Bruno Haible.
92491
92492 2003-01-08  Bruno Haible  <bruno@clisp.org>
92493
92494         * modules/full-read: Depend on full-write.
92495
92496 2003-01-08  Bruno Haible  <bruno@clisp.org>
92497
92498         * lib/safe-read.c: Include specification header first, to ensure its
92499         selfcontainedness.
92500         * lib/full-write.c: Likewise.
92501
92502 2003-01-07  Jim Meyering  <jim@meyering.net>
92503
92504         * lib/full-write.c: Rework so that it may serve to define full_read,
92505         too.
92506         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92507
92508 2003-01-07  Bruno Haible  <bruno@clisp.org>
92509
92510         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92511         <inttypes.h>.
92512         * lib/xstrtol.h: Likewise.
92513         * lib/xstrtoimax.c: Likewise.
92514         * lib/xstrtoumax.c: Likewise.
92515         * lib/human.h: Likewise.
92516
92517         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92518         on systems that have <inttypes.h> but not <stdint.h>.
92519
92520 2003-01-07  Bruno Haible  <bruno@clisp.org>
92521
92522         * MODULES.html.sh: Add copyright notice.
92523         (missed_files): Omit CVS directory entries.
92524         (func_module): Make it work with sed-3.02.
92525         * MODULES.txt: Remove file.
92526
92527 2003-01-06  Jim Meyering  <jim@meyering.net>
92528
92529         * lib/version-etc.c: Update year in translatable copyright string.
92530
92531 2003-01-03  Karl Berry  <karl@gnu.org>
92532
92533         * config/config.{guess,sub}: update from prep.
92534
92535 2003-01-02  Karl Berry  <karl@gnu.org>
92536
92537         * doc/COPYING.DOC: belatedly updated to 1.2.
92538
92539 2003-01-01  Karl Berry  <karl@gnu.org>
92540
92541         * gnulib-tool (func_verify_module): report module name $module in
92542         error message, not $1.
92543         * gnulib-tool (create-testdir): don't complain if destdir couldn't
92544         be created, only if it doesn't exist.
92545         * gnulib-tool (last_checkin_date): don't expand the $Date here.
92546
92547 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92548
92549         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
92550
92551 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92552
92553         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
92554         memcmp if strcoll doesn't work.
92555
92556 2002-12-31  Bruno Haible  <bruno@clisp.org>
92557
92558         * lib/utime.c (utime_null): No need to call ftruncate if the file was
92559         nonempty.
92560
92561 2002-12-31  Bruno Haible  <bruno@clisp.org>
92562
92563         * lib/memcoll.c (STRCOLL): New macro.
92564         (memcoll): Use it.
92565
92566 2002-12-31  Bruno Haible  <bruno@clisp.org>
92567
92568         * lib/localcharset.h: New file.
92569         * lib/localcharset.c: Include it.
92570         * lib/unicodeio.c: Likewise.
92571
92572 2002-12-31  Bruno Haible  <bruno@clisp.org>
92573
92574         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
92575         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
92576
92577 2002-12-31  Bruno Haible  <bruno@clisp.org>
92578
92579         * lib/getline.h: Include <stddef.h>, for size_t.
92580
92581         * lib/unicodeio.h: Include <stddef.h>, for size_t.
92582         * lib/unicodeio.c: Don't include <stddef.h>.
92583
92584 2002-12-31  Bruno Haible  <bruno@clisp.org>
92585
92586         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
92587         HAVE_TM_ZONE.
92588
92589 2002-12-24  Karl Berry  <karl@gnu.org>
92590
92591         * config/config.guess: update from prep.
92592
92593 2002-12-24  Bruno Haible  <bruno@clisp.org>
92594
92595         General infrasructure.
92596         * m4/README: Rewritten.
92597         * m4/onceonly.m4: New file.
92598         * m4/onceonly_2_57.m4: New file.
92599
92600         Module atexit.
92601         * m4/atexit.m4: New file.
92602
92603         Module strtod.
92604         * m4/strtod.m4: New file.
92605
92606         Module strtol.
92607         * m4/strtol.m4: New file.
92608
92609         Module strtoul.
92610         * m4/strtoul.m4: New file.
92611
92612         Module memchr.
92613         * m4/memchr.m4: New file.
92614
92615         Module memcmp.
92616         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
92617         (jm_FUNC_MEMCMP): Invoke it.
92618
92619         Module memcpy.
92620         * m4/memcpy.m4: New file.
92621
92622         Module memmove.
92623         * m4/memmove.m4: New file.
92624
92625         Module memset.
92626         * m4/memset.m4: New file.
92627
92628         Module strcspn.
92629         * m4/strcspn.m4: New file.
92630
92631         Module strpbrk.
92632         * m4/strpbrk.m4: New file.
92633
92634         Module strstr.
92635         * m4/strstr.m4: New file.
92636
92637         Module strerror.
92638         * m4/strerror.m4: New file.
92639
92640         Module mktime.
92641         * m4/mktime.m4: Renamed from jm-mktime.m4.
92642         (gl_PREREQ_MKTIME): New macro.
92643         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
92644
92645         Module malloc.
92646         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
92647         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
92648         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
92649
92650         Module realloc.
92651         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
92652         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
92653         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
92654
92655         Module strftime.
92656         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
92657         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
92658         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
92659         gl_TM_GMTOFF.
92660         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
92661
92662         Module xalloc.
92663         * m4/xalloc.m4: New file.
92664
92665         Module alloca.
92666         * m4/alloca.m4: New file.
92667
92668         Module putenv.
92669         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
92670         (jm_FUNC_PUTENV): Invoke it.
92671
92672         Module setenv.
92673         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
92674         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
92675         when invoked twice.
92676         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
92677         gt_FUNC_SETENV.
92678
92679         Module memrchr.
92680         * m4/memrchr.m4: New file.
92681
92682         Module stpcpy.
92683         * m4/stpcpy.m4: New file.
92684
92685         Module strcase.
92686         * m4/strcase.m4: New file.
92687
92688         Module strdup.
92689         * m4/strdup.m4: New file.
92690
92691         Module strnlen.
92692         * m4/strnlen.m4: New file.
92693
92694         Module strndup.
92695         * m4/strndup.m4: New file.
92696
92697         Module xstrtod.
92698         * m4/xstrtod.m4: New file.
92699
92700         Module xstrtol.
92701         * m4/xstrtol.m4: New file.
92702
92703         Module getdate.
92704         * m4/getdate.m4: New file.
92705
92706         Module unlocked-io.
92707         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
92708         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
92709         * m4/jm-glibc-io.m4n: Remove file.
92710
92711         Module long-options.
92712         * m4/long-options.m4: New file.
92713
92714         Module md5.
92715         * m4/md5.m4: New file.
92716
92717         Module sha.
92718         * m4/sha.m4: New file.
92719
92720         Module getstr.
92721         * m4/getstr.m4: New file.
92722
92723         Module getline.
92724         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
92725         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
92726         <sys/types.h>, for size_t. Use the function name gnu_getline, not
92727         simply getline. Infoke gl_PREREQ_GETLINE.
92728
92729         Module obstack.
92730         * m4/obstack.m4: New file.
92731
92732         Module hash.
92733         * m4/hash.m4: New file.
92734
92735         Module readtokens.
92736         * m4/readtokens.m4: New file.
92737
92738         Module strverscmp.
92739         * m4/strverscmp.m4: New file.
92740
92741         Module stdbool.
92742         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
92743         OSF/1.
92744
92745         Module strtoll.
92746         * m4/strtoll.m4: New file.
92747
92748         Module strtoull.
92749         * m4/strtoull.m4: New file.
92750
92751         Module strtoimax.
92752         * m4/strtoimax.m4: New file.
92753
92754         Module strtoumax.
92755         * m4/strtoumax.m4: New file.
92756
92757         Module xstrtoimax.
92758         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
92759         jm_AC_PREREQ_XSTRTOIMAX.
92760         Moved the strtol prerequisites to strtol.m4.
92761         Moved the strtoll prerequisites to strtoll.m4.
92762         Moved the strtoimax prerequisites to strtoimax.m4.
92763
92764         Module xstrtoumax.
92765         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
92766         jm_AC_PREREQ_XSTRTOUMAX.
92767         Moved the strtoul prerequisites to strtoul.m4.
92768         Moved the strtoull prerequisites to strtoull.m4.
92769         Moved the strtoumax prerequisites to strtoumax.m4.
92770
92771         Module chown.
92772         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
92773         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
92774
92775         Module dup2.
92776         * m4/dup2.m4: New file.
92777
92778         Module ftruncate.
92779         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
92780         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
92781
92782         Module getgroups.
92783         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
92784         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
92785
92786         Module gettimeofday.
92787         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
92788         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
92789         gl_PREREQ_GETTIMEOFDAY.
92790
92791         Module mkdir.
92792         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
92793         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
92794
92795         Module mkstemp.
92796         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
92797         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
92798         jm_AC_TYPE_UINTMAX_T.
92799         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
92800
92801         Module stat.
92802         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
92803         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
92804
92805         Module lstat.
92806         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
92807         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
92808
92809         Module timespec.
92810         * m4/timespec.m4 (gl_TIMESPEC): New macro.
92811         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
92812         * m4/st_mtim.m4: Indentation.
92813
92814         Module nanosleep.
92815         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
92816         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
92817         gl_PREREQ_NANOSLEEP.
92818
92819         Module regex.
92820         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
92821         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
92822         (gl_REGEX): New macro.
92823
92824         Module rename.
92825         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
92826         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
92827
92828         Module rmdir.
92829         * m4/rmdir.m4: New file.
92830
92831         Module utime.
92832         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
92833         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
92834         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
92835
92836         Module dirname.
92837         * m4/dirname.m4: New file.
92838
92839         Module getopt.
92840         * m4/getopt.m4: New file.
92841
92842         Module unistd-safer.
92843         * m4/unistd-safer.m4: New file.
92844
92845         Module fnmatch.
92846         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
92847         declaration.
92848         (gl_PREREQ_FNMATCH_EXTRA): New macro.
92849         (gl_FUNC_FNMATCH_POSIX): New macro.
92850         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
92851         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
92852         simply fnmatch.
92853
92854         Module exclude.
92855         * m4/exclude.m4: New file.
92856
92857         Module human.
92858         * m4/human.m4: New file.
92859
92860         Module acl.
92861         * m4/acl.m4: Nop.
92862
92863         Module backupfile.
92864         * m4/backupfile.m4: New file.
92865         * m4/d-ino.m4: Indentation.
92866
92867         Module fsusage.
92868         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
92869         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
92870         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
92871
92872         Module dirfd.
92873         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
92874         requirements.
92875
92876         Module euidaccess.
92877         * m4/euidaccess.m4: New file.
92878
92879         Module file-type.
92880         * m4/file-type.m4: New file.
92881
92882         Module fileblocks.
92883         * m4/fileblocks.m4: New file.
92884
92885         Module filemode.
92886         * m4/filemode.m4: New file.
92887
92888         Module isdir.
92889         * m4/isdir.m4: New file.
92890
92891         Module lchown.
92892         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
92893         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
92894
92895         Module makepath.
92896         * m4/makepath.m4: New file.
92897
92898         Module modechange.
92899         * m4/modechange.m4: New file.
92900
92901         Module mountlist.
92902         * m4/mountlist.m4: New file.
92903         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
92904         Indentation.
92905
92906         Module path-concat.
92907         * m4/path-concat.m4: New file.
92908
92909         Module pathmax.
92910         * m4/pathmax.m4: New file.
92911
92912         Module same.
92913         * m4/same.m4: New file.
92914
92915         Module save-cwd.
92916         * m4/save-cwd.m4: New file.
92917
92918         Module savedir.
92919         * m4/savedir.m4: New file.
92920
92921         Module xgetcwd.
92922         * m4/xgetcwd.m4: New file.
92923         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
92924
92925         Module xreadlink.
92926         * m4/xreadlink.m4: New file.
92927
92928         Module safe-read.
92929         * m4/safe-read.m4: New file.
92930
92931         Module safe-write.
92932         * m4/safe-write.m4: New file.
92933
92934         Module closeout.
92935         * m4/closeout.m4: New file.
92936
92937         Module stdio-safer.
92938         * m4/stdio-safer.m4: New file.
92939
92940         Module getpass.
92941         * m4/getpass.m4: New file.
92942
92943         Module getugroups.
92944         * m4/getugroups.m4: New file.
92945
92946         Module group-member.
92947         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
92948         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
92949
92950         Module idcache.
92951         * m4/idcache.m4: New file.
92952
92953         Module userspec.
92954         * m4/userspec.m4: New file.
92955
92956         Module gettime.
92957         * m4/clock_time.m4: New file.
92958         * m4/gettime.m4: New file.
92959
92960         Module settime.
92961         * m4/settime.m4: New file.
92962
92963         Module posixtm.
92964         * m4/posixtm.m4: New file.
92965
92966         Module gethostname.
92967         * m4/gethostname.m4: New file.
92968
92969         Module canon-host.
92970         * m4/canon-host.m4: New file.
92971
92972         Module gettext.
92973         * m4/codeset.m4: New file, from gettext-0.11.5.
92974         * m4/gettext.m4: New file, from gettext-0.11.5.
92975         * m4/glibc21.m4: New file, from gettext-0.11.5.
92976         * m4/iconv.m4: New file, from gettext-0.11.5.
92977         * m4/intdiv0.m4: New file, from gettext-0.11.5.
92978         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
92979         * m4/inttypes.m4: New file, from gettext-0.11.5.
92980         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
92981         * m4/isc-posix.m4: New file, from gettext-0.11.5.
92982         * m4/lcmessage.m4: New file, from gettext-0.11.5.
92983         * m4/lib-ld.m4: New file, from gettext-0.11.5.
92984         * m4/lib-link.m4: New file, from gettext-0.11.5.
92985         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
92986         * m4/progtest.m4: New file, from gettext-0.11.5.
92987         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
92988         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
92989         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
92990
92991         Module localcharset.
92992         * m4/localcharset.m4: New file.
92993
92994         Module hard-locale.
92995         * m4/hard-locale.m4: New file.
92996
92997         Module mbswidth.
92998         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
92999         onceonly macros.
93000         * m4/mbrtowc.m4: Add comment.
93001
93002         Module memcasecmp.
93003         * m4/memcasecmp.m4: New file.
93004
93005         Module memcoll.
93006         * m4/memcoll.m4: New file.
93007
93008         Module unicodeio.
93009         * m4/unicodeio.m4: New file.
93010
93011         Module rpmatch.
93012         * m4/rpmatch.m4: New file.
93013
93014         Module yesno.
93015         * m4/yesno.m4: New file.
93016
93017         Module exitfail.
93018         * m4/exitfail.m4: New file.
93019
93020         Module c-stack.
93021         * m4/c-stack.m4 (gl_C_STACK): New macro.
93022         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93023
93024         Module error.
93025         * m4/error.m4 (gl_ERROR): New macro.
93026         (jm_PREREQ_ERROR): Use onceonly macros.
93027
93028         Module fatal.
93029         * m4/fatal.m4: New file.
93030
93031         Module getloadavg.
93032         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93033         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93034
93035         Module getpagesize.
93036         * m4/getpagesize.m4: New file.
93037
93038         Module getusershell.
93039         * m4/getusershell.m4: New file.
93040
93041         Module physmem.
93042         * m4/physmem.m4: New file.
93043
93044         Module posixver.
93045         * m4/posixver.m4: New file.
93046
93047         Module quotearg.
93048         * m4/quotearg.m4: New file.
93049
93050         Module quote.
93051         * m4/quote.m4: New file.
93052
93053         Module readutmp.
93054         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93055
93056         Module sig2str.
93057         * m4/sig2str.m4: New file.
93058
93059         Other.
93060         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93061         ulonglong.m4.
93062         * m4/intmax_t.m4: New file.
93063         * m4/d-type.m4: Indentation.
93064         * m4/jm-macros.m4: Update.
93065         * m4/prereq.m4 (jm_PREREQ): Update.
93066         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93067         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93068         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93069         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93070         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93071         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93072         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93073         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93074         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93075         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93076         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93077         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93078         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93079         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93080         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93081         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93082         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93083         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93084         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93085
93086 2002-12-24  Bruno Haible  <bruno@clisp.org>
93087
93088         * MODULES.txt: Update according to m4/ changes.
93089
93090         Module gettext.
93091         * config.rpath: New file, from gettext-0.11.5.
93092
93093         * modules/*: New module descriptions.
93094         * gnulib-tool: New file.
93095         * MODULES.html.sh: New file.
93096
93097 2002-12-21  Karl Berry  <karl@gnu.org>
93098
93099         * doc/fdl.texi: update to version 1.2.
93100
93101 2002-12-19  Karl Berry  <karl@gnu.org>
93102
93103         * config/config.guess: update from prep.
93104
93105 2002-12-18  Bruno Haible  <bruno@clisp.org>
93106
93107         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93108         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93109
93110 2002-12-17  Bruno Haible  <bruno@clisp.org>
93111
93112         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93113         stdlib.h, string.h.
93114
93115 2002-12-17  Bruno Haible  <bruno@clisp.org>
93116
93117         * lib/canon-host.c (strdup): Remove unused declaration.
93118
93119         * lib/fsusage.c: Include full_read.h.
93120         (get_fs_usage): Use full_read instead of safe_read.
93121
93122         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93123
93124 2002-12-12  Karl Berry  <karl@gnu.org>
93125
93126         * config/config.guess: update from prep.
93127
93128 2002-12-11  Bruno Haible  <bruno@clisp.org>
93129
93130         * m4/setenv.m4: New file, from gettext-0.11.5.
93131
93132 2002-12-11  Bruno Haible  <bruno@clisp.org>
93133
93134         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93135         not unsetenv().
93136         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93137         modifications:
93138
93139         2002-12-11  Bruno Haible  <bruno@clisp.org>
93140
93141                 * setenv.c (alloca): Fall back to malloc.
93142                 (freea): New macro.
93143                 (setenv): Use freea() to free memory allocated with alloca().
93144
93145         2002-11-13  Bruno Haible  <bruno@clisp.org>
93146
93147                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93148                 function declarations.
93149                 * unsetenv.c (unsetenv): Likewise.
93150
93151         2002-03-04  Bruno Haible  <bruno@clisp.org>
93152
93153                 Portability to AIX 4.3.3.
93154                 * unsetenv.c: New file, extracted from setenv.c.
93155                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93156
93157         2001-12-20  Bruno Haible  <bruno@clisp.org>
93158
93159                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93160                 use malloc instead. For SunOS 4.
93161
93162         2001-12-11  Bruno Haible  <bruno@clisp.org>
93163
93164                 * setenv.c: Declare alloca.
93165                 (compar_fn_t): New typedef.
93166                 (KNOWN_VALUE, STORE_VALUE): Use it.
93167
93168         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93169         setenv.h.
93170
93171 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93172
93173         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93174         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93175         Choose values that are less likely to collide with system fnmatch
93176         options.
93177         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93178         defined (e.g., a pure POSIX system).
93179         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93180         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93181
93182 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93183
93184         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93185         a pain in practice to deal with generated m4 files.  This change
93186         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93187
93188         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93189         and jm-glibc-io.m4, as they are no longer a special case.
93190         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93191         kludge and the auto-generation stuff.  Check only whether the
93192         functions are declared, not whether they exist, since older hosts
93193         that don't declare the functions can't use the optimization anyway.
93194
93195 2002-12-06  Jim Meyering  <jim@meyering.net>
93196
93197         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93198
93199         Merge in changes from libc's misc/error.c, in preparation
93200         for the merge of gnulib's changes back into libc.
93201
93202         * lib/error.c (_): Define only if not already defined.
93203         Move definition to follow all #include directives.
93204         Include unlocked-io.h only if !_LIBC.
93205         [_LIBC]: Include <libio/libioP.h>.
93206         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93207         (fflush): Tweak definition to use INTUSE.
93208         (putc): Define.
93209
93210 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93211
93212         * lib/alloca.c [defined emacs]: Include "lisp.h".
93213         (xalloc_die) [defined emacs]: New macro.
93214         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93215         [! defined emacs]: Include <xalloc.h>.
93216         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93217         (pointer): Typedef to POINTER_TYPE *.
93218         (malloc): Remove decl; we now always use xmalloc.
93219         (alloca): Use old-style definition, since Emacs needs this.
93220         Check for arithmetic overflow when computing combined size.
93221
93222 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93223
93224         Do not generate unlocked-io.h automatically, since it's easier to
93225         maintain it by hand.
93226
93227         * lib/unlocked-io.h: New file, from GNU diffutils,
93228         but with proper copyright notice and attribution.
93229         * lib/gen-uio: Remove.
93230         * lib/Makefile.am: Add copyright notice.
93231         (libfetish_a_SOURCES): Add unlocked-io.h.
93232         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93233         (DISTCLEANFILES, io_functions): Remove macros.
93234         (EXTRA_DIST): Remove gen_uio.
93235         (unlocked-io.h): Remove rule.
93236
93237 2002-12-04  Jim Meyering  <jim@meyering.net>
93238
93239         Reflect the fact that stat.c and lstat.c are no longer generated.
93240         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93241         (DISTCLEANFILES): Likewise.
93242         (EXTRA_DIST): Likewise.
93243         (all_local): Don't depend on stat.c or lstat.c.
93244         (stat.c, lstat.c): Remove rules.
93245         (EXTRA_DIST): Remove xstat.in.
93246
93247         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93248         * lib/stat.c: New file.  Contents mostly from xstat.in.
93249         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93250         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93251
93252         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93253         too.
93254         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93255
93256 2002-12-03  Jim Meyering  <jim@meyering.net>
93257
93258         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93259         but not semantics, to minimize the differences between these two files.
93260         (safe_read): Change comment to mention SAFE_READ_ERROR.
93261
93262         * lib/safe-read.c (IS_EINTR): Define.
93263         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93264
93265 2002-12-02  Jim Meyering  <jim@meyering.net>
93266
93267         * lib/safe-read.c (EINTR): Define.
93268         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93269         (INT_MAX): Provide fallback.
93270         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93271
93272         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93273
93274 2002-12-02  Bruno Haible  <bruno@clisp.org>
93275
93276         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93277         Define, taken from safe-read.c.
93278         (INT_MAX): Provide fallback.
93279         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93280         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93281
93282         * lib/safe-read.c (EINTR): Remove definition.
93283         (safe_read): Don't use EINTR if it is absent.
93284
93285 2002-12-01  Jim Meyering  <jim@meyering.net>
93286
93287         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93288         zero.
93289         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93290
93291 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93292
93293         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93294         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93295         with `if (! (value < limit)) abort ();', for readability.
93296
93297 2002-11-26  Karl Berry  <karl@gnu.org>
93298
93299         * lib/strdup.c: copy from libc again, with jim's ok.
93300         * lib/.cppi-disable: re-add strdup.c
93301
93302 2002-11-25  Karl Berry  <karl@gnu.org>
93303
93304         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93305         instead of "strtol.c".
93306
93307 2002-11-25  Karl Berry  <karl@gnu.org>
93308
93309         * config/install-sh: update from automake for variable quoting, $0 in
93310         error msgs, etc.
93311
93312         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93313         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93314         entry.
93315
93316 2002-11-25  Jim Meyering  <jim@meyering.net>
93317
93318         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93319
93320 2002-11-24  Karl Berry  <karl@gnu.org>
93321
93322         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93323         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93324
93325 2002-11-24  Jim Meyering  <jim@meyering.net>
93326
93327         Update from coreutils:
93328
93329         * lib/mktime.c: Merge in changes from libc.
93330
93331         Avoid a link-time failure on some Linux systems.
93332         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93333         (otherwise).
93334         (__mon_yday): Declare with the STATIC attribute.
93335         (__mktime_internal): Likewise.
93336         Based on a report from Greg Schafer.
93337
93338 2002-11-23  Jim Meyering  <jim@meyering.net>
93339
93340         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93341         Use `unsigned', not `int', as type of index.
93342
93343         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93344
93345         * lib/fsusage.c: Remove unneeded parentheses around operands of
93346         `defined'.
93347
93348 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93349
93350         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93351         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93352         so that we can be included first.
93353         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93354         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93355         No need to include stddef.h or sys/types.h any more.
93356         Surround local include files with "", not "<>".
93357         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93358         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93359         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93360         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93361         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93362         (ISPRINT): Remove; no longer needed now that we assume C89.
93363
93364         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93365         Preserve errno.
93366
93367         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93368         quotearg_char): Use SIZE_MAX rather than
93369         (size_t) -1 when we are talking about "infinity".
93370
93371         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93372
93373 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93374
93375         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93376         hint that one should use `if (! x) abort ();' rather than `assert
93377         (x);', and anyway it's one less thing to worry about configuring.
93378         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93379         hash_rehash, hash_insert): Use abort rather than assert.
93380
93381 2002-11-22  Bruno Haible  <bruno@clisp.org>
93382
93383         * lib/safe-read.h: Assume C89. Add comments.
93384         (safe_read): Change return type to size_t.
93385         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93386         byte counts > SSIZE_MAX correctly.
93387         * lib/safe-write.h: New file.
93388         * lib/safe-write.c: New file.
93389         * lib/full-read.h: New file.
93390         * lib/full-read.c: New file.
93391         * lib/full-write.h: Assume C89. Add comments.
93392         * lib/full-write.c: Include safe-write.h.
93393         (full_write): Rewritten to use safe_write.
93394         Suggested by Jim Meyering and Paul Eggert.
93395
93396 2002-11-21  Jim Meyering  <jim@meyering.net>
93397
93398         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93399
93400         Merge in changes from the coreutils.
93401
93402         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93403         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93404         <stdint.h>.
93405         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93406         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93407         int.  Work more efficiently if X is the same width as uintmax_t.
93408         Do not compare X to -1, to avoid bogus compiler warning.
93409         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93410         Don't assume that f_frsize and f_bsize are the same type.
93411
93412         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93413         warning on FreeBSD.
93414
93415         * lib/makepath.c (make_path): Restore umask *before* creating the final
93416         component.
93417         (make_path): Minor reformatting.
93418
93419         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93420         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93421         HAVE_MALLOC/HAVE_REALLOC.
93422
93423         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93424         dummy ones.  At least on GNU/Linux systems, `auto' means something
93425         else.
93426         From Michael Stone.
93427
93428 2002-11-21  Bruno Haible  <bruno@clisp.org>
93429
93430         Remove case insensitive option matching.
93431         * lib/argmatch.h (argcasematch): Remove declaration.
93432         (ARGCASEMATCH): Remove macro.
93433         (__xargmatch_internal): Remove case_sensitive argument.
93434         (XARGMATCH): Update.
93435         (XARGCASEMATCH): Remove macro.
93436         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93437         case_sensitive argument.
93438         (argcasematch): Remove function.
93439         (__xargmatch_internal): Remove case_sensitive argument.
93440         (main): Use XARGMATCH instead of XARGCASEMATCH.
93441
93442         * lib/xmalloc.c: Change compile-time error message. Add comment about
93443         required autoconf version.
93444
93445 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93446
93447         Merge argmatch cleanups from Bison.  Assume C89.
93448
93449         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93450         Include stdlib.h, for EXIT_FAILURE.
93451         Always include <string.h>, since we assume C89.
93452         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93453         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93454         Include <stddef.h> instead, since it's all we need for size_t.
93455         (PARAMS): Remove.  All uses removed.
93456         (ARRAY_CARDINALITY): Do not bother to #undef.
93457         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93458         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93459         Remove unnecessary parentheses.
93460         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93461         Insert necessary parentheses.
93462         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93463         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93464
93465 2002-11-19  Bruno Haible  <bruno@clisp.org>
93466
93467         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93468         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93469
93470         * lib/mbswidth.h (PARAMS): Remove macro.
93471         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93472         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93473
93474         * lib/gcd.h (PARAMS): Remove macro.
93475         (gcd): Use ANSI C function declarations.
93476         * lib/gcd.c (gcd): Likewise.
93477
93478 2002-11-15  Bruno Haible  <bruno@clisp.org>
93479
93480         * lib/strcspn.c: Include <stddef.h>.
93481         (strcspn): Use ANSI C function declaration. Change return type to
93482         size_t. Use NULL.
93483         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93484         (strpbrk): Use NULL.
93485         * lib/strpbrk.h (PARAMS): Remove macro.
93486         (strpbrk): Use ANSI C function declaration.
93487         * lib/strstr.c: Don't include <sys/types.h>.
93488         * lib/strstr.h (PARAMS): Remove macro.
93489         (strstr): Use ANSI C function declarations.
93490
93491 2002-11-14  Karl Berry  <karl@gnu.org>
93492
93493         * config/mkinstalldirs: `do' on separate line, instead of
93494         `for var; do'.
93495
93496 2002-11-06  Bruno Haible  <bruno@clisp.org>
93497
93498         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93499         * lib/gcd.c (gcd): Likewise.
93500
93501 2002-11-05  Bruno Haible  <bruno@clisp.org>
93502
93503         * lib/gcd.h: New file, from gettext-0.11.5.
93504         * lib/gcd.c: New file, from gettext-0.11.5.
93505
93506 2002-11-05  Bruno Haible  <bruno@clisp.org>
93507
93508         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93509         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93510         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93511         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93512
93513         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93514         <libintl.h>.
93515         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93516         <libintl.h>.
93517
93518         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93519         * lib/human.c: Include gettext.h instead of <libintl.h>.
93520         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93521         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93522         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93523         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93524         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93525         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
93526         (textdomain): Remove definition.
93527         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
93528
93529         * lib/long-options.c: Remove include of <libintl.h> and definition of
93530         _.
93531         * lib/same.c: Remove include of <libintl.h> and definition of _.
93532
93533 2002-11-04  Owen Taylor  <otaylor@redhat.com>
93534
93535         * lib/config.charset: A few additions for Solaris.
93536
93537 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93538
93539         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
93540         * lib/localcharset.c (locale_charset): Declare as extern "C".
93541
93542 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93543
93544         * lib/config.charset: msdos in uk_UA uses CP1125.
93545
93546 2002-11-04  Bruno Haible  <bruno@clisp.org>
93547
93548         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
93549         * lib/strcase.h: New file, from GNU gettext-0.11.5.
93550         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
93551         * lib/strstr.h: New file, from GNU gettext-0.11.5.
93552         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
93553
93554 2002-11-04  Bruno Haible  <bruno@clisp.org>
93555
93556         * lib/localcharset.c (locale_charset): Don't return an empty string.
93557
93558 2002-11-04  Bruno Haible  <bruno@clisp.org>
93559
93560         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
93561         aliases.
93562
93563 2002-11-04  Bruno Haible  <bruno@clisp.org>
93564
93565         * lib/config.charset: Update for newest glibc. Add canonical names
93566         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
93567
93568 2002-11-04  Bruno Haible  <bruno@clisp.org>
93569
93570         * lib/config.charset: Add support for NetBSD.
93571
93572 2002-11-04  Bruno Haible  <bruno@clisp.org>
93573
93574         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
93575
93576 2002-11-01  Bruno Haible  <bruno@clisp.org>
93577
93578         * configure.in: Add AC_CONFIG_AUX_DIR call.
93579         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
93580         test/Makefile.
93581         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
93582
93583 2002-09-28  Karl Berry  <karl@gnu.org>
93584
93585         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
93586         installed automake until the next release, since changes have been
93587         made.
93588
93589 2002-09-25  Karl Berry  <karl@gnu.org>
93590
93591         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
93592         * lib/getopt*: copy from libc/posix.
93593         * lib/gettext.h: copy from gettext.
93594         * lib/.cppi-disable: add strdup.c, gettext.h.
93595
93596 2002-09-25  Karl Berry  <karl@gnu.org>
93597
93598         * config/srclist.txt: enable gettext.h check.
93599         * config/config.{guess,sub}: update from prep.
93600         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
93601                 from automake 1.6.3.
93602         See srclist*.
93603
93604 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
93605
93606         * regex.c (PATFETCH): Remove the translating fetch.
93607         (PATFETCH_RAW): Rename to PATFETCH.
93608         (set_image_of_range): New fun.
93609         (SET_RANGE_TABLE_WORK_AREA): Use it.
93610         (regex_compile): Don't translate the pattern chars so eagerly.
93611         Only do it when inserting an `exactn' bytecode or when handling
93612         a char-range.
93613         (mutually_exclusive_p): Avoid empty statement.
93614
93615 2002-07-06  Jim Meyering  <meyering@lucent.com>
93616
93617         * m4/README: Don't mention Makefile.am.in.
93618         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
93619
93620 2002-07-01  Jim Meyering  <meyering@lucent.com>
93621
93622         * lib/c-stack.c: Include sys/time.h.
93623         From Volker Borchert.
93624
93625 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93626
93627         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
93628
93629 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93630
93631         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
93632         New macro.  Use it uniformly instead of
93633         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
93634         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
93635         reported by Vin Shelton.
93636
93637 2002-06-22  Paul Eggert  <eggert@twinsun.com>
93638
93639         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
93640         Do not assume SA_SIGINFO behavior.
93641         Bug reported by Jim Meyering on NetBSD 1.5.2.
93642
93643 2002-06-22  Jim Meyering  <meyering@lucent.com>
93644
93645         * m4/c-stack.m4: New file, from diffutils-2.8.2.
93646         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
93647
93648         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
93649         now that configure.ac uses AC_GNU_SOURCE.
93650         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
93651         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
93652
93653         Update to latest tools.  Suggestions from Paul Eggert.
93654         * m4/stdbool.m4: New file, from diffutils-2.8.2.
93655         * m4/gnu-source.m4: Update from diffutils-2.8.2.
93656         * m4/fnmatch.m4: Likewise.
93657         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
93658         to AC_HEADER_STDBOOL
93659
93660 2002-06-22  Jim Meyering  <meyering@lucent.com>
93661
93662         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
93663         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
93664
93665 2002-06-22  Jim Meyering  <meyering@lucent.com>
93666
93667         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
93668
93669         * lib/exitfail.c, exitfail.h: Likewise.
93670         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
93671
93672         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
93673         of fnmatch.h.
93674         (EXTRA_DIST): Add fnmatch_loop.c.
93675         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
93676
93677         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
93678         * lib/fnmatch.c: Update from diffutils-2.8.2.
93679         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
93680         * lib/fnmatch.h: Remove file.
93681
93682 2002-06-21  Jim Meyering  <meyering@lucent.com>
93683
93684         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
93685         * m4/mbrtowc.m4: Likewise.
93686
93687         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
93688         * m4/mbswidth.m4: Reflect name change:
93689         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
93690         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93691
93692         * m4/lib-link.m4: Update from gettext-0.11.2.
93693         * m4/gettext.m4: Likewise.
93694
93695         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
93696         From Alfred M. Szmidt.
93697
93698 2002-06-18  Paul Eggert  <eggert@twinsun.com>
93699
93700         * lib/file-type.h: Report an error if neither S_ISREG nor
93701         S_IFREG is defined, instead of using a test specific to glibc
93702         2.2.  This should be safe, since POSIX requires S_ISREG and
93703         Unix Version 7 had S_IFREG.  We don't need to check for
93704         <sys/types.h> since we don't use any symbols that it defines.
93705
93706 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
93707
93708         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
93709         $@-t, so that each temporary file name is unique and valid in the first
93710         8 characters, for operation under DOS.
93711
93712 2002-06-15  Paul Eggert  <eggert@twinsun.com>
93713
93714         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
93715
93716 2002-06-15  Jim Meyering  <meyering@lucent.com>
93717
93718         Work even with DJGPP 2.03, which lacks support for symlinks.
93719         From Richard Dawe.
93720         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
93721         is defined.
93722         * lib/lchown.c (S_ISLNK): Likewise.
93723
93724 2002-06-15  Jim Meyering  <meyering@lucent.com>
93725
93726         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
93727         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
93728         have been included before this file.
93729
93730 2002-06-14  Jim Meyering  <meyering@lucent.com>
93731
93732         * lib/file-type.h: Use the version from diffutils-2.8.2.
93733         * lib/file-type.c: Likewise.
93734
93735 2002-06-07  Jim Meyering  <meyering@lucent.com>
93736
93737         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
93738         They're needed at least for NetBSD 1.5.2.
93739         ($statxfs_includes): Include those same headers.
93740         ($statxfs_includes): Include sys/vfs.h if available.
93741         ($statxfs_includes): Likewise for sys/statvfs.h.
93742         Check for the following members in both structs statfs and statvfs:
93743         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
93744
93745 2002-06-01  Jim Meyering  <meyering@lucent.com>
93746
93747         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
93748         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
93749
93750 2002-05-28  Jim Meyering  <meyering@lucent.com>
93751
93752         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
93753         Reported by Volker Borchert.
93754
93755 2002-05-27  Jim Meyering  <meyering@lucent.com>
93756
93757         Fix a problem seen only on nonconforming systems whereby ls.c's
93758         use of localtime, and then of gettimeofday would cause trouble:
93759         the localtime call used to initialize rpl_gettimeofday's save
93760         mechanism would clobber ls's current local time information so
93761         that in any long listing the first file would always be listed
93762         with date 1970-01-01.  Analysis by Volker Borchert.
93763
93764         * lib/gettimeofday.c (localtime): Undefine.
93765         (rpl_localtime): New function.
93766
93767 2002-05-27  Jim Meyering  <meyering@lucent.com>
93768
93769         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
93770         localtime.
93771
93772         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
93773         use the replacement function; it wouldn't resolve at link time.
93774         Reported by Volker Borchert.
93775
93776 2002-05-22  Jim Meyering  <meyering@lucent.com>
93777
93778         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
93779         file-type.h.
93780         * lib/file-type.h: New file.
93781         * lib/file-type.c (file_type): New file/function.  Extracted from
93782         diffutils.
93783
93784 2002-04-30  Jim Meyering  <meyering@lucent.com>
93785
93786         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
93787
93788 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93789
93790         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
93791
93792 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93793
93794         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
93795         Do not check for alloca.h (no longer used) or stdbool.h (was never
93796         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
93797
93798 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93799
93800         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
93801
93802 2002-04-29  Jim Meyering  <meyering@lucent.com>
93803
93804         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
93805         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
93806         Use AC_FUNC_STRNLEN here instead.
93807
93808         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
93809         With autoconf-2.53a, it's part of AC_PROG_CC.
93810
93811 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93812
93813         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
93814         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
93815
93816 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93817
93818         * lib/sig2str.h, lib/sig2str.c: New files.
93819         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
93820
93821 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93822
93823         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
93824         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
93825         of 127, since 64 is the largest conceivable number for ancient
93826         nonstandard hosts.
93827         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
93828
93829 2002-04-28  Jim Meyering  <meyering@lucent.com>
93830
93831         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
93832
93833 2002-04-24  Jim Meyering  <meyering@lucent.com>
93834
93835         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
93836         (jm_PREREQ): Use it.
93837
93838         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
93839         mach/mach.h fcntl.h.
93840         Check for this function: setlocale.
93841
93842 2002-04-24  Jim Meyering  <meyering@lucent.com>
93843
93844         * lib/gettext.h: New file, from Gettext.
93845         * lib/Makefile.am (INCLUDES): Remove -I../intl.
93846         (libfetish_a_SOURCES): Add gettext.h.
93847
93848 2002-04-16  Jim Meyering  <meyering@lucent.com>
93849
93850         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
93851         ut_pid, ut_id, ut_exit.
93852
93853 2002-04-16  Jim Meyering  <meyering@lucent.com>
93854
93855         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
93856         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
93857         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
93858
93859 2002-04-12  Jim Meyering  <meyering@lucent.com>
93860
93861         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
93862         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
93863         existence of the getmntinfo function.  Needed for Darwin 5.3.
93864
93865         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
93866         This is necessary at least on Darwin 5.3.
93867
93868         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
93869         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
93870         strnlen.o in the library, and that makes some versions of ranlib
93871         object.
93872
93873 2002-04-12  Jim Meyering  <meyering@lucent.com>
93874
93875         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
93876
93877 2002-04-09  Jim Meyering  <meyering@lucent.com>
93878
93879         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
93880         to be more precise.  Rather than saying we're checking whether the
93881         function `works', say what we're testing.
93882         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
93883         Reported by Bruno Haible.
93884
93885 2002-03-10  Jim Meyering  <meyering@lucent.com>
93886
93887         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
93888         Suggestion from Santiago Vila.
93889
93890 2002-03-08  Jim Meyering  <meyering@lucent.com>
93891
93892         * lib/rename.c: Mention that this wrapper is needed also on
93893         mips-dec-ultrix4.4 systems.
93894
93895 2002-03-02  Jim Meyering  <meyering@lucent.com>
93896
93897         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
93898         not HAVE_CLOCK_SETTIME.
93899
93900 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93901
93902         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
93903         Check for clock_settime.
93904
93905 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93906
93907         * lib/nanosleep.h: Rename to....
93908         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
93909
93910         * lib/gettime.c: New file.
93911         * lib/settime.c: New file.
93912         * lib/stime.c: Remove.
93913
93914         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
93915         timespec.h.  Remove nanosleep.h.
93916
93917 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93918
93919         * m4/acl.m4: New file.
93920         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
93921         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
93922
93923 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93924
93925         * lib/acl.c, lib/acl.h: New files.
93926         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
93927
93928 2002-02-24  Jim Meyering  <meyering@lucent.com>
93929
93930         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
93931         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
93932         cause trouble.  Reported by Nelson Beebe.
93933
93934 2002-02-23  Paul Eggert  <eggert@twinsun.com>
93935
93936         * lib/path-concat.c (xpath_concat): Reorder code to pacify
93937         compilers that don't know that xalloc_die never returns.
93938
93939 2002-02-20  Jim Meyering  <meyering@lucent.com>
93940
93941         * lib/getdate.c: Regenerate using bison-1.33.
93942
93943 2002-02-17  Jim Meyering  <meyering@lucent.com>
93944
93945         * config/config.guess (main): Don't use `head -1'; it's no longer
93946         portable. Use `sed 1q' instead.
93947
93948 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
93949
93950         * m4/codeset.m4: Upgrade to gettext-0.11.
93951         * m4/gettext.m4: Upgrade to gettext-0.11.
93952         * m4/glibc21.m4: Upgrade to gettext-0.11.
93953         * m4/iconv.m4: Upgrade to gettext-0.11.
93954         * m4/isc-posix.m4: Upgrade to gettext-0.11.
93955         * m4/lcmessage.m4: Upgrade to gettext-0.11.
93956         * m4/lib-ld.m4: New file, from gettext-0.11.
93957         * m4/lib-link.m4: New file, from gettext-0.11.
93958         * m4/lib-prefix.m4: New file, from gettext-0.11.
93959         * m4/progtest.m4: Upgrade to gettext-0.11.
93960
93961 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93962
93963         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
93964         (jm_PREREQ): Use it.
93965
93966 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93967
93968         * lib/posixver.c, lib/posixver.h: New files.
93969         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93970
93971 2002-02-02  Paul Eggert  <eggert@twinsun.com>
93972             Bruno Haible  <bruno@clisp.org>
93973
93974         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
93975         (fwrite_success_callback): New declaration.
93976         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
93977         print_unicode_char. Call failure callback instead of error.
93978         (fwrite_success_callback): New function.
93979         (exit_failure_callback): New function.
93980         (fallback_failure_callback): New function.
93981         (print_unicode_char): Call unicode_to_mb.
93982
93983 2002-01-26  Jim Meyering  <meyering@lucent.com>
93984
93985         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
93986         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
93987
93988 2002-01-26  Jim Meyering  <meyering@lucent.com>
93989
93990         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
93991
93992 2002-01-22  Paul Eggert  <eggert@twinsun.com>
93993
93994         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
93995
93996 2002-01-22  Jim Meyering  <meyering@lucent.com>
93997
93998         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
93999         Otherwise, some versions of automake would omit the rule that makes
94000         Makefile from Makefile.in.
94001
94002 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94003
94004         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94005         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94006         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94007         (memcoll): Set errno to zero if there is no error.
94008
94009         * lib/quotearg.c (quotearg_buffer_restyled):
94010         Fix bug with quoting buffers containing NUL when backslashing escapes.
94011         This bug was exposed by the other changes in this patch.
94012         (quotearg_n_options): New arg ARGSIZE.
94013         All callers changed.
94014         (quoting_options_from_style): New function.
94015         (quotearg_n_style): Use it.
94016         (quotearg_n_style_mem): New function.
94017
94018         * lib/quotearg.h (quotearg_n_style_mem): New function.
94019
94020 2002-01-19  Jim Meyering  <meyering@lucent.com>
94021
94022         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94023         Remove useless quotes: DF_PROG="df".
94024         * m4/strnlen.m4: New file.
94025
94026 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94027
94028         * lib/backupfile.c (ISDIGIT): Comment fix.
94029         * lib/getdate.y (ISDIGIT): Likewise.
94030         * lib/posixtm.c (ISDIGIT, year): Likewise.
94031         * lib/strverscmp.c (ISDIGIT): Likewise.
94032         * lib/userspec.c (ISDIGIT): Likewise.
94033
94034 2002-01-16  Jim Meyering  <meyering@lucent.com>
94035
94036         * lib/getdate.y: Add three semicolons, each just before a closing
94037         brace. Bison (as of version 1.31) no longer papers over that mistake.
94038
94039 2002-01-05  Jim Meyering  <meyering@lucent.com>
94040
94041         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94042
94043 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94044
94045         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94046         not silently exit merely because the output buffer happens to
94047         have nothing pending.
94048
94049 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94050
94051         See the big note in ../ChangeLog.
94052         * lib/human.c (suffixes): Prefer K to k for 1024.
94053         (generate_suffix_backwards): New function.
94054         (human_readable_inexact): Use it.
94055         * lib/xstrtol.c (__xstrtol): If there is no number but there
94056         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94057         Accept 'K' as well as 'k'.
94058
94059 2001-12-15  Jim Meyering  <meyering@lucent.com>
94060
94061         * lib/regex.h (__restrict_arr): Update from libc.
94062
94063         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94064         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94065         (STREQ): Define.
94066
94067 2001-12-14  Jim Meyering  <meyering@lucent.com>
94068
94069         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94070         Suggestion from Bruno Haible.
94071
94072 2001-12-10  Jim Meyering  <meyering@lucent.com>
94073
94074         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94075         xrealloc, Instead, include "xalloc.h".
94076         (initbuffer): Don't cast xmalloc return value to char*.
94077         (readline): Reword comment.
94078         Don't cast xrealloc return value to char*
94079         Return NULL, not 0.
94080
94081 2001-12-09  Jim Meyering  <meyering@lucent.com>
94082
94083         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94084         about `signed and unsigned type in conditional expression'.
94085         * lib/posixtm.c (posix_time_parse): Likewise.
94086
94087         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94088
94089         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94090         to avoid a pedantic warning.
94091
94092         * lib/getstr.c: Don't include assert.h.
94093         (getstr): Remove warning-evoking assertions.
94094         Return -1 if offset parameter is out of bounds.
94095         Change the type of a local from int to size_t.
94096
94097         * lib/strftime.c (my_strftime_localtime_r): Include this function
94098         definition in the `#if ! HAVE_TM_GMTOFF' block.
94099
94100         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94101         Include xalloc.h instead.
94102
94103 2001-12-02  Jim Meyering  <meyering@lucent.com>
94104
94105         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94106         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94107         included.
94108
94109         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94110         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94111
94112 2001-11-30  Akim Demaille  <akim@epita.fr>
94113
94114         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94115         before being defined.
94116
94117 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94118
94119         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94120         First arg is int, not unsigned.
94121         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94122         (SIZE_MAX, UINT_MAX): New macros.
94123         (quotearg_n_options): Abort if N is negative.
94124         Avoid overflow check on hosts where size_t is 64 bits and int
94125         is 32 bits, as overflow is impossible there.
94126         Fix off-by-one typo that caused unnecessary reallocation.
94127
94128 2001-11-27  Jim Meyering  <meyering@lucent.com>
94129
94130         * lib/tempname.c: Merge with version from libc.
94131         * lib/regex.c: Likewise.
94132
94133         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94134         systems for which STDC_HEADERS is 0, it was not included, resulting in
94135         a warning about an integer-to-pointer conversion problem with getenv.
94136         Reported by Volker Borchert.
94137
94138 2001-11-26  Jim Meyering  <meyering@lucent.com>
94139
94140         * lib/gtod.h: Remove file.
94141         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94142         * lib/gettimeofday.c: Don't include gtod.h.
94143         (GTOD_init): Remove function.
94144         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94145         Suggestion from Volker Borchert.
94146
94147 2001-11-23  Jim Meyering  <meyering@lucent.com>
94148
94149         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94150         it.
94151         * lib/hash.c (struct hash_table): Define it here instead.
94152
94153 2001-11-22  Jim Meyering  <meyering@lucent.com>
94154
94155         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94156
94157 2001-11-20  Jim Meyering  <meyering@lucent.com>
94158
94159         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94160         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94161
94162 2001-11-19  Jim Meyering  <meyering@lucent.com>
94163
94164         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94165         directory.  Use "conftestXXXXXX" as the template.
94166         Suggestion from Paul Eggert.
94167
94168         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94169         immediately, so the test doesn't mistakenly hit the max-open-files
94170         limit.
94171
94172 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94173
94174         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94175         (TEMPORARIES): New macro.
94176         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94177         removes an artificial limitation (e.g. HP-UX 10.20, where
94178         TMP_MAX is 17576).
94179
94180 2001-11-18  Jim Meyering  <meyering@lucent.com>
94181
94182         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94183
94184 2001-11-18  Jim Meyering  <meyering@lucent.com>
94185
94186         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94187         on SunOS 4.
94188
94189         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94190         files will be created before anything else.
94191
94192 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94193
94194         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94195         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94196
94197 2001-11-17  Jim Meyering  <meyering@lucent.com>
94198
94199         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94200         Prompted by a report from Bob Proulx.
94201
94202         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94203         Instead, require UTILS_FUNC_MKSTEMP.
94204
94205 2001-11-17  Jim Meyering  <meyering@lucent.com>
94206
94207         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94208         Now, that's done as part of AC_FUNC_STRTOD.
94209
94210 2001-11-17  Jim Meyering  <meyering@lucent.com>
94211
94212         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94213         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94214         rather than group writable.  Patch by Juan F. Codagnone.
94215
94216         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94217         xrealloc, Instead, include "xalloc.h".
94218
94219         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94220         Remove explicit declarations of xmalloc, xrealloc,
94221         and xstrdup.  Instead, include "xalloc.h".
94222
94223         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94224         unlocked-io.h.
94225         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94226         Likewise.
94227         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94228
94229         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94230         Reported by Padraig Brady.
94231
94232         * lib/mkstemp.c: #undef mkstemp.
94233         Include config.h.
94234         (rpl_mkstemp): Rename from mkstemp.
94235         Protoize.
94236
94237 2001-11-16  Jim Meyering  <meyering@lucent.com>
94238
94239         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94240         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94241         determine the amount of total physical memory, use pstat_getstatic.
94242         HPUX-11 doesn't define _SC_PHYS_PAGES.
94243         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94244         If sysconf couldn't be used to determine the amount of available
94245         physical memory, use both pstat_getstatic and pstat_getdynamic.
94246         Based on a patch from Bob Proulx.
94247
94248 2001-11-10  Jim Meyering  <meyering@lucent.com>
94249
94250         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94251         (jm_PREREQ): Use it.
94252
94253 2001-11-09  Jim Meyering  <meyering@lucent.com>
94254
94255         * m4/jm-macros.m4: Require autoconf-2.52f.
94256         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94257         Use these AC_-prefixed names, not the AM_-prefixed ones.
94258
94259         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94260
94261 2001-11-05  Jim Meyering  <meyering@lucent.com>
94262
94263         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94264
94265 2001-11-04  Jim Meyering  <meyering@lucent.com>
94266
94267         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94268         $DEFS.
94269
94270 2001-11-03  Jim Meyering  <meyering@lucent.com>
94271
94272         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94273         of AC_DEFUN.
94274
94275         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94276         know the name of the variable in the macro definition.
94277
94278 2001-11-03  Jim Meyering  <meyering@lucent.com>
94279
94280         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94281         in argmatch_to_argument call.
94282
94283         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94284         argument.
94285
94286         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94287         e.g., a fault due to an attempt to free a NULL pointer.
94288
94289 2001-11-01  Jim Meyering  <meyering@lucent.com>
94290
94291         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94292         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94293
94294 2001-11-01  Jim Meyering  <meyering@lucent.com>
94295
94296         * lib/dirfd.c, lib/dirfd.h: New files.
94297         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94298
94299         * lib/hash.c (hash_print) [TESTING]: Clean up.
94300
94301 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94302
94303         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94304         to avoid a warning if -Wall.
94305
94306 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94307
94308         * README: New file
94309         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94310         (per RMS's instructions, this is now the canonical source)
94311         * lgpl/, gpl/: New directories.
94312
94313 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94314
94315         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94316
94317 2001-10-21  Jim Meyering  <meyering@lucent.com>
94318
94319         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94320         this code would end up calling gettext even in packages built
94321         with --disable-nls.
94322         * lib/getopt.c (_): Likewise.
94323         * lib/regex.c (_): Likewise.
94324
94325 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94326
94327         * m4/error.m4 (jm_PREREQ_ERROR):
94328         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94329         AC_FUNC_STRERROR_R does that.
94330         Check for strerror declaration.
94331
94332         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94333         are supposed to have them these days.
94334         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94335         Merge changes from latest Autoconf CVS.
94336         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94337         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94338         POSIX decided to standardize on the int flavor of strerror_r.
94339
94340 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94341
94342         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94343         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94344         Use strerror_r that is only a macro, even if it is not a function.
94345         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94346         (private_strerror): Use prototypes, not old-style function definition.
94347         (print_errno_message): New function.
94348         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94349         char*-flavored one.
94350         (error_tail, error, error_at_line): Use it.
94351
94352 2001-10-11  Jim Meyering  <meyering@lucent.com>
94353
94354         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94355         and quote_n (1, ... to avoid clobbering a buffer.
94356
94357 2001-10-05  Jim Meyering  <meyering@lucent.com>
94358
94359         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94360         hash-pjw.h.
94361         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94362         * lib/hash-pjw.h: New file.
94363
94364 2001-09-30  Jim Meyering  <meyering@lucent.com>
94365
94366         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94367         `struct fsstat' has the `f_fstypename' member.
94368         Use that to define FS_TYPE, which is now used to make
94369         the getfsstat link test tighter.
94370
94371 2001-09-30  Jim Meyering  <meyering@lucent.com>
94372
94373         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94374         Include <sys/ucred.h>, for Apple Darwin.
94375         Include sys/mount.h and sys/fs_types.h only if available.
94376         (FS_TYPE): Define.
94377         (read_filesystem_list): Use FS_TYPE.
94378
94379 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94380
94381         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94382         a boolean context.
94383
94384 2001-09-29  Jim Meyering  <meyering@lucent.com>
94385
94386         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94387         [one-argument getmntent function]): Include stdio.h before mntent.h.
94388         SunOS 4.1.x needs it for the declaration of `FILE'.
94389         Patch by Volker Borchert.
94390
94391         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94392         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94393         sys/fs_types.h, and make the link-test for getfsstat guard #include
94394         directives with appropriate #if HAVE_*_H tests so that we can
94395         detect getfsstat on Apple Darwin1.3.7 systems.
94396         Reported by Nelson Beebe.
94397         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94398
94399 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94400
94401         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94402         #defines strtoimax.  Also treat the other strto* functions
94403         like strtoimax.
94404
94405         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94406         Check for strtoul and strtoumax,
94407         as those declarations are made even in the signed case.
94408         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94409         Likewise, for strtol and strtoimax.
94410
94411 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94412
94413         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94414         #defines strtoimax.  Also treat the other strto* functions
94415         like strtoimax.
94416
94417         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94418         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94419         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94420
94421 2001-09-26  Jim Meyering  <meyering@lucent.com>
94422
94423         Most macros in unlocked-io.h had the wrong number of arguments.
94424         * lib/gen-uio: New script.
94425         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94426         * lib/unlocked-io.hin: Remove file.
94427         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94428         rather than trying to embed it here.
94429         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94430         Reported by Padraig Brady.
94431
94432 2001-09-25  Volker Borchert  <bt@teknon.de>
94433
94434         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94435         `result'.
94436
94437 2001-09-24  Jim Meyering  <meyering@lucent.com>
94438
94439         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94440
94441 2001-09-23  Jim Meyering  <meyering@lucent.com>
94442
94443         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94444         instead of the mere test for existence of mntent.h.  The latter
94445         would get a false-positive on AIX 3.4 systems.
94446         In the outer getmntent if-block, don't die if neither of the getmntent
94447         tests succeeds.  Instead, just fall through and continue with the
94448         remaining tests.
94449
94450 2001-09-23  Jim Meyering  <meyering@lucent.com>
94451
94452         * lib/mountlist.c: Remove useless parentheses in #if directives.
94453         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94454         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94455
94456 2001-09-22  Jim Meyering  <meyering@lucent.com>
94457
94458         * m4/gettext.m4: New file.  From gettext.
94459         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94460         * m4/progtest.m4: Likewise
94461         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94462         * m4/glibc21.m4: Likewise.
94463
94464         * m4/libintl.m4: Remove.  No longer used.
94465
94466 2001-09-22  Jim Meyering  <meyering@lucent.com>
94467
94468         * lib/localcharset.c: Update from latest gettext.
94469         * lib/config.charset: Likewise.
94470
94471 2001-09-20  Jim Meyering  <meyering@lucent.com>
94472
94473         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94474         strtoimax.
94475         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94476         strtoumax.
94477
94478 2001-09-20  Jim Meyering  <meyering@lucent.com>
94479
94480         * lib/xstrtol.c (strtoimax): Guard declaration with
94481         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94482         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94483         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94484         (strtoumax): Likewise, for completeness (it wasn't necessary).
94485
94486 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94487
94488         * lib/strtoimax.c (HAVE_LONG_LONG):
94489         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94490         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94491         to work around bug in IBM C compiler.
94492
94493 2001-09-17  Jim Meyering  <meyering@lucent.com>
94494
94495         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94496         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94497         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94498         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94499         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94500         whenever the right hand side need not be expanded by the shell.
94501
94502 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94503
94504         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94505         library.  It's not correct, as some older glibcs are buggy.
94506         fnmatch wasn't fixed until glibc 2.2.
94507
94508         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94509         special shell magic here.
94510
94511 2001-09-16  Jim Meyering  <meyering@lucent.com>
94512
94513         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94514         * m4/jm-macros.m4: Require it.
94515
94516 2001-09-16  Jim Meyering  <meyering@lucent.com>
94517
94518         * lib/mkdir.c: New file.
94519
94520 2001-09-15  Jim Meyering  <meyering@lucent.com>
94521
94522         * m4/jm-macros.m4: Check for help2man.
94523
94524 2001-09-11  Jim Meyering  <meyering@lucent.com>
94525
94526         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
94527         The body, by Paul Eggert, was moved here from configure.in.
94528         * m4/jm-macros.m4: Require UTILS_HOST_OS.
94529
94530 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94531
94532         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
94533         (jm_PREREQ): Use it.
94534
94535 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94536
94537         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
94538         Use ssize_t, not int, to store result of readlink.
94539         Check for ssize_t overflow as well as size_t overflow,
94540         as POSIX says the result of readlink is implementation-defined
94541         when ssize_t overflows.
94542         Remove unnecessary cast to char*.
94543         Use free+malloc instead of realloc, as the storage doesn't need
94544         to be preserved and it's clearer and can be more efficient that way.
94545         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
94546         * lib/xreadlink.h (xreadlink): Update prototype.
94547
94548 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94549
94550         * lib/xgetcwd.c: Revert some of the previous change; intead,
94551         fix the HAVE_GETCWD_NULL code to behave more like the
94552         !HAVE_GETCWD_NULL code used to.
94553
94554         Include "xalloc.h".
94555         (xgetcwd): Do not return NULL when memory is exhausted; instead,
94556         invoke xalloc_die.
94557
94558 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94559
94560         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
94561         sys/param.h, as pathmax.h includes them.
94562
94563 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94564
94565         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
94566         (jm_PREREQ_XGETCWD): New macro.
94567
94568         * m4/getcwd.m4: New file.
94569
94570 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94571
94572         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
94573         like the HAVE_GETCWD_NULL code.
94574         Include pathmax.h if not HAVE_GETCWD.
94575         Do not include xalloc.h.
94576         (INITIAL_BUFFER_SIZE): New symbol.
94577         Do not use xmalloc / xrealloc, since the caller is responsible for
94578         handling errors.  Preserve errno around `free' during failure.
94579         Do not overrun buffer when using getwd.
94580
94581 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94582
94583         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
94584         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
94585         getcwd (NULL, 0).
94586
94587 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94588
94589         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
94590         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
94591         spotted by Jim Meyering.
94592
94593 2001-09-03  Jim Meyering  <meyering@lucent.com>
94594
94595         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
94596         failure.
94597
94598 2001-09-02  Jim Meyering  <meyering@lucent.com>
94599
94600         * lib/error.c: Update from GNU libc.
94601
94602 2001-09-01  Jim Meyering  <meyering@lucent.com>
94603
94604         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
94605         Used by df.
94606
94607 2001-09-01  Jim Meyering  <meyering@lucent.com>
94608
94609         * lib/xreadlink.c: New file.
94610         * lib/xreadlink.h: New file.
94611         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
94612         xreadlink.h.
94613
94614         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
94615         doesn't conflict with sparc Solaris 7's definition in
94616         /usr/include/sys/int_types.h.
94617
94618         * lib/exclude.c: Use `""', not `<>' to #include non-system header
94619         files.
94620         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
94621         and strncasecmp as r-values.  Unixware didn't have declarations.
94622
94623 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94624
94625         * lib/xstrtol.h: Add copyright notice.
94626         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
94627         LONGINT_INVALID_SUFFIX_CHAR.
94628
94629 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94630
94631         * lib/xstrtol.c (strtoimax): New decl.
94632
94633 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94634
94635         * lib/xgetcwd.c: Don't include pathmax.h.
94636         Include stdlib.h and unistd.h if available.
94637         Include xalloc.h.
94638         (xmalloc, xstrdup, free): Remove decls.
94639         (xgetcwd): Don't assume sizes fit in unsigned.
94640         Check for overflow when computing sizes.
94641         Simplify reallocation code.
94642
94643 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94644
94645         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
94646         a directory's st_size can have an arbitrary value, so the old
94647         usage could waste an arbitrary amount of memory.  All uses
94648         changed.
94649         * lib/savedir.h: Update prototype.
94650
94651 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94652
94653         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
94654
94655         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
94656         old strtoimax.c.
94657
94658         Also, make the following further changes to make this file's
94659         configuration more similar to that of strtol.c:
94660         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
94661         (strtoumax, uintmax_t, strtoull, strtol): Remove.
94662         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
94663         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
94664         changed to signed values.
94665
94666         And make the following changes as well:
94667         Fix copyright notice, as 1999 was missing.
94668         (verify): New macro.
94669         (strtoimax): Check sizes at compile-time, not run-time.
94670         Prefer strtol to strtoll if both work.
94671         (main): Remove; it was not that useful and was a pain to maintain.
94672
94673         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
94674
94675 2001-08-31  Jim Meyering  <meyering@lucent.com>
94676
94677         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
94678         Use an initial, malloc'd, buffer of length 128 rather than
94679         a statically allocated one of length 1024.
94680
94681 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94682
94683         Simplify code, partly by assuming autoconf 2.52 semantics.
94684
94685         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
94686
94687         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
94688         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
94689         All uses removed.
94690         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
94691         Move AC_REQUIRE to next-to-top level, to avoid confusion.
94692         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
94693         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
94694         jm_AC_HEADER_INTTYPES_H.
94695         * m4/jm-macros.m4 (jm_MACROS): Likewise.
94696
94697         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
94698
94699         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94700         Quote first arg of AC_DEFUN.
94701         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
94702         since they are needed to parse the include file even if we need
94703         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
94704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
94705         but with opposite signedness.
94706
94707 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94708
94709         Merge 'exclude' changes from tar 1.13.22.
94710         This fixes one or two unlikely storage allocation overflow bugs,
94711         but doesn't change user-visible behavior otherwise.
94712
94713 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94714
94715         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
94716         (jm_PREREQ_EXCLUDE): New macro.
94717
94718 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94719
94720         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
94721         tm to be declared.
94722
94723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94724
94725         * lib/hash.c: Remove '2001' from copyright notice.
94726
94727 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94728
94729         * lib/full-write.h: New file.
94730         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
94731         * lib/full-write.c: Correct credits, as cccp.c no longer
94732         exists and anyway it was so heavily changed from the old cccp
94733         code as to be unrecognizable.  Include full-write.h.
94734         (full_write): Return size_t, with short writes meaning failure.
94735         All callers changed.  This fixes a bug with large buffers
94736         on 64-bit hosts.
94737         * lib/utime.c: Include full-write.h.
94738
94739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94740
94741         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
94742         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
94743         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
94744         Include if available.
94745         (<xalloc.h>): Include
94746         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
94747         (verify): New macro.  Use it to verify that EXCLUDE macros do not
94748         collide with FNM macros.
94749         (struct patopts): New struct.
94750         (struct exclude): Use it, as exclude patterns now come with options.
94751         (new_exclude): Support above changes.
94752         (new_exclude, add_exclude_file):
94753         Initial size must now be a power of two to simplify overflow checking.
94754         (free_exclude, fnmatch_no_wildcards): New function.
94755         (excluded_filename): No longer requires options arg, as the options
94756         are determined by add_exclude.  Now returns bool, not int.
94757         (excluded_filename, add_exclude):
94758         Add support for the fancy new exclusion options.
94759         (add_exclude, add_exclude_file): Now takes int options arg.
94760         Check for arithmetic overflow when computing sizes.
94761         (add_exclude_file): xrealloc might modify errno, so don't
94762         realloc until after errno might be used.
94763
94764         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
94765         New macros.
94766         (free_exclude): New decl.
94767         (add_exclude, add_exclude_file): Now takes int options arg.
94768         (excluded_filename): No longer requires options arg, as the options
94769         are determined by add_exclude.  Now returns bool, not int.
94770
94771 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94772
94773         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
94774
94775 2001-08-27  Jim Meyering  <meyering@lucent.com>
94776
94777         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
94778
94779         * lib/version-etc.c (N_): Remove definition.
94780         Revert most of last change.
94781         Instead, simply don't mark the `Copyright...' string for translation.
94782         Based on advice from Paul Eggert.
94783
94784         * lib/strtoxmax.c: Tweak comment.
94785
94786 2001-08-26  Jim Meyering  <meyering@lucent.com>
94787
94788         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
94789
94790         * m4/xstrtoimax.m4: New file.
94791         * m4/xstrtoumax.m4: Add comments explaining why we
94792         AC_REPLACE_FUNCS(strtol).
94793
94794 2001-08-26  Jim Meyering  <meyering@lucent.com>
94795
94796         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
94797         of copyright with `%s' so translators don't get an untranslated
94798         message in 2002.
94799         (COPYRIGHT_YEAR): Define.
94800         (version_etc): Use fprintf rather than fputs.
94801         Suggestion from Ulrich Drepper.
94802
94803         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
94804
94805         * lib/strtoll.c: New file, from GNU libc.
94806         * lib/xstrtoimax.c: New file.
94807
94808         * lib/xstrtol.h: Add xstrtoimax.
94809         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
94810         * lib/strtoimax.c: New file.  Likewise, but first define
94811         STRTOUXMAX_SIGNED.
94812
94813         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
94814         ...
94815         * lib/strtoxmax.c: ... then renamed to this.
94816
94817 2001-08-18  Paul Eggert  <eggert@twinsun.com>
94818
94819         * m4/inttypes.m4: Add AC_PREREQ(2.13).
94820         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
94821         (jm_AC_TYPE_INTMAX_T): New macro.
94822         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
94823
94824         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
94825
94826         * m4/longlong.m4: Renamed from ulonglong.m4.
94827         * m4/inttypes.m4: Renamed from inttypes_h.m4.
94828         * m4/uintmax_t.m4: Removed.
94829
94830 2001-08-13  Paul Eggert  <eggert@twinsun.com>
94831
94832         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
94833         Port to Solaris 8, where 'sed' requires a space after the 'r'
94834         command, and where sh dislikes "$/".  Clean up the spacing a bit.
94835         Redirect output to $tmp just once.
94836
94837 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
94838
94839         * lib/addext.c (<errno.h>): Include.
94840         (errno): Declare if not defined.
94841         (addext): Work correctly when pathconf returns -1 and leaves
94842         errno alone because there is no limit.  Also, work even if
94843         pathconf returns a value greater than SIZE_MAX.
94844
94845 2001-08-12  Jim Meyering  <meyering@lucent.com>
94846
94847         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
94848         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
94849         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
94850         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
94851         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
94852         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
94853         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
94854         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
94855         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
94856         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
94857         utime.m4, utimes.m4, xstrtoumax.m4:
94858         Quote the first argument in each use of AC_DEFUN.
94859
94860 2001-08-12  Jim Meyering  <meyering@lucent.com>
94861
94862         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
94863         Simply `return getcwd (NULL, 0);'.
94864         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
94865         Use 1300 as initial value for length, not PATH_MAX.
94866
94867         * lib/pathmax.h: Clean up cpp syntax.
94868
94869 2001-08-12  Jim Meyering  <meyering@lucent.com>
94870
94871         * lib/gettimeofday.c: New file.
94872         * lib/gtod.h: New file.
94873         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
94874
94875 2001-08-05  Jim Meyering  <meyering@lucent.com>
94876
94877         * m4/jm-macros.m4: Require autoconf-2.52.
94878
94879 2001-08-04  Jim Meyering  <meyering@lucent.com>
94880
94881         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
94882         stmt, to get in sync with glibc.
94883
94884 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94885
94886         The following changes are from gettext 0.10.39 as maintained by
94887         Bruno Haible.
94888
94889         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
94890         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
94891         with inverted sense.  All uses changed.
94892
94893         * lib/mbswidth.c: Don't include <limits.h>.
94894         Include <stdlib.h> and <string.h> unconditionally.
94895         (iswcntrl, mbsinit, ISCNTRL): New macros.
94896         (mbsnwidth): Use K&R style function declarations.
94897         Don't bother checking for MB_LEN_MAX == 1, since the compiler
94898         can optimize it when MB_CUR_MAX == 1.
94899         The width of control characters is zero, not 1.
94900
94901 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94902
94903         The following changes are from gettext 0.10.39 as maintained by
94904         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
94905
94906         * m4/codeset.m4: Upgrade to serial AM1.
94907         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
94908         all uses changed.  Quote first arg of AC_DEFUN.
94909         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
94910
94911         * m4/iconv.m4: Upgrade to serial AM2.
94912         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
94913         Add --with-libconv-prefix.
94914         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
94915         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
94916         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
94917         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
94918         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
94919
94920         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
94921         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
94922         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
94923         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
94924         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
94925         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
94926         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
94927         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
94928         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94929
94930         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
94931         string.h any more.
94932
94933         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
94934         not the default value.
94935
94936         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
94937         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
94938         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
94939         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
94940         Also check for iswcntrl, used for wcwidth fallback.
94941         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
94942         to Autoconf 2.13.
94943
94944 2001-08-03  Jim Meyering  <meyering@lucent.com>
94945
94946         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
94947         as it was in the original.  Reported by Paul Eggert.
94948
94949 2001-07-16  Jim Meyering  <meyering@lucent.com>
94950
94951         * m4/gettimeofday.m4: New file.
94952         Prompted by a report from Bernhard Baehr.
94953
94954 2001-07-15  Jim Meyering  <meyering@lucent.com>
94955
94956         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
94957         stuff. Now it's in ../Makefile.cfg.
94958
94959 2001-07-15  Jim Meyering  <meyering@lucent.com>
94960
94961         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
94962         (BUILT_SOURCES): Add unlocked-io.h.
94963         (io_functions): Define.
94964         (unlocked-io.h): New rule.
94965         (DISTCLEANFILES): Add unlocked-io.h.
94966         (all-local): Depend on unlocked-io.h, to ensure it is created.
94967
94968         * lib/unlocked-io.hin: New file
94969
94970         * lib/regex.c: Update from glibc.
94971
94972 2001-07-05  Jim Meyering  <meyering@lucent.com>
94973
94974         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
94975         recommendation.
94976         (libfetish_a_SOURCES): Put all .h files here instead.
94977         Remove a thus-exposed (better checks in automake) duplicate and
94978         two unnecessary .h files.
94979
94980 2001-07-04  Jim Meyering  <meyering@lucent.com>
94981
94982         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
94983         that generates jm-glibc-io.m4 so that it doesn't trigger any make
94984         distcheck failure.
94985
94986 2001-07-02  Jim Meyering  <meyering@lucent.com>
94987
94988         The following changes were prompted by suggestions from Bruno Haible.
94989
94990         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
94991         is now generated.
94992         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
94993         definition of EXTRA_DIST.
94994         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
94995         ensure that the generated file is created/updated whenever the list
94996         of $(unlocked_functions) is changed.
94997         (jm-glibc-io.m4): New rule.
94998         (unlocked-io.h): New rule -- currently unused.
94999
95000 2001-06-24  Jim Meyering  <meyering@lucent.com>
95001
95002         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95003         unmatched right bracket, rather than kludging it with an extra,
95004         falsely-matching quote in a comment.  Patch by Akim Demaille.
95005
95006 2001-06-11  Jim Meyering  <meyering@lucent.com>
95007
95008         * lib/regex.c: Update from GNU libc.
95009
95010 2001-05-27  Jim Meyering  <meyering@lucent.com>
95011
95012         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95013         Check for ut_type in struct utmp.
95014
95015 2001-05-27  Jim Meyering  <meyering@lucent.com>
95016
95017         * lib/readutmp.h (UT_TYPE): Define.
95018
95019 2001-05-24  Jim Meyering  <meyering@lucent.com>
95020
95021         * lib/argmatch.c: Include "quote.h".
95022         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95023         quote function.  Reported by Göran Uddeborg.
95024
95025 2001-05-22  Jim Meyering  <meyering@lucent.com>
95026
95027         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95028         now that we use the package-supplied version unconditionally.
95029         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95030
95031 2001-05-21  Jim Meyering  <meyering@lucent.com>
95032
95033         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95034         shell syntax errors.
95035
95036 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95037
95038         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95039
95040 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95041
95042         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95043         Don't bother to check library strftime, since
95044         we'll be using our own my_strftime function anyway.
95045         Define my_strftime instead of strftime.
95046
95047 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95048
95049         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95050         which is not yet declared.
95051
95052 2001-05-15  Jim Meyering  <meyering@lucent.com>
95053
95054         * m4/regex.m4: Use proper quoting so brackets appear in the test
95055         program.
95056         Reported by, and with help from, Bruno Haible.
95057
95058 2001-05-13  Jim Meyering  <meyering@lucent.com>
95059
95060         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95061         undefined.
95062
95063 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95064
95065         dirname code cleanup.  base_name now behaves more compatibly
95066         with POSIX basename when given file names that have trailing
95067         slashes, and similarly for dir_name.  Add new primitives
95068         base_len and dir_len.  Put the directory-name-related decls
95069         into dirname.h.
95070
95071         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95072         * lib/backupfile.c (base_name): Likewise.
95073         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95074         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95075         * lib/makepath.c (strip_trailing_slashes): Likewise.
95076         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95077         ISSLASH): Likewise.
95078         * lib/rename.c (strip_trailing_slashes): Likewise.
95079         * lib/same.c (base_name): Likewise.
95080         * lib/stripslash.c (ISSLASH): Likewise.
95081
95082         * lib/addext.c: Include <dirname.h> after size_t is defined.
95083         * lib/backupfile.c: Likewise.
95084
95085         * lib/addext.c (addext): Use base_len to trim redundant
95086         trailing slashes instead of doing it ourselves.
95087         But do not trim the last slash if it is not redundant.
95088
95089         * lib/backupfile.c (find_backup_file_name,
95090         max_backup_version): Use base_len instead of rolling it ourselves.
95091         Handle the case of "" and (on DOS) "C:" correctly.
95092
95093         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95094         needed. Include <string.h>, <dirname.h>.
95095         (base_name): Allow file names ending in slashes, other than names
95096         that are all slashes.  In this case, return the basename followed
95097         by the slashes.  This is more general, and can be used in places
95098         where the original base_name purposely had an assertion failure.
95099         (base_len): New function.
95100
95101         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95102         Do not include <assert.h>; no longer needed.
95103         Include xalloc.h.
95104         (memrchr): Remove decl.
95105         (dir_name_r): Remove.
95106         (dir_len): Renamed from dirlen.  All callers changed.
95107         Rewrite in terms of base_name, for simplicity and consistency.
95108         (dir_name): Never return NULL.  All callers changed.
95109         Do not include <stdlib.h> in test program; no longer needed.
95110         return 0; is fine for test program.
95111
95112         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95113         New macros.
95114         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95115
95116         * lib/path-concat.c (path_concat): Use base_len to compute
95117         base length, not strlen; this means we cannot rely on memcpy
95118         to null-terminate.
95119
95120         * lib/same.c (STREQ): Remove.
95121         (same_name): Handle the case where the basename ends in trailing '/'.
95122
95123         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95124         a slash was stripped.  Do not strip the last slash after a
95125         file system prefix.
95126
95127 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95128
95129         * lib/Makefile.am (libfetish_a_SOURCES):
95130         Add strftime.c, since we now compile it on all hosts.
95131
95132         * lib/strftime.c (my_strftime):
95133         Define to nstrftime if emacs, but only if my_strftime is not defined.
95134         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95135         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95136         Add one more extra argument: a nanoseconds value.
95137         All uses changed.
95138         (ns): New macro.
95139         (my_strftime function): Add %N format.
95140         (emacs_strftimeu): Renamed from emacs_strftime,
95141         with extra ut argument.
95142
95143 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95144
95145         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95146
95147 2001-04-21  Jim Meyering  <meyering@lucent.com>
95148
95149         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95150         doesn't interfere.
95151
95152 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95153
95154         * m4/ftruncate.m4: Check for chsize.
95155         Link with ftruncate.o unconditionally if ftruncate is missing.
95156         This was required when cross-compiling to i586-mingw32msvc.
95157
95158 2001-04-08  Jim Meyering  <meyering@lucent.com>
95159
95160         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95161         recomputed; that's necessary when the offset spans a DST transition.
95162         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95163
95164 2001-04-02  Jim Meyering  <meyering@lucent.com>
95165
95166         * lib/regex.h, regex.c: Update from GNU libc.
95167
95168 2001-03-24  Jim Meyering  <meyering@lucent.com>
95169
95170         * m4/jm-macros.m4: Require autoconf-2.49d.
95171
95172 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95173
95174         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95175
95176 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95177
95178         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95179
95180 2001-03-17  Jim Meyering  <meyering@lucent.com>
95181
95182         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95183         now that the version in autoconf is equivalent.
95184         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95185
95186         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95187         Suggestion from Akim Demaille.
95188
95189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95190         (jm_PREREQ_TEMPNAME): New function.
95191
95192 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95193
95194         * lib/tempname.c (uint64_t): Define to uintmax_t if
95195         not defined, and if UINT64_MAX is not defined.
95196         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95197         Reported by John David Anglin.
95198
95199 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95200
95201         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95202         resolve alias if codeset is empty.
95203         * lib/config.charset (BeOS): Use wildcard syntax.
95204
95205 2001-03-13  Jim Meyering  <meyering@lucent.com>
95206
95207         * lib/path-concat.c (path_concat)
95208         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95209         concatenating e.g., `C:' and `foo'.
95210         From Bruno Haible.
95211
95212 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95213
95214         * lib/localcharset.c (locale_charset): Don't use
95215         setlocale(LC_CTYPE,NULL). Don't return NULL.
95216         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95217
95218 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95219
95220         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95221         support for DOS/DJGPP.
95222
95223 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95224
95225         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95226         lacks mkstemp.  Compile our own tempname.c if we compile our own
95227         mkstemp.c, as mkstemp relies on tempname.
95228
95229 2001-03-01  Jim Meyering  <meyering@lucent.com>
95230
95231         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95232         AH_VERBATIM really does output its argument verbatim.
95233
95234 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95235
95236         * lib/Makefile.am (libfetish_a_SOURCES):
95237         Add dup-safer.c, fopen-safer.c.
95238         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95239
95240         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95241         * lib/unistd-safer.h: New files.
95242
95243 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95244
95245         The mkstemp replacement is taken from glibc 2.2.2, with some
95246         portability fixes for use outside glibc, as follows:
95247
95248         * lib/tempname.c (struct_stat64): New macro.
95249         (direxists, __gen_tempname): Use it.
95250         This avoids a portability problem with Solaris 8.
95251
95252         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95253         (<stddef.h>, <stdint.h>, <string.h>):
95254         Include only if STDC_HEADERS || _LIBC.
95255         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95256         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95257         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95258         (__set_errno): Define this macro if <errno.h> doesn't.
95259         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95260         Define these macros if <stdio.h> doesn't.
95261         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95262         Define these macros if <sys/stat.h>
95263         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95264         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95265         __xstat64): Define if not _LIBC.
95266         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95267         (__gen_tempname): Invoke gettimeofday only if
95268         HAVE_GETTIMEOFDAY || _LIBC;
95269         otherwise, fall back on plain "time".
95270         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95271
95272         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95273
95274         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95275
95276 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95277
95278         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95279
95280 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95281
95282         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95283         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95284         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95285         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95286
95287 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95288
95289         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95290         Remove workaround macros for hosts that have mbrtowc but not
95291         mbstate_t, as we now insist on proper declarations for both
95292         before using mbrtowc.
95293
95294 2001-02-17  Jim Meyering  <meyering@lucent.com>
95295
95296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95297         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95298         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95299         UnixWare 7.1.1.
95300
95301         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95302         rather than AC_CACHE_VAL.
95303
95304 2001-02-17  Jim Meyering  <meyering@lucent.com>
95305
95306         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95307         around included file name.
95308
95309         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95310
95311         * lib/strftime.c: Update from GNU libc (the only changes were to
95312         comments).
95313
95314 2001-02-17  Jim Meyering  <meyering@lucent.com>
95315
95316         * lib/regex.c: Update from libc.
95317
95318 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95319
95320         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95321         clash.
95322
95323 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95324
95325         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95326         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95327         Reported by Mark Hounschell via Paul Eggert.
95328
95329 2001-02-07  Jim Meyering  <meyering@lucent.com>
95330
95331         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95332
95333 2001-02-05  Jim Meyering  <meyering@lucent.com>
95334
95335         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95336         it includes the patch required for `large file' support with at least
95337         HP-UX's 10.20 /bin/cc.
95338
95339 2001-02-03  Jim Meyering  <meyering@lucent.com>
95340
95341         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95342         AS_IF, now that it works once again (mysteriously).
95343         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95344
95345 2001-01-30  Jim Meyering  <meyering@lucent.com>
95346
95347         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95348         * m4/chown.m4: Rename conftestchown to conftest.chown.
95349         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95350         s/conftestdir2/conftest.d2/.
95351         * m4/utimes.m4: s/conftestdata/conftest.data/
95352         Inspired by Pavel Roskin's change in autoconf.
95353
95354 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95355
95356         * lib/config.charset: Update for FreeBSD 4.2.
95357
95358 2001-01-27  Jim Meyering  <meyering@lucent.com>
95359
95360         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95361         a use of AS_IF.
95362         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95363
95364 2001-01-26  Jim Meyering  <meyering@lucent.com>
95365
95366         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95367         quotearg.c includes it.
95368
95369 2001-01-26  Jim Meyering  <meyering@lucent.com>
95370
95371         * lib/quotearg.c: Include stddef.h.
95372         * lib/quote.c: Include stddef.h.
95373         Reported by Axel Kittenberger.
95374
95375         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95376         line in double quotes so that it evokes a better diagnostic.
95377         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95378         Reported by Axel Kittenberger.
95379
95380 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95381
95382         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95383         as if it was a `charset'.
95384
95385 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95386
95387         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95388         has const.
95389
95390 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95391
95392         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95393         to avoid a warning.  Add back 'const' to inptr.
95394
95395 2001-01-20  Jim Meyering  <meyering@lucent.com>
95396
95397         Be sure that headers are checked before used in code compiled
95398         for the type checks.
95399         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95400         In place of that, invoke jm_CHECK_ALL_TYPES.
95401         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95402         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95403         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95404         The check for ssize_t was mistakenly run before the test for unistd.h.
95405
95406         The configure-time check for stdbool.h was missing.
95407         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95408         (jm_PREREQ_HASH): New function.
95409
95410 2001-01-17  Jim Meyering  <meyering@lucent.com>
95411
95412         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95413         for autoconf-2.49c.
95414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95415
95416 2001-01-16  Jim Meyering  <meyering@lucent.com>
95417
95418         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95419         From Bruno Haible.
95420
95421 2001-01-14  Jim Meyering  <meyering@lucent.com>
95422
95423         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95424         foo and bar.  Create conftestdir/ in the script, not in the C code.
95425         Remove directories in the script, not in the C code.
95426         Remove conftestdir{,2} before trying to create the directory.
95427         Make the entire configure script fail if the mkdir fails.
95428
95429 2001-01-14  Jim Meyering  <meyering@lucent.com>
95430
95431         * lib/rename.c: New file.  From Volker Borchert.
95432         Include stdlib.h, string.h or strings.h, and xalloc.h.
95433         Use strip_trailing_slashes rather than open-coding it.
95434
95435 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95436
95437         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95438
95439 2001-01-03  Jim Meyering  <meyering@lucent.com>
95440
95441         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95442         of local `inptr' to avoid warning with some system declarations of
95443         iconv.
95444
95445 2001-01-02  Volker Borchert  <bt@teknon.de>
95446
95447         * m4/rename.m4: New file.
95448         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95449
95450 2001-01-01  Jim Meyering  <meyering@lucent.com>
95451
95452         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95453         even on systems with utmpx.h.  It's necessary for the declaration of
95454         utmp's ut_user member.  Reported by Andreas Jaeger.
95455
95456         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95457         available. They are required for the declarations of getgrgid and
95458         getpwuid resp.
95459         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95460         Reported by Andreas Jaeger.
95461
95462 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95463
95464         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95465         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95466         so `make install' also works in VPATH builds.
95467
95468 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95469
95470         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95471         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95472         can be used in subdirectories.
95473
95474 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95475
95476         * lib/modechange.c: Do not assume that mode_t uses the
95477         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95478         the other-execute bit of FOO even if S_IXOTH != 1.
95479
95480         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95481         WOTH, XOTH, ALLM): New macros.
95482         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95483          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95484         Use them.
95485         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95486         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95487         (mode_compile):
95488         No need to use uintmax_t; unsigned long is long enough.
95489         Don't bother to get suffix since we don't use it.
95490
95491 2000-12-26  Jim Meyering  <meyering@lucent.com>
95492
95493         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95494         better with autoheader.
95495
95496 2000-12-24  Jim Meyering  <meyering@lucent.com>
95497
95498         * lib/hash.c (is_prime): Return explicit boolean values.
95499         (hash_get_first): Return NULL to appease Irix5.6's 89.
95500         Reported by Nelson Beebe.
95501
95502 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95503
95504         * lib/localcharset.c (locale_charset): Add support for Win32.
95505
95506 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95507
95508         * lib/physmem.h, lib/physmem.c: New files.
95509
95510         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95511         (noinst_HEADERS): Add physmem.h.
95512
95513         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95514         't' for compatibility with Solaris 8 sort.
95515
95516 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95517
95518         * lib/config.charset: Add support for BeOS.
95519
95520 2000-12-17  Jim Meyering  <meyering@lucent.com>
95521
95522         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95523         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95524
95525 2000-12-16  Jim Meyering  <meyering@lucent.com>
95526
95527         This bug had a serious impact on chown: `chown N:M FILE' (for integer
95528         N and M) would have treated it like `chown N:N FILE'.
95529
95530         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
95531
95532 2000-12-16  Jim Meyering  <meyering@lucent.com>
95533
95534         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
95535         SHELLS_FILE to a file name that's useful on djgpp systems.
95536         Include stdlib.h.
95537         (ADDITIONAL_DEFAULT_SHELLS): Define.
95538         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
95539         Based mostly on a patch from Prashant TR.
95540
95541 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
95542
95543         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
95544         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
95545         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
95546
95547 2000-12-08  Andreas Schwab  <schwab@suse.de>
95548
95549         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
95550         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
95551
95552 2000-12-07  Jim Meyering  <meyering@lucent.com>
95553
95554         * lib/stripslash.c (ISSLASH): Define.
95555         (strip_trailing_slashes): Use ISSLASH rather than comparing against
95556         `/'.
95557         From Prashant TR.
95558
95559         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
95560         (dir_name_r): Declare this function as static.
95561         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
95562         manifest itself on a name containing a mix of slashes and
95563         backslashes.
95564         Make this function work with names starting with a DOS-style
95565         drive letter and colon prefix.
95566         (dir_name): Append `.' if necessary.
95567         Based mostly on patches from Prashant TR and Eli Zaretskii.
95568
95569         * lib/dirname.h (dir_name_r): Remove prototype.
95570
95571 2000-12-06  Paul Eggert  <eggert@twinsun.com>
95572
95573         * m4/off_t-format.m4: Remove this file.
95574         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
95575
95576 2000-12-06  Jim Meyering  <meyering@lucent.com>
95577
95578         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
95579         replacement strtoull, we may well need the replacement strtoul, too.
95580         Check for declarations of strtoul and strtoull.
95581         Check for strtol.  Mainly as a cue to cause automake to include
95582         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
95583         Check for limits.h -- strtol.c needs it.
95584
95585 2000-12-05  Jim Meyering  <meyering@lucent.com>
95586
95587         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
95588
95589 2000-12-04  Jim Meyering  <meyering@lucent.com>
95590
95591         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
95592         Also include memory.h, stdlib.h, unistd.h if appropriate.
95593         Reported by Andreas Jaeger (conflicting declaration of malloc).
95594
95595 2000-12-02  Jim Meyering  <meyering@lucent.com>
95596
95597         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
95598         * m4/jm-macros.m4 (jm_MACROS): require it.
95599
95600 2000-12-02  Jim Meyering  <meyering@lucent.com>
95601
95602         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
95603
95604 2000-12-01  Paul Eggert  <eggert@twinsun.com>
95605
95606         * lib/memrchr.c: Include <config.h> before any system include file.
95607
95608 2000-11-30  Jim Meyering  <meyering@lucent.com>
95609
95610         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
95611
95612 2000-11-30  Jim Meyering  <meyering@lucent.com>
95613
95614         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
95615
95616 2000-11-29  Paul Eggert  <eggert@twinsun.com>
95617
95618         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
95619
95620 2000-11-26  Jim Meyering  <meyering@lucent.com>
95621
95622         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
95623
95624 2000-11-22  Paul Eggert  <eggert@twinsun.com>
95625
95626         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
95627         size of (size_t) -1; it's not portable.
95628
95629 2000-11-17  Jim Meyering  <meyering@lucent.com>
95630
95631         * lib/strstr.c: Update from GNU libc.
95632
95633 2000-11-17  Akim Demaille  <akim@epita.fr>
95634
95635         * lib/obstack.h: Formatting changes.
95636         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
95637         prevent type checking.
95638         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
95639         cast the value to (void *): assigning a `foo *' to a `void *'
95640         variable is valid.
95641         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
95642
95643 2000-11-16  Jim Meyering  <meyering@lucent.com>
95644
95645         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
95646
95647 2000-11-11  Jim Meyering  <meyering@lucent.com>
95648
95649         * lib/error.c: Add a couple #includes, merging from GNU libc version.
95650
95651 2000-11-10  Jim Meyering  <meyering@lucent.com>
95652
95653         * lib/obstack.h: Update from GNU libc.
95654         * lib/obstack.c: Likewise.
95655
95656 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
95657
95658         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
95659
95660 2000-11-06  Paul Eggert  <eggert@twinsun.com>
95661
95662         * lib/getusershell.c (setusershell): Use rewind rather than
95663         fseek/fseeko, to avoid configuration hassles with fseeko.
95664         Don't bother opening SHELLS_FILE if shellstream is NULL;
95665         it's not necessary.
95666
95667 2000-11-05  Jim Meyering  <meyering@lucent.com>
95668
95669         * lib/makepath.h (make_dir): Declare.
95670         * lib/makepath.c (make_dir): Remove `static' attribute.
95671         Tweak a comment.
95672
95673 2000-11-04  Jim Meyering  <meyering@lucent.com>
95674
95675         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
95676
95677 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
95678
95679         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
95680         last one in a bucket, advance to the next bucket.
95681
95682 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
95683
95684         * lib/fnmatch.c: Do not comment out all the code if we are using
95685         the GNU C library, because in some cases we are replacing buggy
95686         code in the GNU C library itself.
95687
95688 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
95689
95690         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
95691         (regex_compile): Catch bogus \(\1\).
95692
95693 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95694
95695         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
95696         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
95697         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
95698
95699 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95700
95701         * lib/error.h, getline.h, modechange.h:
95702         Remove "2000" from Copyright line, as the file hasn't been
95703         changed this year other than in the copyright notice.
95704
95705         * lib/xalloc.h: Add "2000" to Copyright line, as this file
95706         was changed this year.
95707
95708 2000-10-29  Jim Meyering  <meyering@lucent.com>
95709
95710         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
95711         renaming.
95712         * m4/ls-mntd-fs.m4: Likewise
95713
95714 2000-10-29  Jim Meyering  <meyering@lucent.com>
95715
95716         * lib/xstat.in: Fix grammar in comment.
95717
95718 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
95719
95720         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
95721         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
95722         doesn't define __restrict_arr.
95723
95724 2000-10-28  Jim Meyering  <meyering@lucent.com>
95725
95726         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
95727         (jm_PREREQ_MEMCHR): New function.
95728
95729 2000-10-28  Jim Meyering  <meyering@lucent.com>
95730
95731         * lib/memchr.c: Update from libc.
95732         Adjust for portability:
95733         [HAVE_STDLIB_H]: Include stdlib.h.
95734         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
95735         Undef __memchr, too.
95736         [!weak_alias]: Define __memchr to memchr.
95737
95738         * lib/regex.c: Update from libc.
95739         * lib/regex.h: Likewise.
95740         * lib/getopt1.c: Likewise.
95741         * lib/memcmp.c: Likewise.
95742
95743         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
95744         Avoid using fseek, when possible -- it's broken by design.
95745         Patch by Ulrich Drepper.
95746
95747 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
95748
95749         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
95750         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
95751         Giving in to popular pressure to shut up the compiler with casts.
95752
95753 2000-10-26  Jim Meyering  <meyering@lucent.com>
95754
95755         * lib/strftime.c: Update from libc.
95756
95757 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
95758
95759         * regex.c: More `unsigned char' -> `re_char' changes.
95760         Also change several `int' into `re_wchar_t'.
95761         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
95762         (PUSH_FAILURE_POINTER): Don't cast any more.
95763         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
95764         We want GCC to complain, since this piece of code makes
95765         re_match non-reentrant, which *should* be fixed.
95766         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
95767         (EXTEND_BUFFER): Use RETALLOC.
95768         (SET_LIST_BIT): Don't cast.
95769         (re_wchar_t): New type.
95770         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
95771         that those two functions will always properly return.
95772         (IMMEDIATE_QUIT_CHECK): Cast to void.
95773         (analyse_first): Use recursion rather than an explicit stack.
95774         (re_compile_fastmap): Can't fail anymore.
95775         (re_search_2): Don't check re_compile_fastmap for failure.
95776         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
95777         Now also sets the new value (passed in a new argument).
95778         (re_match_2_internal): Use it.
95779         Also, use a new var `reg' of type size_t when looping through regs
95780         rather than reuse the inappropriate `mcnt'.
95781
95782 2000-10-25  Jim Meyering  <meyering@lucent.com>
95783
95784         * lib/obstack.c: Update from libc.
95785
95786 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
95787
95788         * regex.c (regex_compile): Change the way of handling a range from
95789         a char less than 256 to a char not less than 256.
95790
95791 2000-10-24  Andrew Innes  <andrewi@gnu.org>
95792
95793         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
95794         NT-Emacs only.
95795         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
95796         so that re_search functions only quit when callers expect them to.
95797
95798 2000-10-23  Jim Meyering  <meyering@lucent.com>
95799
95800         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
95801         wrong.  That set_locale call must not have any side effects.
95802         From Paul Eggert.
95803
95804 2000-10-22  Jim Meyering  <meyering@lucent.com>
95805
95806         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
95807         [CYCLIC]: Remove now-unused definition.
95808
95809         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
95810         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
95811         Suggestion from Ulrich Drepper.
95812
95813 2000-10-21  Jim Meyering  <meyering@lucent.com>
95814
95815         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
95816         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
95817         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
95818
95819 2000-10-21  Jim Meyering  <meyering@lucent.com>
95820
95821         * lib/dirname.c (memrchr): Declare if necessary.
95822         (dir_name): Remove the restriction that there be no
95823         trailing slashes.  Now, this code skips past them, effectively
95824         ignoring them.
95825         [TEST_DIRNAME] (main): New unit tests.
95826
95827         * lib/memrchr.c: New file from GNU libc.
95828         Undef __memrchr, too.
95829         [!weak_alias]: Define __memrchr to memrchr.
95830         Guard weak_alias use with `#ifdef weak_alias'.
95831
95832 2000-10-21  Jim Meyering  <meyering@lucent.com>
95833
95834         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
95835         (dir_name): Use dir_name_r.
95836         * lib/dirname.h (dir_name_r): Declare it.
95837
95838 2000-10-17  Jim Meyering  <meyering@lucent.com>
95839
95840         * lib/quote.h (PARAMS): Define and use.
95841         Reported by Akim Demaille.
95842
95843         * lib/getopt.c: Update from libc.
95844
95845 2000-10-16  Jim Meyering  <meyering@lucent.com>
95846
95847         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
95848         setlocale.
95849         From Jan Fedak.
95850
95851 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
95852
95853         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
95854
95855 2000-09-25  Jim Meyering  <meyering@lucent.com>
95856
95857         * lib/md5.h (rol): Define (from GnuPG).
95858
95859         * lib/sha.c: Give credit (GnuPG) where due.
95860         (M): Use rol rather than open-coding it.
95861         Add a FIXME comment.
95862
95863 2000-09-21  Jim Meyering  <meyering@lucent.com>
95864
95865         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
95866         Reported by Michael Stone.
95867
95868 2000-09-20  Jim Meyering  <meyering@lucent.com>
95869
95870         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
95871         (noinst_HEADERS): Add sha.h.
95872         Based on code from Scott G. Miller and from GnuPG.
95873
95874 2000-09-18  Jim Meyering  <meyering@lucent.com>
95875
95876         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
95877         LIBS. Otherwise, everyone ends up linking with -lelf for some
95878         configurations.
95879         Reported by Mike Stone.
95880
95881 2000-09-15  Jim Meyering  <meyering@lucent.com>
95882
95883         * lib/regex.c: Update from libc.
95884
95885 2000-09-10  Jim Meyering  <meyering@lucent.com>
95886
95887         * lib/getopt.c (_getopt_internal): Update from glibc.
95888
95889 2000-09-09  Jim Meyering  <meyering@lucent.com>
95890
95891         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
95892         think it should be used as a general replacement for isascii.
95893         * lib/fnmatch.c: Likewise.
95894         * lib/mbswidth.c: Likewise
95895         * lib/regex.c: Likewise.
95896
95897         Don't use atoi.
95898         * lib/userspec.c: Include sys/param.h and limits.h.
95899         Include xstrtol.h.
95900         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95901         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
95902         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
95903         UID, GID.  Check range.
95904
95905 2000-09-06  Jim Meyering  <meyering@lucent.com>
95906
95907         * lib/getopt.c (_getopt_internal): Update from glibc.
95908
95909 2000-08-30  Jim Meyering  <meyering@lucent.com>
95910
95911         * lib/strftime.c: Merge in changes from GNU libc.
95912
95913 2000-08-26  Jim Meyering  <meyering@lucent.com>
95914
95915         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
95916         * m4/fpending.m4: New file.
95917
95918 2000-08-26  Jim Meyering  <meyering@lucent.com>
95919
95920         * lib/closeout.c: Include "__fpending.h".
95921         (close_stdout_status): Return right away if there's nothing to flush.
95922
95923         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
95924         * lib/__fpending.c: New file.
95925         * lib/__fpending.h: New file.
95926
95927 2000-08-20  Jim Meyering  <meyering@lucent.com>
95928
95929         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
95930         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
95931         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
95932
95933 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
95934
95935         Improve fileutils installation on systems where running
95936         programs (like install) can't be unlinked.
95937         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
95938         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
95939
95940 2000-08-07  Paul Eggert  <eggert@twinsun.com>
95941
95942         Standardize on "memory exhausted" instead of "Memory exhausted"
95943         or "virtual memory exhausted".
95944         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
95945         "virtual memory exhausted".
95946         * lib/same.c (same_name): Invoke xalloc_die instead of printing
95947         our own message.
95948         * lib/userspec.c (parse_user_spec): Likewise.
95949         * lib/bumpalloc.h: comment fix
95950         * lib/same.c, userspec.c: Include xalloc.h.
95951
95952         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
95953         not char *const and pointing to a constant array.
95954         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
95955         (xrealloc): Comment fix.
95956
95957         * lib/userspec.c (parse_user_spec):
95958         Don't translate a message until just before returning,
95959         to avoid unnecessary translation.
95960
95961 2000-08-07  Jim Meyering  <meyering@lucent.com>
95962
95963         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
95964         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
95965         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
95966         getgroups.c, gethostname.c, getopt.h, group-member.c,
95967         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
95968         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
95969         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
95970         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
95971         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
95972         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
95973         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
95974         yesno.c: Back out Copyright date changes for each file with no change
95975         this year.  This eases coordination with other programs using the same
95976         source code modules.  From Paul Eggert.
95977
95978 2000-08-06  Paul Eggert  <eggert@twinsun.com>
95979
95980         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
95981         not char, for compatibility with glibc 2.1.3 strftime.c.
95982
95983 2000-08-03  Greg McGary  <greg@mcgary.org>
95984
95985         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
95986         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
95987         (EXTEND_BUFFER): Use them.
95988
95989 2000-08-01  Jim Meyering  <meyering@lucent.com>
95990
95991         * lib/dirname.c (ISSLASH): Define.
95992         (BACKSLASH_IS_PATH_SEPARATOR): Define.
95993         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
95994         both `\' and `/' may be use as path separators.
95995         Based on a patch from Prashant TR.
95996
95997 2000-07-31  Paul Eggert  <eggert@twinsun.com>
95998
95999         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96000         slot vector a constant, since it might get modified.
96001
96002 2000-07-31  Jim Meyering  <meyering@lucent.com>
96003
96004         * lib/xmalloc.c: Use `virtual memory exhausted', not
96005         `Memory exhausted'.
96006         * lib/obstack.c (print_and_abort): Likewise.
96007
96008 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96009
96010         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96011         buffer, so that the caller can always quote one small
96012         component of a "memory exhausted" message in slot 0.
96013         From a suggestion by Jim Meyering.
96014
96015 2000-07-30  Jim Meyering  <meyering@lucent.com>
96016
96017         * lib/makepath.c (make_path): Quote the other instance, too.
96018
96019         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96020         (STATIC_BUF_SIZE): Define.
96021         (quotearg_n_options): Use only statically allocated storage when
96022         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96023         than STATIC_BUF_SIZE.
96024
96025 2000-07-29  Jim Meyering  <meyering@lucent.com>
96026
96027         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96028         * lib/dirname.c (dir_name): Likewise.
96029
96030         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96031         `/'.
96032
96033         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96034         (dir_name): Assert that there are no trailing slashes.
96035
96036 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96037
96038         * lib/mbswidth.h (mbswidth): Add a flags argument.
96039         (mbswidth): New declaration.
96040         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96041         * lib/mbswidth.c (mbswidth): Add a flags argument.
96042         (mbsnwidth): New function.
96043
96044 2000-07-24  Jim Meyering  <meyering@lucent.com>
96045
96046         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96047
96048 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96049
96050         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96051
96052 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96053
96054         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96055         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96056         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96057         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96058         invoke multibyte primitives.
96059
96060 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96061
96062         * lib/quotearg.c:
96063         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96064         so that mbstate_t is always defined.
96065
96066         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96067         be 1 in at least one GCC installation, and this configuration
96068         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96069         performance on hosts that have mbrtowc but have only unibyte
96070         locales, but I assume these hosts are rare.
96071
96072 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96073
96074         * lib/mbswidth.c (_XOPEN_SOURCE):
96075         Don't define; this causes problems on Solaris 7.
96076         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96077
96078 2000-07-23  Jim Meyering  <meyering@lucent.com>
96079
96080         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96081         too: getgrgid, getpwuid, getuid.
96082
96083 2000-07-23  Jim Meyering  <meyering@lucent.com>
96084
96085         * lib/basename.c (base_name): Add an assertion.
96086
96087 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96088
96089         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96090         shadow its mbsinit function.
96091
96092 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96093
96094         * lib/mbswidth.h: New file.
96095         * lib/mbswidth.c: New file.
96096         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96097         (noinst_HEADERS): Add mbswidth.h.
96098
96099 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96100
96101         * lib/config.charset: Add support for FreeBSD. Improve support for
96102         HP-UX and IRIX 6.
96103
96104 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96105
96106         * m4/mbswidth.m4: New file.
96107         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96108
96109 2000-07-15  Jim Meyering  <meyering@lucent.com>
96110
96111         * lib/makepath.c: Include quote.h.
96112         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96113         corresponding argument in a `quote (...)' call.
96114         Give better diagnostics.
96115
96116         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96117         (noinst_HEADERS): Add quote.h.
96118
96119         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96120         from tar's src/misc.c.
96121         * lib/quote.h: New file.  Prototypes for same.
96122
96123 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96124
96125         From a suggestion by Bruno Haible.
96126         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96127         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96128         to decide whether to define the BeOS workaround macro;
96129         this adjusts to the change to AC_MBSTATE_T.
96130
96131 2000-07-14  Jim Meyering  <meyering@lucent.com>
96132
96133         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96134         jm_AC_TYPE_UINTMAX_T.
96135
96136 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96137
96138         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96139
96140         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96141         quotearg_buffer_restyled): Add support for
96142         clocale_quoting_style.  Undo previous change to
96143         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96144         and "{RIGHT QUOTATION MARK}" msgids.
96145
96146 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96147
96148         From a suggestion by Bruno Haible.
96149         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96150         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96151         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96152         and mbstate_t, to a single-part test that simply defines mbstate_t.
96153         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96154         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96155
96156 2000-07-10  Jim Meyering  <meyering@lucent.com>
96157
96158         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96159
96160         * m4/gnu-source.m4: Output to confdefs.h directly.
96161         Suggestion from Akim Demaille.
96162
96163 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96164
96165         The old behavior of quoting `like this' doesn't look good with
96166         newer, ISO-style fonts.  See:
96167         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96168
96169         Instead, quote "like this" by default.  Let the translator
96170         tailor the locale-specific quoting behavior by providing
96171         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96172
96173         * lib/quotearg.c (N_): New macro.
96174         (gettext_default): New function.
96175         (quotearg_buffer_restyled): Use
96176         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96177         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96178
96179 2000-07-09  Jim Meyering  <meyering@lucent.com>
96180
96181         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96182         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96183
96184         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96186
96187 2000-07-09  Jim Meyering  <meyering@lucent.com>
96188
96189         * lib/Most files: Update copyright dates to include 2000.
96190
96191 2000-07-08  Jim Meyering  <meyering@lucent.com>
96192
96193         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96194         if not defined.
96195         (xgethostname): Remove now-unnecessary #ifdef.
96196         Move declaration of `err' into loop where it's used.
96197
96198 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96199         and Bruno Haible  <haible@clisp.cons.org>
96200
96201         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96202         only if the test for an object-type mbstate_t fails.  This
96203         prevents us from mistakenly reporting that mbstate_t is a
96204         system object type after we "#define mbstate_t int" to work
96205         around its lack.
96206
96207 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96208         and Bruno Haible  <haible@clisp.cons.org>
96209
96210         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96211
96212 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96213
96214         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96215         to strerror_r.
96216         Include <ctype.h> for use of isalpha.
96217
96218 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96219
96220         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96221         by allocating a larger buffer. Test the gethostname return value for
96222         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96223         returns an error and ENAMETOOLONG isn't defined.
96224
96225 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96226
96227         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96228         dimension.
96229
96230 2000-07-04  Jim Meyering  <meyering@lucent.com>
96231
96232         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96233         of the deprecated AC_CHECKING.
96234
96235 2000-07-04  Jim Meyering  <meyering@lucent.com>
96236
96237         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96238         Reported by Bruno Haible.
96239
96240 2000-07-04  Jim Meyering  <meyering@lucent.com>
96241
96242         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96243         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96244         lacks mbrtowc.
96245
96246 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96247
96248         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96249         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96250
96251 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96252         and Bruno Haible  <haible@clisp.cons.org>
96253
96254         * lib/quotearg.c (mbrtowc):
96255         Assign to *pwc, and return 1 only if result is nonzero.
96256         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96257
96258 2000-07-03  Jim Meyering  <meyering@lucent.com>
96259
96260         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96261
96262 2000-07-03  Jim Meyering  <meyering@lucent.com>
96263
96264         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96265         This is necessary to get a definition of e.g., UTMP_FILE on
96266         HP-UX 10.20.
96267         From Bob Proulx.
96268
96269 2000-07-02  Jim Meyering  <meyering@lucent.com>
96270
96271         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96272
96273         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96274         AC_LIBOBJ(function_name).
96275         * m4/chown.m4: Likewise.
96276         * m4/fnmatch.m4: Likewise.
96277         * m4/ftruncate.m4: Likewise.
96278         * m4/getgroups.m4: Likewise.
96279         * m4/getline.m4: Likewise.
96280         * m4/group-member.m4: Likewise.
96281         * m4/jm-macros.m4: Likewise.
96282         * m4/lstat.m4: Likewise.
96283         * m4/malloc.m4: Likewise.
96284         * m4/memcmp.m4: Likewise.
96285         * m4/nanosleep.m4: Likewise.
96286         * m4/putenv.m4: Likewise.
96287         * m4/realloc.m4: Likewise.
96288         * m4/regex.m4: Likewise.
96289         * m4/stat.m4: Likewise.
96290         * m4/strftime.m4: Likewise.
96291
96292 2000-07-02  Jim Meyering  <meyering@lucent.com>
96293
96294         * lib/quotearg.c (mbstate_t): Don't define here.
96295
96296 2000-07-02  Jim Meyering  <meyering@lucent.com>
96297
96298         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96299
96300 2000-07-01  Jim Meyering  <meyering@lucent.com>
96301
96302         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96303
96304 2000-07-01  Jim Meyering  <meyering@lucent.com>
96305
96306         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96307         problem.
96308
96309 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96310
96311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96312         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96313
96314 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96315
96316         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96317         per change in ../m4/ls-mntd-fs.m4.
96318         (read_filesystem_list): Ignore symbolic links.
96319
96320 2000-06-29  Jim Meyering  <meyering@lucent.com>
96321
96322         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96323         for declaration of strcmp.
96324
96325         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96326
96327         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96328         Avoid warning by casting result to `char *' to remove `const'.
96329
96330 2000-06-28  Jim Meyering  <meyering@lucent.com>
96331
96332         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96333         included by quotearg.c, for which we perform this test.  From
96334         Bruno Haible.
96335
96336 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96337
96338         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96339         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96340         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96341
96342 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96343
96344         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96345
96346 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96347
96348         savedir now sets errno on failure and invokes xmalloc to get memory.
96349         Fix a couple of other minor bugs while we're at it.
96350
96351         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96352         (NAMLEN): Remove macro.
96353         (malloc, realloc): Remove decls.
96354         (stpcpy): Likewise.
96355         ("xalloc.h"): Include.
96356         (NAME_SIZE_DEFAULT): New macro.
96357         (savedir): Use xmalloc / xrealloc to allocate memory.
96358         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96359         Skip "" directory entries.
96360         Use strlen to calculate directory entry length, since the old method
96361         is rarely used these days and isn't worth supporting.
96362         Don't use a pointer after freeing it.
96363         Check for integer overflow when calculating allocation size.
96364         Use memcpy to copy entries, instead of stpcpy.
96365         Set errno properly when returning NULL.
96366         Check for readdir error.
96367
96368 2000-06-26  Jim Meyering  <meyering@lucent.com>
96369
96370         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96371
96372 2000-06-25  Jim Meyering  <meyering@lucent.com>
96373
96374         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96375         Linux header bug when _XOPEN_SOURCE is defined to 500.
96376
96377 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96378
96379         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96380         deficiency.
96381
96382 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96383
96384         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96385         Include xalloc.h.
96386         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96387
96388 2000-06-24  Jim Meyering  <meyering@lucent.com>
96389
96390         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96391         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96392         for which strerror does return char*, but which lacks a conveniently
96393         accessible declaration of the function.  If the compile-test says
96394         strerror_r doesn't work, then resort to a `run'-test that works on
96395         BeOS and segfaults on DEC Unix.
96396
96397 2000-06-24  Jim Meyering  <meyering@lucent.com>
96398
96399         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96400
96401 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96402
96403         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96404         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96405
96406 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96407
96408         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96409         (mbrtowc, mbstate_t): Define substitutes if
96410         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96411         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96412         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96413
96414 2000-06-23  Jim Meyering  <meyering@lucent.com>
96415
96416         * m4/afs.m4: Add missing AC_MSG_RESULT.
96417         Reported by Bruno Haible.
96418
96419         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96420         Suggestion from Bruno Haible.
96421
96422 2000-06-23  Jim Meyering  <meyering@lucent.com>
96423
96424         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96425
96426 2000-06-21  Jim Meyering  <meyering@lucent.com>
96427
96428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96429
96430 2000-06-21  Jim Meyering  <meyering@lucent.com>
96431
96432         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96433         (noinst_HEADERS): Add getstr.h.
96434
96435         * lib/getline.c (getstr): Move into a separate file.
96436         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96437         the following changes: new parameter, delim2; both delim[12]
96438         parameters have type `int', not `char'.  The latter would lose
96439         with 8-bit delimiters.
96440         * lib/getstr.h: New file.
96441
96442 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96443
96444         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96445         than 1024, return a memory chunk of least possible size, instead
96446         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96447         Use free/xmalloc instead of xrealloc to avoid copying for very long
96448         paths.
96449
96450 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96451
96452         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96453         the empty string.
96454
96455 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96456
96457         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96458         address, not strdup.  Include <stdlib.h> and don't declare free().
96459
96460 2000-06-19  Jim Meyering  <meyering@lucent.com>
96461
96462         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96463
96464 2000-06-18  Jim Meyering  <meyering@lucent.com>
96465
96466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96467
96468         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96469         `checking whether...' message to be consistent with that of the
96470         lstat test.
96471
96472 2000-06-18  Jim Meyering  <meyering@lucent.com>
96473
96474         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96475         Besides, these days every porting target provides a mkdir function.
96476
96477         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96478         needed. (this snippet comes from src/system.h).
96479
96480 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96481
96482         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96483
96484 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96485
96486         * lib/human.c (adjust_value): New function.
96487         (human_readable_inexact): Apply rounding style even when
96488         printing approximate values.
96489
96490 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96491
96492         * lib/human.c (human_readable_inexact): Allow an input block
96493         size that is not a multiple of the output block size, and vice versa.
96494         Reported by Piergiorgio Sartor.
96495
96496 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96497
96498         * lib/getdate.y (get_date): Apply relative times after time
96499         zone indicator, not before.  Reported by Todd A. Jacobs.
96500
96501 2000-06-13  Jim Meyering  <meyering@lucent.com>
96502
96503         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96504
96505         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96506
96507 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96508
96509         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96510
96511 2000-06-12  Jim Meyering  <meyering@lucent.com>
96512
96513         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96514         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96515         optional argument.
96516         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96517         the optional argument, `lib'.
96518
96519 2000-06-08  Jim Meyering  <meyering@lucent.com>
96520
96521         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96522
96523 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96524
96525         Rewrite largefile configuration so that we don't need to run
96526         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
96527         AC_CANONICAL_HOST in configure.in -- jmm]
96528
96529         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
96530         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
96531         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
96532         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
96533         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
96534         All uses changed.
96535         Instead of inspecting the output of getconf, try to compile the
96536         test program without and with the macro definition.
96537         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
96538         for getconf.  Instead, check for the needed flags by compiling
96539         test programs.
96540
96541 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96542
96543         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
96544
96545 2000-06-04  Jim Meyering  <meyering@lucent.com>
96546
96547         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
96548         SunOS 4.1.4 for which gid_t is an unsigned type.
96549
96550 2000-06-03  Jim Meyering  <meyering@lucent.com>
96551
96552         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
96553         now that autoconf requires that.
96554
96555         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
96556         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
96557         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
96558
96559 2000-06-03  Jim Meyering  <meyering@lucent.com>
96560
96561         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
96562
96563 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96564
96565         * m4/glibc21.m4: New file.
96566         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
96567
96568 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96569
96570         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
96571         newer, don't install charset.alias.
96572         * lib/config.charset: Change the Linux/glibc rules so they become empty
96573         on glibc-2.1 or newer.
96574
96575 2000-06-02  Jim Meyering  <meyering@lucent.com>
96576
96577         * lib/mountlist.c: Back out last change.  Instead, do this...
96578         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
96579         me_dummy member using the same `ignore'-testing code.
96580         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
96581         fs_type strings.
96582         From Mark D. Roth.
96583
96584 2000-05-29  Jim Meyering  <meyering@lucent.com>
96585
96586         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
96587         mounts with the `ignore' attribute.  Based on a patch from
96588         Mark D. Roth.
96589
96590 2000-05-28  Jim Meyering  <meyering@lucent.com>
96591
96592         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
96593         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96594         * m4/stat.m4: Likewise.
96595         * m4/lstat.m4: Likewise.
96596         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
96597
96598         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
96599         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
96600
96601 2000-05-26  Jim Meyering  <meyering@lucent.com>
96602
96603         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
96604
96605 2000-05-24  Jim Meyering  <meyering@lucent.com>
96606
96607         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
96608         autoconf requires that.
96609         * m4/lib-check.m4: Likewise.
96610         * m4/jm-macros.m4: Likewise.
96611         * m4/strftime.m4: Likewise.
96612
96613         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
96614         AC_CHECK_DECLS, now that autoconf requires that.
96615
96616 2000-05-22  Jim Meyering  <meyering@lucent.com>
96617
96618         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96619         * m4/lstat.m4: Likewise.
96620
96621 2000-05-22  Jim Meyering  <meyering@lucent.com>
96622
96623         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
96624
96625 2000-05-20  Jim Meyering  <meyering@lucent.com>
96626
96627         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
96628         (jm_PREREQ): Use it.
96629
96630 2000-05-18  Jim Meyering  <meyering@lucent.com>
96631
96632         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
96633         back, too, since it may have been modified by allocate_entry.
96634         (hash_delete): Rewrite to use neither the assignment operator
96635         nor the comma operator in an if-expression.
96636
96637 2000-05-15  Paul Eggert  <eggert@twinsun.com>
96638
96639         * lib/closeout.c:
96640         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
96641         Remove; no longer needed.
96642         "quotearg.h": Add include.
96643         (file_name): Do not bother to explicitly initialize to NULL; it's less
96644         efficient on some hosts.
96645         (close_stdout_status): Remove test as to whether stdout was already
96646         closed; it breaks for the case "echo x | sort >&-".
96647         Quote file name colons.
96648         Do not assume that _("write error") lacks format strings.
96649
96650 2000-05-15  Jim Meyering  <meyering@lucent.com>
96651
96652         * lib/version-etc.c (version_etc_copyright): Update the copyright
96653         string used in all --version output.
96654
96655 2000-05-14  Jim Meyering  <meyering@lucent.com>
96656
96657         * lib/closeout.c (close_stdout_set_file_name): New function.
96658         (close_stdout_status): Use new file-scoped global.
96659         Return right away if fstat says the stdout file descriptor is invalid.
96660         * lib/closeout.h (close_stdout_set_file_name): Declare.
96661
96662 2000-05-10  Jim Meyering  <meyering@lucent.com>
96663
96664         * lib/closeout.c [default_exit_status]: New file-scoped variable.
96665         (close_stdout_set_status): New function.
96666         * lib/closeout.h (close_stdout_set_status): Declare.
96667
96668 2000-05-09  Jim Meyering  <meyering@lucent.com>
96669
96670         * m4/gettext.m4: Rename this...
96671         * m4/libintl.m4: ...to this.
96672
96673 2000-05-08  Jim Meyering  <meyering@lucent.com>
96674
96675         * lib/long-options.c: Don't include closeout.h.
96676         (parse_long_options): Don't call close_stdout for --version.
96677
96678 2000-05-06  Paul Eggert  <eggert@twinsun.com>
96679
96680         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
96681         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
96682         2.1.3 bug.  This avoids a clash when files like regex.c define
96683         _GNU_SOURCE.
96684
96685 2000-05-06  Jim Meyering  <meyering@lucent.com>
96686
96687         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
96688         (AC_REPLACE_FUNCS): Add strnlen.
96689
96690         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
96691         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
96692
96693         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
96694         AC_SEARCH_LIBS call for nanosleep.
96695         (LIB_NANOSLEEP): Set and AC_SUBST.
96696
96697 2000-05-06  Jim Meyering  <meyering@lucent.com>
96698
96699         * lib/strnlen.c: Undefine __strnlen and strnlen.
96700         [!weak_alias]: Define __strnlen to strnlen.
96701
96702         * lib/atexit.c: New file, from libiberty.
96703
96704 2000-05-06  Jim Meyering  <meyering@lucent.com>
96705
96706         * lib/closeout.c (close_stdout_status): Also check for errors on the
96707         stderr stream.
96708
96709 2000-05-05  Jim Meyering  <meyering@lucent.com>
96710
96711         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
96712         AC_SEARCH_LIBS call for clock_gettime.
96713         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
96714
96715         * m4/search-libs.m4: Update from autoconf.
96716
96717         su doesn't work on Solaris 2.6.
96718         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
96719         <shadow.h>.  Reported by Dragos Harabor.
96720
96721 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
96722
96723         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
96724         memcpy instead of xmalloc, xrealloc, path_concat.
96725         (locale_charset): Treat empty environment variables as absent.
96726         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
96727
96728 2000-05-04  Jim Meyering  <meyering@lucent.com>
96729
96730         * lib/getopt.c: Update from glibc.
96731         * lib/obstack.c: Likewise.
96732         * lib/obstack.h: Likewise.
96733         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
96734         file
96735
96736         * lib/regex.h: Likewise.
96737         * lib/strndup.c: Likewise.
96738         * lib/strnlen.c: New file, from glibc.
96739
96740 2000-05-03  Jim Meyering  <meyering@lucent.com>
96741
96742         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
96743
96744 2000-05-02  Paul Eggert  <eggert@twinsun.com>
96745
96746         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
96747         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
96748         compile-time test, rather than inspecting host and OS, to
96749         decide whether to define _LARGEFILE_SOURCE.
96750
96751 2000-05-01  Jim Meyering  <meyering@lucent.com>
96752
96753         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
96754
96755         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
96756         Based on a patch from Bruno Haible.
96757
96758 2000-05-01  Jim Meyering  <meyering@lucent.com>
96759
96760         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
96761
96762 2000-04-29  Jim Meyering  <meyering@lucent.com>
96763
96764         * lib/path-concat.c: Declare strdup only if it's not defined.
96765         * lib/canon-host.c: Likewise.
96766
96767 2000-04-28  Jim Meyering  <meyering@lucent.com>
96768
96769         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
96770         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
96771         is included first, then limits.h is included by locale.h by libintl.h.
96772         From John David Anglin.
96773
96774 2000-04-25  Jim Meyering  <meyering@lucent.com>
96775
96776         * lib/makepath.c (S_IRWXUGO): Define.
96777         (make_path): Always perform explicit chmod if MODE specifies any
96778         of the `special' permission bits.  Prompted by a bug report against
96779         install from Mate Wierdl and Joost van Baal.
96780
96781 2000-04-18  Jim Meyering  <meyering@lucent.com>
96782
96783         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
96784         (jm_PREREQ): Use it.
96785
96786 2000-04-18  Jim Meyering  <meyering@lucent.com>
96787
96788         * lib/README: New file.
96789
96790         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
96791         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
96792
96793 2000-04-17  Jim Meyering  <meyering@lucent.com>
96794
96795         Get it right :-)
96796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
96797         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
96798         Suggestion from Akim Demaille.
96799
96800 2000-04-17  Jim Meyering  <meyering@lucent.com>
96801
96802         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
96803         the definition of it to rpl_strftime also defined-away the system's
96804         declaration.
96805
96806 2000-04-15  Jim Meyering  <meyering@lucent.com>
96807
96808         Use `C' to denote so-called `contiguous' files, the same way
96809         that tar does.
96810         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
96811         (ftypelet): Use S_ISCTG.
96812         From Michael Deutschmann.
96813
96814 2000-04-14  Jim Meyering  <meyering@lucent.com>
96815
96816         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
96817         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
96818         clobbered.
96819
96820 2000-04-14  Jim Meyering  <meyering@lucent.com>
96821
96822         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
96823
96824 2000-04-13  Jim Meyering  <meyering@lucent.com>
96825
96826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
96827         AH_VERBATIM to insert required #ifndef into config.h.in.
96828         Suggestion from Akim Demaille.
96829
96830 2000-04-12  Jim Meyering  <meyering@lucent.com>
96831
96832         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
96833         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
96834         Christian Krackowizer.
96835
96836         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
96837         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
96838         (AC_SYS_LARGEFILE): Require.
96839         (AM_C_PROTOTYPES): Require.
96840
96841 2000-04-08  Jim Meyering  <meyering@lucent.com>
96842
96843         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
96844         names don't conflict.  Reported by Eli Zaretskii.
96845
96846 2000-04-07  Jim Meyering  <meyering@lucent.com>
96847
96848         * lib/putenv.c: Move inclusion of errno.h so it follows that of
96849         sys/types.h, to work around system header problems on AIX 3.2.5.
96850         From Bruno Haible.
96851
96852 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
96853
96854         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
96855         bug.  Deal with the different error behavior of Irix iconv.
96856
96857 2000-04-05  Paul Eggert  <eggert@twinsun.com>
96858
96859         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
96860         IRIX if the installer said otherwise.
96861
96862 2000-04-05  Jim Meyering  <meyering@lucent.com>
96863
96864         Portability tweaks required for ultrix4.3.
96865         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
96866         (jm_CHECK_DECLS): Add getutent to the list of functions.
96867         (_jm_DECL_HEADERS): Add utmpx.h.
96868         From John David Anglin.
96869
96870         * m4/strftime.m4: Back out the 2000-04-02 change.
96871         Instead of that change, simply undefine putenv in the test program.
96872
96873 2000-04-05  Jim Meyering  <meyering@lucent.com>
96874
96875         Portability tweaks required for ultrix4.3.
96876         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
96877         getutent.
96878         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
96879         * lib/canon-host.c: Declare strdup.
96880         * lib/path-concat.c: Likewise.
96881         From John David Anglin.
96882
96883 2000-04-04  Jim Meyering  <meyering@lucent.com>
96884
96885         Be more DOS 8.3-friendly.
96886         * lib/ref-add.sin: Renamed from ref-add.sed.in.
96887         * lib/ref-del.sin: Renamed from ref-del.sed.in.
96888         * lib/Makefile.am: Reflect renaming.
96889         Reported by Eli Zaretskii.
96890
96891         Use a temporary file name that won't clash with `charset.alias'
96892         in the DOS 8.3 name space.
96893         * lib/Makefile.am (charset_tmp): Define.
96894         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
96895         (uninstall-local): Likewise.
96896         Reported by Eli Zaretskii.
96897
96898 2000-04-03  Jim Meyering  <meyering@lucent.com>
96899
96900         * m4/gettext.m4: Fix typo in comment.
96901
96902         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
96903         textutils/configure.in).  Suggestion from Paul Eggert.
96904         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
96905
96906 2000-04-02  Paul Eggert  <eggert@twinsun.com>
96907
96908         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
96909         variable in the shell rather than using putenv, which isn't
96910         portable.  This avoids the configure-time inter-test dependency
96911         on the potentially-renamed putenv function.
96912
96913 2000-03-30  Paul Eggert  <eggert@twinsun.com>
96914
96915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
96916         before checking struct stat.st_blksize, so that
96917         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
96918
96919 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96920
96921         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
96922         since strftime.c uses HAVE_STRFTIME to decide whether to use
96923         the underlying strftime.
96924
96925 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96926
96927         * lib/time/strftime.c (my_strftime): Make sure we call the system
96928         strftime, not ourselves, when invoking the underlying strftime.
96929
96930 2000-03-24  Jim Meyering  <meyering@lucent.com>
96931
96932         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
96933         (charset_alias): Define.
96934         (install-exec-local): Factor out common code.
96935         (uninstall-local): Split lines longer than 80.
96936         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
96937         (SUFFIXES): Define.
96938         (.sed.in.sed): New rule.  Don't redirect directly to $@.
96939         (CLEANFILES): Add ref-add.sed and ref-del.sed.
96940
96941 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
96942
96943         * lib/config.charset: Output a line containing "Packages using this
96944         file".
96945         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
96946         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
96947         ref-del.sed): New rules.
96948
96949 2000-03-17  Jim Meyering  <meyering@lucent.com>
96950
96951         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
96952         Otherwise, include <strings.h>
96953
96954 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
96955
96956         * lib/unicodeio.c (utf8_wctomb): New function.
96957         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
96958         format instead of in UCS-4 with platform dependent endianness.
96959
96960 2000-03-10  Jim Meyering  <meyering@lucent.com>
96961
96962         * m4/lib-check.m4: Look for getspnam in -lgen, too.
96963         From Marco Franzen.
96964
96965 2000-03-07  Paul Eggert  <eggert@twinsun.com>
96966
96967         * lib/savedir.c (savedir): Work even if directory size is
96968         negative; this can happen with some screwy NFS configurations.
96969
96970 2000-03-06  Jim Meyering  <meyering@lucent.com>
96971
96972         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
96973         if it's NULL (because we ran out of memory).  From Bruno Haible.
96974
96975 2000-03-05  Jim Meyering  <meyering@lucent.com>
96976
96977         * lib/localcharset.c ("path-concat.h"): Include.
96978         (get_charset_aliases): Use path_concat instead of ANSI string
96979         concatenation.
96980
96981         * lib/unicodeio.h (PARAMS): Define.
96982         Use it to guard prototype.
96983
96984 2000-03-04  Jim Meyering  <meyering@lucent.com>
96985
96986         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
96987         for lib/localcharset.c.
96988
96989 2000-03-04  Jim Meyering  <meyering@lucent.com>
96990
96991         * lib/Makefile.am (install-exec-local): Create $(libdir) before
96992         installing into it.
96993         (uninstall-local): Uncomment this rule so `make distcheck' works
96994         once again.
96995
96996         * lib/unicodeio.c (<errno.h>): Include it.
96997         (errno): Declare if not defined.
96998
96999         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97000
97001         * lib/config.charset: New version, incorporating remarks from a linux
97002         i18n mailing list.  From Bruno Haible.
97003
97004 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97005
97006         * m4/codeset.m4: New file.
97007         * m4/iconv.m4: New file.
97008         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97009
97010 2000-03-03  Jim Meyering  <meyering@lucent.com>
97011
97012         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97013
97014 2000-03-02  Jim Meyering  <meyering@lucent.com>
97015
97016         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97017         the messages come out on separate lines.
97018
97019         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97020         rather than jm_CHECK_DECLARATIONS.
97021         * m4/decl.m4: Remove now-unused file.
97022
97023         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97024         geteuid.
97025
97026 2000-03-02  Jim Meyering  <meyering@lucent.com>
97027
97028         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97029
97030 2000-03-01  Jim Meyering  <meyering@lucent.com>
97031
97032         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97033         * lib/unicodeio.c: Likewise.
97034
97035 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97036
97037         * lib/config.charset: New file.
97038         * lib/localcharset.c: New file.
97039         * lib/unicodeio.h, lib/unicodeio.c: New files.
97040         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97041         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97042         (noinst_HEADERS): Add unicodeio.h.
97043         (all-local, install-exec-local, charset.alias): New targets.
97044
97045 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97046
97047         * lib/quotearg.c (ALERT_CHAR): New macro.
97048         (quotearg_buffer_restyled): Use it.
97049
97050 2000-02-27  Jim Meyering  <meyering@lucent.com>
97051
97052         * m4/check-decl.m4: Add getenv to the list.
97053
97054 2000-02-27  Jim Meyering  <meyering@lucent.com>
97055
97056         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97057         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97058
97059         * lib/backupfile.c: Guard inclusion of stdlib.h with
97060         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97061         Declare malloc if needed.
97062
97063         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97064         `#ifndef HAVE_DECL..'
97065         now that autoconf always defines the HAVE_DECL_ symbols.
97066         * lib/human.c: Likewise.
97067         * lib/same.c: Likewise.
97068         * lib/strtoumax.c: Likewise.
97069
97070         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97071         declaration check was not run.
97072         * lib/hash.c: Likewise.
97073         * lib/human.c: Likewise.
97074         * lib/same.c: Likewise.
97075         * lib/strtoumax.c: Likewise.
97076
97077         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97078         `.', then first look up the entire `.'-containing string as a login
97079         name.
97080
97081 2000-02-23  Jim Meyering  <meyering@lucent.com>
97082
97083         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97084         in place of my hack.
97085
97086 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97087
97088         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97089         (textint): New typedef.
97090         (parser_control): Member year changed from int to textint.
97091         All uses changed.
97092         (YYSTYPE): Removed; replaced by %union with int and textint members.
97093         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97094         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97095         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97096         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97097         (date, number, to_year): Use width of number in digits, not its value,
97098         to determine whether it's a 2-digit year, or a 2-digit time.
97099         (yylex): Store number of digits of numeric tokens.
97100         Reported by John Kendall.
97101
97102         (parser_control): Changed from struct parser_control to typedef (for
97103         consistency).  All uses changed.
97104
97105         (tID): Removed; not used.
97106         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97107
97108 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97109
97110         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97111         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97112
97113 2000-02-12  Jim Meyering  <meyering@lucent.com>
97114
97115         * lib/userspec.c (ISDIGIT): Define it.
97116         (isdigit): Remove definition.
97117         (is_number): Use ISDIGIT, not isdigit.
97118         <libintl.h>: Include.
97119         (_ and N_): Define.
97120         (parse_user_spec): Mark translatable strings.
97121
97122 2000-02-10  Jim Meyering  <meyering@lucent.com>
97123
97124         With these changes, nanosleep.[ch] are finally enough like the other
97125         lib/* replacement files to compile on a few more losing systems.
97126
97127         * lib/nanosleep.h: Don't include config.h.
97128         Remove prototype from declaration of nanosleep.
97129         (PARAMS): Remove now-unneeded definition.
97130         * lib/nanosleep.c: #undef nanosleep.
97131         (rpl_nanosleep): Rename from nanosleep.
97132
97133 2000-02-10  Jim Meyering  <meyering@lucent.com>
97134
97135         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97136         gnu_nanosleep to rpl_nanosleep.
97137
97138 2000-02-09  Jim Meyering  <meyering@lucent.com>
97139
97140         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97141         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97142
97143 2000-02-08  Akim Demaille  <akim@epita.fr>
97144
97145         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97146         `[' and `]' and remove uses of `changequote'.
97147         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97148         (AC_SYS_LARGEFILE): Likewise.
97149         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97150         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97151         of changequote.
97152         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97153         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97154         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97155         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97156
97157 2000-02-05  Jim Meyering  <meyering@lucent.com>
97158
97159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97160         Remove explicit use of AC_HEADER_TIME.  It is required by
97161         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97162         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97163         in autoconf whereby the expansion of the latter ended up preceding
97164         the expansion of its prerequisite, AC_HEADER_TIME.
97165         Reported by Volker Borchert.
97166
97167 2000-02-03  Jim Meyering  <meyering@lucent.com>
97168
97169         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97170
97171 2000-02-03  Jim Meyering  <meyering@lucent.com>
97172
97173         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97174         rather than with `#if HAVE_UTMPNAME'.
97175
97176 2000-02-02  Jim Meyering  <meyering@lucent.com>
97177
97178         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97179         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97180         Reported by Eli Zaretskii.
97181
97182 2000-02-01  Jim Meyering  <meyering@lucent.com>
97183
97184         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97185
97186 2000-01-31  Jim Meyering  <meyering@lucent.com>
97187
97188         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97189         functions.  Add the time.h and sys/time.h headers along with the
97190         AC_REQUIRE'ment of AC_HEADER_TIME.
97191
97192 2000-01-31  Jim Meyering  <meyering@lucent.com>
97193
97194         * lib/nanosleep.h (nanosleep): Guard declaration with
97195         `#if ! HAVE_DECL_NANOSLEEP'.
97196         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97197         the declaration in that vendor's sys/timers.h.
97198         Reported by Christian Krackowizer.
97199
97200         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97201         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97202         (ISPRINT): Likewise.
97203         Reported by Tom Tromey.
97204
97205 2000-01-30  Jim Meyering  <meyering@lucent.com>
97206
97207         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97208
97209         * m4/prereq.m4 (utmp_includes): Define.
97210         Check for ut_user and ut_name members in both struct utmpx
97211         and struct utmp.
97212
97213 2000-01-30  Jim Meyering  <meyering@lucent.com>
97214
97215         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97216         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97217         header files where only utmpx.ut_user is declared.
97218
97219         * lib/readutmp.h (UT_USER): Define.
97220
97221 2000-01-29  Jim Meyering  <meyering@lucent.com>
97222
97223         * m4/lib-check.m4: New file containing library-related checks from
97224         fileutils and sh-utils (textutils had none).
97225
97226 2000-01-28  Jim Meyering  <meyering@lucent.com>
97227
97228         * m4/perl.m4: Change format of warning message to look more like that
97229         from the missing script.  Suggestion from François Pinard.
97230
97231 2000-01-25  Jim Meyering  <meyering@lucent.com>
97232
97233         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97234         well as time.h in the compile check.
97235         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97236         Fix typo in cross-compiling case: s/yes/no/.
97237
97238 2000-01-23  Jim Meyering  <meyering@lucent.com>
97239
97240         * m4/jm-macros.m4: Move df-related tests here from
97241         fileutils/configure.in
97242
97243         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97244         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97245
97246         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97247         s/space/ac_fsusage_space/.
97248         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97249
97250         * m4/ftruncate.m4: New file (derived from part of
97251         fileutils/configure.in).
97252         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97253         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97254
97255         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97256         AC_SUBST these here, rather than just in sh-util/configure.in, so
97257         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97258         all the same.
97259         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97260         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97261         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97262         (AC_SUBST(POW_LIBM)): Likewise.
97263         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97264
97265 2000-01-23  Jim Meyering  <meyering@lucent.com>
97266
97267         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97268         obstack.c.
97269
97270 2000-01-22  Jim Meyering  <meyering@lucent.com>
97271
97272         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97273
97274         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97275
97276         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97277         configure.in
97278         (AC_CHECK_HEADERS): Likewise for sh-utils.
97279         (AC_CHECK_HEADERS): Likewise for textutils.
97280         Merge the three lists of headers.
97281
97282         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97283         from fileutils' configure.in.
97284
97285         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97286         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97287         check-decl.m4.
97288
97289         * m4/check-decl.m4: Use #if rather than #ifdef.
97290         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97291         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97292         (_jm_DECL_HEADERS): Define new function.
97293         (jm_CHECK_DECLARATIONS): Require it.
97294
97295 2000-01-22  Jim Meyering  <meyering@lucent.com>
97296
97297         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97298         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97299         Required for some AIX systems.  Reported by Christian Krackowizer.
97300         [TESTING] (main): New function.
97301
97302         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97303         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97304         letters.
97305
97306         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97307         iswprint.
97308
97309         * lib/strverscmp.c (ISDIGIT): Define.
97310         (strverscmp): Use ISDIGIT, not isdigit.
97311
97312 2000-01-19  Jim Meyering  <meyering@lucent.com>
97313
97314         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97315         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97316         defines `struct timespec' in <sys/time.h>
97317
97318         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97319         Thanks to Akim for explaining.
97320
97321 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97322
97323         * lib/nanosleep.c (nanosleep):
97324         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97325         POSIX.1 doesn't require SA_INTERRUPT and some systems
97326         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97327         it's been part of POSIX.1 since day 1 (in 1988).
97328
97329 2000-01-17  Jim Meyering  <meyering@lucent.com>
97330
97331         * lib/interlock: Remove unused file.  Reported by François Pinard.
97332
97333 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97334
97335         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97336         alert, backslash, formfeed, and vertical tab unnecessarily in
97337         shell quoting style.
97338
97339 2000-01-16  Jim Meyering  <meyering@lucent.com>
97340
97341         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97342         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97343         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97344         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97345
97346 2000-01-16  Jim Meyering  <meyering@lucent.com>
97347
97348         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97349         because the latter didn't work.
97350
97351 2000-01-15  Jim Meyering  <meyering@lucent.com>
97352
97353         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97354         (AC_REPLACE_FUNCS): Add memcpy and memset.
97355         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97356         Add strpbrk.
97357         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97358
97359 2000-01-12  Jim Meyering  <meyering@lucent.com>
97360
97361         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97362         (jm_PREREQ): Use it.
97363         (jm_PREREQ_READUTMP): New macro.
97364         (jm_PREREQ): Use it.
97365
97366 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97367
97368         Quote multibyte characters correctly.
97369         * m4/c-bs-a.m4: New file.
97370         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97371         (jm_PREREQ): Use it.
97372
97373 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97374
97375         * m4/uintmax_t.m4: Port to autoconf 2.13.
97376
97377 2000-01-08  Jim Meyering  <meyering@ascend.com>
97378
97379         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97380         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97381
97382 2000-01-04  Jim Meyering  <meyering@ascend.com>
97383
97384         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97385         jm_STRUCT_DIRENT_D_TYPE.
97386         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97387         jm_STRUCT_DIRENT_D_INO.
97388         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97389         jm_STRUCT_UTIMBUF.
97390         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97391         renamings.
97392         * m4/utime.m4: Likewise.
97393
97394         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97395         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97396
97397 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97398
97399         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97400         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97401
97402 2000-01-02  Jim Meyering  <meyering@ascend.com>
97403
97404         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97405         remember if this is necessary.
97406
97407 1999-12-26  Jim Meyering  <meyering@ascend.com>
97408
97409         * m4/jm-macros.m4: Use it here.
97410         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97411
97412 1999-12-23  Jim Meyering  <meyering@ascend.com>
97413
97414         * m4/jm-macros.m4: Check for clock_gettime (moved from
97415         fileutils/configure.in)
97416         Check for gettimeofday.
97417
97418 1999-12-20  Jim Meyering  <meyering@ascend.com>
97419
97420         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97421         autoconf-2.14a-1999-12-20.
97422
97423 1999-12-19  Jim Meyering  <meyering@ascend.com>
97424
97425         * m4/lstat-slash.m4: New file.
97426         * m4/jm-macros.m4: Use the new macro:
97427         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97428
97429 1999-12-07  Jim Meyering  <meyering@ascend.com>
97430
97431         * m4/perl.m4: Require that File::Compare be available, too.
97432         Too many systems seem to lack it.
97433
97434         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97435         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97436
97437 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97438
97439         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97440         problem with the QNX 4.25 shell, which doesn't propagate exit
97441         status of failed commands inside shell assignments.
97442
97443 1999-11-17  Jim Meyering  <meyering@ascend.com>
97444
97445         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97446
97447 1999-11-07  Jim Meyering  <meyering@ascend.com>
97448
97449         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97450
97451 1999-11-06  Jim Meyering  <meyering@ascend.com>
97452
97453         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97454         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97455
97456 1999-11-05  Jim Meyering  <meyering@ascend.com>
97457
97458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97459         configure.in of textutils, fileutils, and sh-utils into this one
97460         (shared between those packages) file.
97461         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97462         AC_STRUCT_ST_BLKSIZE.
97463
97464 1999-11-03  Jim Meyering  <meyering@ascend.com>
97465
97466         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97467         of AC_CHECK_TYPE checks includes unistd.h.
97468         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97469         Suggestion from Akim Demaille.
97470
97471 1999-10-30  Jim Meyering  <meyering@ascend.com>
97472
97473         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97474         m4-quoted string.
97475         * m4/ls-mntd-fs.m4: Likewise.
97476         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97477         * m4/jm-winsz1.m4: Likewise.
97478
97479         * m4/const.m4: Remove file, since the fix made it into the experimental
97480         version of autoconf.
97481         * m4/mktime.m4: Likewise.
97482
97483         * m4/check-type.m4: Remove file, now that the latest version of
97484         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97485
97486         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97487         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97488         AC_CHECK_TYPE.
97489
97490 1999-10-04  Jim Meyering  <meyering@ascend.com>
97491
97492         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97493
97494 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97495
97496         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97497         2.95.1 bug with HP-UX 10.20.
97498
97499 1999-09-17  Jim Meyering  <meyering@ascend.com>
97500
97501         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97502         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97503         due to missing strdup (against sh-utils-2.0).
97504
97505 1999-08-29  Jim Meyering  <meyering@ascend.com>
97506
97507         * m4/jm-macros.m4: Require jm_BISON.
97508         * m4/bison.m4: New file.
97509
97510 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97511
97512         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97513         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97514
97515 1999-08-05  Jim Meyering  <meyering@ascend.com>
97516
97517         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97518         to avoid conflicts with `conftest' on 8+3 filesystems.
97519         Suggestion from Eli Zaretskii.
97520
97521 1999-08-04  Jim Meyering  <meyering@ascend.com>
97522
97523         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97524         fileutils and sh-utils (textutils's getline test was inadequate).
97525         (AM_FUNC_GETLINE): Run this test.
97526         (AC_CHECK_FUNCS): Check for getdelim.
97527         Reported by Bob Proulx.
97528
97529 1999-08-02  Jim Meyering  <meyering@ascend.com>
97530
97531         * m4/jm-macros.m4: Add a comment.
97532
97533 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97534
97535         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
97536         <inttypes.h> defines strtoumax as a macro (and not as a
97537         function).
97538
97539 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97540
97541         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
97542         that we can shift, multiply and divide unsigned long long
97543         values; Ultrix cc can't do it.
97544
97545 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97546
97547         * m4/mktime.m4: New file, which is a preview of what should appear
97548         in the next public autoconf release.
97549
97550 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97551
97552         * m4/lfs.m4: Remove this file.
97553         * m4/largefile.m4: New file.  It contains the old contents of
97554         lfs.m4, except that all names with prefix AC_LFS have been
97555         changed to use the prefix AC_SYS_LARGEFILE instead, to be
97556         compatible with future autoconf versions.  Also, some minor m4
97557         quoting problems have been fixed.
97558
97559 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97560
97561         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
97562         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
97563         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
97564         and simplify the shell code.
97565
97566 1999-08-01  Jim Meyering  <meyering@ascend.com>
97567
97568         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
97569         m4.
97570
97571 1999-07-20  Jim Meyering  <meyering@ascend.com>
97572
97573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
97574
97575 1999-07-15  Jim Meyering  <meyering@ascend.com>
97576
97577         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
97578
97579 1999-05-22  Jim Meyering  <meyering@ascend.com>
97580
97581         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
97582
97583 1999-05-20  Jim Meyering  <meyering@ascend.com>
97584
97585         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
97586         Add a colon after each `then' in case $4 is empty.
97587
97588 1999-05-16  Jim Meyering  <meyering@ascend.com>
97589
97590         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
97591
97592 1999-05-10  Jim Meyering  <meyering@ascend.com>
97593
97594         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
97595
97596         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
97597         AC_FUNC_MKTIME.
97598
97599 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
97600
97601         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
97602
97603 1999-05-04  Paul Eggert  <eggert@twinsun.com>
97604
97605         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
97606         not CPPFLAGS, so that linking works correctly in IRIX.
97607
97608 1999-04-30  Paul Eggert  <eggert@twinsun.com>
97609
97610         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
97611
97612 1999-04-20  Paul Eggert  <eggert@twinsun.com>
97613
97614         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
97615         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
97616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
97617         jm_AC_TYPE_UNSIGNED_LONG_LONG.
97618         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
97619
97620         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
97621
97622 1999-04-20  Jim Meyering  <meyering@ascend.com>
97623
97624         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
97625         AC_REPLACE xstroull if necessary.  From Paul Eggert.
97626         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
97627
97628 1999-04-18  Jim Meyering  <meyering@ascend.com>
97629
97630         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
97631         * m4/jm-macros.m4: Use it.
97632
97633 1999-04-06  Jim Meyering  <meyering@ascend.com>
97634
97635         * m4/strftime.m4: Remove test for %f.
97636
97637 1999-03-29  Jim Meyering  <meyering@ascend.com>
97638
97639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
97640         superset of the AC_TYPE_* checks in the textutils, fileutils,
97641         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
97642         AC_TYPE_PID_T.
97643
97644 1999-03-28  Jim Meyering  <meyering@ascend.com>
97645
97646         * m4/jm-macros.m4: Define GNU_PACKAGE here.
97647         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
97648         replaced e.g., in the *.sh files of the sh-utils.
97649
97650 1999-03-20  Jim Meyering  <meyering@ascend.com>
97651
97652         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
97653         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
97654         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
97655
97656 1999-03-19  Jim Meyering  <meyering@ascend.com>
97657
97658         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
97659
97660 1999-03-12  Jim Meyering  <meyering@ascend.com>
97661
97662         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
97663
97664 1999-03-07  Jim Meyering  <meyering@ascend.com>
97665
97666         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
97667         declared.
97668
97669 1999-02-17  Jim Meyering  <meyering@ascend.com>
97670
97671         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
97672         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
97673
97674 1999-02-07  Jim Meyering  <meyering@ascend.com>
97675
97676         * m4/group-member.m4: New file -- extracted from sh-utils'
97677         configure.in.
97678
97679         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
97680         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
97681
97682 1999-02-06  Jim Meyering  <meyering@ascend.com>
97683
97684         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
97685         * m4/fnmatch.m4: Likewise.
97686         * m4/getgroups.m4: Likewise.
97687         * m4/lstat.m4: Likewise.
97688         * m4/malloc.m4: Likewise.
97689         * m4/putenv.m4: Likewise.
97690         * m4/realloc.m4: Likewise.
97691         * m4/regex.m4: Likewise.
97692         * m4/stat.m4: Likewise.
97693         * m4/strftime.m4: Likewise.
97694         Suggestion from Alain Magloire.
97695
97696         * m4/chown.m4: Use `.$ac_objext', not `.o'.
97697         * m4/fnmatch.m4: Likewise.
97698         * m4/getgroups.m4: Likewise.
97699         * m4/getline.m4: Likewise.
97700         * m4/lstat.m4: Likewise.
97701         * m4/malloc.m4: Likewise.
97702         * m4/memcmp.m4: Likewise.
97703         * m4/putenv.m4: Likewise.
97704         * m4/realloc.m4: Likewise.
97705         * m4/regex.m4: Likewise.
97706         * m4/stat.m4: Likewise.
97707         * m4/strftime.m4: Likewise.
97708         Suggestion from Alain Magloire.
97709
97710         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
97711         an argument.
97712
97713         * m4/regex.m4: Add a run-time Test for proper operation of
97714         re_compile_pattern.
97715
97716 1999-01-31  Jim Meyering  <meyering@ascend.com>
97717
97718         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
97719
97720 1999-01-30  Jim Meyering  <meyering@ascend.com>
97721
97722         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
97723
97724         * m4/jm-mktime.m4: Make this a wrapper around the official
97725         AM_FUNC_MKTIME rather than my private copy, now that the official one
97726         is up to date.
97727         * m4/mktime.m4: Remove file.
97728
97729         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
97730         * m4/uptime.m4: Likewise.
97731         * m4/uintmax_t.m4: Likewise.
97732
97733 1999-01-28  Jim Meyering  <meyering@ascend.com>
97734
97735         * m4/jm-macros.m4: Use jm_AFS.
97736         * m4/afs.m4: New file (from fileutils' configure.in).
97737
97738         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
97739         * m4/chown.m4: Likewise.
97740         * m4/d-ino.m4: Likewise.
97741         * m4/d-type.m4: Likewise.
97742         * m4/fnmatch.m4: Likewise.
97743         * m4/getgroups.m4: Likewise.
97744         * m4/gettext.m4: Likewise.
97745         * m4/jm-mktime.m4: Likewise.
97746         * m4/jm-winsz2.m4: Likewise.
97747         * m4/lcmessage.m4: Likewise.
97748         * m4/ls-mntd-fs.m4: Likewise.
97749         * m4/malloc.m4: Likewise.
97750         * m4/memcmp.m4: Likewise.
97751         * m4/putenv.m4: Likewise.
97752         * m4/realloc.m4: Likewise.
97753         * m4/st_mtim.m4: Likewise.
97754         * m4/strftime.m4: Likewise.
97755
97756 1999-01-16  Jim Meyering  <meyering@ascend.com>
97757
97758         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
97759         (ARGMATCH_DIE_DECL): Define.
97760
97761 1999-01-12  Jim Meyering  <meyering@ascend.com>
97762
97763         * m4/Makefile.am.in: Rewrite to avoid using fmt.
97764         Reported by Lars Hecking.
97765
97766 1999-01-10  Jim Meyering  <meyering@ascend.com>
97767
97768         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
97769         gross kludge.
97770         * m4/inttypes_h.m4: Likewise.
97771         * m4/lstat.m4: Likewise.
97772         * m4/malloc.m4: Likewise.
97773         * m4/readdir.m4: Likewise.
97774         * m4/realloc.m4: Likewise.
97775         * m4/st_dm_mode.m4: Likewise.
97776         * m4/stat.m4: Likewise.
97777         * m4/utimbuf.m4: Likewise.
97778         * m4/utimes.m4: Likewise.
97779
97780         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
97781         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
97782         comments in config.h.in are meaningful.
97783
97784         * m4/jm-macros.m4: Require autoconf-2.13 here.
97785
97786         * m4/regex.m4: By default, don't use the included regex.c on systems
97787         with glibc 2.  Suggestion from Uli Drepper.
97788
97789 1999-01-02  Jim Meyering  <meyering@ascend.com>
97790
97791         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
97792
97793 1998-12-18  Jim Meyering  <meyering@ascend.com>
97794
97795         * m4/Makefile.am.in (Makefile.am): Simplify rule.
97796         Based on a suggestion from Lars Hecking.
97797
97798 1998-11-16  Paul Eggert  <eggert@twinsun.com>
97799
97800         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
97801
97802 1998-11-16  Jim Meyering  <meyering@ascend.com>
97803
97804         * m4/lfs.m4: Double-quote the `uname...` expression.
97805
97806 1998-11-14  Jim Meyering  <meyering@ascend.com>
97807
97808         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
97809         * m4/stat.m4: Likewise.
97810
97811 1998-11-03  Jim Meyering  <meyering@ascend.com>
97812
97813         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
97814         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
97815
97816 1998-10-18  Jim Meyering  <meyering@ascend.com>
97817
97818         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
97819
97820 1998-10-17  Jim Meyering  <meyering@ascend.com>
97821
97822         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
97823         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
97824         calls for those previously hard-coded headers.  Instead, take a new
97825         parameter.
97826         (jm_CHECK_DECLARATIONS): Reflect interface change.
97827         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
97828         (jm_CHECK_DECL_LOCALTIME_R): New macro.
97829
97830         * m4/mktime.m4: Test for spring-forward gap before long-running test.
97831
97832 1998-10-14  Jim Meyering  <meyering@ascend.com>
97833
97834         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
97835         instead of "TZ=America/Vancouver".  From Paul Eggert.
97836
97837 1998-10-11  Jim Meyering  <meyering@ascend.com>
97838
97839         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
97840         This adds a test for a recently added compatibility fix for mktime.c.
97841         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
97842
97843 1998-09-27  Jim Meyering  <meyering@ascend.com>
97844
97845         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
97846
97847         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
97848         ../configure.in, including a change from Gordon Matzigkeit to allow
97849         cross-compiling for the Hurd.
97850
97851         * m4/glibc.m4: New file/macro to test for the GNU C Library
97852         versions 1 and 2.  From Gordon Matzigkeit.
97853         Indent.
97854
97855 1998-09-21  Jim Meyering  <meyering@ascend.com>
97856
97857         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
97858
97859 1998-08-18  Paul Eggert  <eggert@twinsun.com>
97860
97861         Port nanosecond-resolution times to UnixWare 2.1.2 and
97862         pedantic Solaris 2.6.
97863
97864         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
97865         AC_STRUCT_ST_MTIM.
97866         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
97867         Generate name of ns member, instead of just 1 or undef.
97868         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
97869
97870 1998-08-15  Jim Meyering  <meyering@ascend.com>
97871
97872         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
97873         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
97874         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
97875         instead of jm_TYPE_SSIZE_T.
97876
97877 1998-08-12  Jim Meyering  <meyering@ascend.com>
97878
97879         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
97880
97881 1998-08-02  Jim Meyering  <meyering@ascend.com>
97882
97883         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
97884         in acconfig.h manually.
97885
97886 1998-07-31  Paul Eggert  <eggert@twinsun.com>
97887
97888         * m4/st_mtim.m4: New file.
97889
97890 1998-07-28  Jim Meyering  <meyering@ascend.com>
97891
97892         * m4/utimes.m4: Undef stat.
97893
97894 1998-07-25  Jim Meyering  <meyering@ascend.com>
97895
97896         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
97897         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
97898
97899 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
97900
97901         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
97902         uid and gid actually remain unchanged.
97903
97904 1998-07-07  Jim Meyering  <meyering@ascend.com>
97905
97906         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
97907
97908 1998-07-04  Jim Meyering  <meyering@ascend.com>
97909
97910         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
97911         to prove that this macro can be used in packages without regex.c.
97912
97913 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
97914
97915         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
97916         is to be used.
97917
97918 1998-07-03  Jim Meyering  <meyering@ascend.com>
97919
97920         * m4/gettext.m4: Add -lintl if it's found to be necessary.
97921
97922         * m4/gettext.m4: New file -- from gettext-0.10.35.
97923         * m4/lcmessage.m4: Likewise.
97924         * m4/progtest.m4: Likewise.
97925
97926         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
97927         * m4/jm-macros.m4: Require the new macro.
97928
97929 1998-06-29  Jim Meyering  <meyering@ascend.com>
97930
97931         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
97932         for the definition of NGROUPS (used in a system header included
97933         by sys/mount.h).
97934
97935 1998-06-28  Jim Meyering  <meyering@ascend.com>
97936
97937         * m4/ls-mntd-fs.m4: New file.
97938         * m4/fstypename.m4: New file.
97939
97940         * m4/jm-macros.m4: Require the new macro.
97941         * m4/jm-glibc-io.m4: New file.
97942
97943 1998-05-19  Jim Meyering  <meyering@ascend.com>
97944
97945         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
97946         * m4/lchown.m4: New file.
97947
97948         * m4/Makefile.am.in: New file.
97949         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
97950
97951 1998-05-14  Jim Meyering  <meyering@ascend.com>
97952
97953         * m4/Makefile.am (EXTRA_DIST): Add them.
97954         * m4/jm-macros.m4: New file.
97955         * m4/utimbuf.m4: New file.
97956
97957 1998-05-12  Jim Meyering  <meyering@ascend.com>
97958
97959         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
97960
97961 1998-05-11  Jim Meyering  <meyering@ascend.com>
97962
97963         * m4/isc-posix.m4: New file.
97964
97965 1998-05-10  Jim Meyering  <meyering@ascend.com>
97966
97967         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
97968
97969 1998-05-09  Jim Meyering  <meyering@ascend.com>
97970
97971         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
97972         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
97973         with automake.
97974
97975         * m4/ssize_t.m4: New file.
97976         * m4/mktime.m4: Remove file -- the new automake has this now.
97977
97978 1998-04-26  Jim Meyering  <meyering@ascend.com>
97979
97980         * m4/assert.m4: New file.
97981         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
97982
97983 1998-04-05  Jim Meyering  <meyering@ascend.com>
97984
97985         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
97986         (jm_PREREQ): Use it here.
97987
97988 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
97989
97990         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
97991         in acconfig.h.
97992
97993 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
97994
97995         * m4/prereq.m4: New file.
97996         * m4/error.m4: New file.
97997         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
97998
97999 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98000
98001         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98002         cache-check for the same variable -- that defeated the purpose of
98003         the test; the test program was never run.  This was a problem only
98004         on systems with losing getline functions -- HP-UX 10.20 is one.
98005         Reported by Bjorn Helgaas.
98006
98007 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98008
98009         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98010
98011 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98012
98013         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98014
98015         * m4/const.m4: New file.  Use an initializer in this declaration
98016         typedef int charset[2]; const charset x;
98017         Reported by Bob Glickstein.
98018
98019 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98020
98021         * m4/chown.m4: Fix reversed types on -1 args to chown.
98022         From Kaveh Ghazi.
98023
98024 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98025
98026         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98027         Add lseek and memchr.
98028
98029         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98030         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98031         have a 20-character limit on names.
98032
98033 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98034
98035         * m4/inttypes_h.m4: New file.
98036         * m4/uintmax_t.m4: New file.
98037         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98038
98039
98040         -----
98041
98042         Local Variables:
98043         coding: utf-8
98044         End:
98045
98046         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98047
98048         Copying and distribution of this file, with or without
98049         modification, are permitted provided the copyright notice
98050         and this notice are preserved.